/ Модель

Характеристики

Контекст
40 960 токенов
Параметры
508 млн
Лицензия
Apache 2.0
Архитектура
qwen3 · dense
Базовая модель
Qwen3-0.6B
Библиотека
transformers
Опубликована
3 ноя 2026

Qwen3-0.6B-WSP-Clinical

Генерация текстаТекст → текст3 профессии

Компактная клиническая версия Qwen3-0.6B от OpenMed для ответов на медицинские экзаменационные вопросы с вариантами ответа.

889скачиваний за 30 дней1лайквеса обновлены8 ноя 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Тесты пользователейпока нет

Никто ещё не опубликовал тест этой модели. Соберите бенчмарк из своих задач — результат появится здесь.

  1. Добавьте модель в бенчмарк

    Вместе с другими моделями категории «Текст» — сравнение идёт внутри одной категории.

  2. Опишите свои задачи

    Напишите запросы, при необходимости приложите файлы и эталонные ответы.

  3. Запустите и опубликуйте

    Модели ответят на каждую задачу, судья оценит ответы. Опубликованный результат появится на этой странице.

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

OpenMed Qwen3-0.6B WSP Clinical — компактная клиническая модель OpenMed на архитектуре Qwen3 с 507,9 млн параметров. Это текстовая авторегрессионная модель для ответов на медицинские экзаменационные вопросы с вариантами ответа и заданным форматом итоговой строки. В README описано редактирование весов пяти attention heads вручную методом weight-space programming: обучения и градиентного дообучения не проводилось. По результатам разработчика, модель набрала 37,5% на MedQA-USMLE, 36,3% на MedMCQA и 52,6% на медицинской части MMLU при указанном протоколе оценки.

Модель принимает текст и генерирует текст; её контекстное окно составляет 40 960 токенов. Карточка указывает базовую Qwen/Qwen3-0.6B, поддержку чата и интерфейса вызова инструментов. Лицензия — Apache-2.0. Показатели бенчмарков относятся к описанному в README промпту и настройкам генерации; сама модель компактна и её результаты не подтверждают пригодность ответов для клинических решений без проверки специалистом.

Сценарии применения

  • ответы на вопросы MedQA-USMLE с выбором варианта
  • решение тестовых вопросов MedMCQA
  • ответы на медицинские вопросы формата MMLU
  • оценка влияния редактирования весов на ответы медицинской модели

Ограничения

Результаты приведены для конкретного экзаменационного промпта и настроек генерации и не подтверждают пригодность модели для клинических решений. Это компактная модель с ограниченными показателями на приведённых тестах; ответы требуют проверки специалистом.

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

OpenMed's clinical weight edit of Qwen3-0.6B: no training, a few attention heads edited by hand, and the model answers medical exam questions in the format they ask for. On the 1,273 MedQA-USMLE test questions it scores 37.5%, against 15.2% for Qwen3-0.6B as released (paired difference +22.2 points, 95% CI +19.6 to +24.9, McNemar p = 8.5e-58). No gradient descent, no fine-tuning, no training data: a frontier model read the weights in a Python kernel and changed them directly, following "Sparks of Weight-Space Programming" (MIT CSAIL).

Developed byOpenMed
Base modelQwen/Qwen3-0.6B @ c1899de289a04d12100db370d81485cdf75e47ca
What changedThe output projections (o_proj) of five attention heads in four layers (layer 20 heads 10 and 11, layer 21 head 9, layer 23 head 5, layer 24 head 10)
MethodWeight-space programming (Takehi, Teoh, Zhang and Khattab, MIT CSAIL, 2026): a frontier LLM reads the weights in a Python kernel and edits them directly
Editor of the clinical edita frontier LLM, 12 forward passes, 38 Python runs, 51 turns
Practice data the editor could usetraining splits only: MedQA-USMLE train (10,178) and 10,000 MedMCQA train questions
LicenseApache-2.0 (see Credits for the inputs and their licenses)
Intended useresearch on model editing and evaluation; not for clinical use

About OpenMed

OpenMed builds open models and open-source tools for clinical and biomedical text that run on your own hardware.

Results

