Text Generation
Transformers
Safetensors
English
gemma4
image-text-to-text
gemma
mixture-of-experts
pruned
reap
fp8
vllm
conversational
compressed-tensors
Run this model with HF Jobs
Run KC-Informatics/Rook-26B 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/Rook-26B. 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/Rook-26B 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/Rook-26B. 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/Rook-26B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use KC-Informatics/Rook-26B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="KC-Informatics/Rook-26B") 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/Rook-26B") model = AutoModelForMultimodalLM.from_pretrained("KC-Informatics/Rook-26B", 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/Rook-26B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "KC-Informatics/Rook-26B" # 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/Rook-26B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/KC-Informatics/Rook-26B
- SGLang
How to use KC-Informatics/Rook-26B 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/Rook-26B" \ --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/Rook-26B", "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/Rook-26B" \ --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/Rook-26B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use KC-Informatics/Rook-26B with Docker Model Runner:
docker model run hf.co/KC-Informatics/Rook-26B
Clearer pages: one page per model, plain words, graphs from the measured results
Browse filesFiles changed (2)
37 unmodified lines3839404141434243444517 unmodified lines63646567686667686 unmodified lines7576778182837879808182838984858687939495969798991001011028889909137 unmodified lines| Specialists per layer | 128 | **108** || Download | 28.6 GB | **25.1 GB** || Speed, one chat (40 GB A100, no draft model) | 131 tokens a second | 128 tokens a second || Refuses the same requests as the original | | yes (3 of 12 answered, original 3 of 12) |
Rook saves memory, not time: the model still uses 8 specialists per word, so speed stays about the same.The model still uses 8 specialists per word, so speed stays about the same.
<details><summary>For the technically minded</summary>17 unmodified lines
Against the popular community 4-bit build of the same model, question by question: Rook alone got 39 right, the community build alone got 11 right. That is a reliable difference (paired exact test, p = 0.0001).
We have not run the untouched original Gemma on these 180 questions, so we do not claim Rook matches it. What we measured is above.
## Run it
```bash6 unmodified lines
## 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 that step, 132 with it.Included in every repo. If the model uses up its thinking allowance without answering, the helper asks it once to conclude. 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.Point your app at `http://127.0.0.1:8001/v1`.
## 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.- Scores marked "with the helper" were measured with the same conclude-once step built into our test runner. `nudge.py` is that step packaged as a stand-alone file; the file itself has not been run across all 180 questions.- 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 not
Rook keeps Gemma 4's original refusal behaviour. If you want the model that refuses less, that is [Raven-27B](https://huggingface.co/KC-Informatics/Raven-27B-AWQ).180 public test questions, one attempt each, graded by script: 60 science (GPQA Diamond), 30 maths (AIME 2026), 40 coding (LiveCodeBench v6), 30 on following instructions (IFEval) and 20 on long documents (AA-LCR).
## Licence and credit
README.md+4-18
chart_overall.png

Large File Pointer Details
- SHA256: de576da3035dbcfbfc02d193eca0f334c11374e583147c8b62e23a74b79b8502
- Pointer size: 131 Bytes
- Size of remote file: 191 kB

Large File Pointer Details
- SHA256: 560fa95ec617863d8e19da655ccd35f37fe505d7a8e057ff32c8312e06410d62
- Pointer size: 131 Bytes
- Size of remote file: 188 kB