phi4

ai/phi4 Docker Image

Microsoft’s compact model, surprisingly capable at reasoning and code

26 次收藏下载次数: 0状态:社区镜像维护者:Docker AI 官方镜像仓库类型:镜像最近更新:

Phi-4

Phi-4 is a 14-billion parameter language model developed by Microsoft Research. It is part of the Phi model family, emphasizing data quality and reasoning capabilities over pure scale.

Intended uses

Phi-4 is designed for:

  • STEM reasoning and problem-solving (math, physics, coding, logic)
  • Memory and compute-efficient applications
  • Educational and research applications
  • Conversational AI and chatbot experiences

Characteristics

AttributeDetails
ProviderMicrosoft
Architecturephi3
Cutoff dateJune 2024
LanguagesEnglish (primary), German, Spanish, French, Portuguese, Italian, Hindi, Japanese
Tool calling❌
Input modalitiesText
Output modalitiesText
LicenseMIT

Available model variants

Model variantParametersQuantizationContext windowVRAM¹Size
ai/phi4:latest

ai/phi4:14B-Q4_K_M
15BIQ2_XXS/Q4_K_M16K tokens9.78 GiB8.43 GB
ai/phi4:14B-Q4_015BQ4_016K tokens9.16 GiB7.80 GB
ai/phi4:14B-Q4_K_M15BIQ2_XXS/Q4_K_M16K tokens9.78 GiB8.43 GB
ai/phi4:14B-F1615BF1616K tokens27.97 GiB27.31 GB

¹: VRAM estimated based on model characteristics.

latest → 14B-Q4_K_M

Use this AI model with Docker Model Runner

First, pull the model:

bash
docker model pull ai/phi4

Then run the model:

bash
docker model run ai/phi4

For more information on Docker Model Runner, https://docs.docker.com/desktop/features/model-runner/.

***ations

  • Phi-4 is optimized for single-turn queries rather than long multi-turn conversations.
  • Hallucinations may occur, particularly in factual knowledge recall.
  • Instruction-following capabilities are less robust than some larger models.

Benchmark performance

CategoryBenchmarkphi-4phi-3
Popular Aggregated BenchmarkMMLU84.877.9
ScienceGPQA56.131.2
MathMGSM80.653.5
MATH80.444.6
Code GenerationHumanEval82.667.8
Factual KnowledgeSimpleQA3.07.6
ReasoningDROP75.568.3

Links

  • Introducing Phi-4
  • https://arxiv.org/abs/2412.08905

镜像拉取方式

您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。

轩辕镜像加速拉取命令点我查看更多 phi4 镜像标签

docker model pull docker.xuanyuan.run/ai/phi4:<标签>

DockerHub 原生拉取命令

docker model pull ai/phi4:<标签>
专业版 · 高速稳定拉取镜像
50GB 仅 ¥8/年
高速镜像下载在线技术支持专业版保障服务可用付费会员免广告