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
|
@@ -260,14 +260,16 @@ English benchmarks, which understates their designed capability.
|
|
| 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.
|
| 264 |
-
|
| 265 |
-
|
| 266 |
-
|
| 267 |
-
|
| 268 |
-
- **
|
| 269 |
-
|
| 270 |
-
|
|
|
|
|
|
|
| 271 |
- **Optimising a verifiable reward moved a verifiable metric.** GRPO maximised the official IFEval checker, and
|
| 272 |
IFEval went up. Improvement on *unrelated* capabilities should not be assumed from this number.
|
| 273 |
- **MMLU 0.3720 is above chance (0.25) but modest.** This is not a knowledge model; it should not be used as a
|
|
|
|
| 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. Note that GRPO did not
|
| 264 |
+
optimise for it; the reward ran the IFEval checker only, so this is carried SFT capability. Comparisons to
|
| 265 |
+
earlier internal KOS tool-calling figures are deliberately omitted: several were measured against benchmark
|
| 266 |
+
data the model had been trained on and are recorded in our own audit as **invalid**. The comparison here is
|
| 267 |
+
against the **published** KOS-V4-Instruct numbers only.
|
| 268 |
+
- **Hallucination / fabrication: NOT INDEPENDENTLY MEASURED.** An internal gate reported an increase during
|
| 269 |
+
GRPO, but that gate measures on pretraining-distribution text and is under review, so **no figure from it is
|
| 270 |
+
reported here.** No official hallucination benchmark has been run on this checkpoint. Treat fabrication
|
| 271 |
+
behaviour as **unmeasured**, and note that RL against a format-verifiable reward is a plausible mechanism for
|
| 272 |
+
making a model more confidently wrong. This is a principal reason the artifact is private.
|
| 273 |
- **Optimising a verifiable reward moved a verifiable metric.** GRPO maximised the official IFEval checker, and
|
| 274 |
IFEval went up. Improvement on *unrelated* capabilities should not be assumed from this number.
|
| 275 |
- **MMLU 0.3720 is above chance (0.25) but modest.** This is not a knowledge model; it should not be used as a
|