gemma4-31b-onco-lora โ€” Oncology QLoRA adapter (Spanish)

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.

Intended use

  • Reproducing the paper's experiments; studying why domain fine-tuning can degrade a strong base model.
  • Not for clinical, diagnostic, or treatment decisions.

Training

  • MLX (mlx-lm), QLoRA on a Mac Mini M4 (64 GB), 4-bit base.
  • LoRA rank 64, all layers, prompt masking, dropout 0.05, scale 32.
  • Learning rate 2e-5, 3000 iterations, max seq length 2048.
  • Data: Spanish teacher-generated Q&A grounded in copyrighted guideline text (corpus itself not redistributable).

Usage (MLX)

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?"

Evaluation

Setting Composite (Opus judge, /5)
This adapter (fine-tuned) 1.71
Same base model, no adapter 4.13

Citation

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

License

Inherits the base model license (gemma); adapter provided for research/reproducibility.

Downloads last month

-

Downloads are not tracked for this model. How to track
MLX
Hardware compatibility
Log In to add your hardware

Quantized

Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for jmfraga/gemma4-31b-onco-lora

Adapter
(1)
this model