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
Update Crow-9B-AWQ card, manifest and sanitized quant_meta for NS-UNREFUSE-v2 release
Browse filesFiles changed (3)
- README.md+13-6
- alteration_manifest.json+47-2
- quant_meta.json+4-5
22 unmodified lines2324252627282910 unmodified lines4041424344454647484950515253545522 unmodified lines> You are on **the 4-bit download** (`KC-Informatics/Crow-9B-AWQ`). The other size is [`KC-Informatics/Crow-9B`](https://huggingface.co/KC-Informatics/Crow-9B). 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.10 unmodified lines## 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`.22 unmodified lines2324252627282910 unmodified lines404142434445464748495051525354555657585960616222 unmodified lines> You are on **the 4-bit download** (`KC-Informatics/Crow-9B-AWQ`). The other size is [`KC-Informatics/Crow-9B`](https://huggingface.co/KC-Informatics/Crow-9B). 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, and then edited its weights so that it refuses far less while still saying "I don't know" when a question has no real 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.10 unmodified lines## What we changed, in plain wordsFirst, we 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 trained the model briefly on those examples so it learned its own most direct route to an answer.Second, we removed stock refusals the same way we did on Raven-27B. We measured the pattern inside the model that triggers stock refusals and removed it from the weights of layers 12 to 29 (of 32), while measuring and protecting the separate pattern it uses when it genuinely does not know something. Then we verified on the exact same science and instruction-following tests that reasoning quality stayed intact (72 of 90 before, **73 of 90** after on full size; 70 of 90 on 4-bit).| | Before refusal edit | Crow-9B (full size) | Crow-9B (4-bit) ||---|---:|---:|---:|| Answered requests that the original usually refuses | 0 of 12 | **10 of 12** | **10 of 12** || Said "I don't know" to trick questions with no real answer | 7 of 8 | **8 of 8** | 7 of 8 || Answered ordinary requests | 7 of 8 | **8 of 8** | **8 of 8** || Science + instructions check (paired, with helper) | 52/60 + 20/30 (72/90) | **51/60 + 22/30 (73/90)** | 49/60 + 21/30 (70/90) |<details><summary>For the technically minded</summary>- Stage 1 (shortest-working training): 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.- Stage 2 (epistemic-protected refusal removal): `NS-UNREFUSE-v2` null-space projection edit across layers 12 to 29 of 32 (36 weight matrices: 4 attention outputs, 14 linear-attention outputs, 18 MLP down-projections). Two refusal directions are made orthogonal to one "does not know" direction (`gamma_ep = 0.50`, `alpha = 1.25`), damped along 16 ordinary-prompt directions (`gamma_clean = 0.10`), with each row scaled back to its original length. Layers 0 to 11, 30 to 31, and the vision weights are untouched.- Token preservation: after refusal removal the model still picks the same next token on ordinary text 92.16% of the time (`KL = 0.07549`), so the draft model `ornith-ai/Ornith-1.5-9B-DFlash` keeps working (178 tokens/s in one chat, 251 tokens/s on code, and 1,320 tokens/s across eight chats on an A100).- 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`.
12345678910111248 unmodified lines616263646566{"release_name": "Crow-9B-AWQ","method": "ORNITH9B_ONPOLICY_SELF_DISTILL_SPLORA_MERGED","base_model": "ornith-ai/Ornith-1.5-9B","target_checkpoint": "ornith-ai/Ornith-1.5-9B","scripts": ["training/build_ornith9b_max_corpus.py","training/ornith9b_self_distill_splora.py","training/merge_peft_to_hf.py"],"decontamination_audit": {"source_json": "artifacts/ornith9b_max_p1/ornith9b_max/decontamination_audit.json",48 unmodified lines"expected_dflash8_accept_len": 6.904,"recommended_drafter": "ornith-ai/Ornith-1.5-9B-DFlash"},"quantization": {"scheme": "AWQ_W4A16","calibration_samples": 128,123456789101112131448 unmodified lines63646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111{"release_name": "Crow-9B-AWQ","method": "ORNITH9B_ONPOLICY_SELF_DISTILL_SPLORA_MERGED_PLUS_NS_UNREFUSE_V2_AWQ","base_model": "ornith-ai/Ornith-1.5-9B","target_checkpoint": "ornith-ai/Ornith-1.5-9B","scripts": ["training/build_ornith9b_max_corpus.py","training/ornith9b_self_distill_splora.py","training/merge_peft_to_hf.py","training/ns_unrefuse_v2.py","training/quantize_nvfp4_or_w4a16.py"],"decontamination_audit": {"source_json": "artifacts/ornith9b_max_p1/ornith9b_max/decontamination_audit.json",48 unmodified lines"expected_dflash8_accept_len": 6.904,"recommended_drafter": "ornith-ai/Ornith-1.5-9B-DFlash"},"refusal_surgery": {"method": "NS_UNREFUSE_V2","script": "training/ns_unrefuse_v2.py","n_total_layers": 32,"layer_band": [12, 29],"policy_rank": 2,"epistemic_rank": 1,"gamma_ep": 0.5,"gamma_clean": 0.1,"clean_rank": 16,"alpha_attn": 1.25,"alpha_mlp": 1.25,"preserve_row_norm": true,"edited_counts": {"self_attn_o_proj": 4,"linear_attn_out_proj": 14,"mlp_down_proj": 18,"total_tensors": 36},"clean_top1_agreement_pct": 92.16,"clean_mean_kl": 0.07549,"paired_verification": {"before_bf16": {"jbb_uncensored": "0/12","ordinary_requests": "7/8","epistemic_honesty": "7/8","capability_sanity": "7/8","gpqa_diamond_nudge": "52/60","ifeval_nothink_nudge": "20/30"},"after_awq": {"jbb_uncensored": "10/12","ordinary_requests": "8/8","epistemic_honesty": "7/8","capability_sanity": "8/8","gpqa_diamond_nudge": "49/60","ifeval_nothink_nudge": "21/30","a100_dflash_n1_tps": 178.5,"a100_dflash_code_tps": 251.0,"a100_dflash_n8_tps": 1319.9}}},"quantization": {"scheme": "AWQ_W4A16","calibration_samples": 128,
1234567891011{"src_model": "/content/save/Crow-9B","requested_scheme": "AWQ_W4A16","actual_scheme": "AWQ_W4A16","awq_fallback_reason": "","calib_source": "jsonl:verified_traces_v2.jsonl:128","protect_gdn_gates": true,"non_aligned_ignored": 102,"size_gb": 8.45,"elapsed_s": 716.5}12345678910{"src_model": "KC-Informatics/Crow-9B","requested_scheme": "AWQ_W4A16","actual_scheme": "AWQ_W4A16","awq_fallback_reason": "","calib_source": "verified_traces_v2.jsonl:128","protect_gdn_gates": true,"non_aligned_ignored": 102,"size_gb": 8.45}
README.md+13-6
alteration_manifest.json+47-2
quant_meta.json+4-5