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
Clearer pages: one page per model, plain words, graphs from the measured results
Browse filesFiles changed (5)
- .gitattributes+2
- README.md+116-85
- banner.png
- chart_overall.pngAdded
- chart_science.pngAdded
34 unmodified lines35363734 unmodified lines*tfevents* filter=lfs diff=lfs merge=lfs -textbanner.png filter=lfs diff=lfs merge=lfs -texttokenizer.json filter=lfs diff=lfs merge=lfs -text34 unmodified lines353637383934 unmodified lines*tfevents* filter=lfs diff=lfs merge=lfs -textbanner.png filter=lfs diff=lfs merge=lfs -texttokenizer.json filter=lfs diff=lfs merge=lfs -textchart_science.png filter=lfs diff=lfs merge=lfs -textchart_overall.png filter=lfs diff=lfs merge=lfs -text
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485---license: apache-2.0base_model:- ornith-ai/Ornith-1.5-9Btags:- ornith- qwen3- self-distillation- awq- 4-bit- reasoning- vllm- sglanglanguage:- enpipeline_tag: text-generationlibrary_name: transformers---# 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.123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116---license: apache-2.0base_model:- ornith-ai/Ornith-1.5-9Btags:- ornith- qwen3- self-distillation- awq- 4-bit- reasoning- vllm- sglanglanguage:- enpipeline_tag: text-generationlibrary_name: transformers---# Crow-9B> You are on **the full-size download** (`KC-Informatics/Crow-9B`). The other size is [`KC-Informatics/Crow-9B-AWQ`](https://huggingface.co/KC-Informatics/Crow-9B-AWQ). Both are the same model and share this page.The small one. Crow started as Ornith 1.5 9B, a model that often thinks until it runs out of room and then returns nothing. We taught it, using its own shortest correct answers, to stop overthinking and answer.With the small helper included in this repo it answered **54 of 60 graduate-level science questions**. DeepSeek V4.1 Flash, a 671B cloud model, answered 55. Our 27B model answered 53. The 4-bit download runs on a 12 GB graphics card.## Two downloads, one model| | 4-bit | Full size ||---|---|---|| Repo | [`KC-Informatics/Crow-9B-AWQ`](https://huggingface.co/KC-Informatics/Crow-9B-AWQ) | [`KC-Informatics/Crow-9B`](https://huggingface.co/KC-Informatics/Crow-9B) || Download | 9.1 GB | 19.3 GB || Graphics memory | 10.2 GB in use inside a 12 GB limit (measured, without the draft model) | The weights alone are 18 GB, so a 24 GB card or larger || Pick it if | You have a 12 or 16 GB card. | You have the memory, or want to compress or train it further yourself. |## What we changed, in plain wordsWe gave Ornith 1.5 9B 499 fresh practice problems, checked beforehand to share nothing with the test questions. For each problem it solved, we kept its shortest working that reached a correct answer, checked by script. That gave 569 examples from 418 solved problems. We then trained the model briefly on those examples, so it learned its own most direct route to an answer.The result is the same model with the same knowledge, but it finishes.<details><summary>For the technically minded</summary>- A rank-32 LoRA (alpha 64) on the attention and MLP projections, 2 epochs, 144 steps, with a KL term holding it close to the original model. Merged into the weights; the vision weights are untouched.- The 499 practice prompts were checked for 14-word overlaps against GPQA Diamond, AIME 2026, IFEval and LiveCodeBench v6. None were found.- After the merge the model still picks the same next token as the original 95.7% of the time on ordinary text, so the draft model `ornith-ai/Ornith-1.5-9B-DFlash` keeps working.- 4-bit build: AWQ (W4A16, `llmcompressor`), calibrated on 128 verified practice answers, with the gated recurrent projections kept at full precision.- Full recipe and counts: `alteration_manifest.json`.</details>## Results by subject| | Crow-9B with the helper | Crow-9B without it | Original Qwen 3.8 27B | DeepSeek V4.1 Flash (671B) ||---|---:|---:|---:|---:|| Science (GPQA Diamond, 60 questions) | 54 | 46 | 46 | 55 || Maths (AIME 2026, 30 questions) | 20 | 20 | 18 | 27 || Coding (LiveCodeBench v6, 40 questions) | 21 | 17 | 20 | 29 || Following instructions (IFEval, 30 questions) | 20 | 21 | 26 | 26 || Long documents (AA-LCR, 20 questions) | 17 | 15 | 14 | 17 || **All 180** | **132** | **119** | **124** | **154** |These scores were measured on the full-size weights. The 4-bit build has had a load check, not the full 180 questions: inside a 12 GB limit it used 10.2 GB and answered four short prompts correctly, one of them a tool call.## Run it```bash# 4-bit, on a 12 GB cardvllm serve KC-Informatics/Crow-9B-AWQ --port 8000 \--trust-remote-code --gpu-memory-utilization 0.95 --max-model-len 32768 --max-num-seqs 2 \--reasoning-parser qwen3 --enable-auto-tool-choice --tool-call-parser qwen3_coder# full size, 24 GB or more: the same command with KC-Informatics/Crow-9B```Needs vLLM 0.34 or newer. With more memory to spare you can add the draft model for extra speed. It did not fit inside 12 GB in our check:```bash--speculative-config '{"model": "ornith-ai/Ornith-1.5-9B-DFlash", "method": "dflash", "num_speculative_tokens": 8}'```## The helper: `nudge.py`Every repo includes `nudge.py`, one small file that sits between your app and the model. Thinking models sometimes use up their whole allowance thinking and never give an answer. When that happens the helper asks the model, once, to conclude from the working it has already done. It makes one attempt per question. It does not retry, vote between several answers, or call a second model.It matters most for Crow: 119 of 180 without it, 132 with it.```bashpython nudge.py --upstream http://127.0.0.1:8000 --port 8001```Then point your app at `http://127.0.0.1:8001/v1` instead of the model server.## How we tested- 180 public test questions: 60 science (GPQA Diamond), 30 maths (AIME 2026), 40 coding (LiveCodeBench v6), 30 on following instructions (IFEval) and 20 on long documents (AA-LCR).- One attempt per question, graded by script. No retries and no picking the best of several answers.- This is our own run, not an official leaderboard. With 180 questions, a difference of a few questions between two models is noise.- The files published here were rebuilt from the same recipes as the ones we tested.- Tool calling works with the commands on each page. We checked it live on the 4-bit Crow. We have not run a tool-use benchmark.## What it is notCrow keeps the safety behaviour of Ornith 1.5 9B. If you want the model that refuses less, that is [Raven-27B](https://huggingface.co/KC-Informatics/Raven-27B-AWQ).## Licence and creditApache 2.0, the same as `ornith-ai/Ornith-1.5-9B` and its draft model by Ornith AI. `nudge.py` is Apache 2.0.
.gitattributes+2
README.md+116-85
banner.png

Large File Pointer Details
- SHA256: 5751043b070a56e7ed057f619c79cc01b163e9536f6329098385877da398c9e5
- Pointer size: 132 Bytes
- Size of remote file: 1.17 MB

Large File Pointer Details
- SHA256: 7348b86d8600d2582240f2a0e26c2ab1b877eb590bea1cfa0f8584c59e033c3c
- Pointer size: 132 Bytes
- Size of remote file: 1.18 MB
chart_overall.pngAdded

Large File Pointer Details
- SHA256: b09e1640170d6ba10416cf7a008784b8e639dcc3772e7168532f701dc3a5297b
- Pointer size: 131 Bytes
- Size of remote file: 209 kB
chart_science.pngAdded

Large File Pointer Details
- SHA256: 2b5062d302366cdbbf44142e25d5074572bfba5349e8d554da46750f3dec42f6
- Pointer size: 131 Bytes
- Size of remote file: 207 kB