/ Модель

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

Лицензия
Apache 2.0
Базовая модель
granite-4.2-3b
Опубликована
14 ноя 2026

clm-system1-medmcqa-granite-4.2-3b

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

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

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

Исследовательская модель на базе Granite 4.2 3B выбирает наиболее подходящий вариант ответа в англоязычных медицинских тестах с несколькими вариантами.

Это исследовательский прототип для выбора правильного ответа в медицинских вопросах с несколькими вариантами, разработанный на базе IBM Granite 4.2 3B. Замороженная языковая модель отдельно преобразует вопрос и каждый вариант ответа в векторы; обученные проекционные слои сопоставляют их в общем пространстве, после чего выбирается вариант с наибольшим косинусным сходством. Модель не генерирует текст и не выполняет пошаговое рассуждение.

На отложенной выборке MedMCQA из 3842 вопросов точность составила около 42,5% при случайном уровне 25%. Модель рассчитана на англоязычные тестовые вопросы по медицине, максимум с четырьмя вариантами ответа. Вопросы с формулировками EXCEPT/NOT даются ей сложнее. Она ошибается примерно в 57,5% случаев, проверена только на одном экзаменационном датасете и не подходит для клинических или иных реальных медицинских решений.

Для работы нужны PyTorch, Transformers, Safetensors и Hugging Face Hub; при первом запуске загружается базовая модель IBM Granite 4.2 3B. Веса распространяются по лицензии Apache-2.0.

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

  • выбор ответа в тестах MedMCQA
  • оценка вариантов ответа в медицинских экзаменационных вопросах
  • быстрое ранжирование до четырёх вариантов ответа по медицинскому вопросу

Ограничения

Точность на указанной тестовой выборке около 42,5%; заметно хуже справляется с вопросами, содержащими 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 (granite-4.2-3b)

A fast, single-pass decision model for medical multiple-choice questions. A frozen language model (ibm-granite/granite-4.2-3b) 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 42.5% 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)30.8%
This model, mean +/- std over 3 seeds42.5% +/- 0.5
This model, published seed (42)42.6%
Slice (mean over seeds)Accuracy
Average over the 21 subjects45.9%
Questions phrased with EXCEPT / NOT35.8%
All other questions44.1%

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: ibm-granite/granite-4.2-3b, 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 8 depths (0.25, 0.375, 0.5, 0.625, 0.75, 0.875, 0.9375, 1 of the model's depth) is L2-normalised per layer and joined, giving a 20480-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-granite-4.2-3b", "clm_inference.py")).parent))
from clm_inference import SystemOneModel

model = SystemOneModel.from_pretrained("pavanmantha/clm-system1-medmcqa-granite-4.2-3b")
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 ibm-granite/granite-4.2-3b 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 57.5% 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).

Ревизия весов
003ab5a

0 моделей