/ Модель

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

Лицензия
Apache 2.0
Базовая модель
Qwen3-8B
Опубликована
14 ноя 2026

clm-system1-medmcqa-qwen3-8b

Классификация и разметкаТекст → label3 профессии
41скачиваний за 30 дней0лайковвеса обновлены14 ноя 2026

Описание модели

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

Экспериментальная модель на базе Qwen3-8B сопоставляет медицинский вопрос с вариантами ответа и выбирает наиболее подходящий.

Модель pavanmantha/clm-system1-medmcqa-qwen3-8b — исследовательский прототип для выбора правильного ответа в медицинских вопросах с вариантами. Она разработана на базе замороженной Qwen/Qwen3-8B: вопрос и каждый вариант ответа кодируются отдельно, а обученные проекции сопоставляют их в общем 512-мерном пространстве; модель выбирает вариант с наибольшим косинусным сходством. Генерация текста и пошаговое рассуждение не выполняются. Дообучены только два небольших блока проекции и один параметр масштаба.

Модель предназначена для экспериментальной оценки ответов на англоязычные вопросы MedMCQA с четырьмя вариантами. На отложенной выборке из 3842 вопросов точность составила около 46%; особенно сложны формулировки с EXCEPT или NOT. Модель ошибается примерно в 54% случаев, обучена на одном экзаменационном наборе и не проверялась на других тестах или клинических вопросах. Она не подходит для медицинских или иных реальных решений. Лицензия — Apache-2.0; для работы нужны PyTorch, Transformers, Safetensors и Hugging Face Hub, а при первом запуске загружается базовая Qwen3-8B.

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

  • выбор ответа в англоязычных медицинских тестах с четырьмя вариантами
  • оценка точности моделей на вопросах MedMCQA
  • эксперименты с контрастивным сопоставлением вопросов и ответов
  • сравнение результатов на вопросах с формулировками EXCEPT или NOT

Ограничения

Точность на отложенных вопросах MedMCQA составляет около 46%, а вопросы с EXCEPT или NOT даются модели заметно хуже. Модель ограничена английскими тестами с максимум четырьмя вариантами, обучена на одном наборе и не предназначена для клинических решений.

Публичные бенчмарки

Результаты из открытых лидербордов в сравнении с лидерами каталога

Публичных оценок пока нет

В подключённых источниках результатов этой модели не нашлось. Отсутствие оценки не значит, что модель хуже: её могли просто не проверять.

Источники: Hugging Face Leaderboards, Hugging Face Eval Results, Open LLM v2, MTEB, timm, Open ASR, EvalPlus

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

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

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

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

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

Открыть на Hugging Face

System 1 medical multiple-choice model (Qwen3-8B)

A fast, single-pass decision model for medical multiple-choice questions. A frozen language model (Qwen/Qwen3-8B) turns a question and each answer option into vectors, two small trained heads project them into a shared 512-dimensional space, and the option most similar to the question is chosen. There is no step-by-step reasoning and no text generation. Only the two heads and one scale value are trained (see below).

Status: research prototype. It answers about 46.0% of held-out four-option questions correctly, against 25% for random guessing. It is not suitable for clinical or any real-world medical decision.

Results

Evaluated on 3842 questions from the labelled MedMCQA validation split (the official test split has no answers). Each question is scored only against its own options (chance is 25.0%). The statistical margin for one run is about +/-1.6 points.

MethodAccuracy
Random guessing25.0%
Question-blind baseline (most often correct answer in training, ignores the question)28.1%
No-head baseline (cosine on the raw frozen vectors, no training)34.0%
This model, mean +/- std over 3 seeds46.0% +/- 0.2
This model, published seed (44)46.2%
Slice (mean over seeds)Accuracy
Average over the 21 subjects47.4%
Questions phrased with EXCEPT / NOT34.9%
All other questions48.7%

Per-subject numbers are in results.json. Shuffling the questions against the options drops accuracy to chance, so the model does use the question.

How it works

  1. Frozen encoder: Qwen/Qwen3-8B, loaded in bfloat16 and never updated.
  2. Prompting: the question is written as This question: "{text}" is answered in one word: " and each option as This answer: "{text}" means in one word: " ({text} is replaced by the text).
  3. Vectors: the last-token hidden state at 3 depths (0.5, 0.75, 1 of the model's depth) is L2-normalised per layer and joined, giving a 12288-dimensional vector.
  4. Heads: a state head (for the question) and an action head (for each option), each Linear - GELU - Linear - LayerNorm - GELU - Linear with hidden size 2048 and output size 512.
  5. Decision: the option with the highest cosine similarity to the question.

Use

import sys
from pathlib import Path
from huggingface_hub import hf_hub_download

sys.path.insert(0, str(Path(hf_hub_download("pavanmantha/clm-system1-medmcqa-qwen3-8b", "clm_inference.py")).parent))
from clm_inference import SystemOneModel

model = SystemOneModel.from_pretrained("pavanmantha/clm-system1-medmcqa-qwen3-8b")
options = ["Vitamin A", "Vitamin B12", "Vitamin C", "Vitamin D"]
print(options[model.choose("Scurvy is caused by deficiency of which vitamin?", options)])

It needs torch, transformers, safetensors and huggingface_hub, and downloads Qwen/Qwen3-8B on first use.

Training

  • Data: pavanmantha/medmcqa-clm, derived from openlifescienceai/medmcqa (Apache-2.0): 134,416 train, 4,000 validation, 3,842 test questions. Options such as "all of the above" were removed, and the test questions do not appear in train or validation.
  • Loss: contrastive (InfoNCE) in both directions, averaged. Negatives are the other answers in the batch plus the question's own wrong options. Rows sharing the same correct answer are never used as each other's negatives.
  • Optimiser: AdamW, learning rate 0.0003, weight decay 0, batch size 4096, gradient clipping 1, learned temperature capped at 100. Early stopping on validation loss with patience 5. Three seeds (42, 43, 44); the published weights are the seed with the lowest validation loss.
  • Hyper-parameters (prompt format, layers, learning rate, hidden size, dropout) were chosen on the validation split only. The test split was read once, for the final numbers.

Limitations

  • About 54.0% of answers are wrong. Questions phrased with EXCEPT / NOT are noticeably harder.
  • Multiple-choice only, English only, at most four options, trained on one exam dataset (MedMCQA, Indian medical entrance exams). It has not been tested on other datasets or on real clinical questions.
  • The question and each option are embedded separately, so the model cannot compare them in context.
  • Inherits the biases and any errors of the base model and of MedMCQA.

Files

clm_heads.safetensors (trained heads), config.json (architecture, prompt and layers), clm_inference.py (loading and prediction), results.json (all measured numbers).

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

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

GPU в ailist

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

Нельзя запустить

Не удалось определить, чем загружать веса модели (нет library_name и architectures).

Ревизия весов
806e8e1

0 моделей