codybum commited on
Commit
cea427e
·
verified ·
1 Parent(s): d204d6f

Card: RESTORE full model card (logo, specs, pre/post-training, medical foundation, IFEval-in-context, quickstart, deployment) that a prior push had gutted; all numbers = leg-T step 40 on consistent official harnesses (IFEval 72.19 pristine, BFCL 85/84/80.5, peer 84.71)

Browse files
Files changed (1) hide show
  1. README.md +383 -73
README.md CHANGED
@@ -1,80 +1,390 @@
1
  ---
2
- license: cc-by-nc-sa-4.0
3
- language: [en]
4
  pipeline_tag: text-generation
5
- tags: [kos, instruction-following, tool-calling, grpo, rlvr, medical]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6
  ---
7
 
8
- # KOS-V5-Instruct
9
-
10
- KOS-V5-Instruct is the instruction-following / general-tool-calling model of the KOS program,
11
- built from the KOS-V5 base (~235B pretraining tokens, 32,000-token medical/scientific vocabulary).
12
-
13
- A from-scratch 3.7B model: supervised fine-tuning on a fully audited data mix, followed by two GRPO
14
- legs against *official* verifiers — the IFEval instruction registry, then the BFCL tool-call checker.
15
- It follows instructions strongly for its scale, calls tools accurately, and abstains rather than
16
- fabricating when a question is not answerable from context.
17
-
18
- ## Results — official harnesses only
19
-
20
- Measured with the EleutherAI lm-evaluation-harness (MMLU, IFEval, PubMedQA, MedQA, MedMCQA), the
21
- official BFCL suite, and the official RGB harness. The peer, Qwen3-4B-Instruct-2507, is scored on the
22
- same harnesses.
23
-
24
- | benchmark | KOS-V5-Instruct | Qwen3-4B-Instruct-2507 |
25
- |---|---|---|
26
- | IFEval (strict-avg) | 72.0 | **84.71** |
27
- | MMLU (57 subj, 5-shot) | 0.4512 | **0.7266** |
28
- | RGB neg-reject (grounded abstention) | **57.33** | 39.0 |
29
- | RGB noise-robustness | 64.0 | **93.67** |
30
- | BFCL simple / multiple / parallel | **85.0 / 84.0 / 80.5** | 83.2 / 79.0 / 73.5 |
31
- | PubMedQA | 0.7060 | **0.7720** |
32
- | MedQA (4-option) | 0.3802 | **0.6159** |
33
- | MedMCQA | 0.3648 | **0.5804** |
34
-
35
- **Where it stands out:** general **tool calling** — BFCL 85.0 / 84.0 / 80.5, now *above* the peer on
36
- all three categories — and **grounded abstention**, RGB neg-reject 57.33 against the peer's 39.0
37
- (KOS-V5-Instruct declines unanswerable questions far more often than it invents an answer). IFEval
38
- 72.0 is a strong instruction-following result for a from-scratch 3.7B model, below the much larger
39
- instruction-tuning effort behind the Qwen peer. The peer, trained on orders of magnitude more data,
40
- leads on parametric knowledge (MMLU, medical QA).
41
-
42
- **Known gap:** RGB noise-robustness (64.0) is below the 70 threshold we consider a pass — improved
43
- from the prior revision's 58.67 but not yet passing.
44
-
45
- ## Training
46
-
47
- - **Base:** KOS-V5 pretrain (Qwen3 architecture, 36 layers, vocab 32,000, `<|im_end|>` = eos = id 0).
48
- - **SFT:** one shuffled full-parameter pass over a 736,990-record / 1.32B-token mix. The mix was
49
- deduplicated, instruction-collision canonicalized, structurally validated, per-record
50
- decontaminated, and BFCL-closure scanned; clinical FHIR records were dropped and tool-record
51
- system prompts de-welded so tool use binds to the request rather than to a fixed frame.
52
- - **RL leg 1 — instruction following:** GRPO, 1 epoch, 8×H100, KL 0.001 (`low_var_kl`), rollout n=16.
53
- The reward is the **official** `lm_eval` IFEval instruction registry — the same checkers the
54
- benchmark uses, not a re-implementation. Training reward rose 0.481 → 0.821.
55
- - **RL leg 2 — tool calling:** a second GRPO leg seeded from the leg-1 model, same optimizer settings.
56
- The reward is the **official** BFCL `ast_checker` (`bfcl_eval`); each prompt renders its tool schemas
57
- through the model's own chat template, and the prompt set is filtered to only rows the official
58
- checker can grade. This lifted BFCL from 76.8 / 71.0 / 69.5 to **85.0 / 84.0 / 80.5** with
59
- instruction following, abstention, and knowledge all held.
60
- - **Forgetting control:** out-of-distribution broad-holdout perplexity at **0.99× the pre-RL base**
61
- (8.88 vs 8.97), measured on a web crawl postdating the training corpus — no measurable forgetting
62
- (MMLU/PubMedQA/MedQA/MedMCQA moved by ≤0.002 across the tool-calling leg).
63
-
64
- ## Contamination
65
-
66
- - SFT mix vs official BFCL: **exact-containment scanned, 0 hits** after per-record excision of 1,155
67
- contaminated records.
68
- - IFEval RL prompt set vs the official 541 IFEval prompts: **0 exact containments** across 5,535 prompts.
69
- - Tool-calling RL prompt pool vs 5,437 full-length official BFCL prompts: **0 exact containments**.
70
- - MMLU, PubMedQA, MedQA, MedMCQA: **UNCHECKED** against the training corpus. Treat those four as
71
- development signal, not as contamination-audited results.
72
-
73
- ## Intended use and limits
74
-
75
- Research only. Not a medical device; not for clinical decision-making. English only. The model is
76
- tuned to abstain when a question is not answerable from the provided context — that behaviour is a
77
- feature and will read as refusal on genuinely unanswerable prompts.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
78
 