Same model architecture, tokenizer, chat template and sampling for every row; only weight values differ. One sample per question with seed 0 (MedQA also with seeds 1 and 2). Thinking on, temperature 0.6, top_p 0.95, top_k 20, presence penalty 1.5, at most 32,768 new tokens (the paper's evaluation protocol). The prompt is OpenMed's fixed MedQA exam prompt (below), and an answer is graded from the text after </think>: its last Answer: X line, X in A to D. Answers cut at the token limit and answers with no gradable line count as wrong, as in the paper.

CheckpointMedQA (seed 0)MedQA, median of 3 seeds (range)MedMCQAMMLU medicalMedQA answers cut at 32,768 tokensMedQA answers with no gradable line
OpenMed WSP Clinical 0.6B (this model)37.5%37.1% (36.4% to 37.5%)36.3%52.6%0.0%0.2%
Random patch, same size, random direction (seed 1)17.4%n/a17.6%21.7%0.0%57.0%
Random patch, same size, random direction (seed 2)14.8%n/a17.9%17.8%0.0%60.8%
Qwen3-0.6B as released15.2%n/a16.1%19.3%0.0%60.4%

Paired tests on the same questions (seed 0; exact McNemar on the questions only one checkpoint got right; bootstrap 95% CI over questions, 10,000 resamples):

ComparisonBenchmarknBeforeAfterDifference (95% CI)Only before right / only after rightMcNemar p
Qwen3-0.6B -> WSP Clinical 0.6BMedQA-USMLE (4 options)1,27315.2%37.5%+22.2 pts (+19.6 to +24.9)36 / 3198.5e-58
Qwen3-0.6B -> WSP Clinical 0.6BMedMCQA1,00016.1%36.3%+20.2 pts (+17.2 to +23.2)34 / 2362.2e-38
Qwen3-0.6B -> WSP Clinical 0.6BMMLU1,08919.3%52.6%+33.3 pts (+30.2 to +36.4)27 / 3901.4e-83
random patch 1 -> WSP Clinical 0.6BMedQA-USMLE (4 options)1,27317.4%37.5%+20.0 pts (+17.3 to +22.8)56 / 3115.7e-44
random patch 1 -> WSP Clinical 0.6BMedMCQA1,00017.6%36.3%+18.7 pts (+15.7 to +21.7)39 / 2263.4e-33
random patch 1 -> WSP Clinical 0.6BMMLU1,08921.7%52.6%+30.9 pts (+27.8 to +34.0)31 / 3682.7e-74
random patch 2 -> WSP Clinical 0.6BMedQA-USMLE (4 options)1,27314.8%37.5%+22.6 pts (+19.8 to +25.4)51 / 3392.7e-53
random patch 2 -> WSP Clinical 0.6BMedMCQA1,00017.9%36.3%+18.4 pts (+15.3 to +21.4)45 / 2297.4e-31
random patch 2 -> WSP Clinical 0.6BMMLU1,08917.8%52.6%+34.8 pts (+31.7 to +37.9)28 / 4072.5e-87

Format-agnostic score (secondary)

Also accepting Answer: <B>, Answer: (b), Answer: <letter>B and \boxed{B} after </think>. The gap between this and the main score shows how much of a checkpoint's score is lost to the format of its final line rather than to the choice itself.

CheckpointMedQAMedMCQAMMLU medical
OpenMed WSP Clinical 0.6B (this model)37.5%36.3%52.6%
Random patch, same size, random direction (seed 1)37.0%34.9%52.1%
Random patch, same size, random direction (seed 2)35.7%36.0%50.8%
Qwen3-0.6B as released36.1%35.5%50.6%

Nothing else broke (general benchmarks, one sample, seed 0)

CheckpointMATH-500MATH-500 cut at 32,768 tokensIFEval (strict, prompt level)
OpenMed WSP Clinical 0.6B (this model)74.0%0.4%59.5%
Qwen3-0.6B as released72.6%0.0%61.0%

What the edit does

OpenMed's fixed exam prompt ends with "finish with one last line exactly like: Answer: ". Under the evaluation's sampling, Qwen3-0.6B often copies the placeholder instead of filling it in and ends with Answer: <B> or Answer: <letter>, which no grader reads as a letter. The editor traced the copy to five attention heads in four layers (layer 20 heads 10 and 11, layer 21 head 9, layer 23 head 5, layer 24 head 10): at the final Answer: they attend to the prompt's < and write the direction that raises the logit of <. The presence penalty makes it worse, because the four letters have usually appeared in the thinking already while < has not.

The edit removes that direction from each of these heads' output columns: W_h <- W_h - 1.5 Q Q^T W_h, with Q an orthonormal basis of the output directions of the tokens ' <' and '<' (W_h = the head's columns of o_proj). We checked it independently: the main output direction of every edited tensor's change lines up with the output direction of < (eval/direction_check.json).

TensorShapebfloat16 entries changedRelative changesha256 (edited, bfloat16 bytes)
model.layers.20.self_attn.o_proj.weight1024 x 2048250,4070.02641f66163c0d6a6f96efe220a26a63c2f1f4e298d45217a2744ae2d01b73153474
model.layers.21.self_attn.o_proj.weight1024 x 2048126,4030.0223b417882325e84155a505773b7ce350fa425dd16de90dbf6896c792c007fb5c85
model.layers.23.self_attn.o_proj.weight1024 x 2048127,7060.0290f5cd48e6885c0ebf376a080ff12351dfc5cb33e1519972591f0c548d5736d5dd
model.layers.24.self_attn.o_proj.weight1024 x 2048126,9110.02853fbbcf04ab91433c157ed7bc7245d2de0519639787d4b5ef538bffca96aea92e

631,427 bfloat16 entries differ from the starting checkpoint (Qwen/Qwen3-0.6B @ c1899de2). edit/manifest.json and edit/edit.npz hold the edit as an exact diff (indices and bfloat16 bits), with the sha256 of every tensor before and after; rebuilding the tensors from the diff reproduces these hashes.

