Downloads · 30 days
190
88% of all-time downloads
cloudkites/qwen3-0.6b-clinical-lora
qwen3-0.6b-clinical-lora is a text generation model from cloudkites. Use it when you need the model to write or continue text. It is set up for peft. The card lists the license as apache-2.0.
RESEARCH USE ONLY. Not a medical device. Not validated for clinical use. Must not be used to inform patient care.
Downloads · 30 days
190
88% of all-time downloads
All-time downloads
217
Public
Repo size
40.4 MB
Likes
0
Public
Click a slice to open those files.
.safetensors40.4 MB · 97%
From the Hugging Face model README
RESEARCH USE ONLY. Not a medical device. Not validated for clinical use. Must not be used to inform patient care.
Open weights and training logs for a LoRA adapter trained on clinical question-answer data, released so the result reported in our paper can be audited against the artefacts that produced it.
| Base model | Qwen/Qwen3-0.6B (Apache-2.0) |
| Method | LoRA, rank 16, alpha 32, dropout 0.05, rsLoRA scaling |
| Adapted projections | q, k, v, o, gate, up, down (all seven, all 28 layers) |
| Trainable parameters | 10,092,544 of 595,978,752 (1.69%) |
| Sequence length | 512 |
| Optimizer | AdamW, peak lr 1e-4, cosine to zero, 3% warmup, weight decay 0 |
| Batch | 2 x grad_accum 8 x 3 ranks = 48 examples per optimizer step |
| Precision | bf16 activations over f32 master weights |
| Epoch | 3,509 steps over 168,473 examples |
| Held-out loss, best | 2.1899 (perplexity 8.935) at step 3,500 |
| Reference leg (PyTorch + PEFT) | 2.1941 (perplexity 8.972) at the same step |
Both legs trained the same recipe on the same three cards, one at a time and each alone on the machine. Held-out loss differs by 0.0042, about 0.19%, both bests at step 3,500, both scoring the same capped 512-example prefix of the same held-out split. The purpose was not to win: it was to test whether two independent training stacks reach the same place on a realistic workload. They do.
logs/ carries the per-step record, the supervising gate's verdicts and the reference
leg's own curve, so the claim is checkable rather than merely stated.
Three public corpora, converted into Qwen3's chat template with loss on the answer only:
| corpus | licence |
|---|---|
PubMedQA (pqa_labeled) | MIT |
| MedMCQA | Apache-2.0 |
| MedQA-USMLE | CC-BY-4.0 |
168,473 training and 3,440 held-out examples. The held-out split is a fixed prefix, never trained on. MedQA-USMLE is CC-BY-4.0 and is attributed here accordingly.
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
base = AutoModelForCausalLM.from_pretrained("Qwen/Qwen3-0.6B")
tok = AutoTokenizer.from_pretrained("Qwen/Qwen3-0.6B")
model = PeftModel.from_pretrained(base, "cloudkites/qwen3-0.6b-clinical-lora")
Prompts must use Qwen3's own chat template, including the empty
<think>\n\n</think> block the model opens its final assistant turn with. Training
with the wrong template cost 5.8% of held-out loss in an earlier run of this workload,
and a mismatch at inference will cost something similar.
A 0.6 B base with a 10 M-parameter adapter, trained for one epoch on multiple-choice and abstract-derived clinical QA. It answers in the style of its training data and will be confidently wrong outside it. It is not aligned, not calibrated, and carries whatever biases its corpora carry. Held-out cross-entropy is the only metric reported; no clinical accuracy, safety or fairness evaluation has been performed.
Trained with numbat, a machine-learning stack written in Zig with no third-party runtime dependencies, driven entirely through its C ABI. This repository contains weights, logs and documentation only -- no framework source, and none is needed to use the adapter.
Adapter weights under the Apache License 2.0, matching the base model.
@misc{cloudkites_qwen3_clinical_lora,
title = {Clinical LoRA adapter for Qwen3-0.6B},
author = {Tran, Thang and Dang, Lan},
year = {2026},
note = {CloudKites AI Lab. Research use only. Open weights, Apache-2.0.}
}