AesCode-8B: how much VRAM does it need?
Words by AI, numbers by code. The explanations on this page were generated and translated by AI and checked against their sources by software; specifications come from the sources listed, and memory and speed figures are estimates from published formulas. No one edits pages by hand. How we use AI
AesCode-8B has 8.2B parameters. At Q4_K_M with a context of 8,192 tokens, a single GPU needs 7.3 GiB of available memory for the result to be “Fits”.
Key facts
- Original repository
- microsoft/AesCode-8B@cfe1f69
- Publisher
- microsoft
- License
- apache-2.0
- Parameters (GGUF tensor table: the tensors llama.cpp loads; multi-token-prediction layers not counted)
- 8.2B
- Parameters reported by the original repository (may include a vision encoder or extra layers)
- 8.8B
- Layers
- 36
- Attention layout
- 36 full-attention layers
- KV cache per token (F16, all attention layers)
- 144.0 KiB
- Longest supported context
- 262,144
- Image input
- Supported by the model; estimates here cover text only (the vision projector needs extra memory).
GGUF files and memory needed
All quantizations come from one GGUF repository at one pinned revision: bartowski/AesCode-8B-GGUF@17695df
| Quantization | File size | X at 4,096 context | X at 8,192 context | X at 32,768 context | X at 131,072 context |
|---|---|---|---|---|---|
| BF16 | 15.26 GiB | 16.7 GiB | 17.3 GiB | 20.9 GiB | 35.4 GiB |
| Q8_0 | 8.11 GiB | 9.8 GiB | 10.4 GiB | 14.0 GiB | 28.4 GiB |
| Q6_K | 6.65 GiB | 8.4 GiB | 9.0 GiB | 12.6 GiB | 27.0 GiB |
| Q5_K_M | 5.81 GiB | 7.6 GiB | 8.2 GiB | 11.8 GiB | 26.2 GiB |
| Q4_K_M | 4.85 GiB | 6.7 GiB | 7.3 GiB | 10.9 GiB | 25.3 GiB |
| Q4_0 | 4.53 GiB | 6.3 GiB | 6.9 GiB | 10.5 GiB | 24.9 GiB |
| IQ4_XS | 4.37 GiB | 6.2 GiB | 6.8 GiB | 10.4 GiB | 24.8 GiB |
| Q3_K_M | 3.76 GiB | 5.5 GiB | 6.1 GiB | 9.7 GiB | 24.1 GiB |
| IQ3_XXS | 3.43 GiB | 5.2 GiB | 5.8 GiB | 9.4 GiB | 23.8 GiB |
| Q2_K | 3.07 GiB | 4.9 GiB | 5.5 GiB | 9.1 GiB | 23.5 GiB |
| IQ2_M | 2.92 GiB | 4.7 GiB | 5.3 GiB | 8.9 GiB | 23.3 GiB |
Smallest GPU for each quantization
| Quantization | Smallest GPU that fits (one card) | Memory |
|---|---|---|
| BF16 | AMD Radeon RX 7900 XT | 20 GB |
| Q8_0 | AMD Radeon RX 7700 XT | 12 GB |
| Q6_K | AMD Radeon RX 7700 XT | 12 GB |
| Q5_K_M | NVIDIA GeForce RTX 3080 Ti | 12 GB |
| Q4_K_M | NVIDIA GeForce RTX 2080 Ti | 11 GB |
| Q4_0 | NVIDIA GeForce RTX 2080 Ti | 11 GB |
| IQ4_XS | NVIDIA GeForce RTX 3080 10GB | 10 GB |
| Q3_K_M | NVIDIA GeForce RTX 3080 10GB | 10 GB |
| IQ3_XXS | NVIDIA GeForce RTX 3080 10GB | 10 GB |
| Q2_K | NVIDIA GeForce RTX 3080 10GB | 10 GB |
| IQ2_M | NVIDIA GeForce RTX 5060 | 8 GB |
GPUs that can run AesCode-8B
| GPU | Memory | Run profile | Highest quantization that fits | Available memory needed for “Fits” | Longest context | Speed ceiling | Result |
|---|---|---|---|---|---|---|---|
| NVIDIA GeForce RTX 5060 | 8 GB | CUDA (NVIDIA) | IQ2_M | 5.3 GiB | 8,960 | ≤ 110 tok/s | Fits |
| NVIDIA GeForce RTX 3080 10GB | 10 GB | CUDA (NVIDIA) | IQ4_XS | 6.8 GiB | 8,704 | ≤ 137 tok/s | Fits |
| NVIDIA GeForce GTX 1080 Ti | 11 GB | CUDA (NVIDIA) | Q4_K_M | 7.3 GiB | 12,288 | ≤ 79.8 tok/s | Fits |
| NVIDIA GeForce RTX 2080 Ti | 11 GB | CUDA (NVIDIA) | Q4_K_M | 7.3 GiB | 12,288 | ≤ 102 tok/s | Fits |
| AMD Radeon RX 7700 XT | 12 GB | ROCm on Linux (AMD) | Q8_0 | 10.4 GiB | 9,728 | — | Fits |
| NVIDIA GeForce RTX 3080 Ti | 12 GB | CUDA (NVIDIA) | Q5_K_M | 8.2 GiB | 12,544 | ≤ 130 tok/s | Fits |
| NVIDIA GeForce RTX 4070 | 12 GB | CUDA (NVIDIA) | Q5_K_M | 8.2 GiB | 12,544 | ≤ 71.8 tok/s | Fits |
| NVIDIA GeForce RTX 4070 Ti | 12 GB | CUDA (NVIDIA) | Q5_K_M | 8.2 GiB | 12,544 | ≤ 71.8 tok/s | Fits |
| NVIDIA GeForce RTX 5070 | 12 GB | CUDA (NVIDIA) | Q5_K_M | 8.2 GiB | 12,544 | ≤ 95.8 tok/s | Fits |
| AMD Radeon RX 7800 XT | 16 GB | ROCm on Linux (AMD) | Q8_0 | 10.4 GiB | 37,888 | — | Fits |
| AMD Radeon RX 7900 GRE | 16 GB | ROCm on Linux (AMD) | Q8_0 | 10.4 GiB | 36,864 | — | Fits |
| NVIDIA GeForce RTX 4060 Ti 16GB | 16 GB | CUDA (NVIDIA) | Q8_0 | 10.4 GiB | 31,744 | ≤ 31.1 tok/s | Fits |
| NVIDIA GeForce RTX 4070 Ti SUPER | 16 GB | CUDA (NVIDIA) | Q8_0 | 10.4 GiB | 25,088 | ≤ 72.6 tok/s | Fits |
| NVIDIA GeForce RTX 4080 | 16 GB | CUDA (NVIDIA) | Q8_0 | 10.4 GiB | 25,088 | ≤ 77.5 tok/s | Fits |
| NVIDIA GeForce RTX 5060 Ti 16GB | 16 GB | CUDA (NVIDIA) | Q8_0 | 10.4 GiB | 25,088 | — | Fits |
| NVIDIA GeForce RTX 5070 Ti | 16 GB | CUDA (NVIDIA) | Q8_0 | 10.4 GiB | 25,088 | ≤ 96.9 tok/s | Fits |
| NVIDIA GeForce RTX 5080 | 16 GB | CUDA (NVIDIA) | Q8_0 | 10.4 GiB | 25,088 | ≤ 104 tok/s | Fits |
| AMD Radeon RX 7900 XT | 20 GB | ROCm on Linux (AMD) | BF16 | 17.3 GiB | 16,896 | — | Fits |
| AMD Radeon RX 7900 XTX | 24 GB | ROCm on Linux (AMD) | BF16 | 17.3 GiB | 45,056 | — | Fits |
| NVIDIA GeForce RTX 3090 | 24 GB | CUDA (NVIDIA) | BF16 | 17.3 GiB | 36,096 | ≤ 57.3 tok/s | Fits |
| NVIDIA GeForce RTX 3090 Ti | 24 GB | CUDA (NVIDIA) | BF16 | 17.3 GiB | 32,256 | ≤ 61.7 tok/s | Fits |
| NVIDIA GeForce RTX 5090 | 32 GB | CUDA (NVIDIA) | BF16 | 17.3 GiB | 89,344 | ≤ 110 tok/s | Fits |
Borderline GPUs
| GPU | Memory | Run profile | Highest borderline quantization | Available memory needed for “Fits” | Result |
|---|---|---|---|---|---|
| NVIDIA GeForce GTX 1060 | 6 GB | CUDA (NVIDIA) | Q4_K_M | 7.3 GiB | Tight |
| NVIDIA GeForce GTX 1660 | 6 GB | CUDA (NVIDIA) | Q4_K_M | 7.3 GiB | Tight |
| NVIDIA GeForce GTX 1660 SUPER | 6 GB | CUDA (NVIDIA) | Q4_K_M | 7.3 GiB | Tight |
| NVIDIA GeForce RTX 2060 6GB | 6 GB | CUDA (NVIDIA) | Q4_K_M | 7.3 GiB | Tight |
| NVIDIA GeForce GTX 1070 | 8 GB | CUDA (NVIDIA) | Q6_K | 9.0 GiB | Tight |
| NVIDIA GeForce GTX 1070 Ti | 8 GB | CUDA (NVIDIA) | Q6_K | 9.0 GiB | Tight |
| NVIDIA GeForce GTX 1080 | 8 GB | CUDA (NVIDIA) | Q6_K | 9.0 GiB | Tight |
| NVIDIA GeForce RTX 2060 SUPER | 8 GB | CUDA (NVIDIA) | Q6_K | 9.0 GiB | Tight |
| NVIDIA GeForce RTX 2070 | 8 GB | CUDA (NVIDIA) | Q6_K | 9.0 GiB | Tight |
| NVIDIA GeForce RTX 2080 | 8 GB | CUDA (NVIDIA) | Q6_K | 9.0 GiB | Tight |
| NVIDIA GeForce RTX 3050 8GB | 8 GB | CUDA (NVIDIA) | Q6_K | 9.0 GiB | Tight |
| NVIDIA GeForce RTX 3060 Ti | 8 GB | CUDA (NVIDIA) | Q6_K | 9.0 GiB | Tight |
| NVIDIA GeForce RTX 3070 | 8 GB | CUDA (NVIDIA) | Q6_K | 9.0 GiB | Tight |
| NVIDIA GeForce RTX 3070 Ti | 8 GB | CUDA (NVIDIA) | Q6_K | 9.0 GiB | Tight |
| NVIDIA GeForce RTX 4060 | 8 GB | CUDA (NVIDIA) | Q6_K | 9.0 GiB | Tight |
GPUs without a verdict
| GPU | Memory | Run profile | Smallest quantization | Available memory needed for “Fits” | Why no verdict | Result |
|---|---|---|---|---|---|---|
| NVIDIA GeForce GTX 1050 Ti | 4 GB | CUDA (NVIDIA) | IQ2_M | 5.3 GiB | Unknown: too little memory left after the reserve to judge reliably | Unknown |
| NVIDIA GeForce GTX 1650 | 4 GB | CUDA (NVIDIA) | IQ2_M | 5.3 GiB | Unknown: too little memory left after the reserve to judge reliably | Unknown |
| AMD Radeon Pro V520 | 8 GB | ROCm on Linux (AMD) | IQ2_M | 5.3 GiB | Unknown: memory configuration not established for this GPU; only “Doesn’t fit” would be shown. | Unknown |
| NVIDIA P4 | 8 GB | CUDA (NVIDIA) | IQ2_M | 5.3 GiB | Unknown: memory configuration not established for this GPU; only “Doesn’t fit” would be shown. | Unknown |
| NVIDIA P100 | 16 GB | CUDA (NVIDIA) | IQ2_M | 5.3 GiB | Unknown: memory configuration not established for this GPU; only “Doesn’t fit” would be shown. | Unknown |
| NVIDIA L4 | 24 GB | CUDA (NVIDIA) | IQ2_M | 5.3 GiB | Unknown: memory configuration not established for this GPU; only “Doesn’t fit” would be shown. | Unknown |
| NVIDIA Tesla P40 | 24 GB | CUDA (NVIDIA) | IQ2_M | 5.3 GiB | Unknown: memory configuration not established for this GPU; only “Doesn’t fit” would be shown. | Unknown |
| AMD Radeon AI PRO R9700 | 32 GB | ROCm on Linux (AMD) | IQ2_M | 5.3 GiB | Unknown: memory configuration not established for this GPU; only “Doesn’t fit” would be shown. | Unknown |
| AMD Radeon PRO W7800 32GB | 32 GB | ROCm on Linux (AMD) | IQ2_M | 5.3 GiB | Unknown: memory configuration not established for this GPU; only “Doesn’t fit” would be shown. | Unknown |
| NVIDIA Tesla V100 32GB | 32 GB | CUDA (NVIDIA) | IQ2_M | 5.3 GiB | Unknown: memory configuration not established for this GPU; only “Doesn’t fit” would be shown. | Unknown |
| AMD Radeon PRO W7800 48GB | 48 GB | ROCm on Linux (AMD) | IQ2_M | 5.3 GiB | Unknown: memory configuration not established for this GPU; only “Doesn’t fit” would be shown. | Unknown |
| AMD Radeon PRO W7900 | 48 GB | ROCm on Linux (AMD) | IQ2_M | 5.3 GiB | Unknown: memory configuration not established for this GPU; only “Doesn’t fit” would be shown. | Unknown |
| NVIDIA L40 | 48 GB | CUDA (NVIDIA) | IQ2_M | 5.3 GiB | Unknown: memory configuration not established for this GPU; only “Doesn’t fit” would be shown. | Unknown |
| AMD Instinct MI210 | 64 GB | ROCm on Linux (AMD) | IQ2_M | 5.3 GiB | Unknown: memory configuration not established for this GPU; only “Doesn’t fit” would be shown. | Unknown |
| NVIDIA H100 PCIe | 80 GB | CUDA (NVIDIA) | IQ2_M | 5.3 GiB | Unknown: memory configuration not established for this GPU; only “Doesn’t fit” would be shown. | Unknown |
| NVIDIA H100 NVL | 94 GB | CUDA (NVIDIA) | IQ2_M | 5.3 GiB | Unknown: memory configuration not established for this GPU; only “Doesn’t fit” would be shown. | Unknown |
| NVIDIA H200 SXM | 141 GB | CUDA (NVIDIA) | IQ2_M | 5.3 GiB | Unknown: memory configuration not established for this GPU; only “Doesn’t fit” would be shown. | Unknown |
| NVIDIA B200 | 180 GB | CUDA (NVIDIA) | IQ2_M | 5.3 GiB | Unknown: memory configuration not established for this GPU; only “Doesn’t fit” would be shown. | Unknown |
| AMD Instinct MI300X | 192 GB | ROCm on Linux (AMD) | IQ2_M | 5.3 GiB | Unknown: memory configuration not established for this GPU; only “Doesn’t fit” would be shown. | Unknown |
| NVIDIA B100 | 192 GB | CUDA (NVIDIA) | IQ2_M | 5.3 GiB | Unknown: memory configuration not established for this GPU; only “Doesn’t fit” would be shown. | Unknown |
| AMD Instinct MI325X | 256 GB | ROCm on Linux (AMD) | IQ2_M | 5.3 GiB | Unknown: memory configuration not established for this GPU; only “Doesn’t fit” would be shown. | Unknown |
| AMD Instinct MI350X | 288 GB | ROCm on Linux (AMD) | IQ2_M | 5.3 GiB | Unknown: memory configuration not established for this GPU; only “Doesn’t fit” would be shown. | Unknown |
| AMD Instinct MI355X | 288 GB | ROCm on Linux (AMD) | IQ2_M | 5.3 GiB | Unknown: memory configuration not established for this GPU; only “Doesn’t fit” would be shown. | Unknown |
- CUDA (NVIDIA): llama.cpp, CUDA back end (NVIDIA discrete GPU), all layers on the GPU, Flash Attention on, micro-batch (-ub) 512, F16 KV cache, context (-c) as shown; “Fits” is judged with llama-server’s default 4 parallel sequences (-np auto, unified KV cache) and “Doesn’t fit” with 1 sequence; idle GPU with no other programs using its memory.
- ROCm on Linux (AMD): llama.cpp, ROCm back end on Linux (AMD discrete GPU), all layers on the GPU, Flash Attention on, micro-batch (-ub) 512, F16 KV cache, context (-c) as shown; “Fits” is judged with llama-server’s default 4 parallel sequences (-np auto, unified KV cache) and “Doesn’t fit” with 1 sequence; idle GPU with no other programs using its memory.
Original weights
The selected original-weight files (safetensors, within the scope defined in the methodology) account for 16.3 GiB. This is a file-set subtotal, not a total of every repository file or a claim that all model components are included. Every estimate on this page is for the GGUF files above, run with llama.cpp. microsoft/AesCode-8B · Methodology