A Different Angle: The Bottleneck Is Where the Weights Come From, Not Which Engine You Use

Most local-inference guides frame it as "Ollama for daily use, vLLM for batch." The real obstacle to a zero-cost token supply is something else: the same weights get downloaded, stored, and converted multiple times. An fp16 7B model is usually about 14–15 GB, and roughly 4–5 GB after quantization. If you keep one copy in Ollama, another in the Hugging Face cache, and a third converted for vLLM, disk and bandwidth costs multiply — and that is exactly the cost most "free token" plans overlook.

This guide proposes: treat Ollama's model cache as the single weight repository, and point vLLM at the same downloaded weights (or do one local quantization conversion when needed), so you download once and generate tokens indefinitely, fully offline and without a credit card.

Requirements and Limits

  • Hardware: a single 12–24 GB GPU handles 7B–14B at 4-bit/8-bit quantization; 24 GB+ can attempt 32B quantized. Without enough VRAM you fall back to CPU inference, which is much slower.
  • OS: Linux first (best vLLM support); Windows via WSL2; macOS has limited vLLM support though Ollama works.
  • Network: the first download needs access to a model repository; afterwards it can run fully offline.
  • Limits: "free" here means no per-token billing; electricity and hardware depreciation are still yours. Quantization costs quality, more visibly at long context and high concurrency.

Steps

Step 1: Make Ollama store weights where you can find them

  1. Confirm the cache location: on Linux it defaults to ~/.ollama/models; set OLLAMA_MODELS to a larger disk if needed.
  2. Pull the target model, e.g. ollama pull qwen2.5:7b-instruct-q4_K_M or ollama pull llama3.1:8b-instruct-q4_K_M (check ollama list for the exact tags available to you).
  3. Run ollama show <model> --modelfile to see the base weights and quantization it references, and note the repository and files.

Step 2: Hand the same weights to vLLM

vLLM expects a Hugging Face-format safetensors directory. Two approaches:

  • Approach A (recommended, least traffic): download the official repo locally with the Hugging Face CLI (huggingface-cli download <repo> --local-dir ./weights), then build the Ollama model from that local directory with ollama create, so both share the same files.
  • Approach B (Ollama model already present): locate the blob in Ollama's cache, identify its original repo, then fetch only the config files (config.json, tokenizer, etc.) with huggingface-cli download to avoid re-downloading large weights.

Start vLLM's OpenAI-compatible server:

```bash

vllm serve ./weights \

--served-model-name local-7b \

--quantization awq \

--max-model-len 8192 \

--gpu-memory-utilization 0.90 \

--port 8000

```

If the weights are not quantized, start with --dtype half for fp16; when VRAM is tight, use --quantization with pre-quantized GPTQ/AWQ weights.

Step 3: Turn "download again" into "never download again"

  • Run a static file server or HF mirror on the LAN (e.g. huggingface-cli download into a shared HTTP directory) to centralize common weights.
  • Point HF_ENDPOINT at the internal mirror so later machines pull from the LAN.
  • For Ollama, set OLLAMA_MODELS to a shared disk so multiple machines reuse one cache (watch for concurrent-write risks).

Step 4: Turn "one download" into "long-term supply"

  • Supervise the vLLM process with systemd or supervisor, with health checks and auto-restart.
  • Point clients at the OpenAI-compatible endpoint http://127.0.0.1:8000/v1; SDKs need no changes.
  • Add a lightweight gateway for rate limiting and logging to avoid overloading a single box; logs let you account for local token output.

Step 5: Disk and VRAM budget (indicative)

| Model size | fp16 weights | 4-bit quantized | Suggested VRAM |

|---|---|---|---|

| 7B | ~14–15 GB | ~4–5 GB | 12 GB+ |

| 14B | ~28 GB | ~8–9 GB | 16–24 GB |

| 32B | ~64 GB | ~18–20 GB | 24 GB+ (tight) |

These are rules of thumb; verify against the model card and nvidia-smi.

Cautions

  • License: check whether the model license permits commercial use and redistribution; some are research-only.
  • Quantization quality: 4-bit degrades more on code and math tasks; keep an fp16 copy for comparison.
  • Concurrency: vLLM's continuous batching raises throughput but VRAM grows with concurrency; don't set --gpu-memory-utilization to 1.0.
  • Don't re-download: before switching frameworks, check whether usable weights already exist locally — that is the core saving here.
  • Offline check: after the first download, disconnect the network once to confirm the service doesn't depend on a remote.

When to Use

  • Individual developers who want a long-running assistant without per-token billing;
  • Small teams sharing one set of weights on a LAN behind one OpenAI-compatible endpoint;
  • Scenarios requiring data to stay on the internal network (e.g. internal document Q&A);
  • Evaluation work comparing the same weights across vLLM and Ollama.