{
 "id": "phi-4-mini",
 "name": "Phi-4-mini",
 "repo": "microsoft/Phi-4-mini-instruct",
 "lab": {
  "name": "Microsoft",
  "country": "United States"
 },
 "released": "2025-02-19",
 "parameters": 3.83602176,
 "activeParameters": null,
 "maxContext": 131072,
 "architecture": "32 layers · 32 full attention (8 KV × 128)",
 "page": "https://studiotvai.com/vram-requirements/phi-4-mini",
 "calculator": "https://studiotvai.com/llm-vram-calculator?model=phi-4-mini",
 "weightsGiB": {
  "bf16": 7.15,
  "fp8": 4.14,
  "q4_k_m": 2.28
 },
 "kvCacheGiBPerRequest": [
  {
   "context": 8192,
   "bf16": 1,
   "fp8": 0.5
  },
  {
   "context": 32768,
   "bf16": 4,
   "fp8": 2
  },
  {
   "context": 131072,
   "bf16": 16,
   "fp8": 8
  }
 ],
 "recurrentStateGiBPerRequest": 0,
 "gpusNeeded": {
  "scenario": "one request of 8192 tokens, BF16 KV cache; vLLM on data-center GPUs, llama.cpp elsewhere",
  "gpus": [
   {
    "gpu": "rtx-4090",
    "name": "GeForce RTX 4090",
    "memoryGB": 24,
    "engine": "llama.cpp",
    "byFormat": {
     "bf16": 1,
     "fp8": 1,
     "q4_k_m": 1
    }
   },
   {
    "gpu": "rtx-5090",
    "name": "GeForce RTX 5090",
    "memoryGB": 32,
    "engine": "llama.cpp",
    "byFormat": {
     "bf16": 1,
     "fp8": 1,
     "q4_k_m": 1
    }
   },
   {
    "gpu": "rtx-pro-6000",
    "name": "RTX PRO 6000 Blackwell",
    "memoryGB": 96,
    "engine": "llama.cpp",
    "byFormat": {
     "bf16": 1,
     "fp8": 1,
     "q4_k_m": 1
    }
   },
   {
    "gpu": "mac-m5-max-128",
    "name": "Mac M5 Max 128 GB",
    "memoryGB": 96,
    "engine": "llama.cpp",
    "byFormat": {
     "bf16": 1,
     "fp8": 1,
     "q4_k_m": 1
    }
   },
   {
    "gpu": "h100",
    "name": "NVIDIA H100",
    "memoryGB": 80,
    "engine": "vLLM",
    "byFormat": {
     "bf16": 1,
     "fp8": 1,
     "q4_k_m": 1
    }
   },
   {
    "gpu": "h200",
    "name": "NVIDIA H200",
    "memoryGB": 141,
    "engine": "vLLM",
    "byFormat": {
     "bf16": 1,
     "fp8": 1,
     "q4_k_m": 1
    }
   },
   {
    "gpu": "b200",
    "name": "NVIDIA B200 (HGX)",
    "memoryGB": 180,
    "engine": "vLLM",
    "byFormat": {
     "bf16": 1,
     "fp8": 1,
     "q4_k_m": 1
    }
   }
  ]
 },
 "ggufFiles": {
  "repo": "MaziyarPanahi/Phi-4-mini-instruct-GGUF",
  "gib": {
   "Q2_K": 1.57,
   "Q3_K_L": 2.1,
   "Q3_K_M": 1.97,
   "Q3_K_S": 1.77,
   "Q4_K_M": 2.32,
   "Q4_K_S": 2.18,
   "Q5_K_M": 2.65,
   "Q5_K_S": 2.54,
   "Q6_K": 2.94,
   "Q8_0": 3.8
  }
 },
 "runsWith": [
  "vLLM",
  "SGLang",
  "llama.cpp (Ollama, LM Studio)",
  "MLX (Mac)"
 ],
 "verified": null,
 "updated": "2026-10-14T00:07:05.854Z"
}
