Text Generation
Transformers
Safetensors
English
qwen3
medical
clinical
biomedical
instruction-following
tool-calling
function-calling
from-scratch
KOS-V5
university-of-kentucky
university-of-louisville
ccts
conversational
text-generation-inference
Instructions to use Kentucky-Open-Science/KOS-V5-Instruct with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Kentucky-Open-Science/KOS-V5-Instruct with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Kentucky-Open-Science/KOS-V5-Instruct") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Kentucky-Open-Science/KOS-V5-Instruct") model = AutoModelForCausalLM.from_pretrained("Kentucky-Open-Science/KOS-V5-Instruct", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Kentucky-Open-Science/KOS-V5-Instruct with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Kentucky-Open-Science/KOS-V5-Instruct" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Kentucky-Open-Science/KOS-V5-Instruct", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Kentucky-Open-Science/KOS-V5-Instruct
- SGLang
How to use Kentucky-Open-Science/KOS-V5-Instruct with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "Kentucky-Open-Science/KOS-V5-Instruct" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Kentucky-Open-Science/KOS-V5-Instruct", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "Kentucky-Open-Science/KOS-V5-Instruct" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Kentucky-Open-Science/KOS-V5-Instruct", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Kentucky-Open-Science/KOS-V5-Instruct with Docker Model Runner:
docker model run hf.co/Kentucky-Open-Science/KOS-V5-Instruct
Card: Catbird logo + intro, official BFCL results
Browse files
README.md
CHANGED
|
@@ -21,6 +21,8 @@ tags:
|
|
| 21 |
- clinical
|
| 22 |
- biomedical
|
| 23 |
- instruction-following
|
|
|
|
|
|
|
| 24 |
- from-scratch
|
| 25 |
- qwen3
|
| 26 |
- KOS-V5
|
|
@@ -29,6 +31,10 @@ tags:
|
|
| 29 |
- ccts
|
| 30 |
---
|
| 31 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 32 |
# KOS-V5-Instruct Β· *"Catbird"*
|
| 33 |
|
| 34 |
**Developed by**
|
|
@@ -40,6 +46,20 @@ tags:
|
|
| 40 |
**University of Louisville**
|
| 41 |
- [Kentucky Center for Digital Innovation](https://centers.louisville.edu/kentucky-center-digital-innovation)
|
| 42 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 43 |
> β οΈ **Research use only.** This model is provided for research purposes only and must not be used for any
|
| 44 |
> commercial, clinical, legal, or production-grade application. The user assumes all risks associated with its use.
|
| 45 |
|
|
@@ -47,12 +67,8 @@ tags:
|
|
| 47 |
|
| 48 |
---
|
| 49 |
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
**KOS-V5 "Catbird"** line β a **medical** model line whose base ranks **first of 17** at modelling held-out
|
| 53 |
-
clinical text, built on [**KOS-V5-Base**](https://huggingface.co/Kentucky-Open-Science/KOS-V5-Base)
|
| 54 |
-
(235.2B tokens, single epoch). Its instruction ability comes from **GRPO reinforcement learning** against the
|
| 55 |
-
*official* IFEval verifier.
|
| 56 |
|
| 57 |
**IFEval reported as strict-avg** = `(prompt-level strict + instruction-level strict) / 2` β the exact metric the
|
| 58 |
Hugging Face Open LLM Leaderboard publishes as "IFEval."
|
|
@@ -64,9 +80,10 @@ Hugging Face Open LLM Leaderboard publishes as "IFEval."
|
|
| 64 |
| **61.6** | [KOS-V4-Instruct](https://huggingface.co/Kentucky-Open-Science/KOS-V4-Instruct) (previous generation) | University research team, 180B tokens, 24 GPUs |
|
| 65 |
| 55.9 | GPT-3.5-turbo-1106 (the original ChatGPT) | OpenAI, ~10,000-GPU supercomputer |
|
| 66 |
|
| 67 |
-
KOS-V5-Instruct **improves on KOS-V4-Instruct
|
| 68 |
-
|
| 69 |
-
|
|
|
|
| 70 |
|
| 71 |
## Core specifications
|
| 72 |
|
|
@@ -166,6 +183,25 @@ subjects are where it is strongest.
|
|
| 166 |
| IFEval inst-loose | 0.7434 | 0.6882 | +0.055 |
|
| 167 |
| **MMLU (57-subj, 5-shot, `acc`)** | **0.3720** | 0.2782 | **+0.094** |
|
| 168 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 169 |
**Cross-engine reproduction.** IFEval strict-avg measured **67.01** (vLLM backend) and **66.99** (HuggingFace
|
| 170 |
backend, pristine harness) in two independent runs seven days apart β a **0.02-point** agreement across two
|
| 171 |
inference engines and two harness builds. Both figures are reported; the difference is far below the benchmark's
|
|
@@ -224,10 +260,11 @@ English benchmarks, which understates their designed capability.
|
|
| 224 |
|
| 225 |
> These are disclosed deliberately. A high IFEval score does not make this checkpoint production-ready.
|
| 226 |
|
| 227 |
-
- **Tool / function calling
|
| 228 |
-
|
| 229 |
-
|
| 230 |
-
|
|
|
|
| 231 |
- **Fabrication roughly doubled** on our internal gate (**14.4% β 28%**) during GRPO. That gate is itself under
|
| 232 |
review because it measures on pretraining-distribution text, so the magnitude is uncertain β but the direction
|
| 233 |
is a real concern and is the main reason this artifact is private.
|
|
|
|
| 21 |
- clinical
|
| 22 |
- biomedical
|
| 23 |
- instruction-following
|
| 24 |
+
- tool-calling
|
| 25 |
+
- function-calling
|
| 26 |
- from-scratch
|
| 27 |
- qwen3
|
| 28 |
- KOS-V5
|
|
|
|
| 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**
|
|
|
|
| 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 GRPO reinforcement learning.
|
| 54 |
+
|
| 55 |
+
Unlike the base, this model **follows instructions**. 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, a native bird to Kentucky, the Gray
|
| 59 |
+
Catbird (*Dumetella carolinensis*) is a medium-sized songbird famous for its distinct, cat-like "meow"
|
| 60 |
+
call. This LLM was trained completely from scratch by teams from the University of Kentucky (Cat) and
|
| 61 |
+
University of Louisville (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 |
|
|
|
|
| 67 |
|
| 68 |
---
|
| 69 |
|
| 70 |
+
Its instruction ability comes from **GRPO reinforcement learning** against the *official* IFEval verifier, on a
|
| 71 |
+
base that ranks **first of 17** at modelling held-out clinical text.
|
|
|
|
|
|
|
|
|
|
|
|
|
| 72 |
|
| 73 |
**IFEval reported as strict-avg** = `(prompt-level strict + instruction-level strict) / 2` β the exact metric the
|
| 74 |
Hugging Face Open LLM Leaderboard publishes as "IFEval."
|
|
|
|
| 80 |
| **61.6** | [KOS-V4-Instruct](https://huggingface.co/Kentucky-Open-Science/KOS-V4-Instruct) (previous generation) | University research team, 180B tokens, 24 GPUs |
|
| 81 |
| 55.9 | GPT-3.5-turbo-1106 (the original ChatGPT) | OpenAI, ~10,000-GPU supercomputer |
|
| 82 |
|
| 83 |
+
KOS-V5-Instruct **improves on KOS-V4-Instruct across every benchmark measured**: IFEval strict-avg
|
| 84 |
+
**61.6 β 67.01** (+5.4), MMLU **0.2782 β 0.3720** (+9.4), and official BFCL function-calling
|
| 85 |
+
**72.75/73.00/60.50 β 83.25/78.50/73.50** (+10.5 / +5.5 / +13.0). It clears both the original GPT-3.5-turbo
|
| 86 |
+
generation and the commercially trained Qwen2.5-3B on instruction following.
|
| 87 |
|
| 88 |
## Core specifications
|
| 89 |
|
|
|
|
| 183 |
| IFEval inst-loose | 0.7434 | 0.6882 | +0.055 |
|
| 184 |
| **MMLU (57-subj, 5-shot, `acc`)** | **0.3720** | 0.2782 | **+0.094** |
|
| 185 |
|
| 186 |
+
### Tool / function calling β official BFCL
|
| 187 |
+
|
| 188 |
+
Measured with the **official `bfcl_eval`** suite in **FC (function-calling) mode**, non-live categories, the model
|
| 189 |
+
prompted in its own native tool format and served via vLLM.
|
| 190 |
+
|
| 191 |
+
| BFCL (official, FC mode) | **KOS-V5-Instruct** | KOS-V4-Instruct | Ξ |
|
| 192 |
+
| :-- | --: | --: | --: |
|
| 193 |
+
| simple *(n=400)* | **83.25** | 72.75 | **+10.50** |
|
| 194 |
+
| multiple *(n=200)* | **78.50** | 73.00 | **+5.50** |
|
| 195 |
+
| parallel *(n=200)* | **73.50** | 60.50 | **+13.00** |
|
| 196 |
+
|
| 197 |
+
**KOS-V5-Instruct improves on the published KOS-V4-Instruct on all three BFCL categories.** Tool calling was not
|
| 198 |
+
a target of the GRPO objective β the reward ran the IFEval checker only β so this is carried capability from the
|
| 199 |
+
SFT stage, not something the RL optimised for.
|
| 200 |
+
|
| 201 |
+
> **Engine note.** These BFCL numbers come from the official `bfcl_eval` harness on a **vLLM** backend, whereas
|
| 202 |
+
> the IFEval and MMLU figures on this card come from the HuggingFace backend of a pristine lm-evaluation-harness.
|
| 203 |
+
> Both are official suites; they are not the same inference stack, and that is stated rather than blurred.
|
| 204 |
+
|
| 205 |
**Cross-engine reproduction.** IFEval strict-avg measured **67.01** (vLLM backend) and **66.99** (HuggingFace
|
| 206 |
backend, pristine harness) in two independent runs seven days apart β a **0.02-point** agreement across two
|
| 207 |
inference engines and two harness builds. Both figures are reported; the difference is far below the benchmark's
|
|
|
|
| 260 |
|
| 261 |
> These are disclosed deliberately. A high IFEval score does not make this checkpoint production-ready.
|
| 262 |
|
| 263 |
+
- **Tool / function calling is measured and improved** β see the BFCL table above. It does score below the
|
| 264 |
+
*SFT seed's* previously reported 87.0 on `multiple`; that 87.0 is a number our own records have since
|
| 265 |
+
declared **invalid** (it was inflated by benchmark contamination and collapsed to 7.0 once the affected
|
| 266 |
+
records were removed), so it is not a meaningful reference point. Against the **published** KOS-V4-Instruct
|
| 267 |
+
figures, this model is better on all three categories.
|
| 268 |
- **Fabrication roughly doubled** on our internal gate (**14.4% β 28%**) during GRPO. That gate is itself under
|
| 269 |
review because it measures on pretraining-distribution text, so the magnitude is uncertain β but the direction
|
| 270 |
is a real concern and is the main reason this artifact is private.
|