Sign up Log in
n/ai-model-inf · 5d ago · 372 views
u/Marco_LeeSilver
n/ai-model-infu/Marco_Lee · 5d ago

Which big model can I run on a 16G GPU? Can an agent run by itself?

What can you actually do with a 16G GPU? I want to write some code, but it crashes every now and then. I see another 8G of VRAM just sitting there unused, no idea why. Anyone know what's going on?

Translated by AI from 简体中文

11
10
Log into join the discussion.

10 replies

Sort order
  1. fxz Gold 3 YEARS 5d ago

    For personal local setups, it's usually Qwen, right?

    Translated by AI from 简体中文

    0
  2. AlotofSkymoon 💬 Gold 5d ago Edited

    There's actually quite a lot you can run with 16GB. First, that crash you mentioned: if there's still 8GB of VRAM left and it died, it's probably not VRAM exhaustion. There are a few common causes. One, RAM ran out: when loading a model it first takes system RAM and then moves it to VRAM, so if RAM isn't enough the system just kills it. Two, the context keeps growing and the KV cache eats up the remaining VRAM. Three, some tools put part of the model on the CPU by default, which is slow and prone to hanging. You can run nvidia-smi and check whether VRAM or RAM was full when it crashed—pin that down first before switching models.

    For models, at the 16GB tier go for 7B and 14B quantized versions first. For coding, check out Qwen2.5-Coder-7B/14B and DeepSeek-Coder-V2-Lite (16B MoE, only about 2.4B active, runs very comfortably on 16GB); Qwen3 8B/14B are also pretty strong at coding. For general chat, Qwen2.5-7B/14B, Llama-3.1-8B, and Gemma-3-12B all fit with Q4 quantization. Don't force a 32B full-precision model—it definitely won't fit, and even a Q4 32B needs 20GB+.

    For tooling, just go with Ollama—it's the least hassle. ollama run qwen2.5-coder:14b will get it running. Install Continue or Cline in VS Code, connect it to Ollama, and you can use it as a coding assistant.

    Agents can run locally—Dify, LangChain, OpenClaw can all connect to local models—but honestly, tool calling on local 7B/14B models is quite a bit worse than with big API models. Simple tasks, getting a workflow running, and privacy-sensitive stuff are fine to keep local; for complex work I'd still recommend going through an API and using the local model as a helper. First figure out that crash, otherwise whatever model you switch to may keep crashing.

    Translated by AI from 简体中文

    0
  3. Marco_Lee Silver OP 3d ago

    When the agent gets invoked, it seems to run once and then just stops. No idea what's going on.

    Translated by AI from 简体中文

    0
  4. ryc2077 Silver 1d ago

    This is pretty typical with small local models: plain chat works fine because it only has to generate ordinary text; agent tool calling requires the model to output strictly formatted JSON/function calls. Small models often get the format wrong, make up parameter names, or think the task is done after one call and just wrap up, which breaks the loop. You can narrow it down like this:

    1. Check the logs before guessing. Look at the terminal where Ollama is running, and you can also open the output/log panel in Continue/Cline to see whether there's a JSON parse failure or tool call error at the moment it gets stuck. If you can see the raw tool call content, you can basically tell whether the model called it wrong or the tool execution failed.

    2. Check whether the context is maxed out. Tool-call history eats a lot of context, and once it fills up the model starts truncating and making random calls. You can bump up num_ctx in Ollama (e.g. 16384), and while it's running use nvidia-smi to keep an eye on VRAM usage so the KV cache doesn't fill it up.

    3. Make sure the model itself supports tool calling. Prefer an Instruct version with native function calling support, such as Qwen2.5-Coder-14B-Instruct or Qwen3-8B/14B, and don't use a base version. Some GGUF quantized versions are missing the tool-calling part in their template; switching quantization or model version should fix it.

    4. Do a minimal test: give the agent only two or three tools (read file, write file, run command) and make the task as specific as possible, e.g. “use the read-file tool to read README.md and report it back verbatim.” If it can't even handle this simplest call, it's a model/template problem, not because the task is too hard.

    If you just want to get the flow working first, you can also do what the person above suggested: use the local model for chat and temporarily hook up an API model for the agent stage. Local 7B/14B models really do fall short for complex multi-step agents.

    Translated by AI from 简体中文

    0
  5. at997ga Silver 5d ago

    The one true god of small-parameter models: gemma4 26b a4b runs effortlessly on 16G

    Translated by AI from 简体中文

    0
  6. Marco_Lee Silver OP 3d ago

    The chat interface feels fine, but tool calling is clunky — I just can't get it debugged out.

    Translated by AI from 简体中文

    0
  7. at997ga Silver 2d ago

    Use the Cloudflare Workers AI API — it gives you 10k neurons free every day. Go try out the models in there, there are plenty of them, find the one that fits your task, remember the model name, and then go deploy one locally.

    Translated by AI from 简体中文

    0
  8. Bytedance Silver 5d ago

    Qwen3.8 FLASH NEXT

    0
  9. awinds Gold Never abandon 5d ago

    Quite a few work, like glm, ds, etc.

    Translated by AI from 简体中文

    0
  10. Arvin_Leung 🚗 Glory 3 YEARS 2d ago

    16GB of VRAM—fine for chatting, but not much else.

    Translated by AI from 简体中文

    0