whatmodel.sh / Phi-3-small-8k-instruct

Phi-3-small-8k-instruct is an open-weights language model from Microsoft, released May 2024. Its published size is 7.39B parameters. Licence: mit.

Catalogue identity notes

Comparison-only. Arena entry 'phi-3-small-8k-instruct' (text). LMArena's leaderboard table (arena-leaderboard space @6f2eeeb) labels 'phi-3-small-8k-instruct' as 'Phi-3-Small-8k-Instruct' (Microsoft, MIT), linking https://huggingface.co/microsoft/Phi-3-small-8k-instruct. Maker repo microsoft/Phi-3-small-8k-instruct @188b876: licence tag mit. 7,392,274,432 parameters from the Hugging Face safetensors metadata (dense, so active = total). Released 2024-05: card: 'The model weight is released on May 21, 2024'.

42.5±1.6#493 of 719 LLMsfrom 4 benchmark results across 4 sources

$ how it compares

The LLMs ranked either side of Phi-3-small-8k-instruct, out of 828 with a score, then more from Microsoft.

#modelscorewhereRAMreleased
581DeepSeek-Coder 1.3B Instruct DeepSeek43±1local~2.4GB2023-10
582Aya 23 8B Cohere For AI43±3local~6.2GB2024-05
583Phi-3-small-8k-instruct Microsoft43±2local~17GB2024-05
584CodeGemma 7B IT (v1.0) Google43±1local~7.1GB2024-03
585Aya Vision 32B Cohere42±3api price unknown +local~71GB2025-03
more from Microsoft
252Phi-4-reasoning-plus 14B Microsoft59±1local~10GB2025-04
261Phi-4-reasoning 14B Microsoft58±1api $0.22/M +local~10GB2025-04
365Phi-4 14B Microsoft53±1api $0.087/M +local~10GB2024-12

see all LLMs · find the ones that fit your machine

$ what it's good at

chat & writing▁▁▁▃▅▄▅█▆▆▇▃ #326 of 393 · 94% of its score · 3 tests

Beats OpenThinker3 7B, Gemma 4 E2B, Code Llama 70B Instruct here, though they rank higher overall. Trails LFM2 350M, Gemma 3 1B, Flan-T5 XXL here, though they rank lower overall.

testresultvs the others in its rundifficultycountswhy
Arena-Hard (v0.1, GPT-4-1106 judge)29.8% ✎▂▁▁▅█▅▄▃▃▅▃▁ beats 25/60medium · avg 52%▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 47%sharp
Polyrating rating (bias-aware re-fit of Chatbot Arena votes, mid-2024)1103.0 ✎▂▁▂▁▃▇█▆▇▄▂▂ beats 48/95avg 1201▇▇▇▇▇▇▇▇▇ 24%blunt
LMArena (text)1171.0 ✎▁▁▁▂▃▃▃▆▆▇█▃ beats 51/379avg 1268▇▇▇▇▇▇▇▇▇ 23%blunt
other tests1 not in a task · 5.2% of its score
testresultvs the others in its rundifficultycountswhy
Open PT-LLM Leaderboard average (9 Portuguese tasks)70.8% ✎▃▁▁▁▁▁▁▁▂█▅▁ beats 172/276medium · avg 73%▇▇ 5.2%at its level · noisy

$ where to run it

Other ways to run it

  1. Run it as published · needs ~14.78 GB, NVIDIA only · from huggingface.co/microsoft (official)
    pip install tiktoken==0.6.0 triton==2.3.0 transformers==4.40.2 torch && python -c "import torch; from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline; r='microsoft/Phi-3-small-8k-instruct'; d=torch.cuda.current_device(); m=AutoModelForCausalLM.from_pretrained(r, torch_dtype='auto', trust_remote_code=True).to(d); t=AutoTokenizer.from_pretrained(r, trust_remote_code=True); print(pipeline('text-generation', model=m, tokenizer=t, device=d)([{'role': 'user', 'content': 'What about solving an 2x + 3 = 7 equation?'}], max_new_tokens=500, return_full_text=False, do_sample=False)[0]['generated_text'])"

Official weights and documentation: huggingface.co/microsoft ↗

$ how the score was worked out · Arena-Hard-Auto v0.1 leaderbo… 47%, Polyrating: A Cost-Effective… 24%, LMArena leaderboard dataset 23% and 1 more

Each result implies a score on its own, after adjusting for how hard its test is and who ran it. The score is their weighted average, with a small pull toward the middle for thinly tested models. Each test's weight is its counts column above; here it's added up by who ran the tests. How it works

sourceresultsshare of the scorelicence
Arena-Hard-Auto v0.1 leaderboard (repository README, pre-v2)1▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 47%Apache-2.0
Polyrating: A Cost-Effective and Bias-Aware Rating System for LLM Evaluation (arXiv:2409.00696v3)1▇▇▇▇▇▇▇ 24%CC-BY-4.0
LMArena leaderboard dataset1▇▇▇▇▇▇▇ 23%CC BY 4.0
Open Portuguese LLM Leaderboard (archived)1▇▇ 5%Apache-2.0
prior · pull toward the middle▇ 1%
weighted average= 42.5

$ improve this page

Use a short GitHub form or edit the data through a pull request. Every number needs a source; here's which ones we can use.

data updated · sources and licences · json