Ollama has revolutionized local AI by providing an incredibly simple, Docker-like experience for running large language models via the command line.
ollama run <model-name>: Automatically pulls the model (if missing) and drops you into an interactive chat session.ollama list (or ls): Lists all models currently downloaded to your system.ollama ps: Shows which models are currently loaded into memory and running.Similar to a Dockerfile, you can customize models using a Modelfile. This allows you to bake in system prompts and temperature parameters.
FROM llama3
SYSTEM "You are a highly skilled Rust engineer. Only answer in valid Rust code."
PARAMETER temperature 0.1
You can then create your custom model using ollama create custom-rust-bot -f ./Modelfile.
Verify Ollama is installed, pull the Llama 3 model, and list your installed models.