Downloads · 30 days
13
8% of all-time downloads
Mpairwe49/retinalai-narrator-135m
retinalai-narrator-135m is a text generation model from Mpairwe49. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
Writes the free-text clinical narrative for a retinal screening result. It is a research artifact, not a medical device — see Limitations.
Downloads · 30 days
13
8% of all-time downloads
All-time downloads
163
Public
Parameters
107M
213 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors213 MB · 98%
From the Hugging Face model README
Writes the free-text clinical narrative for a retinal screening result. It is a research artifact, not a medical device — see Limitations.
Distilled (sequence-level KD) from a self-hosted Qwen/Qwen3-8B-AWQ teacher onto
SmolLM2-135M-Instruct, then vocabulary-pruned for footprint.
keep_ids.json, in order. The tokenizer is unmodified;
callers map ids old->new before the model and new->old before decoding. Tokens
outside the kept set are re-encoded byte-wise rather than dropped. The
vocabulary is seeded from all 45 disease names the upstream classifier can
emit, and all 45 are verified to survive the round trip.Use src/narrator/compact.py from the OptiscanAI repository — the id remap is
required, so AutoModelForCausalLM alone will produce garbage.
24 held-out cases, scored against the teacher's own narrative for the same case:
| precision | size | generation rate | omission | misquoted probabilities | acuity divergence |
|---|---|---|---|---|---|
| bf16 | 213.5 MB | 1.000 | 0.000 | 0.000 | 0.250 |
| int8 | 107.3 MB | — | — | — | — (37.5 s/case, impractical) |
| nf4 | 54.2 MB | 1.000 | 0.417 | 0.167 | 0.583 |
bf16 is the only precision recommended. 4-bit reaches 54 MB but drops findings the teacher reported in 42% of cases while remaining fluent, which makes the omissions hard to notice.
"Acuity divergence" counts narratives using urgency language the teacher did not use for that same case. It is a broad screening signal, not a hallucination count.