Skip to content
English

Switch theme

// Phi · Text LLM

Phi-3-small-8k-instruct: VRAM & local deployment

7.39B parameters. About 6.5 GB at 4-bit and 17.8 GB at BF16 with one 8K-token request.

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

01Specs

PublisherMicrosoft · microsoft
Family / seriesPhi · Phi-3-small-8k
TypeText LLM (text-generation)
Parameters7.39B Source: counted from official safetensors weights
Context length8K tokens (8,192)max_position_embeddings in config.json
Architecture32 layers · GQA
Released weightsBF16 · 14.8 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)14.8 GB 17.8 GB RTX 4090 24GBMac 36GB
FP8 / INT8 / Q8_07.8 GB 10.2 GB 12GB GPUMac 24GB
4-bit (Q4_K_M / AWQ / GPTQ-Int4)4.5 GB 6.5 GB 8GB GPUMac 16GB

KV cache per request: 8K 1.1 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 20 →
ModelParams4-bit totalReleased
Phi-Ground-Any——2026-05-07
Phi-4-reasoning-vision-15B15.1B12.3 GB2026-01-23
Phi-Ground——2025-08-15
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

06Similar-size Text LLM models from other families

Within ±35% of 7.39B parameters; same estimate method, so the memory columns are directly comparable.

ModelFamilyParamsContext4-bit totalLicenceReleased
Phi-3-small-8k-instructPhi7.39B8K6.5 GBCommercial OK2024-05-07
Olmo-Hybrid-7BAi2 OLMo / Molmo7.43B64K6.5 GBCommercial OK2026-01-28
OLMo-2-1124-7BAi2 OLMo / Molmo7.3B4K9.7 GBCommercial OK2024-10-29
Olmo-3-7B-InstructAi2 OLMo / Molmo7.3B64K8.0 GBCommercial OK2025-11-19
Olmo-3-7B-ThinkAi2 OLMo / Molmo7.3B64K8.0 GBCommercial OK2025-11-18
Olmo-3-1025-7BAi2 OLMo / Molmo7.3B64K8.0 GBCommercial OK2025-09-12
Hunyuan-7B-InstructTencent Hunyuan / Hy7.5B32K6.6 GBLicence not stated2025-07-30

07Sources

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)