Models › phi-2 family

microsoft MIT out 3 years ago

2.78B parameters, text in, text out, 2K tokens of context. 1 provider serves it.

Verified 2026-10-25 Rank #116 in LLMs · score 97.2 method v1 Sources 3 Downloads 30d 434k · #175 of 619 tracked

Can I use it?MITPermissivelicence file2026-10-24
Do people use it?434kdownloads, 30 days#175 of 619 we track · top 28%+4 likes, downloads −13% this week3,531 likesHugging Face2026-10-24

Worth reading

Picked by rule from 20 tracked pieces: the lab's own post, the most shared, a field report, the latest.

Phi-2 matches or outperforms models up to 25x larger on complex benchmarks due to new innovations in scaling and data curation.

From Phi-2: The surprising power of small language models · microsoft.com · 2023-12-12
The lab's own post

Phi-2: The surprising power of small language models

Microsoft Research released Phi-2, a 2.7 billion-parameter language model available in the Azure AI Studio model catalog.

  • Phi-2 matches or outperforms models up to 25x larger on complex benchmarks due to new innovations in scaling and data curation.
  • The model achieves better behavior regarding toxicity and bias compared to existing open-source models that underwent alignment through RLHF.
microsoft.com 2023-12-12 269 HN pts · 121 comments 1.1k words
Latest · 3 years ago

Rad-PHI2: Instruction Tuning Phi-2 for Radiology

Rad-Phi-2 is a fine-tuned version of the 2.7 billion parameter Phi-2 model trained on high-quality educational content from Radiopaedia.

arxiv.org 2024-03-24 2 HN pts 415 words

20 best of 20 tracked

The 4 picks above, plus these 16. Top is the radar's score: discussion, source authority and the lab's own posts, fading with age.

  1. ArticleMicrosoft Releases Phi-2techcommunity.microsoft.com · 2023-11-15 · 7 HN pts · official
  2. ArticleMicrosoft releases Phi-2, a small model that outperforms Llama 2, Mistral 7Bventurebeat.com · 2023-12-12 · 20 HN pts
  3. ArticleMediaPipe: LLM Inference on iOS and Android for Gemma, Phi-2 and Othersdevelopers.googleblog.com · 2024-03-08 · 1 HN pts
  4. CodeFortran implementation of phi-2 LLMgithub.com · 2024-01-18 · 4 HN pts
  5. CodeLlama.cpp: Support for Phi-2github.com · 2023-12-19 · 3 HN pts
  6. CodeFine-tune large models like Mistral-7B, Llama-2-13B, Phi-2, or Qwen-14B for freegithub.com · 2024-08-28 · 2 HN pts
  7. ArticleGetting Started with Phi-2datacamp.com · undated
  8. ArticlePhi-2 2.7B | Open Laboratoryopenlaboratory.com · undated
  9. ArticleLLM Deep-dive: Phi-2predli.com · undated
  10. DiscussionPhi-2 is coming to Hugging Facetwitter.com · 2023-12-13
  11. DiscussionPhi-2 Relicensed as MITtwitter.com · 2024-01-06
  12. ArticleFinetune Phi-2 with DPOtutorials.inferless.com · 2024-02-01
  13. ArticleAre you smarter than Phi-2?azigy.com · 2024-12-25
  14. ArticlePapers Explained 116: Phi-2. Phi-2 is a 2.7B parameter model that… | by Ritvik Rastogi | Mediumritvik19.medium.com · 2024-03-22
  15. ArticlePhi-2 Model - Arize AIarize.com · 2024-01-31
  16. ArticlePhi-2: A Small Model Easy to Fine-tune on Your GPUkaitchup.substack.com · 2024-01-01

Where to run it

Live hosted endpoints, cheapest first, USD per million tokens. Ties break on output price, then provider name.

#Cheapest live rowIn /1MOut /1MContextQuantSeen
1 Featherless — — — — Oct 25

All 1 provider →

Where it's used

Hugging Face does not say who downloads a model or with what. These are the proxies: API providers listing it, quantized builds, fine-tunes/adapters/merges, and Spaces that load it.

