Sizing RAM and vCPU for a Local Language Model: Calculating the Starting VM Size
This article explores the methodology for selecting hardware resources to deploy local language models (LLMs). The author emphasizes that the choice of RAM and vCPU configuration depends directly on model weights, request profiles, context length, and the offload strategy employed. The material provides an approach for calculating baseline requirements based on model weights and the KV-cache formula. Special attention is given to the importance of load testing after initial setup: a 'warmed-up' test reveals actual memory consumption and identifies the performance threshold of the CPU. This guide helps engineers avoid over-provisioning resources and optimize costs when launching self-hosted solutions. The article serves as a useful manual for professionals involved in implementing generative AI within corporate infrastructure, where stability and predictability of model performance are critical.
This is a summary. Read the full article at the original source:
HabrRelated stories
Long-term memory for AI assistants: how to turn Telegram chats into a structured knowledge base
The author shares their experience in developing a long-term memory system for a personal AI assistant that analyzes Telegram correspondence. The prim…
Universal Music Group partners with ElevenLabs to launch AI music platform
Universal Music Group (UMG) has announced a strategic multi-year partnership with ElevenLabs to develop a new AI-powered platform. This initiative aim…
A 3.5-hour look into the future: how a model deceived itself for a month and a half — and how we caught it
This article explores a classic machine learning problem in time series analysis: data leakage, where a model implicitly gains information from the fu…



