whatmodel.sh / Meditron 7B

Meditron 7B is an open-weights language model from EPFL LLM, released November 2023. Its published size is 6.74B parameters. Licence: llama2.

Catalogue identity notes

Maker repo epfl-llm/meditron-7b @d7d0a5e: licence tag llama2. 6,738,554,880 parameters from the Hugging Face safetensors metadata (dense, so active = total). Released 2023-11: month the maker's Hugging Face repo was created (createdAt 2023-11-08). Pretrained base checkpoint (not an instruct/chat version). Gated repository (licence acceptance required on Hugging Face).

20.6±5.1#941 of 974 LLMsfrom 2 benchmark results across 2 sources* thinly tested, treat the rank as provisional

Score within the LMArena (text) comparison set only.

$ how it compares

The LLMs ranked either side of Meditron 7B, out of 1206 with a score, then more from EPFL LLM.

#modelscorewhereRAMreleased
1161OLMo 1B Allen Institute for AI21±2local~2.3GB2024-02
1162BLOOM 7.1B BigScience21±1local~7GB2022-07
1163Meditron 7B EPFL LLM21±5local~5.5GB2023-11
1164Pythia 2.8B EleutherAI20±1local~3.4GB2023-02
1165Pythia 2.8B (deduped) EleutherAI20±1local~3.4GB2023-02
more from EPFL LLM
971Meditron 70B EPFL LLM39±4local~32GB2023-11

see all LLMs · find the ones that fit your machine

$ what it's good at

other tests2 not in a task · 88% of its score
testresultvs the others in its rundifficultycountswhy
BRIDGE clinical text, zero-shot average (87 tasks)9.5% ✎▃▁▁▁▁▂▂▃▄▆█▃ beats 0/97hard · avg 32%▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 70%blunt
SurgiQ surgical MCQ (zero-shot, log-probability scoring)27.1% ✎▃···▂▂·▃▂▃██ beats 0/17medium · avg 53%▇▇▇▇▇▇▇ 18%too hard for it

$ 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

  1. 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 | sh
    Windows
    irm https://llama.app/install.ps1 | iex

    other ways to install ↗

  2. Run Meditron 7B · needs 5.8 GB memory, 4.08 GB download · from huggingface.co/TheBloke
    chat in the terminal
    llama cli -hf TheBloke/meditron-7B-GGUF:Q4_K_M
  3. Or start a local server and open the address it prints (http://localhost:9931)
    llama serve -hf TheBloke/meditron-7B-GGUF:Q4_K_M

LM Studio

version

  1. Install LM Studio · Open the app once before using the lms command.

    download it (macOS / Windows / Linux) ↗

  2. Run Meditron 7B · needs 5.8 GB memory, 4.08 GB download · from huggingface.co/TheBloke

    open in LM Studio ↗

  3. Or download it in the terminal
    lms get https://huggingface.co/TheBloke/meditron-7B-GGUF@Q4_K_M -y
  4. Then run lms ls to see its name, and lms chat followed by that name

Ollama

version

  1. Install Ollama

    download it (macOS / Windows) ↗

    Linux
    curl -fsSL https://ollama.com/install.sh | sh
  2. Run Meditron 7B · needs 5.8 GB memory, 4.08 GB download · from huggingface.co/TheBloke
    chat in the terminal
    ollama run hf.co/TheBloke/meditron-7B-GGUF:Q4_K_M

MLX (Mac)

  1. Install MLX (Mac) · Apple silicon Macs only, text only.
    with uv
    uv tool install mlx-lm
    or
    pip install mlx-lm
  2. Run Meditron 7B · needs 5.5 GB memory, 3.79 GB download, Mac only · from huggingface.co/mlx-community
    chat in the terminal
    mlx_lm.chat --model mlx-community/meditron-7b
  3. Or start an OpenAI-compatible server at http://localhost:8080/v1
    mlx_lm.server --model mlx-community/meditron-7b

Other ways to run it

  1. Run it as published · needs 15.7 GB memory, 13.5 GB download · from huggingface.co/epfl-llm (official)
    uv run --with torch --with 'transformers<5' --with accelerate python -c "from transformers import pipeline; print(pipeline('text-generation', model='epfl-llm/meditron-7b', torch_dtype='auto', device_map='auto')('Once upon a time', max_new_tokens=40)[0]['generated_text'])"

Model repository and documentation: huggingface.co/epfl-llm ↗

$ how the score was worked out · BRIDGE Medical Leaderboard (H… 70%, SurgiQ: A Large-Scale Multi-D… 18%

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
BRIDGE Medical Leaderboard (Harvard Medical School / Brigham and Women's YLab)1MIT
SurgiQ: A Large-Scale Multi-Domain Benchmark for Evaluating Surgical Understanding in Large Language Models (arXiv:2606.08071v1)1CC BY 4.0
prior · pull toward the middle
weighted average= 20.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