/ Модель

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

Лицензия
Llama 3.2
Библиотека
gguf
Опубликована
14 сен 2026

Llama-3.2-3B-Instruct-Medical-Finetuned-merged-GGUF

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

Это GGUF-квантизированная версия модели Llama-3.2-3B-Instruct-Medical-Finetuned-merged, разработанной Mohamed Ahmed Abo El-Enen, Sally S.

1 898скачиваний за 30 дней0лайковвеса обновлены14 сен 2026

Бенчмарки

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

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

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

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

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

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

Ismail и Taymoor Mohamed Nazmy, а квантизации выполнены пользователем tinyopsec. Модель основана на meta-llama/Llama-3.2-3B-Instruct и адаптирована к медицинской тематике методом QLoRA с последующим слиянием LoRA-весов с базовой моделью. Для инференса отдельный адаптер PEFT не требуется.

Модель предназначена прежде всего для ответов на медицинские вопросы, включая открытые и тестовые задания, поиска клинической информации, вспомогательной поддержки принятия клинических решений и исследовательских экспериментов с небольшими Llama-моделями в сфере здравоохранения. Это текстовая авторегрессионная модель архитектуры LlamaForCausalLM с примерно 3,21 млрд параметров, английским языком, словарём из 128 256 токенов и заявленным нативным контекстом до 128K токенов. Доступны варианты GGUF с точностью от 3 до 16 бит и размером примерно от 1,54 до 6,43 ГБ, что позволяет выбирать между компактностью и качеством.

Сильными сторонами являются специализация на медицинских вопросах, относительно небольшой размер, поддержка llama.cpp и совместимость с LM Studio и Ollama. При этом в README не заявлены формальные результаты бенчмарков, а ответы модели могут содержать ошибки. Модель не предназначена для автономных клинических решений, постановки окончательных диагнозов, назначения лечения или замены врача, экстренной помощи и лицензированной медицинской консультации. Указана лицензия Llama 3.2 Community License.

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

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

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

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

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

Открыть на Hugging Face

Llama-3.2-3B-Instruct-Medical-Finetuned-merged GGUF

GGUF quantizations of MohamedAhmedAE/Llama-3.2-3B-Instruct-Medical-Finetuned-merged — a 3.21B-parameter Llama-3.2 model adapted to the medical domain using QLoRA, with the LoRA weights merged back into the base.

Quantized by tinyopsec.


Model Details

AttributeValue
ArchitectureLlamaForCausalLM
Parameters~3.21 B
Base modelmeta-llama/Llama-3.2-3B-Instruct
Fine-tuning methodQLoRA (4-bit NF4 base + LoRA, r=128, α=256)
MergedYes — LoRA fused into base weights
Training precisionbfloat16
Context length128K tokens (native)
Vocabulary128,256 tokens
LanguageEnglish
LicenseLlama 3.2 Community License
DeveloperMohamed Ahmed Abo El-Enen, Sally S. Ismail, Taymoor Mohamed Nazmy

About the Original Model

Med-LLaMA3.2-3B is the 3B (balanced / mid-tier) member of the Med-LLaMA3 family introduced in the paper "Med-LLaMA3: Advancing Medical Question-Answering Through Parameter-Efficient Fine-Tuning of Large Language Models" (Applied Sciences, 2026). The family adapts the LLaMA-3 architecture to the medical domain by training only a small fraction of the base model's parameters (5.70% for this 3B variant), achieving strong medical question-answering performance while keeping the memory footprint low.

Training Details

  • Base model: meta-llama/Llama-3.2-3B-Instruct
  • Method: QLoRA fine-tuning (4-bit NF4 base + LoRA, r=128, α=256, all linear layers)
  • Trainable parameters: 194.51 M = 5.70% of the 3.40 B total
  • Merging: merge_and_unload() into the base
  • Released weights: bfloat16 (full precision; not quantized)
  • Training datasets: MohamedAhmedAE/Med_LLaMa3_fine-tuning_dataset, medalpaca/medical_meadow_medqa, medalpaca/medical_meadow_medical_flashcards, medalpaca/medical_meadow_wikidoc, medalpaca/medical_meadow_wikidoc_patient_information, medalpaca/medical_meadow_cord19, medalpaca/medical_meadow_pubmed_causal, openlifescienceai/medmcqa, bigbio/med_qa, qiaojin/PubMedQA, deepset/covid_qa_deepset

