Will It Run AI

MicrosoftMicrosoft

Phi 4 Mini 4B

前沿
1.6M下载量748点赞Feb 2025发布日期128K tokens上下文MIT许可证50 基础质量

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.

快速开始

— 复制粘贴即可本地运行

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 是一款基于合成数据和高质量过滤网页构建的轻量级开源模型,专注于高质量推理密集型数据。属于 Phi-4 模型系列,支持 128K token 上下文。模型经过监督微调(SFT)和直接偏好优化(DPO),以实现精准指令遵循和安全性。

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

相关模型

你的硬件

检测中...

快速推荐

最佳硬件

Phi 4 Mini 4B 的最佳选择

运行此模型

量化选项

各量化级别的 VRAM 估算

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

硬件兼容性

全部硬件的适配估算

打开计算器

Computing compatibility...

内存详细分析

Reference: RTX 2060 6GB

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

常见问题

FAQ — Phi 4 Mini 4B

另请参阅