Text Generation
Transformers
Safetensors
English
qwen3_5
image-text-to-text
ornith
qwen3
self-distillation
awq
4-bit precision
reasoning
vllm
sglang
conversational
Run this model with HF Jobs
Run KC-Informatics/Crow-9B on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/KC-Informatics/Crow-9B. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/KC-Informatics/Crow-9B on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/KC-Informatics/Crow-9B. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/KC-Informatics/Crow-9B. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use KC-Informatics/Crow-9B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use KC-Informatics/Crow-9B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="KC-Informatics/Crow-9B") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("KC-Informatics/Crow-9B") model = AutoModelForMultimodalLM.from_pretrained("KC-Informatics/Crow-9B", device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.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(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use KC-Informatics/Crow-9B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "KC-Informatics/Crow-9B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "KC-Informatics/Crow-9B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/KC-Informatics/Crow-9B
- SGLang
How to use KC-Informatics/Crow-9B 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 "KC-Informatics/Crow-9B" \ --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": "KC-Informatics/Crow-9B", "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 "KC-Informatics/Crow-9B" \ --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": "KC-Informatics/Crow-9B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use KC-Informatics/Crow-9B with Docker Model Runner:
docker model run hf.co/KC-Informatics/Crow-9B
Add README.md for Crow-9B release
Browse files123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778---
license: apache-2.0
base_model:
- ornith-ai/Ornith-1.5-9B
tags:
- ornith
- qwen3
- self-distillation
- lora-merged
- reasoning
- vllm
- sglang
language:
- en
pipeline_tag: text-generation
library_name: transformers
---

# Crow-9B
Ornith 1.5 9B, self-distilled on its own shortest verified reasoning traces so it spends less time overthinking and more time answering, paired with `nudge.py` so hard prompts always finish with a final answer.
This is the full-size BF16 release (17.9 GB). For a 4-bit build that fits comfortably inside 12 GB VRAM with speculative decoding, see [Crow-9B-AWQ](https://huggingface.co/KC-Informatics/Crow-9B-AWQ).
## What was changed
Ornith 1.5 9B thinks inside `<think>` tags before answering. On hard maths, science, and coding problems it can spend its entire token budget reasoning and return an empty answer.
We generated solutions to 499 fresh, decontaminated practice prompts (checked for zero 14-word n-gram overlap against GPQA Diamond, AIME 2026, IFEval, and LiveCodeBench v6), kept only the **shortest script-verified correct trace** per solved prompt (418 prompts, 569 examples), and fine-tuned a rank-32 LoRA adapter on attention and MLP projections for 2 epochs with KL-style drift control so the base model's `Ornith-1.5-9B-DFlash` draft model keeps its full acceptance length. The adapter is merged cleanly into the BF16 weights (`Qwen3_5ForConditionalGeneration`, vision weights untouched).
## What ships with it: `nudge.py`
This repository includes `nudge.py`, a single zero-dependency Python OpenAI-compatible proxy that sits in front of vLLM or SGLang.
- If the model finishes normally, `nudge.py` does nothing.
- If the model uses its whole reasoning budget without closing `</think>`, `nudge.py` holds back the final eighth of `max_tokens` (256 to 2,048 tokens) and sends one forced-closure continuation so the model concludes from its own working.
- Strictly single-pass (`N=1`): no retries, no voting, no second model, never exceeds the caller's `max_tokens`.
## Verified results (`AA-PUBLIC-180`, strictly `N=1`, deterministic grading)
| Metric | Crow-9B (BF16) | Crow-9B-AWQ (4-bit) |
|---|---:|---:|
| 180-question public suite (model alone, `N=1`) | 64.58% (119 / 180) | Lossless vs BF16 (McNemar p = 0.572) |
| 180-question public suite (with `nudge.py`, `N=1`) | **71.25%** (**72.08%** w/ No-Think IFEval) | Matches BF16 |
| GPQA Diamond (60 science questions) | **90.0%** | - |
| AA-LCR (20 long-context reading questions) | **85.0%** | - |
| Download size | 17.9 GB | **7.15 GiB** |
| Single-stream decode w/ DFlash (RTX PRO 6000) | 227.5 tok/s | **407.1 tok/s** |
| 8-stream concurrent decode w/ DFlash (RTX PRO 6000) | 1,105.0 tok/s | **1,500.5 tok/s** |
| DFlash mean accepted tokens | 3.498 | **3.483** (100% preserved) |
## What it is not
- **Not uncensored.** Crow keeps the safety behavior of `ornith-ai/Ornith-1.5-9B`. For refusal-reduced weights, see [Raven-27B](https://huggingface.co/KC-Informatics/Raven-27B) or [Raven-27B-AWQ](https://huggingface.co/KC-Informatics/Raven-27B-AWQ).
- **Still benefits from `nudge.py` on hard prompts.** Without `nudge.py`, it hit the token ceiling on 43 of 180 hard questions; with `nudge.py`, single-pass accuracy rises to 71.25% (72.08% with No-Think IFEval).
- **Public self-run benchmark.** These 180 questions (60 GPQA Diamond, 30 AIME 2026, 40 LiveCodeBench v6, 30 IFEval, 20 AA-LCR) were graded locally by deterministic scripts, not an official private leaderboard.
## How to run it
```bash
# 1. Serve Crow-9B with its DFlash speculative draft model (vLLM 0.34+)
vllm serve KC-Informatics/Crow-9B --port 8000 \
--trust-remote-code --gpu-memory-utilization 0.90 --max-model-len 131072 \
--reasoning-parser qwen3 --enable-auto-tool-choice --tool-call-parser qwen3_coder \
--speculative-config '{"model": "ornith-ai/Ornith-1.5-9B-DFlash", "method": "dflash", "num_speculative_tokens": 8}'
# 2. Run nudge.py in front of vLLM
huggingface-cli download KC-Informatics/Crow-9B nudge.py --local-dir .
python nudge.py --upstream http://127.0.0.1:8000 --port 8001
```
Point your OpenAI-compatible client at `http://127.0.0.1:8001/v1`.
## Licence and credit
Apache 2.0, matching `ornith-ai/Ornith-1.5-9B` and `ornith-ai/Ornith-1.5-9B-DFlash` by Ornith AI. `nudge.py` is released under Apache 2.0 by KC Informatics.README.mdAdded+78