ollama is a tool that lets you download and run language models on your own machine with a single command. once it's installed, pulling a model and chatting with it once is enough to get going:
ollama pull llama3.2
ollama run llama3.2 "introduce yourself in one sentence"the genuinely useful part is that it also opens a local address in the background, so you can call the model from your own scripts. when i'm trying out a model, i drop a handful of real samples from my own work into a folder as .txt files and send them through one by one, printing how long each answer took:
import time
from pathlib import Path
import requests
for file in sorted(Path("samples").glob("*.txt")):
text = file.read_text(encoding="utf-8")
start = time.time()
answer = requests.post("http://localhost:11434/api/generate", json={
"model": "llama3.2",
"prompt": f"Summarise this text in one sentence:\n\n{text}",
"stream": False,
}).json()["response"]
print(f"{file.name} ({time.time() - start:.1f}s): {answer}\n")speed on its own doesn't tell you much, but seeing the answers side by side makes it obvious which ones you'd have to fix by hand. swap in another model, run the same script again, and the comparison is right there. (bkz: running a language model locally)