Text Generation
Transformers
Safetensors
English
qwen3_5
image-text-to-text
ornith
qwen3
self-distillation
awq
4-bit precision
reasoning
vllm
sglang
conversational
compressed-tensors
Run this model with HF Jobs
Run KC-Informatics/Crow-9B-AWQ 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-AWQ. 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-AWQ 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-AWQ. 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.
Instructions to use KC-Informatics/Crow-9B-AWQ with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use KC-Informatics/Crow-9B-AWQ with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="KC-Informatics/Crow-9B-AWQ") 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-AWQ") model = AutoModelForMultimodalLM.from_pretrained("KC-Informatics/Crow-9B-AWQ", 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-AWQ 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-AWQ" # 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-AWQ", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/KC-Informatics/Crow-9B-AWQ
- SGLang
How to use KC-Informatics/Crow-9B-AWQ 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-AWQ" \ --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-AWQ", "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-AWQ" \ --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-AWQ", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use KC-Informatics/Crow-9B-AWQ with Docker Model Runner:
docker model run hf.co/KC-Informatics/Crow-9B-AWQ
Unify Crow-9B-AWQ model card and set base_model_relation
Browse files123453456713 unmodified lines212223252425272627293031323334353637383940414228293031323334354736373839405341424344585945466247---
license: apache-2.0
base_model:
- ornith-ai/Ornith-1.5-9B
- KC-Informatics/Crow-9B
base_model: KC-Informatics/Crow-9B
base_model_relation: quantized
tags:
- ornith
- qwen313 unmodified lines
# Crow-9B-AWQ
4-bit GDN-protected AWQ quantization of [Crow-9B](https://huggingface.co/KC-Informatics/Crow-9B) (`ornith-ai/Ornith-1.5-9B` self-distilled on its shortest verified reasoning traces), sized at **7.15 GiB** on disk so it loads inside **12 GB VRAM** alongside its DFlash speculative draft model.
4-bit GDN-protected `AWQ_W4A16` quantized weights for **[Crow-9B](https://huggingface.co/KC-Informatics/Crow-9B)** (`9.07 GB` total, verified inside **10.2 GiB VRAM** on a 12 GB budget). See the unified [Crow-9B model card](https://huggingface.co/KC-Informatics/Crow-9B) for the full write-up, benchmarks, and BF16 comparison.
## What was changed
## Quick facts
1. **Shortest-trace self-distillation (LoRA rank 32, merged):** Trained on 569 script-verified shortest reasoning traces from 418 decontaminated prompts so the 9B model reaches answers faster without hurting DFlash compatibility.
2. **True 4-bit `AWQ_W4A16` with GDN gate protection:** Calibrated on 128 samples of Crow's own verified reasoning traces (1,024 tokens each) using `llmcompressor` `AWQModifier(W4A16_ASYM)` with zero fallback. Sensitive Gated DeltaNet recurrent projections (`in_proj_a`, `in_proj_b`, `dt_proj`) and vision layers are kept in full precision so hybrid linear-attention quality and speculative acceptance stay intact.
3. **Ships with `nudge.py`:** Zero-dependency forced-closure proxy so hard prompts never stall out with empty `content`.
## Verified results
| Metric | Crow-9B (BF16) | **Crow-9B-AWQ (4-bit)** |
|---|---:|---:|
| Disk footprint | 17.9 GB | **7.15 GiB** |
| Loaded VRAM w/ DFlash (`k=8`) | ~20.4 GiB | **9.82 GiB** (fits 12 GB GPUs) |
| 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) |
| Paired quality vs BF16 (`AA-PUBLIC-180`, `N=1`) | 71.25% (+nudge) | **Statistically lossless** (McNemar p = 0.572) |
- **Quantization:** True `AWQ_W4A16` (`llmcompressor`, zero fallback), calibrated on 128 verified Crow reasoning traces (1,024 tokens each).
- **GDN protection:** Hybrid Gated DeltaNet recurrent projections (`in_proj_a`, `in_proj_b`, `dt_proj`) and vision layers stay in full precision so speculative decoding (`Ornith-1.5-9B-DFlash`) keeps 100% acceptance (`3.483` vs `3.498`).
- **Speed (RTX PRO 6000 w/ DFlash):** **407.1 tok/s** single-stream (`1.79x` faster than BF16) and **1,500.5 tok/s** across 8 concurrent streams.
- **Quality:** Statistically lossless vs BF16 on `AA-PUBLIC-180` (`N=1`, McNemar `p = 0.572`).
## How to run it
```bash
# 1. Serve Crow-9B-AWQ with DFlash speculative decoding (fits 12 GB+ GPUs)
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}'
# 2. Run nudge.py in front of vLLM
huggingface-cli download KC-Informatics/Crow-9B-AWQ nudge.py --local-dir .
python nudge.py --upstream http://127.0.0.1:8000 --port 8001
```
Requires vLLM 0.34+ or SGLang. Keep `--reasoning-parser qwen3` enabled so `nudge.py` can distinguish `<think>` reasoning from the final answer.
## 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.Apache 2.0, matching `ornith-ai/Ornith-1.5-9B` and `ornith-ai/Ornith-1.5-9B-DFlash` by Ornith AI. `nudge.py` is Apache 2.0 by KC Informatics.README.md+9-24