/ Модель

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

Параметры
16,2 млн
Лицензия
Apache 2.0
Архитектура
MoE
Базовая модель
medsparse-healthcare-medical-sft
Библиотека
pytorch
Опубликована
25 ноя 2026

medsparse-healthcare-miriad-sft

Генерация текстаТекст → текст3 профессии
118скачиваний за 30 дней0лайковвеса обновлены25 ноя 2026

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

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

Небольшая англоязычная MoE-модель, дообученная на медицинских вопросах и ответах для генерации образовательных ответов.

MedSparse Healthcare — MIRIAD Full-Parameter SFT — небольшая языковая модель с разреженной архитектурой Mixture-of-Experts, разработанная AI Lab. Она создана с нуля на медицинских текстах, затем дообучена на медицинских вопросах и ответах и дополнительно полностью дообучена на наборе MIRIAD. README указывает 38,8 млн параметров, 4 слоя и контекст обучения 192 токена; метаданные каталога указывают 16,2 млн параметров. Архитектура вдохновлена Mixtral, но это собственная модель, а не веса Mistral или Mixtral и не стандартный чекпойнт Transformers AutoModelForCausalLM.

Модель предназначена для генерации ответов на медицинские вопросы и образовательных ответов на английском языке. В небольшой проверке на 15 примерах она стала отвечать связнее по сравнению с предыдущей версией, однако часто ошибалась или отвечала неполно; оценки не являются клиническим бенчмарком. Модель не предназначена для диагностики, лечения, сортировки пациентов, расчёта дозировок или принятия решений о реальных людях. Обучение и веса доступны по лицензии Apache-2.0.

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

  • черновые ответы на медицинские вопросы для образовательных материалов
  • генерация ответов на англоязычные вопросы о здоровье
  • экспериментальное сравнение дообучения на наборах медицинских Q&A

Ограничения

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

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

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

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

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

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

Бенчмарки пользователейпока нет

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

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

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

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

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

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

    Модели ответят на каждую задачу, судья оценит ответы по шкале 0–100.

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

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

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

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

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

Открыть на Hugging Face

MedSparse Healthcare — MIRIAD Full-Parameter SFT

A 38.8M-parameter sparse Mixture-of-Experts language model, trained from scratch and then full-parameter fine-tuned on the MIRIAD medical Q&A dataset on a single consumer-grade GPU.

Research only. Not for diagnosis, treatment, triage, medication dosing or any decision about a real person. Its medical correctness and safety have not been established, and it can produce fluent but wrong answers.

MedSparse is a custom, Mixtral-inspired architecture. It is not official Mistral or Mixtral weights, and it is not a Transformers AutoModelForCausalLM checkpoint.

Project: AI Lab — MedSparse Healthcare · Source code

Lineage

  1. Pre-training from scratch on healthcare-domain text, from random initialization.
  2. Medical SFT on FreedomIntelligence/medical-o1-reasoning-SFT → sudhanshu42844/medsparse-healthcare-medical-sft.
  3. This model: full-parameter SFT of stage 2 on MIRIAD. All weights are updated (no LoRA or frozen layers), with a fresh AdamW optimizer.

Model details

AttributeValue
Total parameters38,779,008
Layers / hidden size4 / 384
Query / KV heads6 / 2 (grouped-query attention)
Experts4 per block, top-2 routing
Expert intermediate size768
Vocabulary30,001
Configured max positions2,048 (trained at 192 tokens; longer inputs are untested)

Training

SettingValue
DataMIRIAD 5.8M (question → answer), 5,821,948 Q&A pairs
Held-out split2.0% of papers (seed 42); every Q&A from a held-out paper is excluded
LossCompletion-only cross-entropy (prompt masked) plus MoE load-balancing loss
Sequence length192 tokens
Batch1 × gradient accumulation 4
OptimizerAdamW, lr 2e-05, weight decay 0.01, 100 warmup steps
PrecisionFP32
Optimizer steps at this checkpoint1,507,000
Training examples processed, including repeats6,031,000
Answers truncated to fit 192 tokens398,337 (6.6% of training answers)
Best validation cross-entropy (64 held-out examples, completion-only)2.1897

This checkpoint is the one with the lowest validation loss during the run.

Data coverage. The run resumed several times using a shuffled streaming reader with skip(). That skip did not line up with the shuffled stream: the epoch-0 row counter reached 6,150,107, which is 328,159 rows past MIRIAD's 5,821,948 rows. So some Q&A pairs were trained on more than once, and full coverage of MIRIAD is not verified: some rows may never have been seen. The paper-level held-out filter was applied to every row, so no held-out paper entered training.

Prompt format used in training and inference:

### System:
Provide accurate educational medical information, and acknowledge uncertainty.

### User:
<question>

### Assistant:

Evaluation

15 questions from 15 different held-out papers (one per question), using the training script's own paper-level split. Greedy decoding with repetition penalty 1.2. "Before MIRIAD" is the stage-2 model this one was fine-tuned from.

ModelPerplexity on reference answers (lower is better)Mean word overlap F1 (higher is better)
MedSparse (MIRIAD SFT)9.500.346
Before MIRIAD383.490.185

Perplexity is measured on MIRIAD's reference answers. Word overlap is a rough lexical score, not a measure of medical correctness. These are small development checks, not a clinical benchmark.

Read-through of the 15 answers (informal, not an expert clinical review): The MIRIAD checkpoint produced more fluent and less repetitive responses in this sample, although some responses went off topic. Factual accuracy is still low: about 3 of 15 answers were correct or mostly correct, 5 were on topic but vague or incomplete, and 7 were wrong. Examples of the errors: it confused rowing "stroke rate" with stroke the disease, invented heart treatments for methylnicotinate, described the labor-delaying drug isoxsuprine as an anti-cancer antioxidant, placed Iran in the Maghreb, and repeated a single word in place of a list. Every answer needs checking against a reliable source.

Usage

python -m pip install torch safetensors tokenizers huggingface_hub
python -c "from huggingface_hub import snapshot_download; print(snapshot_download('sudhanshu42844/medsparse-healthcare-miriad-sft'))"

From the downloaded folder:

python load_model.py --sft --prompt "What is the role of troponin in diagnosing myocardial infarction?"

Limitations

  • Small model (38.8M parameters): expect factual errors, omissions and confident hallucinations.
  • Trained on 192-token windows; long answers in training were truncated, so outputs tend to be short.
  • MIRIAD answers were generated by language models from research papers and can themselves contain errors.
  • No clinical safety, fairness, robustness, privacy or medication-safety evaluation has been done.

License and attribution

  • Model weights and code in this repository: Apache License 2.0.
  • Training data: MIRIAD (arXiv:2506.06091), released under ODC-By v1.0, with the dataset authors noting OpenAI's usage terms: its content must not be used for medical diagnosis or decisions about real individuals. That restriction applies to this model too.

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

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

GPU в ailist

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

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

Подбираем GPU…

Ревизия весов
ba065e4

0 моделей