Research
Notes from the lab
What we are building, what we are measuring, and what surprised us.
Looking for earlier material? Browse the legacy archive.
7 min readOllama 'Model Requires More System Memory': The Fix
What Ollama's two memory numbers actually measure, why Docker and WSL report less than you have, which versions show this error, and how to fix it.
InferenceRead
7 min readllama.cpp 'Failed to Fit Params': What It Means
The failed to fit params line in llama.cpp is a warning, not the crash. What the fit step adjusts, what each reason means, and which flags to change.
InferenceRead
7 min readOllama 'Pull Model Manifest' Errors, Explained by Code
What follows "pull model manifest" tells you the cause: 412 version, 401 sign-in, ssh no key, no such host, timeouts and proxies. How to fix each one.
InferenceRead
8 min readOllama 'Process Has Terminated': Read the Error
Ollama's "process has terminated" error means the model process stopped. The text after the colon usually says why. How to read it and fix each cause.
InferenceRead
7 min readOllama Connection Refused: How to Fix Port 11434
Ollama listens only on 127.0.0.1 by default, so Docker apps and other machines get connection refused. Find your setup, fix the address, and keep it secure.
InferenceRead
7 min readWhy Ollama Is Slow Even When It Runs on the GPU
Slow Ollama replies on a GPU come from loading, reading the prompt or writing the answer. How to measure each with Ollama's own timings, and what to change.
InferenceRead
7 min readWhy a pgvector HNSW Index Build Is Slow, and the Fix
A slow pgvector HNSW build usually means the graph no longer fits in maintenance_work_mem. How to read the notice, size the memory and add parallel workers.
RetrievalRead
7 min readWhy Ollama Is Using the CPU Instead of Your GPU
When Ollama runs on the CPU, the cause is a driver, a container, a card Ollama does not support, or a model too big for the GPU. How to tell which, and fix it.
InferenceRead
7 min readWhy vLLM Takes So Long to Start, and How to Speed It Up
vLLM spends startup time loading weights, compiling and capturing CUDA graphs. What each step costs, which flags trade speed for performance, and what to cache.
InferenceRead
7 min readWhy Ollama Runs Out of Memory, and How to Fix It
Ollama out of memory errors usually come from context length, parallel requests or other loaded models, not the model file. How to find which one, and fix it.
InferenceRead
6 min readOllama Context Length: How to Set It and What It Costs
How to set Ollama's context length with num_ctx or OLLAMA_CONTEXT_LENGTH, why the default differs by machine, and how much memory each setting reserves.
InferenceRead
7 min readHow Much VRAM Do You Need for a 70B Model?
A 70B model needs about 140 GB at 16-bit, 70 GB at 8-bit and 35 to 40 GB at 4-bit, plus memory for context. How to work it out for any model and GPU.
InferenceRead