GGUF quantization of gnosis-lm/Gnosis-MedPolicy-12B at v0.4 (revision="v0.4"). This card mirrors the base model card for the full description, evaluation, lineage, intended use, and license; the base repo is canonical.
This build: GGUF (Q4_0 + Q8_0)
For llama.cpp and llama.cpp-based runtimes (LM Studio, Ollama).
File
Quant
Notes
Gnosis-MedPolicy-12B-v0.4.Q4_0.gguf
Q4_0 (~7GB)
recommended low-footprint build
Gnosis-MedPolicy-12B-v0.4.Q8_0.gguf
Q8_0 (~13GB)
near-lossless, larger
Q4_0 is the exact GGUF format Google officially ships for their gemma-4 base model, and it is functionally equivalent to the W4A16 int4 scheme gemma-4's QAT was trained with - so Q4_0 is the recommended build despite being 4-bit. Q8_0 is offered as a near-lossless option.
Gnosis is a family of custom models trained to operate in the RLM (Recursive Language Model)
pattern inside the prehend harness: long context is offloaded
into a variable in a REPL and the model writes programs that slice, search, and recursively query it
instead of attending over it directly. Gnosis-MedPolicy is the medical-policy / billing
decomposition specialty.
This repo's current release is v0.4 (tag). Address a specific version with
revision="v0.4".
What v0.4 is
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:
v0.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.
Evaluation (full held-out, baseline arm, prehend RLM harness on vLLM)
Eval set: 200 fresh synthetic corpus-NIAH tasks (needle codes disjoint from training) + 40 real
ICD-10 tasks. 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%
Honest read: the headline gain is on real ICD-10 grounded-correct (17.5% -> 35.9%), the item
class where confabulation of plausible-but-wrong codes was the dominant failure - exactly what the
span-masked confab objective was built to cut, and it did so without regressing synthetic grounding
(+3.7pp), tool-misuse (down again), or output degradation (2.0%). ICD is small-n (n=39), so treat the
magnitude as directional rather than individually significant; the synthetic gain is modest and
confabulation remains the dominant failure mode in absolute terms. Eval used the baseline arm only.
This repo & quantizations
This repo holds the full-precision (bf16) PRE-SLERP fine-tune base (Gemma4ForConditionalGeneration)
i.e. the direct span-masked-DPO output, the correct base for further fine-tuning or re-quantization.
The served W4A16 quant is a SLERP'd deployment build (fine-tune SLERP-merged with the QAT model to
recover instruct behavior); it is a distinct lineage from main, not a re-quant of these weights.
Repo
Format
Use
gnosis-lm/Gnosis-MedPolicy-12B
bf16 safetensors (pre-SLERP)
canonical fine-tune base; load with transformers, re-quantize/continue-train from here
Built to run as the inference/orchestrator inside the prehend RLM harness over offloaded long context;
it is not a general chat model and is evaluated on retrieval-grounded decomposition. Absolute
grounded-correct is still modest and confabulation remains the dominant failure mode. Eval used the
baseline 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.
License
apache-2.0, inherited from the google/gemma-4 lineage (the Gemma 4 family is released under
Apache-2.0).
Citation / provenance
Trained with the rlm-trainer stack; evaluated with
prehend. Family naming and packaging convention: org
gnosis-lm, one repo per specialty+size, version as a git tag.