Microdeck.tools 100 % dans le navigateur

Calculateur de VRAM pour LLM locaux

New

Calculez la VRAM dont un modèle de langage a besoin en FP16, 8 bits ou 4 bits pour une longueur de contexte donnée, et vérifiez qu'il tient sur votre GPU.

100 % dans le navigateur Aucun envoi serveur Résultats instantanés

Cet outil vous a-t-il fait gagner du temps ? Aidez Microdeck à rester gratuit et maintenu. Facultatif · Dès $3.

Fonctionnement technique

Model weights take parameters × bits per weight ÷ 8 bytes. The KV cache grows with context: 2 × layers × KV heads × head dimension × tokens × batch × bytes per value. The tool adds a runtime overhead of about 10% of the weights plus 0.5 GiB for CUDA context and activations, then compares the total with the VRAM you have.

Mode d’emploi étape par étape

1

Pick a preset model or choose custom and enter parameters, layers, KV heads and head dimension.

2

Choose the quantization (FP16, Q8, Q6, Q5, Q4 or Q3 style) and the KV cache precision.

3

Set the context length and batch size you plan to use.

4

Enter the VRAM per GPU and the number of GPUs to see whether the model fits and how much is left.

Fonctionnalités & performances

  • Presets for Llama 3.1, Mistral 7B, Qwen2.5 and Gemma 2 with their real layer and KV head counts
  • Separate lines for weights, KV cache and overhead so you see what to cut first
  • Fit check against common GPU sizes and multi-GPU setups
  • Runs locally; nothing you type is sent anywhere

Méthodologie, formules & standards

Effective bits per weight for GGUF-style quantizations are averages (Q4_K_M is about 4.85 bits, Q8_0 about 8.5). Real files differ slightly by architecture.

Cas d’usage courants

  • Deciding whether a 24 GB card can run a 32B model at 4-bit with a long context.
  • Sizing a multi-GPU server before renting hardware.
  • Seeing how much memory a longer context window costs.

Exemples concrets & cas limites

Llama 3.1 8B KV cache

Entrée
Llama 3.1 8B, 8,192 tokens, batch 1, FP16 cache
Sortie
1.00 GiB of KV cache

128 KiB per token: 2 × 32 layers × 8 KV heads × 128 dims × 2 bytes.

Weights of a 70B model

Entrée
70B parameters at 16 bits
Sortie
140 GB of weights

Far beyond one consumer GPU, which is why 70B is usually run at 4-bit or split across cards.

Limites & notes de précision

  • • This is an estimate. Inference engines differ in overhead, and activation memory depends on the backend and batch shape.
  • • It does not model offloading to system RAM, tensor-parallel duplication or training memory (gradients and optimizer state).

Traitement local dans le navigateur & confidentialité

Les convertisseurs classiques envoient vos documents, extraits ou médias sur des serveurs distants. Calculateur de VRAM pour LLM locaux s’exécute directement dans votre onglet :

Traité dans cet onglet

Vos textes et fichiers sont traités localement sans aucun envoi vers un serveur de calcul.

Aucune journalisation des données

Microdeck n’enregistre ni ne stocke les fichiers ou données collés dans les outils.

Mémoire éphémère de l’onglet

Les résultats restent dans la mémoire de votre onglet et sont libérés dès que vous le fermez.

Questions fréquentes (FAQ)

Why does the KV cache matter?

It grows linearly with context length and batch size. At very long contexts it can rival the weights, so a model that fits at 4K tokens may not fit at 128K.

Does a 4-bit model lose quality?

Usually a little. Q4_K_M and Q5 variants are widely used because the quality loss is small compared with the memory saved, but it depends on the model and task.

Can I run a model that is larger than my VRAM?

Some runtimes offload layers to system RAM, which works but is much slower. This tool only checks whether everything fits on the GPU.

Outils associés à découvrir

Soutenir Microdeck

Entièrement facultatif · Dès $3 · Sans compte

Choisir un montant (USD) :Sélectionné :$5

Le montant minimum est de $3 USD.

100 % facultatif · Dès $3 · Paiement sécurisé via Gumroad.