@meta
  v: 1
  route: /model/phi-4
  generated: 2026-06-10T08:47:35.078Z

@intent
  purpose:    Show what hardware can run Phi-4.
  audience:   ai-engineer, self-hoster, model-evaluator
  capability: inspect_model_specs, find_compatible_gpus, compare_similar_models, open_huggingface

@state
  slug: phi-4
  name: Phi-4
  hf_repo: microsoft/phi-4
  params_b: 14.7
  active_params_b: ~
  family: Microsoft
  type: dense
  context_k: 16
  fp16_gb: 29.4
  summary: Microsoft's synthetic-data 14B. Punches above its weight on math and code.
  smallest_fitting_gpu_q4: rtx-3060
  smallest_fitting_gpu_fp16: a6000

@actions
  - id: open_huggingface
    method: GET
    href: https://huggingface.co/microsoft/phi-4
  - id: view_compatible_gpus
    method: GET
    href: /model/phi-4
  - id: compare_similar
    method: GET
    href: /model/starcoder2-15b
  - id: view_calculator
    method: GET
    href: /#calculator

@context
  > Microsoft's synthetic-data 14B. Punches above its weight on math and code.

@nav
  self:      /model/phi-4
  parents:   [/]
  peers:     [/model/starcoder2-15b, /model/qwen-3-5-9b, /model/gemma-2-9b, /model/gpt-oss-20b]
  drilldown: /the-math
