@diy_smart_code: Your local LLM fits in RAM โ€” the KV cache doesn't. The follow-up to my Ornith 1.0 video: why the 5.6 GB model needs about 10 GB in a real ollama agent session, and the two-variable q8_0 fix that halves the cache. ---- ๐Ÿš€ DYNAMOUS AI COMMUNITY Want to learn agentic coding with live daily events and workshops? Check out Dynamous AI: https://dynamous.ai/?code=646a60 Get 10% off here ๐Ÿ‘‰ https://shorturl.smartcode.diy/dynamous_ai_10_percent_discount โšก HOSTINGER โ€” RELIABLE HOSTING FOR YOUR PROJECTS (10% OFF) Whether you're shipping a portfolio, a side project, n8n flows, or AI agents โ€” I use Hostinger for fast, affordable VPS + web hosting. Get 10% off here ๐Ÿ‘‰ https://hostinger.com/DIYSMARTCODE (Affiliate link โ€” costs you nothing, supports the channel.) ---- What you'll see in this 110-second breakdown: โ†’ The comment that called it: the model fits, the context for your session likely won't โ†’ The memory bill: 5.6 GB model file vs about 10 GB for a real 128k agent session โ†’ The KV cache math, derived from config.json: ~32 KiB per token โ†’ 4 GB at 128k tokens โ†’ The honest part: only 8 of 32 layers grow the cache โ€” a dense model would need 16 GB โ†’ The trapdoor: ollama's default context window is 4,096 tokens; the model supports 262,144 โ†’ The fix: OLLAMA_FLASH_ATTENTION=1 + OLLAMA_KV_CACHE_TYPE=q8_0 โ€” 4 GB of cache becomes 2 The receipts: โ†’ Model weights: https://huggingface.co/deepreinforce-ai/Ornith-1.0-9B โ†’ Run it: https://ollama.com/library/ornith โ†’ Ollama FAQ (default context + q8_0): https://docs.ollama.com/faq โ†’ Tech blog: https://deep-reinforce.com/ornith_1_0.html โ†’ Part 1 โ€” Ornith 1.0 breakdown: https://youtube.com/shorts/8Cw1jX6o9w0 Quantize the cache, or cap the context โ€” which one are you running? One word below. #ornith #localllm #ollama #kvcache #kvcacheoptimization #localai #localaicoding #localaiagent #runllmlocally #contextwindow #quantization #flashattention #deepreinforce #opensourceai #agenticcoding #openweights #aicoding #selfhostedai #ollamatutorial #diysmartcode

DIY Smart Code
DIY Smart Code
Open In TikTok:
Region: DE
Friday 03 July 2026 18:59:50 GMT
1274
41
0
5

Music

Download

Comments

There are no more comments for this video.
To see more videos from user @diy_smart_code, please go to the Tikwm homepage.

Other Videos


About