Will It Run AI

MicrosoftMicrosoft

Phi 4 Mini 4B

Frontier
1.6MDownloads748CurtidasFeb 2025Publicado128K tokensContextoMITLicença50 BásicoQualidade

Phi 4 Mini 4B (4B parameters) requires approximately 5.7 GB of VRAM with Q4_K_M quantization. For the best balance of quality and speed, we recommend hardware with at least 7 GB of VRAM.

Comece agora

— copie e cole para rodar localmente

Copy-paste commands to run Phi 4 Mini 4B on your machine.

Run

ollama run phi4-mini

Quick specs

Parameters4B
Architecturedense
Context128K tokens
Modalitytext
Min RAM1.6 GB
Rec. RAM2.4 GB (Q4_K_M)
LicenseMIT
FamilyPhi
Chat Reasoning

About this model

Phi-4-mini-instruct é um modelo leve de código aberto construído sobre dados sintéticos e sites públicos filtrados, com foco em dados de alta qualidade e raciocínio denso. Pertence à família Phi-4 e suporta contexto de 128K tokens. O modelo passou por ajuste fino supervisionado e otimização de preferências diretas para seguimento preciso de instruções e medidas de segurança robustas.

  • Memory/compute constrained environments
  • Latency bound scenarios
  • Strong reasoning (especially math and logic)

Modelos relacionados

Seu hardware

Detectando...

Escolhas rápidas

Melhor hardware

Melhores opções para Phi 4 Mini 4B

Rodar este modelo

Opções de quantização

Estimativas de VRAM por nível de quantização

No hardware detected — fit column shows raw VRAM estimates

QuantBitsVRAMQualityFit
Q2_K
2
1.6 GB
Low
Q3_K_S
3
2.0 GB
Low
NVFP4
4
2.2 GB
Medium
Q4_K_M
4
2.4 GB
Medium
Q5_K_M
5
2.9 GB
High
Q6_K
6
3.3 GB
High
Q8_0
8
4.3 GB
Very High
F16
16
8.2 GB
Maximum

Quality benchmarks

Phi 4 Mini 4B benchmark scores

Benchmark verified

Coding

SWE-bench Verified
HumanEval+68.3%
Aider Polyglot
LiveCodeBench30.5%

Reasoning

MMLU-Pro52.8%
GPQA Diamond25.2%
MATH-50064.0%
ARC Challenge83.7%

General

Chatbot Arena
IFEval73.8%

Source: official · 2025-02-27

Compatibilidade de hardware

Estimativas de compatibilidade para todo o hardware

Abrir calculadora

Computing compatibility...

Detalhamento de memória

Reference: RTX 2060 6GB

Weights2.4 GB
KV Cache1.5 GB
Runtime1.2 GB
Headroom0.6 GB

Perguntas frequentes

FAQ — Phi 4 Mini 4B

Veja também