This repository contains the merged standalone model. No adapter or PEFT is required for inference.


Available Quantizations

FileBitsSizeUse Case
model_f16.gguf166.43 GBReference, maximum quality
model_q8_0.gguf83.42 GBHigh quality, fast on capable hardware
model_q6_k.gguf62.64 GBNear-lossless, good balance
model_q5_k_m.gguf52.32 GBRecommended for quality-focused use
model_q5_k_s.gguf52.27 GBSlightly smaller Q5 variant
model_q4_k_m.gguf42.02 GBBest balance of size and quality
model_q4_k_s.gguf41.93 GBSmaller Q4 variant
model_q3_k_l.gguf31.82 GBLow memory, acceptable quality
model_q3_k_m.gguf31.69 GBCompact, moderate quality loss
model_q3_k_s.gguf31.54 GBMinimum size Q3

VRAM Requirements

Approximate total VRAM required for inference (weights + context overhead).

QuantizationVRAM (approx.)
F16~6.5 GB
Q8_0~3.5 GB
Q6_K~2.8 GB
Q5_K_M~2.5 GB
Q4_K_M~2.2 GB
Q3_K_M~1.9 GB
Q3_K_S~1.7 GB

Usage

llama.cpp

./llama-cli -m model_q4_k_m.gguf \
  -p "You are a helpful medical assistant. Answer the following question accurately and concisely.\n\nQuestion:\nWhat are the early symptoms of type 2 diabetes?\n\nAnswer:\n" \
  -n 512 --temp 0.0

llama-cpp-python

from llama_cpp import Llama

llm = Llama(model_path="model_q4_k_m.gguf", n_ctx=4096)

output = llm(
    "You are a helpful medical assistant. Answer the following question accurately and concisely.\n\nQuestion:\nWhat is the mechanism of action of metformin?\n\nAnswer:\n",
    max_tokens=512,
    temperature=0.0,
)
print(output["choices"][0]["text"])

LM Studio

  1. Download any .gguf file from this repository
  2. Open LM Studio → Load Model → select the file
  3. Use the prompt format below in the chat or playground

Ollama

ollama run hf.co/tinyopsec/Llama-3.2-3B-Instruct-Medical-Finetuned-merged-GGUF:Q4_K_M

Prompt Format

For medical question answering, use the standard Llama 3.2 chat template:

<|begin_of_text|><|start_header_id|>system<|end_header_id|>

You are a helpful medical assistant. Answer the user's question accurately and concisely.<|eot_id|><|start_header_id|>user<|end_header_id|>

{your question here}<|eot_id|><|start_header_id|>assistant<|end_header_id|>

For general instruction use, the default chat template also works.


Intended Uses

Primary Use Cases

  • Medical question answering (multiple-choice and open-ended)
  • Clinical knowledge lookup and clinical decision support assistance
  • A balanced mid-tier option when the 1B is too small and the 8B is too heavy
  • A research baseline for parameter-efficient fine-tuning of small LLaMA models in healthcare

Out of Scope / Not Intended For

  • Autonomous clinical decision-making or direct patient care without a qualified clinician in the loop
  • Generating definitive diagnoses, prescriptions, or treatment plans
  • Use as a substitute for professional medical advice, emergency services, or licensed care

Limitations

  • No formal benchmark results are claimed in this release. External medical benchmarks should be run before production use.
  • The model can produce fluent but incorrect medical information.
  • Training data may contain biases or inaccuracies; outputs should be verified against authoritative sources.
  • The model has not been established as safe for autonomous, high-impact, medical, financial, or legal action.
  • Context length is large (128K), but very long inputs may degrade performance.
  • Medical knowledge is not updated in real time; the model may not reflect the latest clinical guidelines.

License

The parent model is released under the Llama 3.2 Community License. Any use of this GGUF quantization must comply with the same license terms. Confirm the source dataset licenses before commercial deployment.


Original Model

Citation

@article{aboelenen2026medllama3,
  title={Med-LLaMA3: Advancing Medical Question-Answering Through Parameter-Efficient Fine-Tuning of Large Language Models},
  author={Abo El-Enen, Mohamed Ahmed and Ismail, Sally S. and Nazmy, Taymoor Mohamed},
  journal={Applied Sciences},
  year={2026}
}

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

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

GPU в ailist

llama.cpp

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

GGUF-модель ждёт проверки: нужно выбрать файл кванта под доступные GPU.

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

0 моделей