curl -fsSL https://ollama.com/install.sh | sh # Linux★macOS & Windows have native installers on ollama.com. Installing starts the background server automatically.ollama run llama3.2★Pulls the model on first use, then opens an interactive chat. Type a message;/byeto exit,/?for in-chat commands.ollama run llama3.2 "Explain PagedAttention in one line"Pass a prompt inline for a one-shot answer (great for scripts / pipes).echo "summarize this" | ollama run llama3.2Reads stdin — compose it with other shell tools.
ollama list # alias: ollama ls★Show downloaded models with size + last-modified.ollama ps★Show models currently loaded in memory and their VRAM/CPU split.ollama stop llama3.2 · ollama rm llama3.2stopunloads a running model;rmdeletes it from disk.ollama serveRun the server in the foreground (normally it's already running). Reads config from environment variables (card 11).ollama --version · ollama show llama3.2showprints a model's parameters, template, license, and Modelfile.
ollama pull llama3.2:3b # tag = size/variant★Tags select size/quant:llama3.2:1b,:3b,qwen3:8b,:latest. Browse at ollama.com/library.ollama run hf.co/<user>/<repo>-GGUF:Q4_K_MRun any GGUF model straight from Hugging Face by prefixinghf.co/and picking a quantization tag.ollama cp llama3.2 my-llama · ollama push user/modelcpclones a model locally;pushuploads to your ollama.com namespace (afterollama signin).# a 70B model needs ~40GB+ RAM/VRAM even quantizedgotchaPick a size your hardware can hold, or Ollama offloads to CPU and slows down.ollama psshows the split.