Downloads · 30 days
0
jmfraga/gemma4-31b-onco-lora
gemma4-31b-onco-lora is a machine learning model from jmfraga. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for mlx. The card lists the license as gemma.
QLoRA adapter fine-tuning mlx-community/gemma-4-31b-it-4bit on a Spanish synthetic oncology question-answer dataset derived from clinical guidelines (NCCN, ESMO, IMSS, national consensus). Architecture: dense, 31B.
Downloads · 30 days
0
Access
Public
Updated Jul 20, 2026
Repo size
2 GB
Likes
0
Public
Click a slice to open those files.
.safetensors2 GB · 100%
From the Hugging Face model README
QLoRA adapter fine-tuning mlx-community/gemma-4-31b-it-4bit on a Spanish synthetic oncology question-answer dataset derived from clinical guidelines (NCCN, ESMO, IMSS, national consensus). Architecture: dense, 31B.
WARNING: Released as a documented negative result and for reproducibility - NOT a production model. In our blinded study, domain fine-tuning reduced clinical answer quality vs. the un-augmented base model. Under an LLM judge (Claude Opus 4), this adapter scored 1.71/5 on a 4-criterion clinical rubric, vs 4.13/5 for the same base model with no adapter. Do not use for clinical decision-making.
mlx-lm), QLoRA on a Mac Mini M4 (64 GB), 4-bit base.pip install mlx-lm
python -m mlx_lm.generate --model mlx-community/gemma-4-31b-it-4bit --adapter-path ./ \
--prompt "Paciente con adenocarcinoma pulmonar EGFR+ estadio IV. Primera linea?"
| Setting | Composite (Opus judge, /5) |
|---|---|
| This adapter (fine-tuned) | 1.71 |
| Same base model, no adapter | 4.13 |
Fraga Sastrias, J. M. et al. Base Language Models Outperform Retrieval-Augmentation and Fine-Tuning for Clinical Oncology. (2026). Code: https://github.com/jmfraga/medexpert-oncologia
Inherits the base model license (gemma); adapter provided for research/reproducibility.