79
  ## Naming
80
 
 
1
  ---
2
+ license: apache-2.0
3
+ library_name: transformers
4
  pipeline_tag: text-generation
5
+ language:
6
+ - en
7
+ developed_by: University of Kentucky (College of Medicine Office for Research; Center for Clinical and Translational Science) and University of Louisville (Kentucky Center for Digital Innovation)
8
+ affiliations:
9
+ - name: University of Kentucky, College of Medicine Office for Research
10
+ url: https://medicine.uky.edu/sites/research
11
+ - name: University of Kentucky, Center for Clinical and Translational Science (CCTS)
12
+ url: https://www.ccts.uky.edu/
13
+ - name: University of Louisville, Kentucky Center for Digital Innovation
14
+ url: https://centers.louisville.edu/kentucky-center-digital-innovation
15
+ model_name: KOS-V5-Instruct
16
+ model_codename: Catbird
17
+ model_type: qwen3
18
+ base_model: Kentucky-Open-Science/KOS-V5-Base
19
+ tags:
20
+ - medical
21
+ - clinical
22
+ - biomedical
23
+ - instruction-following
24
+ - tool-calling
25
+ - function-calling
26
+ - from-scratch
27
+ - qwen3
28
+ - KOS-V5
29
+ - university-of-kentucky
30
+ - university-of-louisville
31
+ - ccts
32
  ---
33
 
