Text Generation
Transformers
Safetensors
English
qwen3
clinical
medical
instruction-following
tool-calling
function-calling
KOS-V4
from-scratch
conversational
text-generation-inference
Instructions to use Kentucky-Open-Science/KOS-V4-Instruct with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Kentucky-Open-Science/KOS-V4-Instruct with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Kentucky-Open-Science/KOS-V4-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-V4-Instruct") model = AutoModelForCausalLM.from_pretrained("Kentucky-Open-Science/KOS-V4-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-V4-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-V4-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-V4-Instruct", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Kentucky-Open-Science/KOS-V4-Instruct
- SGLang
How to use Kentucky-Open-Science/KOS-V4-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-V4-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-V4-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-V4-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-V4-Instruct", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Kentucky-Open-Science/KOS-V4-Instruct with Docker Model Runner:
docker model run hf.co/Kentucky-Open-Science/KOS-V4-Instruct
Commercial IFEval AVG4 baselines: tiered Verified/Reported/Estimate list with citations
Browse files
README.md
CHANGED
|
@@ -49,13 +49,13 @@ less data**, two orders of magnitude smaller. It reaches the original-ChatGPT ba
|
|
| 49 |
data and compute.
|
| 50 |
|
| 51 |
**And it reaches that bar.** On **IFEval**, the standard instruction-following benchmark, KOS-V4-Instruct scores
|
| 52 |
-
**AVG4 62.7**,
|
| 53 |
a commercial 3B, **Qwen2.5-3B-Instruct (65.4)**.
|
| 54 |
|
| 55 |
| IFEval (AVG4 of the four strict and loose metrics) | score | who built it, and how |
|
| 56 |
| :-- | :-- | :-- |
|
| 57 |
| **KOS-V4-Instruct (ours)** | **62.7** | a small team, from scratch, 180B tokens, 24 GPUs |
|
| 58 |
-
| GPT-3.5-turbo, the original ChatGPT (
|
| 59 |
| Qwen2.5-3B-Instruct | 65.4 | Alibaba, about 18 trillion tokens |
|
| 60 |
|
| 61 |
**Where it genuinely leads.** On the RAG tasks it was built for, KOS-V4 is competitive or best in class:
|
|
@@ -65,8 +65,8 @@ a commercial 3B, **Qwen2.5-3B-Instruct (65.4)**.
|
|
| 65 |
above BM25 (0.665).
|
| 66 |
|
| 67 |
**Read honestly.** This is a first release from a small team on a small budget, not a frontier model. Our numbers
|
| 68 |
-
are measured on public benchmarks; the GPT-3.5-turbo figure is
|
| 69 |
-
|
| 70 |
results, including where it trails.
|
| 71 |
|
| 72 |
---
|
|
@@ -77,7 +77,7 @@ results, including where it trails.
|
|
| 77 |
a decoder-only transformer (Qwen3 architecture, bespoke 3B configuration) optimized for **instruction following and
|
| 78 |
tool / function calling** over clinical and general English text. Its instruction ability comes from **GRPO
|
| 79 |
reinforcement learning** on a from-scratch clinical base, reaching **IFEval AVG4 = 62.7**. That is on par with the
|
| 80 |
-
|
| 81 |
**Qwen2.5-3B-Instruct (65.4)**, from a fraction of the data and compute. It also adds reliable **tool and function
|
| 82 |
calling** (official BFCL 73/73/61), a capability the original ChatGPT lacked at launch, though modern small models
|
| 83 |
score higher here. It is the flagship of the
|
|
@@ -186,13 +186,13 @@ AVG4 rose across GRPO steps from **47.7 (SFT base)** to **62.7 at step 1120 (shi
|
|
| 186 |
Public benchmarks only. **IFEval** is the EleutherAI lm-evaluation-harness with `--apply_chat_template`, AVG4 of the
|
| 187 |
four strict and loose metrics. **BFCL** is the official Berkeley Function-Calling Leaderboard package (`bfcl_eval`),
|
| 188 |
run with its **official per-model native handlers** in function-calling mode: each model is prompted in its own tool
|
| 189 |
-
format and scored by the official AST checker. The GPT-3.5-turbo IFEval column is
|
| 190 |
-
|
| 191 |
|
| 192 |
-
| IFEval | KOS-V4-Instruct (ours) | GPT-3.5-turbo (original ChatGPT,
|
| 193 |
| :--- | :--- | :--- | :--- |
|
| 194 |
-
| **AVG4** | **62.7** |
|
| 195 |
-
| prompt-strict / inst-strict / prompt-loose / inst-loose | 55.8 / 67.0 / 58.4 / 69.7 |
|
| 196 |
| *(reference)* KOS-V4 SFT base, pre-RL AVG4 | 47.7 | | |
|
| 197 |
|
| 198 |
Tool-calling, **official BFCL** (function-calling mode; simple / multiple / parallel accuracy, higher is better):
|
|
@@ -201,8 +201,8 @@ Tool-calling, **official BFCL** (function-calling mode; simple / multiple / para
|
|
| 201 |
| :--- | :--- | :--- | :--- |
|
| 202 |
| simple / multiple / parallel | **72.75 / 73.00 / 60.50** | 95.00 / 92.00 / 74.50 | 91.75 / 92.50 / 88.50 |
|
| 203 |
|
| 204 |
-
**Reading.** From a small team's from-scratch 3B, IFEval **62.7**
|
| 205 |
-
(GPT-3.5-turbo, a
|
| 206 |
**15.0 points above our own SFT base** (47.7). On tool-calling, KOS-V4 works (official BFCL 72.75 / 73.00 / 60.50)
|
| 207 |
but clearly **trails the modern small instruct models**: both Qwen2.5-3B and Llama-3.2-3B score around 90 or above on
|
| 208 |
simple and multiple, and far higher on parallel. Function-calling is a real capability here, one the original ChatGPT
|
|
@@ -214,46 +214,53 @@ results are notable for its data and compute budget, not a claim to lead the cur
|
|
| 214 |
Every model is scored on the **same standard metric, IFEval AVG4** (mean of the four strict + loose sub-metrics from
|
| 215 |
the official IFEval implementation, `google-research/instruction_following_eval`). For open models, AVG4 is computed
|
| 216 |
identically from the archived **Open LLM Leaderboard** results (`open-llm-leaderboard/results`), and **company,
|
| 217 |
-
parameters, and release date are taken from `open-llm-leaderboard/contents`**.
|
| 218 |
-
|
| 219 |
-
|
| 220 |
-
|
| 221 |
-
|
| 222 |
-
|
| 223 |
-
|
|
| 224 |
-
|
|
| 225 |
-
|
|
| 226 |
-
|
|
| 227 |
-
|
|
| 228 |
-
|
|
| 229 |
-
|
|
| 230 |
-
|
|
| 231 |
-
|
|
| 232 |
-
|
|
| 233 |
-
| Phi-3.5-mini-instruct | Microsoft | Aug 2024 | 3.8B | 60.5 |
|
| 234 |
-
|
|
| 235 |
-
|
|
| 236 |
-
|
|
| 237 |
-
| Mistral-
|
| 238 |
-
|
|
| 239 |
-
|
|
| 240 |
-
|
|
| 241 |
-
|
|
| 242 |
-
|
|
| 243 |
-
|
|
| 244 |
-
|
|
| 245 |
-
|
|
| 246 |
-
|
| 247 |
-
|
| 248 |
-
|
| 249 |
-
|
| 250 |
-
|
| 251 |
-
|
| 252 |
-
|
| 253 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 254 |
releases, **Meta's Llama-3.1-8B**, Llama-2-13b-chat, gemma-1.1-7b-it, Zephyr-7B and Qwen1.5-7B. **The newest major
|
| 255 |
model it beats is Microsoft's Phi-3.5-mini-instruct (August 2024, 60.5).** Ahead of it sit three open models
|
| 256 |
-
(Llama-3.2-3B, Qwen2.5-3B, Phi-3-medium-14B) and two
|
| 257 |
(Llama-3.1-8B's leaderboard IFEval is lower than its scores on some later evaluations; it is shown here as the archived
|
| 258 |
value.)
|
| 259 |
|
|
|
|
| 49 |
data and compute.
|
| 50 |
|
| 51 |
**And it reaches that bar.** On **IFEval**, the standard instruction-following benchmark, KOS-V4-Instruct scores
|
| 52 |
+
**AVG4 62.7**, above the verified **GPT-3.5-turbo (gpt-3.5-turbo-1106, 58.0)** and within about three points of
|
| 53 |
a commercial 3B, **Qwen2.5-3B-Instruct (65.4)**.
|
| 54 |
|
| 55 |
| IFEval (AVG4 of the four strict and loose metrics) | score | who built it, and how |
|
| 56 |
| :-- | :-- | :-- |
|
| 57 |
| **KOS-V4-Instruct (ours)** | **62.7** | a small team, from scratch, 180B tokens, 24 GPUs |
|
| 58 |
+
| GPT-3.5-turbo, the original ChatGPT (gpt-3.5-turbo-1106, verified) | 58.0 | OpenAI, about 10,000-GPU supercomputer |
|
| 59 |
| Qwen2.5-3B-Instruct | 65.4 | Alibaba, about 18 trillion tokens |
|
| 60 |
|
| 61 |
**Where it genuinely leads.** On the RAG tasks it was built for, KOS-V4 is competitive or best in class:
|
|
|
|
| 65 |
above BM25 (0.665).
|
| 66 |
|
| 67 |
**Read honestly.** This is a first release from a small team on a small budget, not a frontier model. Our numbers
|
| 68 |
+
are measured on public benchmarks; the GPT-3.5-turbo figure is the verified gpt-3.5-turbo-1106 snapshot from the
|
| 69 |
+
InternLM2 technical report (50.5, 61.2, 54.9, 65.5 across the four metrics, AVG4 58.0). Each model card states its own
|
| 70 |
results, including where it trails.
|
| 71 |
|
| 72 |
---
|
|
|
|
| 77 |
a decoder-only transformer (Qwen3 architecture, bespoke 3B configuration) optimized for **instruction following and
|
| 78 |
tool / function calling** over clinical and general English text. Its instruction ability comes from **GRPO
|
| 79 |
reinforcement learning** on a from-scratch clinical base, reaching **IFEval AVG4 = 62.7**. That is on par with the
|
| 80 |
+
verified score for the original ChatGPT (**GPT-3.5-turbo-1106, 58.0**) and within about three points of
|
| 81 |
**Qwen2.5-3B-Instruct (65.4)**, from a fraction of the data and compute. It also adds reliable **tool and function
|
| 82 |
calling** (official BFCL 73/73/61), a capability the original ChatGPT lacked at launch, though modern small models
|
| 83 |
score higher here. It is the flagship of the
|
|
|
|
| 186 |
Public benchmarks only. **IFEval** is the EleutherAI lm-evaluation-harness with `--apply_chat_template`, AVG4 of the
|
| 187 |
four strict and loose metrics. **BFCL** is the official Berkeley Function-Calling Leaderboard package (`bfcl_eval`),
|
| 188 |
run with its **official per-model native handlers** in function-calling mode: each model is prompted in its own tool
|
| 189 |
+
format and scored by the official AST checker. The GPT-3.5-turbo IFEval column is the **verified** gpt-3.5-turbo-1106
|
| 190 |
+
snapshot from the InternLM2 technical report, included as the original-ChatGPT reference point rather than run by us.
|
| 191 |
|
| 192 |
+
| IFEval | KOS-V4-Instruct (ours) | GPT-3.5-turbo-1106 (original ChatGPT, verified) | Qwen2.5-3B-Instruct |
|
| 193 |
| :--- | :--- | :--- | :--- |
|
| 194 |
+
| **AVG4** | **62.7** | 58.0 | 65.4 |
|
| 195 |
+
| prompt-strict / inst-strict / prompt-loose / inst-loose | 55.8 / 67.0 / 58.4 / 69.7 | 50.5 / 61.2 / 54.9 / 65.5 | 59.5 / 68.5 / 62.1 / 71.3 |
|
| 196 |
| *(reference)* KOS-V4 SFT base, pre-RL AVG4 | 47.7 | | |
|
| 197 |
|
| 198 |
Tool-calling, **official BFCL** (function-calling mode; simple / multiple / parallel accuracy, higher is better):
|
|
|
|
| 201 |
| :--- | :--- | :--- | :--- |
|
| 202 |
| simple / multiple / parallel | **72.75 / 73.00 / 60.50** | 95.00 / 92.00 / 74.50 | 91.75 / 92.50 / 88.50 |
|
| 203 |
|
| 204 |
+
**Reading.** From a small team's from-scratch 3B, IFEval **62.7** clears the original ChatGPT
|
| 205 |
+
(GPT-3.5-turbo-1106, a verified 58.0) and lands within about three points of Qwen2.5-3B-Instruct (65.4), while being
|
| 206 |
**15.0 points above our own SFT base** (47.7). On tool-calling, KOS-V4 works (official BFCL 72.75 / 73.00 / 60.50)
|
| 207 |
but clearly **trails the modern small instruct models**: both Qwen2.5-3B and Llama-3.2-3B score around 90 or above on
|
| 208 |
simple and multiple, and far higher on parallel. Function-calling is a real capability here, one the original ChatGPT
|
|
|
|
| 214 |
Every model is scored on the **same standard metric, IFEval AVG4** (mean of the four strict + loose sub-metrics from
|
| 215 |
the official IFEval implementation, `google-research/instruction_following_eval`). For open models, AVG4 is computed
|
| 216 |
identically from the archived **Open LLM Leaderboard** results (`open-llm-leaderboard/results`), and **company,
|
| 217 |
+
parameters, and release date are taken from `open-llm-leaderboard/contents`**. The **weights** column marks each model
|
| 218 |
+
**Open** (open weights, downloadable, whoever built it) or **Proprietary** (closed, API only); proprietary models are
|
| 219 |
+
not on the leaderboard. A **\*** on a score means the AVG4 is an estimate, and a **+** on a size means the parameter
|
| 220 |
+
count is unofficial; both are explained under the table. Models smaller than KOS-V4 are excluded. Calibration: our
|
| 221 |
+
harness measures Qwen2.5-3B at AVG4 65.4 vs the leaderboard's 66.0.
|
| 222 |
+
|
| 223 |
+
| model | weights | company | released | params | IFEval AVG4 |
|
| 224 |
+
| :-- | :-- | :-- | :-- | :-- | :-- |
|
| 225 |
+
| GPT-4o-mini | Proprietary | OpenAI | Jul 2024 | 8B + | 82 \* |
|
| 226 |
+
| Llama-3.2-3B-Instruct | Open | Meta | Sep 2024 | 3.2B | 76.6 |
|
| 227 |
+
| Qwen2.5-3B-Instruct | Open | Alibaba | Sep 2024 | 3.0B | 66.0 |
|
| 228 |
+
| Mistral-Large | Proprietary | Mistral AI | Feb 2024 | 46.7B + | 66 \* |
|
| 229 |
+
| Phi-3-medium-4k-instruct | Open | Microsoft | May 2024 | 14.0B | 65.7 |
|
| 230 |
+
| **KOS-V4-Instruct (ours)** | **Open** | **Univ. of Kentucky** | **Jul 2026** | **3.0B** | **62.7** |
|
| 231 |
+
| Yi-1.5-9B-Chat | Open | 01.AI | May 2024 | 8.8B | 62.7 |
|
| 232 |
+
| GPT-3.5-turbo-0613 | Proprietary | OpenAI | Jun 2023 | 20B + | 61 \* |
|
| 233 |
+
| Phi-3.5-mini-instruct | Open | Microsoft | Aug 2024 | 3.8B | 60.5 |
|
| 234 |
+
| Command-R | Open | Cohere | Mar 2024 | 35B | 60 \* |
|
| 235 |
+
| GPT-3.5-turbo-1106 | Proprietary | OpenAI | Nov 2023 | 20B + | 58.0 |
|
| 236 |
+
| Gemini-1.0-Pro | Proprietary | Google | Dec 2023 | undisclosed | 58 \* |
|
| 237 |
+
| Mistral-Medium | Proprietary | Mistral AI | Dec 2023 | 70-176B + | 58 \* |
|
| 238 |
+
| Mistral-7B-Instruct-v0.2 | Open | Mistral AI | Dec 2023 | 7.2B | 57.5 |
|
| 239 |
+
| Phi-3-mini-4k-instruct | Open | Microsoft | Apr 2024 | 3.8B | 57.1 |
|
| 240 |
+
| Mistral-7B-Instruct-v0.3 | Open | Mistral AI | May 2024 | 7.2B | 56.6 |
|
| 241 |
+
| gemma-1.1-7b-it | Open | Google | Mar 2024 | 8.5B | 52.9 |
|
| 242 |
+
| GPT-3.5-turbo-0125 | Proprietary | OpenAI | Jan 2024 | 20B + | 52.1 |
|
| 243 |
+
| Zephyr-7B-beta | Open | Hugging Face | Oct 2023 | 7.2B | 51.2 |
|
| 244 |
+
| Llama-3.1-8B-Instruct | Open | Meta | Jul 2024 | 8.0B | 51.0 |
|
| 245 |
+
| Llama-2-13b-chat | Open | Meta | Jul 2023 | 13.0B | 46.5 |
|
| 246 |
+
| Qwen1.5-7B-Chat | Open | Alibaba | Jan 2024 | 7.7B | 46.1 |
|
| 247 |
+
| Qwen1.5-4B-Chat | Open | Alibaba | Jan 2024 | 4.0B | 33.2 |
|
| 248 |
+
|
| 249 |
+
**\* AVG4 is an estimate.** No official four-metric IFEval AVG4 is published for this model; the value is estimated
|
| 250 |
+
from adjacent evidence (a prompt-strict-only score, or the model's capability class). Point value with range, method,
|
| 251 |
+
and confidence are in the baseline block below and in `COMMERCIAL_IFEVAL_BASELINES.md`. Rows with no marker are
|
| 252 |
+
measured or provider-published four-metric AVG4 (for example GPT-3.5-turbo-1106 = 58.0 and -0125 = 52.1).
|
| 253 |
+
|
| 254 |
+
**\+ Parameter count is unofficial** (never disclosed by the provider; industry estimate): GPT-3.5-turbo about 20B,
|
| 255 |
+
GPT-4o-mini about 8B, Mistral-Large (Feb 2024) about 46.7B, Mistral-Medium about 70B to 176B. Gemini-1.0-Pro is left
|
| 256 |
+
as undisclosed because public estimates span 13B to over 500B, too wide to cite.
|
| 257 |
+
|
| 258 |
+
**Reading.** At **3B**, KOS-V4 (62.7) **clears every measured GPT-3.5-turbo snapshot of the original ChatGPT**
|
| 259 |
+
(1106 = 58.0, 0125 = 52.1, and the estimated 0613 = 61), ties the 8.8B Yi-1.5, and clears the estimated Command-R,
|
| 260 |
+
Gemini-1.0-Pro and Mistral-Medium. It outscores every 7B-14B open instruct model below it, including both Mistral-7B-Instruct
|
| 261 |
releases, **Meta's Llama-3.1-8B**, Llama-2-13b-chat, gemma-1.1-7b-it, Zephyr-7B and Qwen1.5-7B. **The newest major
|
| 262 |
model it beats is Microsoft's Phi-3.5-mini-instruct (August 2024, 60.5).** Ahead of it sit three open models
|
| 263 |
+
(Llama-3.2-3B, Qwen2.5-3B, Phi-3-medium-14B) and two proprietary estimates (GPT-4o-mini, Mistral-Large).
|
| 264 |
(Llama-3.1-8B's leaderboard IFEval is lower than its scores on some later evaluations; it is shown here as the archived
|
| 265 |
value.)
|
| 266 |
|