Running Llama 3.2 and Llama 3.1 on a Small VPS

Serving an 8B-class model on 2 vCPUs and 8 GB of RAM sounds impossible — until you tune the few settings that actually matter.

Running Llama 3.2 and Llama 3.1 on a Small VPS

The constraints

A modest box has no GPU and limited memory, so the goal is to keep exactly one model resident, cap context sensibly, and avoid thrashing. Get those right and open models like Llama 3.2 and Llama 3.1 become genuinely usable.

The checklist

  • Context length: cap it — every extra token costs RAM and latency.
  • Keep-alive: hold the model in memory so requests don't reload weights.
  • Single resident model: one loaded model, one parallel request.
  • Swap: a little swap as a safety net, not a crutch.
VPS tuning settings

With these in place, a single small server quietly powers chat, memory, and search for a whole workspace.