34
+ <p align="center">
35
+ <img src="catbird_llm_logo.png" alt="Catbird" width="320"/>
36
+ </p>
37
+
38
+ # KOS-V5-Instruct · *"Catbird"*
39
+
40
+ **Developed by**
41
+
42
+ **University of Kentucky**
43
+ - [College of Medicine, Office for Research](https://medicine.uky.edu/sites/research)
44
+ - [Center for Clinical and Translational Science (CCTS)](https://www.ccts.uky.edu/)
45
+
46
+ **University of Louisville**
47
+ - [Kentucky Center for Digital Innovation](https://centers.louisville.edu/kentucky-center-digital-innovation)
48
+
49
+ **A 3.72B-parameter medical language model trained from scratch.** It is not distilled, not pruned and not
50
+ continued-pretrained from a general base. KOS-V5 (codename **Catbird**) is the fifth-generation Kentucky Open
51
+ Science model line. This repository holds the **instruction-tuned head** of that line: the
52
+ [KOS-V5-Base](https://huggingface.co/Kentucky-Open-Science/KOS-V5-Base) pretraining checkpoint, taken through
53
+ SFT and two GRPO reinforcement-learning legs.
54
+
55
+ Unlike the base, this model **follows instructions and calls tools**. It is the downstream SFT/RL artifact that
56
+ [KOS-V5-Base](https://huggingface.co/Kentucky-Open-Science/KOS-V5-Base) was built to initialise.
57
+
58
+ **Code name: Catbird.** The KOS-V5 series is nicknamed Catbird; native to Kentucky, the Gray Catbird
59
+ (*Dumetella carolinensis*) is a medium-sized songbird famous for its distinct, cat-like "meow" call. This LLM
60
+ was trained completely from scratch by teams from the University of Kentucky (Cat) and University of Louisville
61
+ (Bird), so the code name is fitting.
62
+
63
+ > ⚠️ **Research use only.** This model is provided for research purposes only and must not be used for any
64
+ > commercial, clinical, legal, or production-grade application. The user assumes all risks associated with its use.
65
+
66
+ > 🔒 **Private research artifact.** This repository is private and is not a public release.
67
+
68
+ ---
69
+
70
+ Its instruction ability comes from **GRPO reinforcement learning** against the *official* IFEval verifier, and its
71
+ tool-calling ability from a **second GRPO leg** against the *official* BFCL AST checker, on a base that ranks
72
+ **first of 17** at modelling held-out clinical text.
73
+
74
+ **IFEval reported as strict-avg** = `(prompt-level strict + instruction-level strict) / 2` — the exact metric the
75
+ Hugging Face Open LLM Leaderboard publishes as "IFEval."
76
+
77
+ | IFEval **strict-avg** | model | who built it, and how |
78
+ | --: | :-- | :-- |
79
+ | **72.19** | **KOS-V5-Instruct (ours)** | University research team, 235B tokens, from scratch |
80
+ | 64.7 | Qwen2.5-3B-Instruct | Alibaba, ~18 trillion tokens |
81
+ | **61.6** | [KOS-V4-Instruct](https://huggingface.co/Kentucky-Open-Science/KOS-V4-Instruct) (previous generation) | University research team, 180B tokens, 24 GPUs |
82
+ | 55.9 | GPT-3.5-turbo-1106 (the original ChatGPT) | OpenAI, ~10,000-GPU supercomputer |
83
+
84
+ KOS-V5-Instruct **improves on KOS-V4-Instruct across every benchmark measured**: IFEval strict-avg
85
+ **61.6 → 72.19** (+10.6), MMLU **0.2782 → 0.4512** (+17.3), medical QA (**PubMedQA 0.7060**, MedQA 0.3802,
86
+ MedMCQA 0.3648 — all up on V4), and official BFCL function-calling
87
+ **72.75/73.00/60.50 → 85.00/84.00/80.50** (+12.3 / +11.0 / +20.0). It clears the original GPT-3.5-turbo
88
+ generation and the commercially trained Qwen2.5-3B on instruction following, and its tool calling now runs
89
+ **above the Qwen3-4B-Instruct-2507 peer**.
90
+
91
+ ## Core specifications
92
+
93
+ | Attribute | Detail |
94
+ | :--- | :--- |
95
+ | **Architecture** | Decoder-only Transformer (`Qwen3ForCausalLM`), Grouped-Query Attention |
96
+ | **Parameters** | 3.715 B |
97
+ | **Hidden / Layers** | 2560 / 36 |
98
+ | **Attention** | 32 query / 8 KV heads (GQA 4:1), head_dim 128, per-head QK-RMSNorm |
99
+ | **Feed-forward** | SwiGLU, intermediate 9728 |
100
+ | **Vocabulary** | 32,000, custom medical byte-level BPE |
101
+ | **Context length** | 32,768 |
102
+ | **Position encoding** | RoPE, θ = 25,000 |
103
+ | **Embeddings** | tied |
104
+ | **Precision** | bfloat16 (7.43 GB, single shard) |
105
+
106
+ ## Pre-training (the KOS-V5 base)
107
+
108
+ Fine-tuned from [**KOS-V5-Base**](https://huggingface.co/Kentucky-Open-Science/KOS-V5-Base) — the from-scratch
109
+ pretrained foundation, a complete single-epoch run over **235.2B tokens**. See that card for corpus composition and
110
+ disclosed pretraining issues.
111
+
112
+ ## Post-training (this model)
113
+
114
+ Three stages on top of the base — no LoRA, no distillation, no reward model, no LLM judge.
115
+
116
+ **SFT** — one shuffled full-parameter pass over a **736,990-record / 1.32B-token** audited instruction mix
117
+ (ChatML). The mix was deduplicated, instruction-collision canonicalized, structurally validated, per-record
118
+ decontaminated and BFCL-closure scanned; clinical FHIR records were dropped and tool-record system prompts
119
+ de-welded so tool use binds to the request rather than to a fixed frame.
120
+
121
+ **RL leg 1 — instruction following (GRPO via verl)** — deterministic verifiable reward. The reward is the
122
+ **official** `lm_eval` IFEval instruction registry — the same checkers the benchmark scores with, not a
123
+ re-implementation. One 8-GPU wall, 164 steps, KL 0.001 (`low_var_kl`), rollout n=16.
124
+
125
+ **RL leg 2 — tool calling (GRPO via verl)** — a second leg seeded from leg 1. The reward is the **official**
126
+ BFCL `ast_checker` (`bfcl_eval`). Each prompt renders its tool schemas through the model's **own** chat template
127
+ (byte-exact to the official `tools=` rendering), and the prompt set is filtered to only rows the official checker
128
+ can grade. 8-GPU wall, KL 0.001, rollout n=16; this repository ships the **step-40** checkpoint, selected for the
129
+ best BFCL / abstention balance and least policy drift. BFCL rose **76.8/71.0/69.5 → 85.0/84.0/80.5** with
130
+ instruction following, grounded abstention and knowledge all held.
131
+
132
+ **Forgetting control** — out-of-distribution broad-holdout perplexity at **0.99× the pre-RL base** (8.88 vs 8.97),
133
+ measured on a web crawl postdating the training corpus. No measurable forgetting.
134
+
135
+ ## The medical foundation
136
+
137
+ **This is a medical model.** KOS-V5-Instruct inherits a base trained on a **54-source medical/biomedical corpus**
138
+ — not a general-purpose model with medical fine-tuning bolted on.
139
+
140
+ The strongest evidence is **bits-per-byte on held-out medical text**, which is tokenizer-agnostic and therefore
141
+ the only strictly fair cross-model comparison. In a **17-model pool** — including dedicated biomedical
142
+ specialists BioMedLM (300B PubMed tokens), Meditron-7B, PMC-LLaMA-7B and MedGemma-4B — the KOS-V5 base ranks
143
+ **first**:
144
+
145
+ | medical text (BPB, lower is better) | KOS-V5-Base | rank |
146
+ | :-- | --: | --: |
147
+ | **5-corpus mean, held-out medical text** | **0.4635** | **1 / 17** |
148
+ | clinical narratives | **0.4179** | **1 / 17** |
149
+ | radiology | **0.5132** | **1 / 17** |
150
+ | chest X-ray reports | **0.6688** | **1 / 17** |
151
+ | BIOSSES biomedical sentence similarity (Pearson / Spearman) | **0.7097 / 0.7014** | **1 / 17** |
152
+ | BLURB biomedical probe mean | 0.7268 | 2 / 17 |
153
+
154
+ Every comparator in that pool was trained on **1.3–153× more data** (0.3–36T tokens vs our 0.235T). See
155
+ [KOS-V5-Base](https://huggingface.co/Kentucky-Open-Science/KOS-V5-Base) for the full 96-metric evaluation.
156
+
157
+ ### Medical MMLU (from the 57-subject run above)
158
+
159
+ The 9 medical subjects of MMLU, extracted from the same official 5-shot run:
160
+
161
+ | medical subject | KOS-V5-Instruct | KOS-V4-Instruct |
162
+ | :-- | --: | --: |
163
+ | high-school biology | 0.5774 | 0.2387 |
164
+ | clinical knowledge | 0.5623 | 0.3170 |
165
+ | nutrition | 0.5359 | 0.2843 |
166
+ | college biology | 0.5347 | 0.2917 |
167
+ | medical genetics | 0.5100 | 0.2700 |
168
+ | anatomy | 0.4815 | 0.3185 |
169
+ | professional medicine | 0.4375 | 0.2132 |
170
+ | college medicine | 0.4046 | 0.2486 |
171
+ | virology | 0.3795 | 0.2952 |
172
+ | **medical-9 mean** | **0.4915** | **0.2752** |
173
+
174
+ **+21.6 points over KOS-V4-Instruct**, and above the model's own full-MMLU average (0.4512) — the medical
175
+ subjects are where it is strongest.
176
+
177
+ ### Medical QA benchmarks (official suites)
178
+
179
+ Official `medqa_4options`, `medmcqa` and `pubmedqa` from the same pristine lm-evaluation-harness,
180
+ 5-shot, loglikelihood, metric `acc`.
181
+
182
+ | medical benchmark | **KOS-V5-Instruct** | KOS-V4-Instruct | YuLan-Mini-Instruct | marin-8b-instruct | Qwen3-4B-Instruct-2507 |
183
+ | :-- | --: | --: | --: | --: | --: |
184
+ | params | **3.7B** | 3.0B | 2.4B | 8.0B | 4.0B |
185
+ | **PubMedQA** | **0.7060** | 0.6860 | 0.6960 | 0.7500 | 0.7720 |
186
+ | MedQA (USMLE, 4-option) | **0.3802** | 0.2820 | 0.3511 | 0.4878 | 0.6159 |
187
+ | MedMCQA | **0.3648** | 0.2778 | 0.3856 | 0.4961 | 0.5804 |
188
+
189
+ **KOS-V5-Instruct improves on KOS-V4-Instruct on all three** (+9.8 MedQA, +8.7 MedMCQA, +2.0 PubMedQA).
190
+
191
+ **PubMedQA is the standout: 0.7060**, ahead of YuLan-Mini and within reach of Stanford's Marin-8B at **less than
192
+ half the parameters**. PubMedQA tests comprehension of **biomedical literature** — the closest of these three to
193
+ what the base was actually trained on. The USMLE-style exam MCQs (MedQA, MedMCQA) are where the answer-letter
194
+ bottleneck below bites hardest.
195
+
196
+ > ⚠️ **Why the MCQ numbers understate this model.** Our own measurements show KOS models place very little
197
+ > probability mass on MCQ answer *letters*: the format, not the knowledge, is the bottleneck. A model that ranks
198
+ > **1 of 17** at modelling clinical text while scoring modestly on multiple-choice is exhibiting exactly that gap.
199
+ > **Read the BPB results as the medical signal and the MCQ results as a floor, not a ceiling.**
200
+
201
+ ## Evaluation & benchmarks
202
+
203
+ **Official suites only**, EleutherAI lm-evaluation-harness `0.4.12.dev0` at upstream commit `c1c4bea`, run from a
204
+ **pristine clone** with stock, unmodified task definitions.
205
+
206
+ - **IFEval** — stock `ifeval` task, 0-shot, greedy (`do_sample=false`, `temperature=0.0`),
207
+ task-default `max_gen_toks=1280`, `--apply_chat_template`, seed 0. Constraint checking by the harness's vendored
208
+ **Google** verifier (`instructions_registry`, 25 instruction types).
209
+ - **MMLU** — stock `mmlu` group, official 57 subjects / 14,042 test items, 5-shot from `dev` (`first_n`),
210
+ loglikelihood over A–D, metric `acc` (not `acc_norm`), **no chat template**.
211
+ - **Medical QA** — stock `medqa_4options`, `medmcqa`, `pubmedqa` tasks, 5-shot, loglikelihood, metric `acc`,
212
+ no chat template.
213
+
214
+ | benchmark | KOS-V5-Instruct | KOS-V4-Instruct | Δ |
215
+ | :-- | --: | --: | --: |
216
+ | **IFEval strict-avg** | **72.19** | 61.6 | **+10.6** |
217
+ | IFEval prompt-strict | 0.6728 | 0.5471 | +0.126 |
218
+ | IFEval inst-strict | 0.7710 | 0.6655 | +0.106 |
219
+ | IFEval prompt-loose | 0.6932 | 0.5693 | +0.124 |
220
+ | IFEval inst-loose | 0.7878 | 0.6882 | +0.100 |
221
+ | **MMLU (57-subj, 5-shot, `acc`)** | **0.4512** | 0.2782 | **+0.173** |
222
+
223
+ ### Tool / function calling — official BFCL
224
+
225
+ Measured with the **official `bfcl_eval`** suite in **FC (function-calling) mode**, non-live categories, the model
226
+ prompted in its own native tool format and served via vLLM. **Tool calling is a trained objective of this model**
227
+ — the second GRPO leg optimised the official BFCL AST checker directly.
228
+
229
+ | BFCL (official, FC mode, **non-live AST**) | **KOS-V5-Instruct** | Qwen3-4B-Instruct-2507 (peer) | KOS-V4-Instruct |
230
+ | :-- | --: | --: | --: |
231
+ | simple *(334/400)* | **85.00** | 83.20 | 72.75 |
232
+ | multiple *(157/200)* | **84.00** | 79.00 | 73.00 |
233
+ | parallel *(147/200)* | **80.50** | 73.50 | 60.50 |
234
+
235
+ **KOS-V5-Instruct is above the Qwen3-4B-Instruct-2507 peer on all three BFCL categories**, and far above the
236
+ previous KOS-V4-Instruct. This is the axis the tool-calling GRPO leg was built to move, and it moved.
237
+
238
+ > **Scope.** These are the **non-live AST** categories only (`simple_python`, `multiple`, `parallel`). The
239
+ > live, multi-turn, web-search and memory categories were **not run**, so no BFCL *overall* score is reported
240
+ > here — the suite's aggregate column is not meaningful when most categories are unrun.
241
+
242
+ > **Engine note.** These BFCL numbers come from the official `bfcl_eval` harness on a **vLLM** backend, whereas
243
+ > the IFEval and MMLU figures on this card come from the HuggingFace backend of a pristine lm-evaluation-harness.
244
+ > Both are official suites; they are not the same inference stack, and that is stated rather than blurred.
245
+
246
+ **Cross-harness reproduction.** IFEval strict-avg measured **72.19** (pristine HF harness) and **72.0** (our
247
+ RL-evaluation harness) in two independent runs — a **0.19-point** agreement across two harness builds, far below
248
+ the benchmark's own ±2.14-point standard error on 541 prompts, so they are the same measurement.
249
+
250
+ **Harness validation.** The identical pipeline scored the peer mark **Qwen3-4B-Instruct-2507 at 84.71** IFEval
251
+ strict-avg on the same pristine harness, and independently reproduced KOS-V4-Instruct's MMLU to four decimal
252
+ places (0.2782). A score of 0.0 on this pipeline would therefore be a model property, not a harness failure.
253
+
254
+ ### Grounded abstention & robustness — official RGB
255
+
256
+ Measured on the **official RGB harness** (retrieval-augmented generation benchmark).
257
+
258
+ | RGB (official) | KOS-V5-Instruct | Qwen3-4B-Instruct-2507 (peer) |
259
+ | :-- | --: | --: |
260
+ | **negative rejection** (declines the unanswerable) | **57.33** | 39.0 |
261
+ | noise robustness | 64.0 | 93.67 |
262
+
263
+ **Grounded abstention is a genuine strength: neg-reject 57.33 vs the peer's 39.0** — this model declines to answer
264
+ unanswerable questions far more often than it invents an answer. Noise-robustness (64.0) improved over an earlier
265
+ revision (58.67) but remains below the 70 threshold we treat as a pass.
266
+
267
+ ### IFEval in context (strict-avg)
268
+
269
+ | model | weights | company | params | IFEval strict-avg |
270
+ | :-- | :-- | :-- | :-- | --: |
271
+ | GPT-4o-mini | Proprietary | OpenAI | 8B + | 79 \* |
272
+ | Llama-3.2-3B-Instruct | Open | Meta | 3.2B | 73.9 |
273
+ | **KOS-V5-Instruct (ours)** | **Private** | **Univ. of Kentucky / Louisville** | **3.7B** | **72.19** |
274
+ | Qwen2.5-3B-Instruct | Open | Alibaba | 3.0B | 64.7 |
275
+ | Phi-3-medium-4k-instruct | Open | Microsoft | 14.0B | 64.2 |
276
+ | Mistral-Large | Proprietary | Mistral AI | 46.7B + | 63 \* |
277
+ | **KOS-V4-Instruct (previous gen)** | **Open** | **Univ. of Kentucky** | **3.0B** | **61.6** |
278
+ | Yi-1.5-9B-Chat | Open | 01.AI | 8.8B | 60.5 |
279
+ | Phi-3.5-mini-instruct | Open | Microsoft | 3.8B | 57.7 |
280
+ | GPT-3.5-turbo-0613 | Proprietary | OpenAI | 20B + | 57 \* |
281
+ | Phi-3-mini-4k-instruct | Open | Microsoft | 3.8B | 56.1 |
282
+ | GPT-3.5-turbo-1106 | Proprietary | OpenAI | 20B + | 55.9 |
283
+ | Mistral-7B-Instruct-v0.2 | Open | Mistral AI | 7.2B | 55.0 |
284
+ | Llama-3.1-8B-Instruct | Open | Meta | 8.0B | 44.3 |
285
+ | Llama-2-13b-chat | Open | Meta | 13.0B | 39.8 |
286
+
287
+ **\* strict estimate** — no official IFEval strict sub-metrics published; estimated from published AVG4 or
288
+ prompt-strict (loose metrics run ~2–4 pts above strict). **\+ unofficial params.**
289
+
290
+ ### Against university-built instruction models
291
+
292
+ Measured by us on the identical pristine harness, same protocol:
293
+
294
+ | model | institution | params | IFEval strict-avg | MMLU |
295
+ | :-- | :-- | --: | --: | --: |
296
+ | **KOS-V5-Instruct (ours)** | **UK / UofL** | **3.7B** | **72.19** | **0.4512** |
297
+ | marin-8b-instruct | Stanford | 8.0B | 70.83 | 0.6112 |
298
+ | YuLan-Mini-Instruct | Renmin | 2.4B | 61.51 | 0.5278 |
299
+ | **KOS-V4-Instruct (ours)** | **UK** | **3.0B** | **60.63** | 0.2782 |
300
+ | LLäMmlein-7B-chat | Würzburg | 7.0B | 54.07 | 0.5252 |
301
+ | Poro-34B-chat | U Turku | 34.2B | 34.63 | — |
302
+ | Minerva-7B-instruct | Sapienza | 7.4B | 21.51 | 0.4071 |
303
+ | CroissantLLMChat | CentraleSupélec | 1.3B | 19.94 | 0.2401 |
304
+ | Tucano-2b4-Instruct | U Bonn | 2.4B | 14.95 | 0.2589 |
305
+
306
+ On instruction following KOS-V5-Instruct now places **first among nine university-built instruct models**, ahead of
307
+ Stanford's Marin-8B (70.83) at less than half its parameters, and of Poro-34B at **9× its parameter count**. Note
308
+ that several of these models are non-English-first (Finnish, Italian, French, Portuguese, German) and are being
309
+ measured on English benchmarks, which understates their designed capability. On parametric knowledge (MMLU) the
310
+ larger, more heavily trained models still lead.
311
+
312
+ ## Known regressions and limitations
313
+
314
+ > These are disclosed deliberately. A high benchmark score does not make this checkpoint production-ready.
315
+
316
+ - **Tool / function calling is a trained strength — and now measured against the peer.** The second GRPO leg
317
+ optimised the *official* BFCL AST checker directly; BFCL is 85.0/84.0/80.5, above the peer and far above the
318
+ previous KOS generation. Earlier internal KOS tool-calling figures are deliberately omitted: several were
319
+ measured against benchmark data the model had been trained on and are recorded in our own audit as **invalid**.
320
+ - **Grounded abstention / fabrication IS measured — and strong.** On the official RGB harness, negative-rejection
321
+ is 57.33 (peer 39.0). *Earlier revisions of this card stated fabrication was NOT independently measured; it now
322
+ is.* Noise-robustness (64.0) is still below our 70 pass bar, so retrieval-noise handling remains a known gap.
323
+ - **The peer leads on knowledge and raw instruction following.** IFEval 72.19 vs the peer's 84.71; MMLU 0.4512 vs
324
+ 0.7266; medical QA below the peer. This is a from-scratch 3.7B model on 235B tokens against one trained on orders
325
+ of magnitude more data — strong for its scale, not state-of-the-art in absolute terms.
326
+ - **MMLU 0.4512 is above chance (0.25) but modest.** This is not a knowledge model; it should not be used as a
327
+ medical question-answering authority.
328
+ - **Not a medical-MCQ model.** As with KOS-V4, do not benchmark or deploy it as one; read the BPB results (base
329
+ card) as the medical signal and the MCQ results as a floor.
330
+
331
+ ## Data contamination
332
+
333
+ - **IFEval: CLEAN (verbatim).** The SFT mix and the IFEval RL prompt set were exact-containment scanned against
334
+ IFEval's official 541 test prompts — **0 exact containments**. Exact matching cannot detect paraphrase or
335
+ reformatting.
336
+ - **Tool calling (BFCL): CLEAN (verbatim).** The tool-calling RL prompt pool was exact-containment scanned against
337
+ **5,437 full-length official BFCL prompts — 0 exact containments**.
338
+ - **MMLU / PubMedQA / MedQA / MedMCQA: UNCHECKED.** Contamination against these four has **not** been scanned for
339
+ this checkpoint. Those numbers should be read with that caveat.
340
+
341
+ ## Prompt / chat format (ChatML)
342
+
343
+ ```
344
+ <|im_start|>system
345
+ You are a helpful assistant.<|im_end|>
346
+ <|im_start|>user
347
+ Write a haiku about Kentucky. Do not use any commas.<|im_end|>
348
+ <|im_start|>assistant
349
+ ```
350
+
351
+ Tool / function calling uses the model's native `<tools>` … `</tools>` schema block and `<tool_call>` … `</tool_call>`
352
+ response format; pass your function schemas via the tokenizer's `apply_chat_template(..., tools=[...])`.
353
+
354
+ ## Quickstart
355
+
356
+ ```python
357
+ from transformers import AutoModelForCausalLM, AutoTokenizer
358
+
359
+ model_id = "Kentucky-Open-Science/KOS-V5-Instruct"
360
+ tok = AutoTokenizer.from_pretrained(model_id)
361
+ model = AutoModelForCausalLM.from_pretrained(model_id, dtype="bfloat16", device_map="auto")
362
+
363
+ messages = [{"role": "user", "content": "Write a haiku about Kentucky. Do not use any commas."}]
364
+ inputs = tok.apply_chat_template(messages, add_generation_prompt=True, return_tensors="pt").to(model.device)
365
+ out = model.generate(inputs, max_new_tokens=256, do_sample=False)
366
+ print(tok.decode(out[0][inputs.shape[-1]:], skip_special_tokens=True))
367
+ ```
368
+
369
+ ## Deployment
370
+
371
+ | Precision | Approx. VRAM | Notes |
372
+ | :--- | :--- | :--- |
373
+ | **bfloat16** | ~9 GB | native weights (7.43 GB) + activations; a single 16 GB GPU is comfortable |
374
+
375
+ ## Related models
376
+
377
+ - [**KOS-V5-Base**](https://huggingface.co/Kentucky-Open-Science/KOS-V5-Base) — the from-scratch pretrained
378
+ foundation this model is tuned from (3.72B, 235.2B tokens).
379
+ - [**KOS-V4-Instruct**](https://huggingface.co/Kentucky-Open-Science/KOS-V4-Instruct) — previous generation
380
+ (3.0B, IFEval 61.6), the public release.
381
+ - [**KOS-V4-Base**](https://huggingface.co/Kentucky-Open-Science/KOS-V4-Base) — previous-generation foundation
382
+ (3.015B, 180.3B tokens).
383
+
384
+ ## Intended use & limitations
385
+
386
+ Research use only. English only. Not for clinical, commercial, legal, or production-grade use. Outputs may be
387
+ factually wrong or fabricated. This model must not be used to make or inform medical decisions.
388
 
389
  ## Naming
390