Saltar al contenido
  1. Blog
  2. PC & Local AI

PC & Local AIOllamaLocal LLMRTX 3060

Tuning Ollama on an RTX 3060 12GB: Dedicated VRAM Headroom, 48K Context, and 9B vs. 30B MoE Models

Practical guide to choosing Ollama context length (32K vs. 48K vs. 96K) and quantized coding models on a 12GB VRAM RTX 3060 without triggering slow system-RAM spillover.

Written by the site’s operator1 min read

Seeing 93% GPU utilization during Ollama inference does not mean your RTX 3060 12GB is maxed out. The real cliff is dedicated VRAM headroom — where crossing 12GB spills the KV cache into system RAM and tanks token speed.

Running Ollama across multi-file repositories on a 12GB RTX 3060 + 32GB system RAM setup forces a practical tradeoff: how high can you push context length before KV-cache memory spills out of VRAM, and when does a fast dense 9B model beat a larger 30B MoE model?

1. Watch dedicated VRAM (8.7 / 12.0 GB), not GPU %

During active token generation, 90–100% GPU compute utilization is normal and desirable. What actually determines whether you can raise context length from 32K to 48K is dedicated VRAM usage. When a 32K session sits around 8.7 / 12.0 GB with roughly 3.3 GB free, bumping to 48K context typically stays fully resident in VRAM at full speed.

2. Context cliff and model sizing on 12GB VRAM

Configuration / modelMemory footprintReal-world RTX 3060 12GB behavior
32K context~8.7 GB VRAMFast, cool, plenty of headroom
48K context10–11.5 GB VRAMSweet spot — stays inside VRAM for full-repo tasks
96K–128K context> 12 GB (spills to RAM)Sharp drop in tokens/sec due to PCIe / system RAM offload
Qwen3.5 9B Q4 (~6.6 GB)100% VRAM residentSnappy iteration loop for daily coding edits
30B MoE Q4 (~19 GB, ~3B active)VRAM + system RAM hybridBetter for broad planning when latency is acceptable

Remember also that in WSL + MCP agent setups, changing context limits or --headless flags requires fully restarting the running agent/MCP process so the new limits take effect. To gauge baseline client-side machine responsiveness, you can also run our local device benchmark.

Share this article
Share on X

Read next

Maker & Vision

Mac特定ウィンドウOCRが空文字を返す原因。Quartz+Tesseractの前処理とROI選択

Macでpyobjc(Quartz)とpytesseractを使って特定ウィンドウの文字を読む際、結果が空になった原因(文字サイズ・コントラスト不足)とselectROI・拡大・二値化での改善をまとめた。

#OCR#Python
Essays & Notes

AI文章っぽい定型句を避けて、ChatGPT過去ログの「実測と失敗」を一次記事にする

AI生成文章に出やすい導入定型句の傾向を確認しつつ、一般論の焼き直しではなく自分のChatGPTエクスポートに眠る実機検証や失敗談をブログ記事へ起こす編集方針をまとめた。

#ライティング#ブログ運営
Network

再起動するとNASのドライブが切れる、エラー1219が出る。Windowsのネットワークドライブの困りごとと SMB Linker

Windowsの再起動後にNASのネットワークドライブに赤いバツが付く、スリープ復帰で切れる、正しいパスワードなのにエラー1219が出る。 よくある3つの原因と、確かめるコマンド、接続を待ってからつなぎ直す無料ツール「SMB Linker for Windows」の紹介。

#自宅サーバー#NAS
Other

日本語入力にもローカルAIを。前の文を読んで変換する無料IME「Asteria」

前の文の流れをAIが読んで変換候補を選ぶ、Windows向けの無料の日本語IME「Asteria」の紹介。AIは自分のPCの中で動き、 APIキーも月額料金も要らず、入力した文章を外へ送らない。Google日本語入力との比較、仕組み、必要なPC環境まで。

#ソフトウェア#ローカルAI
PC & Local AI

月100円VPNの現実と、iOSショートカット「Brave終了時にVPN切断」の限界

月額100円級の格安VPNのリスクを整理したうえで、iPhoneのショートカットでBrave起動時にVPN接続・終了時に切断しつつ、OS制約で常駐監視できない部分を通知で補う設計。

#VPN#iOS
Files

W3C WebCodecs (Nov 2026 Draft) and the Codec Registry: Where Browser-Only Audio & Video Conversion Hits Its Limits

How the November 19, 2026 W3C WebCodecs Working Draft separates core APIs from the Codec Registry (Opus, AAC mp4a.40.2, Linear PCM) — and why muxing and AudioSpecificConfig still make local conversion tricky.

#Web Standards#WebCodecs

All articles