Model reference · open weights

Phi-3-mini-128k

LLMs microsoft Text gen 1 build Open weights 295k dl/mo

Phi-3-mini-128k is an open-weight language model from microsoft. Phi-3-mini-128k-instruct (BF16) weighs 7.6 GB; the smallest configuration that runs it is RTX 3060 12 GB.

What it is

Released bymicrosoft
Released2024-04-22
Parameters3.8B
VRAM7.6 GB for the weights

What it runs on

Memory and cards for Phi-3-mini-128k-instruct (BF16)

7.6 GBweights, file size
393 MBcache per 1K tokens
580 MBruntime overhead, at least
131,072 tokenscontext max
CardRequests at onceContext maxMemory
8K each32K each
RTX 3060 12 GB1—8K11.6 GB
RTX 4060 Ti 16 GB2—17K15.4 GB
RTX 3090 24 GB4137K23.4 GB
RTX 4090 24 GB4137K23.4 GB
RTX 5090 32 GB7156K31.0 GB
L40S 48 GB11288K44.0 GB
A100 80 GB215all 128K78.2 GB
H100 80 GB205all 128K78.1 GB
RTX PRO 6000 Blackwell 96 GB256all 128K93.8 GB
DGX Spark (GB10) 128 GB unified297all 128K107 GB
H200 141 GB399all 128K138 GB
B200 180 GB5112all 128K176 GB
2× RTX 3060 12 GB
tensor parallel
4135K11.6 GB a card
2× RTX 4060 Ti 16 GB
tensor parallel
6154K15.4 GB a card
2× RTX 4090 24 GB
tensor parallel
11294K23.4 GB a card
2× RTX 3090 24 GB
tensor parallel
11294K23.4 GB a card
2× RTX 5090 32 GB
tensor parallel
164all 128K31.0 GB a card
Memory needed at each load
Requests at once8K tokens each32K tokens each
111.4 GB21.1 GB
524.3 GB72.6 GB
834.0 GB111 GB
1659.8 GB214 GB
32111 GB421 GB
64214 GB833 GB

One card, with vLLM's small-card settings.

From the model card

What microsoft says about Phi-3-mini-128k

🎉Phi-4: [multimodal-instruct | onnx]; [mini-instruct | onnx]

Model Summary

The Phi-3-Mini-128K-Instruct is a 3.8 billion-parameter, lightweight, state-of-the-art open model trained using the Phi-3 datasets. This dataset includes both synthetic data and filtered publicly available website data, with an emphasis on high-quality and reasoning-dense properties. The model belongs to the Phi-3 family with the Mini version in two variants 4K and 128K which is the context length (in tokens) that it can support.

Read the full model card

After initial training, the model underwent a post-training process that involved supervised fine-tuning and direct preference optimization to enhance its ability to follow instructions and adhere to safety measures. When evaluated against benchmarks that test common sense, language understanding, mathematics, coding, long-term context, and logical reasoning, the Phi-3 Mini-128K-Instruct demonstrated robust and state-of-the-art performance among models with fewer than 13 billion parameters. Resources and Technical Documentation:

🏡 Phi-3 Portal 📰 Phi-3 Microsoft Blog 📖 Phi-3 Technical Report 🛠️ Phi-3 on Azure AI Studio 👩‍🍳 Phi-3 Cookbook 🖥️ Try It

Short ContextLong Context
Mini4K [HF] ; [ONNX] ; [GGUF]128K [HF] ; [ONNX]
Small8K [HF] ; [ONNX]128K [HF] ; [ONNX]
Medium4K [HF] ; [ONNX]128K [HF] ; [ONNX]
Vision128K [HF] ; [ONNX]

Intended Uses

Primary use cases

The model is intended for commercial and research use in English. The model provides uses for applications which require:

  1. Memory/compute constrained environments
  2. Latency bound scenarios
  3. Strong reasoning (especially code, math and logic)

Our model is designed to accelerate research on language and multimodal models, for use as a building block for generative AI powered features.

Use case considerations

Our models are not specifically designed or evaluated for all downstream purposes. Developers should consider common limitations of language models as they select use cases, and evaluate and mitigate for accuracy, safety, and fariness before using within a specific downstream use case, particularly for high risk scenarios. Developers should be aware of and adhere to applicable laws or regulations (including privacy, trade compliance laws, etc.) that are relevant to their use case.

Nothing contained in this Model Card should be interpreted as or deemed a restriction or modification to the license the model is released under.

Release Notes

This is an update over the original instruction-tuned Phi-3-mini release based on valuable customer feedback. The model used additional post-training data leading to substantial gains on long-context understanding, instruction following, and structure output. We also improve multi-turn conversation quality, explicitly support tag, and significantly improve reasoning capability. We believe most use cases will benefit from this release, but we encourage users to test in their particular AI applications. We appreciate the enthusiastic adoption of the Phi-3 model family, and continue to welcome all feedback from the community.

These tables below highlights improvements on instruction following, structure output, reasoning, and long-context understanding of the new release on our public and internal benchmark datasets.

BenchmarksOriginalJune 2024 Update
Instruction Extra Hard5.75.9
Instruction Hard5.05.2
JSON Structure Output1.960.1
XML Structure Output47.852.9
GPQA25.929.7
MMLU68.169.7
Average25.737.3

RULER: a retrieval-based benchmark for long context understanding

Model4K8K16K32K64K128KAverage
Original86.778.175.670.358.943.368.8
June 2024 Update92.491.190.887.979.865.684.6

RepoQA: a benchmark for long context code understanding

ModelPythonC++RustJavaTypeScriptAverage
Original272940333332.4
June 2024 U

Quoted from the model card on Hugging Face. The full card is behind the Hugging Face link above.

© 2026 AxForge · EU-hosted AI infrastructure Pricing Docs Trust Privacy Terms