Views
No views yet
v0.4 (tag). Address a specific version with
revision="v0.4".v0.4 targets confabulation on real-knowledge items specifically: it penalizes the confabulated
document-id span (not the whole trajectory) via a span-masked DPO objective with a DPOP anchor,
trained on counterfactual swap-id minimal pairs. Lineage:google/gemma-4-12B-it -> (SFT) v13 -> (KTO, rendered-prompt fix) 0.2 -> (on-policy DPO + SLERP) 0.3
\-> (span-masked confab DPO + SLERP) 0.4v0.4 = 0.2 + a 156-pair span-masked DPO step. Each pair is a counterfactual: chosen = the
grounded final assertion, rejected = the same assertion with the document-id swapped, with the
grounding REPL output kept in the prompt so the objective rewards conditioning on visible evidence
(genuine Context-DPO) rather than ungrounded id recall. A DPOP anchor prevents the likelihood
displacement that vanilla DPO would cause on such high-overlap minimal pairs. The result is then
SLERP-merged with google/gemma-4-12B-it-qat-q4_0-unquantized (variant-g) to recover
instruct/tool-use behavior for the served quant (see lineage note below). This is the late
candidate (final DPO adapter), chosen over an earlier-epoch candidate that over-abstained and degraded
more.grounded_correct = grounded and exact-label-correct. Counts are correct/scored.| Metric | 0.3 (prior) | v0.4 (this model) |
|---|---|---|
| Synthetic grounded-correct | 43/197 (21.8%) | 50/196 (25.5%) |
| Synthetic tool-misuse (code_err) | 14 | 11 |
| Synthetic degraded-trajectories | 2.5% | 2.0% |
| ICD-10 grounded-correct | 7/40 (17.5%) | 14/39 (35.9%) |
| ICD-10 grounding-rate | 35.0% | 59.0% |
baseline arm only.Gemma4ForConditionalGeneration)main, not a re-quant of these weights.| Repo | Format | Use |
|---|---|---|
gnosis-lm/Gnosis-MedPolicy-12B (here) | bf16 safetensors (pre-SLERP) | canonical fine-tune base; load with transformers, re-quantize/continue-train from here |
gnosis-lm/Gnosis-MedPolicy-12B-W4A16 | W4A16 compressed-tensors (g32, symmetric int4, Google-exact); SLERP'd | vLLM serving (~8GB); the quant served on our inference server as gnosis-medpolicy |
gnosis-lm/Gnosis-MedPolicy-12B-GGUF | GGUF Q4_0 + Q8_0; SLERP'd | llama.cpp / LM Studio / Ollama |
1from transformers import AutoModelForCausalLM, AutoTokenizer
2m = AutoModelForCausalLM.from_pretrained("gnosis-lm/Gnosis-MedPolicy-12B", revision="v0.4")
3tok = AutoTokenizer.from_pretrained("gnosis-lm/Gnosis-MedPolicy-12B", revision="v0.4")1vllm serve gnosis-lm/Gnosis-MedPolicy-12B-W4A16 --revision v0.4 \
2 --quantization compressed-tensors --kv-cache-dtype fp8_e4m3 \
3 --attention-config '{"backend":"TRITON_ATTN"}' --max-model-len 65536baseline arm only (no retrieval-steering); arm ranking is known to invert between synthetic and real
ICD tasks. Medical outputs are research artifacts, not clinical or billing advice.apache-2.0, inherited from the google/gemma-4 lineage (the Gemma 4 family is released under
Apache-2.0).gnosis-lm, one repo per specialty+size, version as a git tag.