Code Yarns ‍👨‍💻
Tech BlogPersonal Blog


Ollama

📅 2026-Jan-30 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ llm ⬩ 📚 Archive

Ollama is informally called Docker for LLMs. It is an inference program to download and run LLM models on your local computer. It supports many backends, but is primarily used with the llama.cpp backend.

Download and run

$ curl -fsSL https://ollama.com/install.sh | sh
$ ./ollama pull smollm:135m

$ ./ollama run smollm:135m

>>> Is cat an animal?
Yes

>>> /bye

Build and run

$ sudo apt golang-go
$ git clone https://github.com/ollama/ollama.git

$ cd ollama
$ go generate .

$ go build .
$ ./ollama pull smollm:135m

$ ./ollama run smollm:135m

>>> Is cat an animal?
Yes

>>> /bye

Ready to rock!


© 2026 Ashwin Nanjappa • All writing under CC BY-SA license • 🐘 Mastodon🦋 Bluesky📧 Email