Served by 1 API provider; heavily run locally (64 quantized builds); a big base for builders (1,415 fine-tunes, adapters and merges).

  • As a service1Featherless
  • On own hardware64quantized builds
  • Built on1,415413 fine-tunes · 994 adapters · 8 merges
  • In apps100+Hugging Face Spaces

Top Spaces running it: pliny-the-prompter/obliteratus ♥ 621 · LanguageBind/MoE-LLaVA ♥ 154 · radames/Candle-phi1-phi2-wasm-demo ♥ 122 · mlabonne/phixtral-chat ♥ 77

Will it fit?

Weights only, an estimate: leave room for the KV cache. Method

Fits a 16 GB card at INT4

About 1.7 GB at INT4, 3.3 GB at FP8, 6.7 GB at BF16: weights only, so leave room for the KV cache.

16 GB card64 GB Mac2×80 GB8×80 GBINT4: about 1.7 GB of weights (estimate; KV cache and activations extra)INT41.7 GBFP8: about 3.3 GB of weights (estimate; KV cache and activations extra)FP83.3 GBBF16: about 6.7 GB of weights (estimate; KV cache and activations extra)BF166.7 GB
16 GB card64 GB Mac2×80 GB8×80 GBINT4: about 1.7 GB of weights (estimate; KV cache and activations extra)INT41.7 GBFP8: about 3.3 GB of weights (estimate; KV cache and activations extra)FP83.3 GBBF16: about 6.7 GB of weights (estimate; KV cache and activations extra)BF166.7 GB

Estimate params × bytes per param × 1.2 · how we estimate

The story so far

Weights, every dated article, and repo commits on one rail.

10 dated articles and 30 repo commits so far

Teal is the weights (2023-12-13), amber triangles are 10 dated articles (each links to it), grey ticks are repo commits.

DecJanFebMarAprMayJunJulAugSepOctNovDecJanFebMarAprMayJunJulAugSepOctNovDecJanFebMarAprMayJunJulAugSepOct2025-12-08: 2 repo commits2024-04-29: 4 repo commits2024-04-17: 3 repo commits2024-02-06: 1 repo commit2024-01-27: 2 repo commits2024-01-26: 2 repo commits2024-01-18: 1 repo commit2024-01-17: 1 repo commit2024-01-16: 2 repo commits2024-01-12: 1 repo commit2024-01-11: 1 repo commit2024-01-08: 1 repo commit2024-01-06: 2 repo commits2024-01-05: 2 repo commits2023-12-13: 5 repo commitsPhi-2: The surprising power of small language models · 2023-12-12Microsoft Releases Phi-2 · 2023-11-15Phi-2: Self-Extend Boosts Performance, Extends Context to 8k Without Training · 2024-01-12Microsoft releases Phi-2, a small model that outperforms Llama 2, Mistral 7B · 2023-12-12Rad-PHI2: Instruction Tuning Phi-2 for Radiology · 2024-03-24MediaPipe: LLM Inference on iOS and Android for Gemma, Phi-2 and Others · 2024-03-08Fortran implementation of phi-2 LLM · 2024-01-18Running LLM (phi-2) locally on latest Google Chrome Android · 2024-01-24Llama.cpp: Support for Phi-2 · 2023-12-19Fine-tune large models like Mistral-7B, Llama-2-13B, Phi-2, or Qwen-14B for free · 2024-08-28Weights 2023-12-13 · 2023-12-13Weights 2023-12-13now · 1 provider
DecJanFebMarAprMayJunJulAugSepOctNovDecJanFebMarAprMayJunJulAugSepOctNovDecJanFebMarAprMayJunJulAugSepOct2025-12-08: 2 repo commits2024-04-29: 4 repo commits2024-04-17: 3 repo commits2024-02-06: 1 repo commit2024-01-27: 2 repo commits2024-01-26: 2 repo commits2024-01-18: 1 repo commit2024-01-17: 1 repo commit2024-01-16: 2 repo commits2024-01-12: 1 repo commit2024-01-11: 1 repo commit2024-01-08: 1 repo commit2024-01-06: 2 repo commits2024-01-05: 2 repo commits2023-12-13: 5 repo commitsPhi-2: The surprising power of small language models · 2023-12-12Microsoft Releases Phi-2 · 2023-11-15Phi-2: Self-Extend Boosts Performance, Extends Context to 8k Without Training · 2024-01-12Microsoft releases Phi-2, a small model that outperforms Llama 2, Mistral 7B · 2023-12-12Rad-PHI2: Instruction Tuning Phi-2 for Radiology · 2024-03-24MediaPipe: LLM Inference on iOS and Android for Gemma, Phi-2 and Others · 2024-03-08Fortran implementation of phi-2 LLM · 2024-01-18Running LLM (phi-2) locally on latest Google Chrome Android · 2024-01-24Llama.cpp: Support for Phi-2 · 2023-12-19Fine-tune large models like Mistral-7B, Llama-2-13B, Phi-2, or Qwen-14B for free · 2024-08-28Weights 2023-12-13 · 2023-12-13Weights 2023-12-13now · 1 provider