Quick start

from vllm import LLM, SamplingParams
from transformers import AutoTokenizer


def main():
    repo = "OpenMed/Qwen3-0.6B-WSP-Clinical"
    tok = AutoTokenizer.from_pretrained(repo)
    llm = LLM(model=repo, dtype="bfloat16", max_model_len=34816, generation_config="vllm")

    # a MedQA-USMLE practice question (train split, id medqa_train_4541; the key is B)
    question = ("A 23-year-old male with a homozygous CCR5 mutation is found to be immune to HIV infection. "
                "The patient's CCR5 mutation interferes with the function of which viral protein?")
    options = {"A": "Reverse transcriptase", "B": "gp120", "C": "gp41", "D": "pp17"}
    user = ("Which option is the best answer to this clinical question?\n\n" + question + "\n\n"
            + "\n".join(f"{k}. {v}" for k, v in options.items())
            + "\n\nReason as much as you need, then finish with one last line exactly like: Answer: <letter>")
    prompt = tok.apply_chat_template([{"role": "user", "content": user}], tokenize=False,
                                     add_generation_prompt=True, enable_thinking=True)
    sp = SamplingParams(temperature=0.6, top_p=0.95, top_k=20, presence_penalty=1.5, max_tokens=32768, seed=0)
    text = llm.generate([prompt], sp)[0].outputs[0].text
    print(text.split("</think>")[-1].strip())


if __name__ == "__main__":  # vLLM starts worker processes
    main()

How it was made

  1. The harness. We rebuilt the paper's setup, whose prompts and rules are published but whose code is not: a persistent CPU Python kernel over the weights (no GPU, no internet, no gradients; save_edit refuses the final norm, the embeddings and whole-tensor rescaling) and a forward-pass tool (generations with the evaluation's sampling, paired original vs edited with fixed seeds, and teacher-forced reads of hidden states, MLP activations and attention). The task text is the paper's, with the target changed from math to clinical questions.
  2. The editor. A frontier LLM had a budget of 12 forward passes and 40 Python runs. It could use only training-split practice questions; the MedQA, MedMCQA and MMLU test sets in the tables were never shown to it. It diagnosed the failures, localized them, tested strengths and confirmed its edit on fresh practice questions before submitting.
  3. Evaluation and control. Every checkpoint ran with the same vLLM 0.33.0 server and settings on one GPU. The random-patch control changes the same rows and columns of the same tensors by the same amount (the same singular values) in random directions; two seeds.

Files

  • The weights, config, tokenizer and chat template: Qwen3-0.6B's release files with the edited tensors (every other tensor is unchanged).
  • edit/: the clinical edit as an exact, hash-checked diff from the starting checkpoint.
  • eval/: per-question results of every checkpoint on every benchmark (id, finish reason, tokens, extracted answer, grade) with no question text, the scores, the first 20 generated texts per benchmark for this model, and receipt.json (forward passes, Python runs, turns and wall time of the edit run).

Limitations

  • Small model, one sample per question (MedQA with three seeds). The gains are relative to the same model and sampling and say nothing about clinical safety.
  • Most of the gain is the model now writing a letter where it used to copy the prompt's <letter> placeholder; the format-agnostic table shows how much is format and how much is the choice itself.
  • The fixed prompt literally says Answer: <letter>; with a prompt that shows no placeholder the edit has less to fix.
  • The edit lowers the probability of < everywhere these heads write, not only in the answer line.
  • Research only. Not for clinical use, diagnosis or treatment.

Credits

  • Method: "Sparks of Weight-Space Programming: LLMs can natively read & write neural network weights" by Rikiya Takehi, Jayden Teoh, Alex Zhang and Omar Khattab (MIT CSAIL, 2 Nov 2026), https://rikiyat.github.io/blog/weight-space-programming/; logs and diffs at https://github.com/RikiyaT/lm_understand-logs. OpenMed rebuilt their harness from the published prompts and rules and pointed it at clinical questions.
  • Base model: Qwen/Qwen3-0.6B by the Qwen team, Apache-2.0.
  • Data: MedQA-USMLE (GBaker/MedQA-USMLE-4-options, CC-BY-4.0), MedMCQA (openlifescienceai/medmcqa, Apache-2.0), MMLU (cais/mmlu, MIT), MATH-500 (HuggingFaceH4/MATH-500), IFEval (google/IFEval, Apache-2.0).
  • Hugging Face's ML Intern reproduction of the paper's math edit showed the method reproduces; ML Intern did not take part in this model.

Citation

@misc{takehi2026weightspace,
  title  = {Sparks of Weight-Space Programming: LLMs can natively read \& write neural network weights},
  author = {Rikiya Takehi and Jayden Teoh and Alex Zhang and Omar Khattab},
  year   = {2026},
  month  = {nov},
  url    = {https://rikiyat.github.io/blog/weight-space-programming/}
}

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · transformers

Можно запустить

Подбираем GPU…

Класс архитектуры
Qwen3ForCausalLM
Ревизия весов
bdb06eb

0 моделей