That's a great setup for CPU-only inference with Ollama! Your 32GB of RAM is particularly good, as it allows you to load larger models into memory, while the i5-8400 will handle the calculations.
For "simple text instructions," you'll want models that are:
Instruct-tuned: Meaning they are specifically trained to follow instructions and act like a chatbot.
Efficient: Able to run reasonably well on a CPU.
Here are my top recommendations for Ollama models that will work well on your i5-8400 with 32GB RAM:
1. Best Balance of Speed and Capability (Highly Recommended Start)
These models are fast enough to be quite usable and capable of understanding and responding to a wide range of simple text instructions.
phi3:mini (Microsoft Phi-3 Mini - 3.8B parameters)
Why: This model punches way above its weight class. It's incredibly efficient, relatively small, and surprisingly capable for general chat, summaries, brainstorming, and answering factual questions. It's one of the best choices for CPU-only inference.
Performance: You should get quite good speed with this, likely in the range of 5-15 tokens/second depending on the specific prompt and your system load.
How to run:ollama run phi3:mini
llama3.2:3b (Llama 3.2 3B - 3B parameters)
Why: A newer, smaller variant of Llama 3. It's designed to be highly efficient while retaining a good degree of Llama 3's capabilities. Excellent for general-purpose text generation and following instructions.
Performance: Similar to Phi-3 Mini, you should see good speeds, probably around 5-12 tokens/second.
How to run:ollama run llama3.2:3b
qwen2.5:3b (Qwen2.5 3B - 3B parameters)
Why: Alibaba's Qwen series is known for strong reasoning and coding capabilities, even in smaller sizes. A good alternative if you find Phi-3 or Llama 3 aren't quite hitting the mark for specific tasks.
Performance: Comparable to the other 3B models, around 4-10 tokens/second.
How to run:ollama run qwen2.5:3b
2. More Capable, Slightly Slower (Good for Deeper Instructions)
These models offer more sophistication in their responses but will be noticeably slower on your CPU. Still, they are very much runnable with your 32GB RAM.
mistral (Mistral 7B - 7B parameters)
Why: A long-standing community favorite. Very well-balanced for general tasks, creative writing, and understanding nuanced instructions. If you need a bit more "oomph" than the 3B models, this is a great step up.
Performance: Expect speeds in the range of 2-8 tokens/second. It will be slower than the 3B models but might be acceptable for more complex instructions where quality is more important than blazing speed.
Why: The larger Llama 3 variants will provide higher quality responses and better understanding of complex prompts compared to their 3B counterparts. Good for when you need a bit more detail or creativity.
Performance: Similar to Mistral, around 2-7 tokens/second.
How to run:ollama run llama3.2:7b or ollama run llama3.1:8b
qwen2.5:7b (Qwen2.5 7B - 7B parameters)
Why: If you liked the 3B Qwen, this is the logical next step for more powerful reasoning and broader knowledge.
Performance: Similar to other 7B models, around 2-7 tokens/second.
How to run:ollama run qwen2.5:7b
How to Use Them with Ollama:
Open your terminal or command prompt.
To download and start chatting with a model, simply type:
bash
ollama run <model_name>
For example:
bash
ollama run phi3:mini
The first time you run it, Ollama will download the model (it might be several GBs, so allow some time for the download). Once downloaded, it will load and you can start typing your instructions.
Important Notes:
Quantization: Ollama automatically pulls highly optimized, quantized versions of these models (like Q4 or Q5), which are specifically designed to run efficiently on CPUs using less RAM.
Initial Load Time: The first time you load a model, it might take 30 seconds to a minute for Ollama to load it into RAM. Subsequent loads will be faster if it's still in the cache.
Multitasking: Close other demanding applications while running the AI model to free up CPU and RAM for optimal performance.
Experiment: Start with phi3:mini or llama3.2:3b. If you find them too fast but not quite smart enough, then try mistral or one of the 7B Llama 3 models.
You have a perfectly capable machine to get started with local AI using Ollama. Enjoy!