[whatmodel.sh](../../README.md) / Yi-1.5 9B (base) # Yi-1.5 9B (base) 01.AI · released 2024-05 · 8.83B params · apache-2.0 **score 44.1** ±1.8 · #498 of 732 · from 7 benchmark results across 4 sources Score within the [LMArena (text)](https://whatmodel.sh/?set=lmarena-text&score=set) comparison set only. ## What it's good at ● marks Yi-1.5 9B (base) among every model on that task or test, worst to best.

other tests (7)
test                                result  vs the others in its run    difficulty        counts  why
BigCodeBench (Complete)              35.5%  ▂▁▁▄▂●▇█▆▂▂▂ beats 16/58    medium · avg 48%     36%  at its level
MedQA (USMLE, 4 options)             55.4%  ▁▁··▄▁▁··▄▃● beats 14/17    medium · avg 71%     29%  sharp · at its level
MedMCQA                              53.3%  ▂▂··▄▄▂▂·▄█● beats 14/17    medium · avg 63%     13%  at its level
Open PT-LLM Leaderboard average (…   68.1%  ▃▁▁▁▁▁▁▁▂●▅▁ beats 145/276  medium · avg 72%    7.9%  at its level · noisy
EuroEval HellaSwag (English), tes…   79.4%  ▃·▁▁▂▁▂▅█●▄▁ beats 69/100   medium · avg 67%    6.2%  sharp · at its level · noisy
EuroEval Life in the UK (English …   83.0%  ▁▁▁▁▁▁▁▂▄●▄▃ beats 83/146   easy · avg 82%      5.1%  at its level · noisy
PubMedQA                             71.6%  ▂·▂▆·▄▂▄●▂█▂ beats 11/17    medium · avg 75%    1.5%  blunt · at its level
## How the score was worked out Each result implies a score on its own, after adjusting for how hard that test is and who ran it. The model's 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 is added up by who ran the tests. [Method](../method.md)
source                                results  share of the score
Open Medical-LLM Leaderboard results        3   44% ▇▇▇▇▇
BigCodeBench paper                          1   36% ▇▇▇▇
EuroEval leaderboards                       2   11% ▇
Open Portuguese LLM Leaderboard             1    8% ▇
prior: pull toward the middle                    1% ▇
weighted average                               = 44.1
Licences: Open Medical-LLM Leaderboard results ([Apache-2.0](https://www.apache.org/licenses/LICENSE-2.0)) · BigCodeBench paper ([CC BY 4.0](http://creativecommons.org/licenses/by/4.0/)) · EuroEval leaderboards ([MIT](https://github.com/EuroEval/leaderboards/blob/1a77f1d2f8ba1ba05ab73287fb090d76bf41b2e0/LICENSE)) · Open Portuguese LLM Leaderboard ([Apache-2.0](../../licenses/hf-leaderboard-spaces-Apache-2.0.txt)) ## How to run it ### llama.cpp (recommended) 1. Install llama.cpp. Homebrew and winget installs name the commands llama-cli and llama-server instead. [Other ways to install](https://github.com/ggml-org/llama.cpp/blob/master/docs/install.md) ```sh # macOS / Linux curl -LsSf https://llama.app/install.sh | sh # Windows irm https://llama.app/install.ps1 | iex ``` 2. Run Yi-1.5 9B (base) (Q4_K_M, needs ~5.3 GB, from [huggingface.co/mradermacher](https://huggingface.co/mradermacher/Yi-1.5-9B-GGUF/tree/7e09aa1f27304b17bf1b482f54b3f9f4b472e791)) ```sh llama cli -hf mradermacher/Yi-1.5-9B-GGUF:Q4_K_M ``` 3. Or start a local server and open the address it prints (http://localhost:9931) ```sh llama serve -hf mradermacher/Yi-1.5-9B-GGUF:Q4_K_M ``` Other versions: Q8_0 (~9.4 GB) `llama cli -hf mradermacher/Yi-1.5-9B-GGUF:Q8_0` ### LM Studio 1. Install LM Studio. Open the app once before using the lms command. [Download it (macOS / Windows / Linux)](https://lmstudio.ai/download) 2. Run Yi-1.5 9B (base) (Q4_K_M, needs ~5.3 GB, from [huggingface.co/mradermacher](https://huggingface.co/mradermacher/Yi-1.5-9B-GGUF/tree/7e09aa1f27304b17bf1b482f54b3f9f4b472e791)) ```sh lms get https://huggingface.co/mradermacher/Yi-1.5-9B-GGUF@Q4_K_M -y ``` 3. Then run lms ls to see its name, and lms chat followed by that name Other versions: Q8_0 (~9.4 GB) `lms get https://huggingface.co/mradermacher/Yi-1.5-9B-GGUF@Q8_0 -y` · 4bit (~5 GB, Mac only) `lms get https://huggingface.co/mlx-community/Yi-1.5-9B-4bit -y` · 8bit (~9.4 GB, Mac only) `lms get https://huggingface.co/mlx-community/Yi-1.5-9B-8bit -y` ### Ollama 1. Install Ollama. [Download it (macOS / Windows)](https://ollama.com/download) ```sh # Linux curl -fsSL https://ollama.com/install.sh | sh ``` 2. Run Yi-1.5 9B (base) (Q4_K_M, needs ~5.3 GB, from [huggingface.co/mradermacher](https://huggingface.co/mradermacher/Yi-1.5-9B-GGUF/tree/7e09aa1f27304b17bf1b482f54b3f9f4b472e791)) ```sh ollama run hf.co/mradermacher/Yi-1.5-9B-GGUF:Q4_K_M ``` Other versions: Q8_0 (~9.4 GB) `ollama run hf.co/mradermacher/Yi-1.5-9B-GGUF:Q8_0` ### MLX (Mac) 1. Install MLX (Mac). Apple silicon Macs only, text only. ```sh # with uv uv tool install mlx-lm # or pip install mlx-lm ``` 2. Run Yi-1.5 9B (base) (4bit, needs ~5 GB, Mac only, from [huggingface.co/mlx-community](https://huggingface.co/mlx-community/Yi-1.5-9B-4bit/tree/af9f32c726a784f6ad84a5dfb8e68f39d75ec154)) ```sh mlx_lm.chat --model mlx-community/Yi-1.5-9B-4bit ``` 3. Or start an OpenAI-compatible server at http://localhost:8080/v1 ```sh mlx_lm.server --model mlx-community/Yi-1.5-9B-4bit ``` Other versions: 8bit (~9.4 GB, Mac only) `mlx_lm.chat --model mlx-community/Yi-1.5-9B-8bit` ### Other ways to run it 1. Run it as published (BF16, needs ~17.66 GB, from [huggingface.co/01-ai](https://huggingface.co/01-ai/Yi-1.5-9B/tree/80d5471b1eae28beae33e06eadbd4b48e74d4ce1)) ```sh uv run --with torch --with 'transformers<5' --with accelerate python -c "from transformers import pipeline; print(pipeline('text-generation', model='01-ai/Yi-1.5-9B', torch_dtype='auto', device_map='auto')('Once upon a time', max_new_tokens=40)[0]['generated_text'])" ``` Model repository and documentation: [huggingface.co/01-ai](https://huggingface.co/01-ai/Yi-1.5-9B) [interactive version](https://whatmodel.sh/model/yi-1-5-9b-base) · [JSON](https://whatmodel.sh/api?format=json&all=1)