What people built on it

1,479 derivatives on the Hub. Which build to run, by runtime: the most downloaded in each class.

1,479 derivatives on the Hub, most of them adapters

From the Hugging Face model tree; quantized builds in teal, fine-tunes, merges and adapters in greys.

64 quantized (Hugging Face model tree)413 fine-tunes (Hugging Face model tree)8 merges (Hugging Face model tree)994 adapters (Hugging Face model tree)64 quantized413 fine-tunes8 merges994 adapters
64 quantized (Hugging Face model tree)413 fine-tunes (Hugging Face model tree)8 merges (Hugging Face model tree)994 adapters (Hugging Face model tree)64 quantized413 fine-tunes8 merges994 adapters

All variants →

Reference

Everything else, folded: the full tables, every source.

What the card says

2 cited sentences

Summary generated, cited

Phi-2 is a 2.78B parameter Transformer model designed for text-generation tasks.[1][2] The model is optimized for QA, chat, and code formats and is released under an MIT license.[3][4]

  1. parameters human
  2. “Phi-2 is a Transformer”
  3. “Phi-2 is intended for QA, chat, and code purposes.”
  4. license

Generated 2026-10-07 15:01 UTC by parasail-gemma-4-26b-a4b-it; each numeral points at the fact it rests on. Not a verdict.

Use-case evidence

2 use cases

What it is good at 2 use cases

Labels are evidence, not verdicts: measured a third-party leaderboard row for this model; author-reported a number the model author published in the card or eval files; structural a deterministic signal from the name, config or chat template, or a decision-model estimate. Each chip links to its source. All use cases.

Facts

21 fields

Listed in LLMs

Facts

Pipeline tagtext-generation
Librarytransformers
ArchitecturesPhiForCausalLM
Model typephi
Dtypefloat16
Params by dtypeF16: 2,779,683,840
Size bandM
MoEno
Context length2,048 (config.json max_position_embeddings)
Languagesen
LicenseMIT (mit)
Hub snapshot2026-10-25

Servability

vLLM · SGLang

Servability

vLLM: supported · PhiForCausalLM · 7050ef881ff0835f6890a47db1859a24c65481d6SGLang: supported · PhiForCausalLM · 773cb938fe9484a8f7e7e46fb1b1fe96412c59ed

vLLM registry (7050ef881ff0835f6890a47db1859a24c65481d6) · SGLang registry (773cb938fe9484a8f7e7e46fb1b1fe96412c59ed) · Matched by architecture class name against each project's registry on main; 'supported' means the architecture is registered, not that this checkpoint was tested.

Hardware fit

3 estimates

Hardware fit ESTIMATE

Weights-only memory for phi-2: params × bytes/param × 1.2 overhead. KV cache and activations are extra. How this is computed.

BF16 (2 bytes/param)6.7 GB · Single GPU (<24 GB)
FP8 (1 byte/param)3.3 GB · Edge (<4 GB)
INT4 (0.5 bytes/param)1.7 GB · Edge (<4 GB)

Weights only (params × bytes/param × 1.2 overhead); KV cache and activations extra.

All variants

40 variants

Lineage

Original model Family: microsoft/phi-2 1,479 derivatives on the Hub

