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
Unify Crow-9B model card and set base_model_relation
Browse files5 unmodified lines67891011125 unmodified lines181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677785 unmodified lines- ornith- qwen3- self-distillation- lora-merged- reasoning- vllm- sglang5 unmodified lines# Crow-9BOrnith 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 changedOrnith 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 vLLMhuggingface-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 creditApache 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.5 unmodified lines6789101112135 unmodified lines192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384855 unmodified lines- ornith- qwen3- self-distillation- awq- 4-bit- reasoning- vllm- sglang5 unmodified lines# Crow-9B (BF16 & 4-Bit AWQ)**Crow-9B** is KC Informatics' compact 9B reasoning release built from `ornith-ai/Ornith-1.5-9B`: we shortened its runaway thinking chains via shortest-trace self-distillation, paired it with `nudge.py` so hard prompts never stall without an answer, and compressed a GDN-protected 4-bit AWQ build down to **8.45 GB** so it fits comfortably on 12 GB GPUs at **407 tok/s**.## Available builds (one-command serve)Hugging Face keeps each weight format in its own repo root so `vllm serve` and `transformers` load cleanly in a single line:| Build | Repo | Size | Min GPU VRAM | Best for ||---|---|---:|---:|---|| **Crow-9B (BF16)** *(this repo)* | [`KC-Informatics/Crow-9B`](https://huggingface.co/KC-Informatics/Crow-9B) | 19.3 GB | 24 GB | Full-precision serving, further quantization/fine-tuning || **Crow-9B-AWQ (4-bit)** | [`KC-Informatics/Crow-9B-AWQ`](https://huggingface.co/KC-Informatics/Crow-9B-AWQ) | **9.07 GB** | **12 GB** | Fast local GPUs (RTX 5070 Ti / 4070 / 3060 12 GB), 1.79x faster |## What was changed1. **Cutting down runaway thinking (shortest-trace self-distillation):** Ornith 1.5 9B often spends its entire token budget inside `<think>` tags and returns an empty final answer. We generated solutions to 499 fresh, decontaminated practice prompts (verified zero 14-word n-gram overlap against GPQA Diamond, AIME 2026, IFEval, and LiveCodeBench v6), kept only the **shortest script-verified correct reasoning trace** per solved prompt (418 prompts, 569 examples), and trained a rank-32 LoRA adapter (2 epochs, drift-controlled) merged cleanly back into `Qwen3_5ForConditionalGeneration` (vision weights untouched) so the `Ornith-1.5-9B-DFlash` draft model keeps 100% of its acceptance rate.2. **4-bit GDN-protected compression (`Crow-9B-AWQ`):** Quantized with true `AWQ_W4A16` (`llmcompressor`, zero fallback, calibrated on 128 samples of Crow's own verified traces) while keeping sensitive Gated DeltaNet recurrent projections (`in_proj_a`, `in_proj_b`, `dt_proj`) and vision layers in full precision. Verified to load inside **10.2 GiB VRAM** (`CHECK12_OK`, 4/4 sanity checks passed).3. **Guaranteed answer completion (`nudge.py`):** Included in both repos. If a hard prompt still hits the reasoning budget without closing `</think>`, `nudge.py` holds back the final eighth of `max_tokens` (256 to 2,048 tokens) for one clean conclusion pass. Strictly single-pass (`N=1`): no retries, no voting, no second model.## 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) | Statistically 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%** | - || Disk footprint | 19.3 GB | **9.07 GB** (fits 12 GB VRAM) || Single-stream decode w/ DFlash (RTX PRO 6000) | 227.5 tok/s | **407.1 tok/s** (1.79x faster) || 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) |*Public self-run benchmark (60 GPQA Diamond, 30 AIME 2026, 40 LiveCodeBench v6, 30 IFEval, 20 AA-LCR), graded deterministically by script.*## How to run it```bash# Option A: 4-bit AWQ build (fits 12 GB+ GPUs, 1.79x faster)vllm serve KC-Informatics/Crow-9B-AWQ --port 8000 \--trust-remote-code --gpu-memory-utilization 0.90 --max-model-len 32768 \--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}'# Option B: Full BF16 build (24 GB+ GPUs)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}'# Run nudge.py in front of vLLM (included in both repos)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`.## 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).- **Not structurally pruned.** Crow cuts thinking length and 4-bit weight size; for our structurally expert-pruned MoE model (128 down to 108 experts/layer), see [Rook-26B](https://huggingface.co/KC-Informatics/Rook-26B).## Licence and creditApache 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.md+32-25