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.
Score within the LMArena (text) comparison set only.
$ how it compares
The LLMs ranked either side of Phi-1.5 (1.3B), out of 897 with a score, then more from Microsoft.
| # | model | score | where | ||
|---|---|---|---|---|---|
| 778 | 33±1 | local | |||
| 779 | 33±2 | comparison only | |||
| 780 | 33±1 | local | |||
| 781 | 33±1 | local | |||
| 782 | 33±1 | comparison only | |||
| more from Microsoft | |||||
| 273 | 58±1 | local | |||
| 289 | 57±1 | api $0.22/M +local | |||
| 391 | 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 | 45% |
| WinoGrande +1 | 72.5% ✎ | ▁····▁··▁▂█▄ beats 25/26 | 11% |
| BoolQ +1 | 74.5% ✎ | ▂▃▂▅▆▂▅▆█▂▂▂ beats 20/26 | 8.2% |
| HellaSwag +1 | 62.6% ✎ | ▃···▁▇▅█▇▃▁▁ beats 6/26 | 6.3% |
| ARC Easy +1 | 73.1% ✎ | ▁▁·▁▁▄▅▄█▅▁▃ beats 23/26 | 5.3% |
| OpenBookQA +1 | 37.6% ✎ | █·▁▁▃·▁▃▅▇▃▄ beats 26/26 | 5.2% |
| MedQA (USMLE, 4 options) | 31.1% ✎ | ▁▁··▄▁▃··▄▃█ beats 6/17 | 3.9% |
| PIQA +1 | 76.3% ✎ | ▁·▁··▁▁▃█▅█▂ beats 12/26 | 3.9% |
6 more tests
| test | result | vs the others in its run | counts |
|---|---|---|---|
| Social IQA +1 | 55.4% ✎ | ▁···▁▃█▁▁▁·▃ beats 26/26 | 3.3% |
| SciQ | 93.2% ✎ | ▁·▁·▁·▃▅▃█▄▁ beats 16/26 | 2.6% |
| MedMCQA | 34.3% ✎ | ▂▂··▄▄▃▂·▄██ beats 6/17 | 2.0% |
| LAMBADA (OpenAI version), last-word accuracy | 52.7% ✎ | ▁··▃▁▁▁▂▆█▅▃ beats 2/26 | 1.5% |
| Open PT-LLM Leaderboard average (9 Portuguese tasks) | 29.6% ✎ | ▃▁▁▁▁▁▁▁▂█▅▁ beats 11/276 | 1.3% |
| PubMedQA | 67.8% ✎ | ▂·▂▆·▄▂▄▄▂█▂ beats 8/17 | 0.3% |
$ where to run it
Memory is what a version takes in GPU memory (or a Mac's unified memory) with an 8k-token conversation. With less, it runs partly from system RAM, more slowly. Enter your machine to see what runs at full speed.
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 2.4 GB memory, 0.89 GB download · 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 2.4 GB memory, 0.89 GB download · 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 2.4 GB memory, 0.89 GB download · 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 4.5 GB memory, 2.84 GB download, 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 4.5 GB memory, 2.84 GB download · 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'])"
Model repository and documentation: huggingface.co/microsoft ↗
$ how the score was worked out · Stability AI — original Stabl… 67%, Textbooks Are All You Need II… 25%, Open Medical-LLM Leaderboard… 6% 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 | 25% | |
| 3 | 6% | |
| 1 | 1% | |
| prior · pull toward the middle | 0% | |
| weighted average | = 32.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