quantized: 64finetune: 413adapter: 994merge: 8

Top variants (40 shown, ranked by downloads)

Relation
Quant
Size
40 rows
Variant Relation Quant Params Band License Author Likes Downloads
TheBloke/phi-2-GGUF quantized GGUF — — other TheBloke 233 60.5M
jartine/phi-2-llamafile finetune — — — mit jartine 18 119.8k
yanolja/YanoljaNEXT-EEVE-2.8B finetune — 2.82B M apache-2.0 yanolja 20 45.7k
TheBloke/phi-2-GPTQ quantized GPTQ 2.78B M other TheBloke 30 33.6k
mlc-ai/phi-2-q4f16_1-MLC quantized — — — — mlc-ai 2 34.8k
BramVanroy/fietje-2 finetune — 2.78B M mit BramVanroy 12 17.3k
lole25/phi-2-sft-ultrachat-full finetune — 2.78B M mit lole25 2 17.3k
Isotr0py/phi-2-test-sql-lora adapter — — — — Isotr0py 2 15.2k
Amu/spin-phi2 finetune — 2.78B M apache-2.0 Amu 10 14.3k
MaziyarPanahi/phi-2-GGUF quantized GGUF — — apache-2.0 MaziyarPanahi 6 13.8k
prince-canuma/Damysus-2.7B-Chat finetune — 2.78B M mit prince-canuma 4 13.5k
NovoCode/Phi-2-DPO finetune — 2.78B M mit NovoCode 4 9.5k
MaziyarPanahi/phi-2-logical-sft finetune — 2.78B M mit MaziyarPanahi 7 9.2k
mlx-community/phi-2 finetune — — — other mlx-community 55 6.3k
avinash31d/phi-2-slerp merge — 2.78B M mit avinash31d 0 9.1k
mlc-ai/phi-2-q4f32_1-MLC quantized — — — — mlc-ai 3 8.1k
second-state/phi-2-GGUF quantized GGUF — — other second-state 3 7.8k
venkycs/phi-2-instruct adapter — 2.78B M mit venkycs 33 5.5k
Chirayu/phi-2-mongodb adapter — — — — Chirayu 7 6.1k
Amu/orpo-lora-phi2 finetune — 2.78B M apache-2.0 Amu 0 5.4k
Flexan/Blake-XTM-Arc-3B-V1-GGUF quantized GGUF — — cc-by-sa-4.0 Flexan 1 5.2k
afrideva/phi-2-GGUF quantized GGUF — — other afrideva 4 5k
Amu/orpo-phi2 finetune — 2.78B M apache-2.0 Amu 0 4.9k
andrijdavid/phi-2-GGUF quantized GGUF — — other andrijdavid 0 4.6k
justinj92/phi2-bunny quantized GGUF 2.78B M mit justinj92 3 4.1k
ItsnotAilabs/GHOST-2.7B finetune — 153M S apache-2.0 ItsnotAilabs 1 3.9k
OpenVINO/phi-2-fp16-ov finetune -fp16 — — mit OpenVINO 1 3.6k
Weyaxi/Einstein-v4-phi2 finetune — 2.78B M other Weyaxi 1 3.6k
rasyosef/phi-2-instruct-v0.1 finetune — 2.78B M mit rasyosef 2 2.4k
Weyaxi/Einstein-v6.1-phi2 finetune — 2.78B M mit Weyaxi 0 2.5k
prince-canuma/Damysus-2.7B-Chat-GGUF quantized GGUF — — mit prince-canuma 0 2.4k
lole25/phi-2-sft-ultrachat-lora adapter — — — mit lole25 1 2.1k
raghav0/phi-2-Q4_K_M-GGUF quantized GGUF — — mit raghav0 0 2k
AlekseyKorshuk/evol-codealpaca-pairwise-sharegpt-test finetune — 2.78B M mit AlekseyKorshuk 0 2k
Optitransfer/Qwen2.5-7B-Instruct-converge-collective-v2 merge — 7.62B M other Optitransfer 0 2k
ashmitkx/phi-2-instruct finetune — 2.78B M — ashmitkx 0 1.7k
olafgeibig/phi-2-OpenHermes-2.5-GGUF quantized GGUF — — mit olafgeibig 5 1.4k
teddy-f-47/phi-pl-2_7B-v_0_1 finetune — 2.78B M mit teddy-f-47 1 1.6k
malhajar/phi-2-meditron finetune — 2.78B M ms-pl malhajar 8 1.2k
OpenVINO/phi-2-int8-ov quantized int8 — — mit OpenVINO 0 1.6k

