Skip to content
English

Switch theme

// Phi · Text LLM

Phi-3-medium-4k-instruct: VRAM & local deployment

14B parameters. About 11.5 GB at 4-bit and 32.9 GB at BF16 with one 8K-token request.

released 2024-05-07licence: Commercial OKmemory figures are estimates

01Specs

PublisherMicrosoft · microsoft
Family / seriesPhi · Phi-3-medium-4k
TypeText LLM (text-generation)
Parameters14B Source: counted from official safetensors weights
Context length4K tokens (4,096)max_position_embeddings in config.json
Architecture40 layers · GQA
Released weightsBF16 · 27.9 GBdownload
LicenceMIT · Commercial OKPermissive licence (Apache-2.0 / MIT / CC-BY / OpenMDW): commercial use allowed.
Released2024-05-07 (Hugging Face repo created)

02How much VRAM it needs (estimate)

Total = weights + 10% + 0.5GB overhead + KV cache for one request (FP16 KV). More concurrent users multiply the KV column.

PrecisionWeightsTotal @ 8KSmallest GPUMac
BF16 / FP16 (original)27.9 GB 32.9 GB 2 × RTX 5090 (64GB)Mac 64GB
FP8 / INT8 / Q8_014.8 GB 18.5 GB RTX 4090 24GBMac 36GB
4-bit (Q4_K_M / AWQ / GPTQ-Int4)8.5 GB 11.5 GB 16GB GPUMac 24GB

KV cache per request: 8K 1.7 GB

Bits per weight: BF16 16, FP8 8.5, 4-bit 4.85. “Fits” = total ≤ 90% of memory; Mac GPU can use ~2/3 of unified memory (≤36GB) or ~3/4 (larger). For MoE, all experts must be in memory, so size by total parameters. Method →

03How to run it

Only runtimes the publisher or the runtime’s official library names for this model.

Which inference engine to choose →

04Official repositories & quantised builds

1 official repo(s) from microsoft.

05Other Phi models

All 18 →
ModelParams4-bit totalReleased
Phi-4-reasoning-vision-15B15.1B12.3 GB2026-01-23
Phi-mini-MoE-instruct7.6B / 2.4B6.6 GB2025-06-23
Phi-tiny-MoE-instruct3.8B / 1.1B3.6 GB2025-06-23
Phi-4-mini-flash-reasoning3.85B4.4 GB2025-06-19
Phi-4-mini-reasoning3.84B4.1 GB2025-04-29
Phi-4-reasoning-plus14.7B12.0 GB2025-04-17
Phi-4-reasoning14.7B12.0 GB2025-04-09
Phi-4-multimodal-instruct5.57B4.2 GB2025-02-24

06Sources

Data checked 2025-12-10. Parameters, context and licence are copied from the official repository; memory figures are our estimates.

Data updated: Self-host open models(UTC+8)