whatmodel.sh / Phi-1.5 (1.3B)
Phi-1.5 (1.3B)
↗ share
+ contribute
Phi-1.5 (1.3B) is an open-weights language model from Microsoft, released September 2023. Its published size is 1.42B parameters and a 2k-token context window. Licence: mit.
Catalogue identity notes
Phi-1.5 1.3B base model (Li et al. 2023); not instruction-tuned. Not the unreleased phi-1.5-web variants.
$ how it compares
The LLMs ranked either side of Phi-1.5 (1.3B), out of 828 with a score, then more from Microsoft.
| # | model | score | where | ||
|---|---|---|---|---|---|
| 726 | 32±1 | local | |||
| 727 | 32±1 | local | |||
| 728 | 32±1 | local | |||
| 729 | 31±4 | local | |||
| 730 | 31±2 | local | |||
| more from Microsoft | |||||
| 252 | 59±1 | local | |||
| 261 | 58±1 | api $0.22/M +local | |||
| 365 | 53±1 | api $0.087/M +local | |||
$ what it's good at
other tests14 not in a task · 100% of its score
| test | result | vs the others in its run | counts |
|---|---|---|---|
| ARC Challenge +1 | 48.0% ✎ | ▁·▁··▁▁▇▂█▆▃ beats 23/26 | 41% |
| WinoGrande +1 | 72.5% ✎ | ▁····▁··▁▂█▄ beats 25/26 | 12% |
| BoolQ +1 | 74.5% ✎ | ▂▃▂▅▆▂▅▆█▂▂▂ beats 20/26 | 10% |
| ARC Easy +1 | 73.1% ✎ | ▁▁·▁▁▄▅▄█▅▁▃ beats 23/26 | 6.4% |
| HellaSwag +1 | 62.6% ✎ | ▃···▁▇▅█▇▃▁▁ beats 6/26 | 6.3% |
| OpenBookQA +1 | 37.6% ✎ | █·▁▁▃·▁▃▅▇▃▄ beats 26/26 | 4.8% |
| PIQA +1 | 76.3% ✎ | ▁·▁··▁▁▃█▅█▂ beats 12/26 | 4.1% |
| MedQA (USMLE, 4 options) | 31.1% ✎ | ▁▁··▄▁▃··▄▃█ beats 6/17 | 4.0% |
6 more tests
| test | result | vs the others in its run | counts |
|---|---|---|---|
| Social IQA +1 | 55.4% ✎ | ▁···▁▃█▁▁▁·▃ beats 26/26 | 3.5% |
| SciQ | 93.2% ✎ | ▁·▁·▁·▃▅▃█▄▁ beats 16/26 | 3.0% |
| MedMCQA | 34.3% ✎ | ▂▂··▄▄▃▂·▄██ beats 6/17 | 2.3% |
| LAMBADA (OpenAI version), last-word accuracy | 52.7% ✎ | ▁··▃▁▁▁▂▆█▅▃ beats 2/26 | 1.6% |
| Open PT-LLM Leaderboard average (9 Portuguese tasks) | 29.6% ✎ | ▃▁▁▁▁▁▁▁▂█▅▁ beats 11/276 | 0.8% |
| PubMedQA | 67.8% ✎ | ▂·▂▆·▄▂▄▄▂█▂ beats 8/17 | 0.4% |
$ where to run it
llama.cpp · recommended
version
- Install llama.cpp · Homebrew and winget installs name the commands llama-cli and llama-server instead.macOS / Linux
curl -LsSf https://llama.app/install.sh | shWindowsirm https://llama.app/install.ps1 | iex - Run Phi-1.5 (1.3B) · needs ~0.9 GB · from huggingface.co/mradermacherchat in the terminal
llama cli -hf mradermacher/phi-1_5-GGUF:Q4_K_M - Or start a local server and open the address it prints (http://localhost:9931)
llama serve -hf mradermacher/phi-1_5-GGUF:Q4_K_M
LM Studio
version
- Install LM Studio · Open the app once before using the lms command.
- Run Phi-1.5 (1.3B) · needs ~0.9 GB · from huggingface.co/mradermacher
- Or download it in the terminal
lms get https://huggingface.co/mradermacher/phi-1_5-GGUF@Q4_K_M -y - Then run lms ls to see its name, and lms chat followed by that name
Ollama
version
- Install Ollama
download it (macOS / Windows) ↗
Linuxcurl -fsSL https://ollama.com/install.sh | sh - Run Phi-1.5 (1.3B) · needs ~0.9 GB · from huggingface.co/mradermacherchat in the terminal
ollama run hf.co/mradermacher/phi-1_5-GGUF:Q4_K_M
MLX (Mac)
- Install MLX (Mac) · Apple silicon Macs only, text only.with uv
uv tool install mlx-lmorpip install mlx-lm - Run Phi-1.5 (1.3B) · needs ~2.8 GB, Mac only · from huggingface.co/mlx-communitychat in the terminal
mlx_lm.chat --model mlx-community/phi-1_5 - Or start an OpenAI-compatible server at http://localhost:8080/v1
mlx_lm.server --model mlx-community/phi-1_5
Other ways to run it
- Run it as published · needs ~2.84 GB · from huggingface.co/microsoft (official)
uv run --with torch --with 'transformers<5' python -c "from transformers import pipeline; print(pipeline('text-generation', model='microsoft/phi-1_5')('Once upon a time', max_new_tokens=40)[0]['generated_text'])"
Official weights and documentation: huggingface.co/microsoft ↗
$ how the score was worked out · Stability AI — original Stabl… 67%, Textbooks Are All You Need II… 26%, Open Medical-LLM Leaderboard… 7% 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
| source | results | share of the score |
|---|---|---|
| 10 | 67% | |
| 8 | 26% | |
| 3 | 7% | |
| 1 | 1% | |
| prior · pull toward the middle | 0% | |
| weighted average | = 31.6 |
$ 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