Keeping Continue + Qwen 7B within VRAM on Ubuntu
A GitHub issue documents that Continue used ~9.5GB VRAM vs ~6GB for the same model in the Ollama CLI, fixed by lowering contextLength and maxTokens.
Hardware
| Item | Approx. price (as of 2026-11-30) | Buy |
|---|---|---|
| Any NVIDIA GPU (Linux workstation) | Not stated in source | Check price → |
Shop at Micro Center → Shop at Newegg → Shop at Velocity Micro →
Rent a GPU server instead
Not ready to buy the hardware? You can rent a GPU server (monthly, or by the hour for a quick test) and run the same stack (Ollama, Open WebUI, vLLM) on it. It's still your own server, not a shared AI API, but it sits in the provider's data center, so check your client-data rules first.
| Plan | Price (checked 2026-11-06) | Buy |
|---|---|---|
| Professional GPU VPS - RTX A4000 (16GB) (Database Mart) RTX A4000 16GB GDDR6, 24 CPU cores, 28GB RAM, 320GB SSD, USA | $119.00/mo (24-month term; $149.00/mo month-to-month) | Check price at Database Mart → |
Heads up: "Check price" links may be affiliate links. We may earn a commission at no extra cost to you.
Source prices are as stated by the source. Retailer offers: prices checked 2026-11-29, may change. Some links may be affiliate links; we may earn a commission at no extra cost to you. This never changes what we list.
Software stack
- Ubuntu 24.04
- Ollama
- Continue 1.0.18 (VS Code)
Models used
- qwen2.5-coder:7b-instruct
Good at
- Simple config fix restores speed
Weak at
- Default context settings can inflate VRAM and slow completions
Rough total cost
Uses existing hardware.
Getting started
- Run the model in Ollama CLI and note VRAM with nvidia-smi.
- Open Continue config.yaml.
- Under defaultCompletionOptions set contextLength (e.g. 1024-8192) and maxTokens: 500.
- Reload and re-check VRAM.
Source & credit
Issue by @aidinmc — GitHub continuedev/continue #6609
Summarized from the source; quotes are the source author's words. Check the original before buying.