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
Commit History
-
Update README.md
Verified signaturef61a416
-
Add Retrieval & embeddings section + link to KOS-V5-Retriever adapter
Verified signaturec554a92
-
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)
Verified signaturecea427e -
Card: peer Qwen3-4B-2507 IFEval = 84.71 (exact, pristine-harness canonical value)
Verified signatured204d6f
-
Card: restore full peer comparison (Qwen3-4B-2507) that was wrongly stripped; update KOS column to leg-T (BFCL now above peer, IFEval/knowledge honest vs peer)
Verified signature505b3cc -
Card: knowledge benchmarks re-measured on this checkpoint (MMLU 0.4512, PubMedQA 0.706, MedQA 0.3802, MedMCQA 0.3648) — jobs 202025/202026
Verified signature91c9261 -
KOS-V5-Instruct 2026-07-21: recover tool calling via official-BFCL GRPO (leg T, step 40)
Verified signatureOverwrites the leg-A revision in place (same repo/name). Adds a 2nd GRPO leg against the official BFCL ast_checker. BFCL 76.8/71.0/69.5 -> 85.0/84.0/80.5 (now above every prior revision and the peer); IFEval held 72.0; RGB neg-reject 57.33; RGB noise 58.67->64.0; broad-holdout forgetting 0.99x base (none). Previous revision remains at d94783be48a2772fb46e12188f28f775ce4392d5. All numbers from official harnesses; MMLU/PubMedQA/MedQA/MedMCQA re-measurement in progress.7188bdc
-
Card: Catbird logo + intro, official BFCL results
Verified signatured94783b -
Card: Catbird logo + intro, official BFCL results
Verified signature966c763 -
KOS-V5-Instruct 2026-07-20: v2mix SFT + official-IFEval GRPO (leg A, step 164)
Verified signatureReplaces the prod2+IF-GRPO revision. MMLU 0.3720->0.4504, IFEval 66.99->72.5 (peer 67.2), RGB neg-reject 57.0 (peer bar 39.0). REGRESSION: BFCL 83.5/78.5/73.5 -> 76.8/71.0/69.5. Previous revision remains at a7a4ce7f75cd9a230bf50df02b4112f0a362a929. All numbers from official harnesses; MMLU/PubMedQA/MedQA/MedMCQA contamination UNCHECKED and marked so on the card.e8d1a9b
-
Card: Catbird logo + intro, official BFCL results
Verified signaturea7a4ce7 -
Card: Catbird logo + intro, official BFCL results
Verified signaturefa7fe5e -
Card: Catbird logo + intro, official BFCL results
Verified signaturece4e6c6 -
Card: Catbird logo + intro, official BFCL results
Verified signature6b3cb60 -
Add Catbird logo (matches KOS-V5-Base)
Verified signaturebb1d93a -
Card: tool/function calling recorded as NOT EVALUATED
Verified signature5058350 -
KOS-V5-Instruct (Catbird) — IF-GRPO step 888
Verified signature41f25fa -
initial commit
Verified signature2029af3