Repository changelog

30 commits

Repository changelog 30 commits

DateCommitSHA
2025-12-08 Update README.md (#146) 810d367
2025-12-08 Upload data_summary_card.md (#145) 8ca3f13
2024-04-29 fix(config): Removes auto_map since it will not be used anymore. ef38235
2024-04-29 Delete configuration_phi.py 6c4befe
2024-04-29 Delete modeling_phi.py da135b7
2024-04-29 Update README.md c929c77
2024-04-17 Update README.md 710686f
2024-04-17 Update README.md 523a3d6
2024-04-17 Readme: fix generation, update transformers version instructions (#121) 7e13090
2024-02-06 Update LICENSE b10c3eb
2024-01-27 Add EOS token (#100) 3f879ff
2024-01-27 Add EOS token to the generation config (#101) 313453c
2024-01-26 Update README.md cb02e3e
2024-01-26 Update config.json f05bc51
2024-01-18 Update modeling_phi.py 85d00b0
2024-01-17 Update modeling_phi.py 1a4c7ae
2024-01-16 Update modeling_phi.py accfee5
2024-01-16 Update README.md 39afec1
2024-01-12 Update modeling_phi.py eb8bbd1
2024-01-11 Upload 8 files cb2f453
2024-01-08 Update README.md (#69) 834565c
2024-01-06 updating notice.md (#66) e35b92d
2024-01-06 Update README.md (#65) a63c22c
2024-01-05 Upload README.md c46d6cf
2024-01-05 Upload 3 files 7e10f3e
2023-12-13 Upload 2 files d318676
2023-12-13 Update config.json 5d8f23d
2023-12-13 Upload 4 files 40b720d
2023-12-13 Update README.md 25a6b01
2023-12-13 Update README.md ca30dd4

All providers

1 provider · 1 endpoint

Where to run 1 providers · 1 endpoints

Hosted endpoints observed for phi-2, sorted by input price (USD per million tokens). Each row names its observer and date; prices change daily, so check the source before quoting.

ProviderModel refContextQuant$/M in$/M outtok/sTTFTToolsStatusObserved
Featherless
hf
microsoft/phi-2 — — — — — — — live 2026-10-25

Articles and coverage

20 pieces

Ranked by source signals (HN, Lobsters, authority domains, official posts) and recency. Summaries are generated from a stored copy of the article text; every sentence cites a span of that text, and nothing is shown that failed the citation check.

Official2

microsoft.com2023-12-12officialauthorityHN front pageHN 269 pts · 121 comments1,064 words
Microsoft Research released Phi-2, a 2.7 billion-parameter language model available in the Azure AI Studio model catalog. The model was trained on 1.4T tokens from multiple passes on a mixture of Synthetic and Web datasets for NLP and coding. Training for Phi-2 took 14 days on 96 A100 GPUs, and the base model has not undergone alignment through reinforcement learning from human feedback (RLHF) nor has it been instruct fine-tuned.written, reviewed, cited
  • Phi-2 matches or outperforms models up to 25x larger on complex benchmarks due to new innovations in scaling and data curation.
  • The model achieves better behavior regarding toxicity and bias compared to existing open-source models that underwent alignment through RLHF.
  • Phi-2 surpasses the performance of Mistral and Llama-2 models at 7B and 13B parameters on various aggregated benchmarks.
techcommunity.microsoft.com2023-11-15officialauthorityHN 7 pts · 6 comments11,693 words
Microsoft adds Mistral, Phi, Jais, Code Llama, and NVIDIA Nemotron to the Azure AI Model Catalog and Models as a Service. Jais is a 13-billion parameter model trained on the Condor Galaxy 1 AI supercomputer, while Mistral uses grouped query attention with 7.3 billion parameters. MaaS enables fine-tuning without managing GPU infrastructure, and the catalog now includes 40 new models.written, reviewed, cited
  • Jais inference APIs and hosted fine-tuning are available without requiring users to manage GPU infrastructure.

Analysis6

venturebeat.com2023-12-12HN 20 pts · 1 comments
arxiv.org2024-03-24authorityHN 2 pts · 0 comments415 words
Rad-Phi-2 is a fine-tuned version of the 2.7 billion parameter Phi-2 model trained on high-quality educational content from Radiopaedia. The model performs comparably or outperforms larger systems such as Mistral-7B-Instruct-v0.2 and GPT-4 on general radiology queries and specific tasks related to chest X-ray reports. This approach demonstrates the feasibility of using small language models for radiology workflows involving symptom understanding, differential diagnosis, and treatment suggestions.written, reviewed, cited
developers.googleblog.com2024-03-08authorityHN 1 pts · 0 comments1,505 words
github.com2024-01-18authorityHN 4 pts · 0 comments528 words
github.com2023-12-19authorityHN 3 pts · 0 comments11,515 words
github.com2024-08-28authorityHN 2 pts · 0 comments184 words

Community2

old.reddit.com2024-01-12HN 89 pts · 17 comments
twitter.com2024-01-24HN 6 pts · 1 comments
All coverage tracked for this model (20) — append-only, nothing is ever removed
TitleSourcePublishedFirst seenSignals
Getting Started with Phi-2datacamp.com—2026-10-07exa
Phi-2 2.7B | Open Laboratoryopenlaboratory.com—2026-10-07exa
LLM Deep-dive: Phi-2predli.com—2026-10-07exa
Are you smarter than Phi-2?azigy.com2024-12-252026-10-07hn
Fine-tune large models like Mistral-7B, Llama-2-13B, Phi-2, or Qwen-14B for freegithub.com2024-08-282026-10-07hn
Rad-PHI2: Instruction Tuning Phi-2 for Radiologyarxiv.org2024-03-242026-10-07hn
Papers Explained 116: Phi-2. Phi-2 is a 2.7B parameter model that… | by Ritvik Rastogi | Mediumritvik19.medium.com2024-03-222026-10-07exa
MediaPipe: LLM Inference on iOS and Android for Gemma, Phi-2 and Othersdevelopers.googleblog.com2024-03-082026-10-07hn
Finetune Phi-2 with DPOtutorials.inferless.com2024-02-012026-10-07hn
Phi-2 Model - Arize AIarize.com2024-01-312026-10-07exa
Running LLM (phi-2) locally on latest Google Chrome Androidtwitter.com2024-01-242026-10-07hn
Fortran implementation of phi-2 LLMgithub.com2024-01-182026-10-07hn
Phi-2: Self-Extend Boosts Performance, Extends Context to 8k Without Trainingold.reddit.com2024-01-122026-10-07hn
Phi-2 Relicensed as MITtwitter.com2024-01-062026-10-07hn
Phi-2: A Small Model Easy to Fine-tune on Your GPUkaitchup.substack.com2024-01-012026-10-07exa
Llama.cpp: Support for Phi-2github.com2023-12-192026-10-07hn
Phi-2 is coming to Hugging Facetwitter.com2023-12-132026-10-07hn
Microsoft releases Phi-2, a small model that outperforms Llama 2, Mistral 7Bventurebeat.com2023-12-122026-10-07hn
Phi-2: The surprising power of small language modelsmicrosoft.com official2023-12-122026-10-07hn, exa
Microsoft Releases Phi-2techcommunity.microsoft.com official2023-11-152026-10-07hn

Similar models

3 models

Similar models

Sources

3 sources

Sources

Hub snapshot: 2026-10-25 · HF API: 2026-10-24 21:34 UTC · Providers: 2026-10-24 21:44 UTC · Articles: 2026-10-24 21:45 UTC · Summary: 2026-10-07 15:01 UTC · Last verified 2026-10-25

Follow phi-2

Watch this model

Email alerts are not open yet; the feeds above are the same data. See feeds for the item schema.