Text Generation
Transformers
Safetensors
GGUF
English
granite
granite-4.2
twil
reasoning
math
code
instruction-following
reinforcement-learning
grpo
conversational
Instructions to use webAI-Official/TwIL-8B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use webAI-Official/TwIL-8B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="webAI-Official/TwIL-8B") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("webAI-Official/TwIL-8B") model = AutoModelForCausalLM.from_pretrained("webAI-Official/TwIL-8B", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.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(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use webAI-Official/TwIL-8B with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf webAI-Official/TwIL-8B:Q4_K_M # Run inference directly in the terminal: llama cli -hf webAI-Official/TwIL-8B:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf webAI-Official/TwIL-8B:Q4_K_M # Run inference directly in the terminal: llama cli -hf webAI-Official/TwIL-8B:Q4_K_M
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf webAI-Official/TwIL-8B:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf webAI-Official/TwIL-8B:Q4_K_M
Use Docker
docker model run hf.co/webAI-Official/TwIL-8B:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use webAI-Official/TwIL-8B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "webAI-Official/TwIL-8B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "webAI-Official/TwIL-8B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/webAI-Official/TwIL-8B:Q4_K_M
- SGLang
How to use webAI-Official/TwIL-8B 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 "webAI-Official/TwIL-8B" \ --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": "webAI-Official/TwIL-8B", "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 "webAI-Official/TwIL-8B" \ --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": "webAI-Official/TwIL-8B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use webAI-Official/TwIL-8B with Ollama:
ollama run hf.co/webAI-Official/TwIL-8B:Q4_K_M
- Unsloth Desktop
- Pi
How to use webAI-Official/TwIL-8B with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf webAI-Official/TwIL-8B:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "webAI-Official/TwIL-8B:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use webAI-Official/TwIL-8B with Docker Model Runner:
docker model run hf.co/webAI-Official/TwIL-8B:Q4_K_M
- Lemonade
How to use webAI-Official/TwIL-8B with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull webAI-Official/TwIL-8B:Q4_K_M
Run and chat with the model
lemonade run user.TwIL-8B-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use webAI-Official/TwIL-8B with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf webAI-Official/TwIL-8B:Q4_K_M
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default webAI-Official/TwIL-8B:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use webAI-Official/TwIL-8B with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf webAI-Official/TwIL-8B:Q4_K_M
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "webAI-Official/TwIL-8B:Q4_K_M" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Update README.md for s30 TwIL-8B release
Browse files
README.md
CHANGED
|
@@ -1,29 +1,353 @@
|
|
| 1 |
---
|
| 2 |
-
license: apache-2.0
|
| 3 |
language:
|
| 4 |
-
- en
|
| 5 |
-
base_model: ibm-granite/granite-4.2-8b
|
| 6 |
-
tags:
|
| 7 |
-
- granite
|
| 8 |
-
- twil
|
| 9 |
-
- reasoning
|
| 10 |
library_name: transformers
|
| 11 |
pipeline_tag: text-generation
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
---
|
| 13 |
|
| 14 |
# TwIL-8B
|
| 15 |
|
| 16 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
|
| 18 |
-
##
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
|
| 20 |
| File | Format | Notes |
|
| 21 |
-
|---|---|---|
|
| 22 |
-
| `model.safetensors` + tokenizer/config | Hugging Face (bf16) |
|
| 23 |
-
| `TwIL-8B-
|
| 24 |
-
| `TwIL-8B-
|
| 25 |
-
| `
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 26 |
|
| 27 |
-
|
|
|
|
| 28 |
|
| 29 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
|
|
|
| 2 |
language:
|
| 3 |
+
- en
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
library_name: transformers
|
| 5 |
pipeline_tag: text-generation
|
| 6 |
+
base_model: ibm-granite/granite-4.2-8b
|
| 7 |
+
license: apache-2.0
|
| 8 |
+
tags:
|
| 9 |
+
- granite
|
| 10 |
+
- granite-4.2
|
| 11 |
+
- twil
|
| 12 |
+
- reasoning
|
| 13 |
+
- math
|
| 14 |
+
- code
|
| 15 |
+
- reinforcement-learning
|
| 16 |
+
- grpo
|
| 17 |
+
- length-compression
|
| 18 |
+
- gguf
|
| 19 |
---
|
| 20 |
|
| 21 |
# TwIL-8B
|
| 22 |
|
| 23 |
+
An **8B reasoning model** built from
|
| 24 |
+
[`ibm-granite/granite-4.2-8b`](https://huggingface.co/ibm-granite/granite-4.2-8b)
|
| 25 |
+
through full-parameter supervised fine-tuning and GRPO/DAPO reinforcement learning, then
|
| 26 |
+
**length-compressed** to the **s30** checkpoint published in this repository.
|
| 27 |
+
|
| 28 |
+
TwIL-8B is aimed at contest math, code, and instruction following. On the internal high-effort
|
| 29 |
+
pass@1 harness used for the lineage study, the accuracy-oriented sibling (**rl100**) averages
|
| 30 |
+
**88.1%** across five contest-math sets against **85.9%** for Gemma 4 31B (~4Γ the parameters),
|
| 31 |
+
leads Qwen3.5-9B by about five points on the four contests they share, posts the group's best
|
| 32 |
+
LiveCodeBench score (**81.6%**), and reaches **90β95%** of frontier scores on AIME 2026, both
|
| 33 |
+
HMMT 2025 sets, IFBench, and LiveCodeBench. The **s30** release keeps that capability profile
|
| 34 |
+
while cutting mean trace length by about **28%** (~26.9k β ~19.4k tokens), trading **2.8** points
|
| 35 |
+
on the 9-benchmark macro for shorter generations β and actually **improving** MATH-500
|
| 36 |
+
(**98.2%**) and GPQA Diamond (**70.2%**, best in the lineage).
|
| 37 |
+
|
| 38 |
+
Competitor numbers below are taken from model cards, independent leaderboards (MathArena,
|
| 39 |
+
Artificial Analysis, Vals AI), and community runs; they were **not** re-run in the same harness.
|
| 40 |
+
See [Evaluation protocol](#evaluation-protocol) and the attached
|
| 41 |
+
[`TwIL-8B-evaluation-report.pdf`](TwIL-8B-evaluation-report.pdf).
|
| 42 |
|
| 43 |
+
## Highlights
|
| 44 |
+
|
| 45 |
+
* **Strong contest math at 8B.** The rl100 sibling beats Gemma 4 31B on AIME 2025 (+3.7),
|
| 46 |
+
AIME 2026 (+3.7), HMMT Feb 2025 (+2.5), and HMMT Feb 2026 (+1.6), trailing only on
|
| 47 |
+
HMMT Nov 2025 (β0.8). It beats Qwen3.5-9B on all four shared contests, by up to **+8.0**.
|
| 48 |
+
The published **s30** checkpoint stays competitive (AIME 2026 **88.3%**, HMMT Nov 2025
|
| 49 |
+
**86.7%** held flat) while shortening traces.
|
| 50 |
+
* **Best GPQA in the lineage, and a top MATH-500.** s30 scores **70.2%** on GPQA Diamond
|
| 51 |
+
(ahead of rl100's 69.0%) and **98.2%** on MATH-500 (ahead of rl100's 96.4%; only l2sv2-s20
|
| 52 |
+
is higher in-family at 98.6%).
|
| 53 |
+
* **Solid instruction following.** rl100 IFBench **74.4%** is **+9.9** vs Qwen3.5-9B and level
|
| 54 |
+
with Gemma 4 12B; IFEval **91.7β91.8%** across rl100 and s30. s30 was not re-run on IFBench.
|
| 55 |
+
* **Strong coder (rl100 measured).** LiveCodeBench **81.6%** leads Gemma 4 31B (80.0%),
|
| 56 |
+
Gemma 4 12B (72.0%), and Qwen3.5-9B (65.6%). HumanEval **93.2%**, HumanEval+ **88.3%**,
|
| 57 |
+
MBPP **93.7%**, MBPP+ **79.1%**, CRUXEval **97.1%**. Code / LiveCodeBench / IFBench / HLE /
|
| 58 |
+
MMLU-Pro were **not run** on s30 β quote the rl100 column for those.
|
| 59 |
+
* **~90β95% of frontier on reasoning.** Against GPT-5.5, Claude Opus 4.8, and Grok 4.3
|
| 60 |
+
(highest reported effort), rl100 reaches ~93% of the best frontier score on AIME 2026 and
|
| 61 |
+
LiveCodeBench, ~95% on HMMT Feb 2025, and ~92% on IFBench β where it **beats Opus 4.8**
|
| 62 |
+
outright (+12.2).
|
| 63 |
+
* **Shorter than rl100 by design.** Mean output length across nine measured benchmarks falls
|
| 64 |
+
from ~26.9k to ~19.4k tokens (**~72%**). On AIME 2026 that is **30.3k β 19.5k** (β36%) for a
|
| 65 |
+
4.6-point accuracy cost. Token efficiency vs GPT-5.5 (~5k on AIME 2026) remains the open gap.
|
| 66 |
+
* **Runs anywhere.** ~8B parameters in bf16 (~16.4 GiB), plus a Q4_K_M (imatrix) GGUF for
|
| 67 |
+
CPU / modest VRAM.
|
| 68 |
+
|
| 69 |
+
It is **not** a knowledge-maximising model: GPQA, MMLU-Pro, and HLE trail larger open peers and
|
| 70 |
+
the frontier. It is also still verbose by frontier standards. There is no extra safety or
|
| 71 |
+
preference tuning beyond what Granite 4.2 carries. See [Limitations](#limitations-and-caveats).
|
| 72 |
+
|
| 73 |
+
## Model Details
|
| 74 |
+
|
| 75 |
+
| Property | Value |
|
| 76 |
+
| --- | --- |
|
| 77 |
+
| Model ID | `webAI-Official/TwIL-8B` |
|
| 78 |
+
| Base model | [`ibm-granite/granite-4.2-8b`](https://huggingface.co/ibm-granite/granite-4.2-8b) |
|
| 79 |
+
| Published checkpoint | **s30** (length-compressed); sibling **rl100** is the accuracy-oriented reference in the tables |
|
| 80 |
+
| Architecture | Granite decoder-only dense transformer (`GraniteForCausalLM`); 40 layers, hidden size 4096, 32 attention heads / 8 KV heads |
|
| 81 |
+
| Input / output | Text / text |
|
| 82 |
+
| Language | English |
|
| 83 |
+
| Tokenizer vocabulary size | 100,352 |
|
| 84 |
+
| Context window | 131,072 tokens (inherited from the base; scores below are not a long-context validation) |
|
| 85 |
+
| Checkpoint precision | bfloat16 (`model.safetensors`), plus Q4_K_M (importance-matrix) GGUF |
|
| 86 |
+
| Post-training | Full-parameter SFT β GRPO/DAPO RL (rl100) β length compression (L2S v2 β **s30**) |
|
| 87 |
+
| Reasoning format | Emits a thinking block before the answer (default chat template) |
|
| 88 |
+
| Specialisation | Contest math, code, instruction following; STEM / knowledge is secondary |
|
| 89 |
+
| License | Apache License 2.0 |
|
| 90 |
+
|
| 91 |
+
### Files
|
| 92 |
|
| 93 |
| File | Format | Notes |
|
| 94 |
+
| --- | --- | --- |
|
| 95 |
+
| `model.safetensors` + tokenizer / config | Hugging Face (bf16) | **s30** primary weights |
|
| 96 |
+
| `TwIL-8B-Q4_K_M.gguf` | GGUF Q4_K_M (imatrix) | Quantised from s30; recommended default for local / edge |
|
| 97 |
+
| `TwIL-8B-evaluation-report.pdf` | PDF | Full evaluation write-up (November 2026) |
|
| 98 |
+
| `apache-2.0-LICENSE.txt` | Text | License text |
|
| 99 |
+
|
| 100 |
+
> Earlier F16 / Q8_0 / Q4_K_M GGUFs in this repo belonged to the previous **rl100** upload and
|
| 101 |
+
> have been removed so they are not mistaken for the published s30 weights.
|
| 102 |
+
|
| 103 |
+
## Results
|
| 104 |
+
|
| 105 |
+
All TwIL numbers are **internal high-effort pass@1**. Bold marks the best score in the open-peer
|
| 106 |
+
row (including s30). βββ means not run / not published. Bracketed numbers link to the
|
| 107 |
+
[source list](#references) in the evaluation report.
|
| 108 |
+
|
| 109 |
+
### Open peers
|
| 110 |
+
|
| 111 |
+
| Benchmark | **TwIL-8B (s30)** | TwIL-8B rl100 | Qwen3.5-9B | Gemma 4 12B | Gemma 4 31B |
|
| 112 |
+
| --- | ---: | ---: | ---: | ---: | ---: |
|
| 113 |
+
| **MATH** | | | | | |
|
| 114 |
+
| MATH-500 | **98.2** | 96.4 | 96.6 [8] | β | 87.9 [5] |
|
| 115 |
+
| AIME (legacy) | 87.8 | **91.5** | β | β | β |
|
| 116 |
+
| AIME 2025 | 88.3 | **90.8** | β | β | 87.1 [5] |
|
| 117 |
+
| AIME 2026 | 88.3 | **92.9** | 92.5 [7] | 77.5 [2] | 89.2 [2] |
|
| 118 |
+
| HMMT Feb 2025 | 85.0 | **91.2** | 83.2 [6] | β | 88.7 [4] |
|
| 119 |
+
| HMMT Feb 2026 | 68.2 | **78.8** | 71.2 [7] | β | 77.2 [4] |
|
| 120 |
+
| HMMT Nov 2025 | **86.7** | **86.7** | 82.9 [6] | β | 87.5 [4] |
|
| 121 |
+
| **Science & knowledge** | | | | | |
|
| 122 |
+
| GPQA Diamond | **70.2** | 69.0 | 81.7 [6] | 78.8 [2] | 84.3 [2] |
|
| 123 |
+
| MMLU-Pro | β | 76.5 | 82.5 [6] | 77.2 [2] | 85.2 [2] |
|
| 124 |
+
| HLE | β | 12.6 | 14.9 [9] | 5.2 [2] | 19.5 [2] |
|
| 125 |
+
| **Instruction following** | | | | | |
|
| 126 |
+
| IFEval | **91.8** | 91.7 | 91.5 [6] | 97.2 [3] | 98.9 [3] |
|
| 127 |
+
| IFBench | β | 74.4 | 64.5 [6] | 74.0 [3] | 76.0 [3] |
|
| 128 |
+
| **Code** | | | | | |
|
| 129 |
+
| LiveCodeBench | β | **81.6** | 65.6 [6] | 72.0 [2] | 80.0 [2] |
|
| 130 |
+
| HumanEval | β | 93.2 | 93.9 [11] | β | 94.5 [10] |
|
| 131 |
+
| HumanEval+ | β | 88.3 | 87.2 [11] | β | 91.5 [10] |
|
| 132 |
+
| MBPP | β | **93.7** | β | β | β |
|
| 133 |
+
| MBPP+ | β | **79.1** | β | β | β |
|
| 134 |
+
| CRUXEval | β | **97.1** | β | β | β |
|
| 135 |
+
|
| 136 |
+
### Against the frontier (rl100 reference)
|
| 137 |
+
|
| 138 |
+
Frontier models at their highest reported reasoning effort. The share column is
|
| 139 |
+
`TwIL-8B (rl100) Γ· best frontier` on that row.
|
| 140 |
+
|
| 141 |
+
| Benchmark | TwIL-8B rl100 | GPT-5.5 (xhigh) | Claude Opus 4.8 (max) | Grok 4.3 (high) | Share of best frontier |
|
| 142 |
+
| --- | ---: | ---: | ---: | ---: | ---: |
|
| 143 |
+
| AIME 2026 | 92.9 | 100.0 [14] | 100.0 [14] | β | 93% |
|
| 144 |
+
| HMMT Feb 2025 | 91.2 | 96.5 [16] | 96.5 [16] | β | 95% |
|
| 145 |
+
| HMMT Feb 2026 | 78.8 | 98.5 [15] | 95.5 [15] | β | 80% |
|
| 146 |
+
| HMMT Nov 2025 | 86.7 | 96.5 [17] | 96.5 [17] | β | 90% |
|
| 147 |
+
| GPQA Diamond | 69.0 | 93.6 [12] | 93.6 [13] | 90.1 [20] | 74% |
|
| 148 |
+
| MMLU-Pro | 76.5 | 88.1 [18] | 89.6 [19] | 85.8 [21] | 85% |
|
| 149 |
+
| HLE | 12.6 | 45.8 [18] | 48.7 [19] | 37.2 [20] | 26% |
|
| 150 |
+
| IFBench | 74.4 | 75.9 [18] | 62.2 [19] | 81.3 [20] | 92% |
|
| 151 |
+
| LiveCodeBench | 81.6 | 85.3 [18] | 87.8 [19] | 84.5 [21] | 93% |
|
| 152 |
+
|
| 153 |
+
Closest to the frontier on **instruction following and code**: IFBench beats Opus 4.8 by 12.2
|
| 154 |
+
and sits 1.5 behind GPT-5.5; LiveCodeBench is within 2.9β6.2 of all three. Contest math is
|
| 155 |
+
typically 5β10 points back (HMMT Feb 2026 is the outlier). **Knowledge is the real gap** β
|
| 156 |
+
GPQA trails by ~21β25 points and HLE by ~25β36.
|
| 157 |
+
|
| 158 |
+
### Matchups (rl100 vs open peers)
|
| 159 |
+
|
| 160 |
+
Averages only over benchmarks where both models have a published score.
|
| 161 |
+
|
| 162 |
+
| Matchup | Shared benches | Record | Shared average | Notes |
|
| 163 |
+
| --- | ---: | --- | --- | --- |
|
| 164 |
+
| vs Qwen3.5-9B (9.7B) | 13 | 8β5 | 79.5 vs 77.6 | Contest math 87.4 vs 82.4; LiveCodeBench +16.0; IFBench +9.9; trails on GPQA / MMLU-Pro / HLE |
|
| 165 |
+
| vs Gemma 4 12B (~1.5Γ) | 7 | 4β3 | 71.2 vs 68.8 | AIME 2026 +15.4; LiveCodeBench +9.6; HLE +7.4 |
|
| 166 |
+
| vs Gemma 4 31B (~3.8Γ) | 14 | 6β8 | 80.3 vs 82.0 | Contest math 88.1 vs 85.9 (wins 4 of 5); trails on knowledge / IF / HumanEval |
|
| 167 |
+
|
| 168 |
+
### Length-compression ablation (rl100 β s20 β s30)
|
| 169 |
+
|
| 170 |
+
Same harness and sampling for all three. **s30** is what this repository ships.
|
| 171 |
+
|
| 172 |
+
**Accuracy (%)**
|
| 173 |
+
|
| 174 |
+
| Benchmark | rl100 | s20 | **s30 (published)** | s30 β rl100 |
|
| 175 |
+
| --- | ---: | ---: | ---: | ---: |
|
| 176 |
+
| MATH-500 | 96.4 | 98.6 | **98.2** | +1.8 |
|
| 177 |
+
| IFEval | 91.7 | 92.5 | **91.8** | +0.1 |
|
| 178 |
+
| GPQA Diamond | 69.0 | 67.9 | **70.2** | +1.2 |
|
| 179 |
+
| AIME (legacy) | 91.5 | 90.0 | 87.8 | β3.7 |
|
| 180 |
+
| AIME 2025 | 90.8 | 86.7 | 88.3 | β2.5 |
|
| 181 |
+
| AIME 2026 | 92.9 | 91.7 | 88.3 | β4.6 |
|
| 182 |
+
| HMMT Feb 2025 | 91.2 | 86.7 | 85.0 | β6.2 |
|
| 183 |
+
| HMMT Feb 2026 | 78.8 | 74.2 | 68.2 | β10.6 |
|
| 184 |
+
| HMMT Nov 2025 | 86.7 | 85.0 | **86.7** | Β±0.0 |
|
| 185 |
+
| **9-bench macro** | **87.7** | 85.9 | 84.9 | **β2.8** |
|
| 186 |
+
|
| 187 |
+
**Mean trace length (tokens)**
|
| 188 |
+
|
| 189 |
+
| Benchmark | rl100 | s20 | **s30** | s30 / rl100 |
|
| 190 |
+
| --- | ---: | ---: | ---: | ---: |
|
| 191 |
+
| MATH-500 | 4,927 | 4,284 | **3,668** | 74% |
|
| 192 |
+
| IFEval | 3,581 | 2,452 | **1,817** | 51% |
|
| 193 |
+
| GPQA Diamond | 30,158 | 21,967 | **17,661** | 59% |
|
| 194 |
+
| AIME (legacy) | 29,082 | 24,665 | **21,656** | 74% |
|
| 195 |
+
| AIME 2025 | 31,392 | 26,219 | **23,186** | 74% |
|
| 196 |
+
| AIME 2026 | 30,271 | 23,472 | **19,471** | 64% |
|
| 197 |
+
| HMMT Feb 2025 | 36,780 | 31,003 | **30,232** | 82% |
|
| 198 |
+
| HMMT Feb 2026 | 43,578 | 38,545 | **32,903** | 76% |
|
| 199 |
+
| HMMT Nov 2025 | 32,625 | 25,124 | **23,719** | 73% |
|
| 200 |
+
| **Mean (9)** | **~26.9k** | ~22.0k (~82%) | **~19.4k (~72%)** | **72%** |
|
| 201 |
+
|
| 202 |
+
**Choosing among them.** rl100 is the accuracy pick for hard contest math. Among compressed
|
| 203 |
+
checkpoints, s20 has the better accuracy-per-token trade; **s30** buys the most compression and
|
| 204 |
+
the best GPQA at a clear cost on the hardest math (especially HMMT Feb 2026).
|
| 205 |
+
|
| 206 |
+
### Token budget vs peers
|
| 207 |
+
|
| 208 |
+
Mean output tokens from MathArena where available ([7], [14], [15]); frontier counts rounded to 1k.
|
| 209 |
+
|
| 210 |
+
| Setting | GPT-5.5 | Opus 4.8 | Qwen3.5-9B | TwIL-8B rl100 | **TwIL-8B s30** |
|
| 211 |
+
| --- | --- | --- | --- | --- | --- |
|
| 212 |
+
| AIME 2026 | 5.0k Β· 100.0% | 21.0k Β· 100.0% | 31.2k Β· 92.5% | 30.3k Β· 92.9% | **19.5k Β· 88.3%** |
|
| 213 |
+
| HMMT Feb 2026 | 8.0k Β· 98.5% | 30.0k Β· 95.5% | 40.6k Β· 71.2% | 43.6k Β· 78.8% | **32.9k Β· 68.2%** |
|
| 214 |
+
|
| 215 |
+
Against Qwen3.5-9B, rl100 uses similar tokens with higher contest-math scores. GPT-5.5 remains
|
| 216 |
+
far more token-efficient. Harnesses and tokenizers differ β treat this as directional.
|
| 217 |
+
|
| 218 |
+
### Lineage note
|
| 219 |
+
|
| 220 |
+
Across the broader Granite TwIL lineage (base β s75 β rl100 β L2S / STEM / blends), rl100 is
|
| 221 |
+
the best checkpoint on 8 of 18 benchmarks and within 0.4 of the best on four more. Notable
|
| 222 |
+
in-family winners elsewhere: l2sv2-s20 on MATH-500 (98.6), **l2sv2-s30 on GPQA Diamond (70.2)**,
|
| 223 |
+
stem10 on IFEval (94.9) / IFBench (74.8), blend70 on AIME 2026 (93.3). Full per-benchmark
|
| 224 |
+
winners are in the evaluation report.
|
| 225 |
+
|
| 226 |
+
## Usage
|
| 227 |
+
|
| 228 |
+
```python
|
| 229 |
+
import torch
|
| 230 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 231 |
+
|
| 232 |
+
model_id = "webAI-Official/TwIL-8B"
|
| 233 |
+
tok = AutoTokenizer.from_pretrained(model_id)
|
| 234 |
+
model = AutoModelForCausalLM.from_pretrained(
|
| 235 |
+
model_id, torch_dtype=torch.bfloat16, device_map="auto"
|
| 236 |
+
)
|
| 237 |
+
|
| 238 |
+
messages = [{"role": "user", "content":
|
| 239 |
+
"Find the number of positive integers n < 1000 such that n is divisible by 3 "
|
| 240 |
+
"but not by 5. Show your reasoning, then give the final integer."}]
|
| 241 |
+
inputs = tok.apply_chat_template(
|
| 242 |
+
messages, add_generation_prompt=True,
|
| 243 |
+
return_tensors="pt", return_dict=True,
|
| 244 |
+
).to(model.device)
|
| 245 |
+
|
| 246 |
+
out = model.generate(**inputs, max_new_tokens=8192, do_sample=False)
|
| 247 |
+
print(tok.decode(out[0][inputs["input_ids"].shape[-1]:], skip_special_tokens=True))
|
| 248 |
+
```
|
| 249 |
+
|
| 250 |
+
`return_dict=True` matters on Transformers 5.x, where `apply_chat_template` returns a
|
| 251 |
+
`BatchEncoding` rather than a bare tensor. Use a Transformers release with Granite 4.2 support.
|
| 252 |
+
|
| 253 |
+
Reported numbers use **high-effort** decoding (long generation budgets, thinking enabled). The
|
| 254 |
+
shipped `generation_config.json` enables sampling (`do_sample=true`, `temperature=1.0`,
|
| 255 |
+
`top_p=0.95`); pass `do_sample=False` explicitly for greedy runs. By default the chat template
|
| 256 |
+
opens a thinking block β a short generation budget truncates reasoning and scores far worse.
|
| 257 |
+
The template also accepts `enable_thinking=False` and `reasoning_effort="low"` through
|
| 258 |
+
`chat_template_kwargs`.
|
| 259 |
+
|
| 260 |
+
### GGUF / llama.cpp
|
| 261 |
+
|
| 262 |
+
| File | Quant | Approx. size | Notes |
|
| 263 |
+
| --- | --- | --- | --- |
|
| 264 |
+
| `TwIL-8B-Q4_K_M.gguf` | Q4_K_M (imatrix) | ~5.0 GiB | Recommended default; built from the published **s30** weights |
|
| 265 |
+
|
| 266 |
+
```bash
|
| 267 |
+
llama-cli -hf webAI-Official/TwIL-8B:Q4_K_M -cnv --temp 0 -n 8192
|
| 268 |
+
```
|
| 269 |
+
|
| 270 |
+
Leave the generation budget large (8192+). Scores in this card were measured on the bf16
|
| 271 |
+
weights, not on the GGUF build, so expect small deviations at Q4.
|
| 272 |
+
|
| 273 |
+
## How it was built
|
| 274 |
+
|
| 275 |
+
1. **Full-parameter SFT** on a multi-domain reasoning corpus (math, code, STEM, instruction
|
| 276 |
+
following) starting from `ibm-granite/granite-4.2-8b`.
|
| 277 |
+
2. **GRPO / DAPO reinforcement learning** against programmatic / contest verifiers, producing
|
| 278 |
+
the accuracy-oriented **rl100** policy (100 RL steps; previously the default TwIL-8B upload).
|
| 279 |
+
3. **Length compression (L2S v2)** to shorten reasoning traces while retaining capability β
|
| 280 |
+
intermediate **s20**, then the published **s30**. Optional blends of s30 with rl100 exist
|
| 281 |
+
in the internal lineage but are not shipped here.
|
| 282 |
+
|
| 283 |
+
This release is the **merged s30 policy**, not a LoRA adapter.
|
| 284 |
+
|
| 285 |
+
## Limitations and caveats
|
| 286 |
+
|
| 287 |
+
* **Coverage gaps on s30.** MMLU-Pro, HLE, IFBench, LiveCodeBench, and the HumanEval / MBPP /
|
| 288 |
+
CRUXEval suite were measured on **rl100**, not on the published s30 weights. Do not attribute
|
| 289 |
+
those numbers to s30.
|
| 290 |
+
* **Hard contest math regresses under compression.** HMMT Feb 2026 drops 10.6 points
|
| 291 |
+
(78.8 β 68.2); AIME 2026 drops 4.6. Prefer rl100 (or an internal blend) when absolute contest
|
| 292 |
+
score matters more than tokens.
|
| 293 |
+
* **Knowledge trails scale.** GPQA / MMLU-Pro / HLE sit well behind larger open models and the
|
| 294 |
+
frontier; HLE comparisons are approximate (TwIL uses a multiple-choice rule; competitors are
|
| 295 |
+
often text-only judge-graded).
|
| 296 |
+
* **Verbose vs the frontier.** Even s30's ~19.5k tokens on AIME 2026 is ~4Γ GPT-5.5's ~5k.
|
| 297 |
+
* **Cross-harness comparisons.** Competitor figures come from each vendor's card or third-party
|
| 298 |
+
evals with their own prompts, sampling, and token budgets. On a 30-problem contest set, one
|
| 299 |
+
problem is 3.3 points. LiveCodeBench competitor scores are v6; the TwIL date window is not
|
| 300 |
+
recorded in the summaries. Gemma / Qwen HumanEval figures include community runs with
|
| 301 |
+
different thinking / length settings.
|
| 302 |
+
* **No general-assistant claim.** No additional safety, tool-use, or preference post-training
|
| 303 |
+
beyond the Granite 4.2 base.
|
| 304 |
+
|
| 305 |
+
## Evaluation protocol
|
| 306 |
+
|
| 307 |
+
* **TwIL scores:** internal high-effort pass@1 on the Granite TwIL lineage harness
|
| 308 |
+
(`final.*.json` summaries for rl100, s20, s30, and related checkpoints).
|
| 309 |
+
* **Competitors:** reproduced from public sources accessed **3 November 2026 (IST)** β model
|
| 310 |
+
cards, MathArena, Artificial Analysis, Vals AI, EvalPlus, Red Hat lighteval, and community
|
| 311 |
+
cards as cited. **No competitor benchmarks were re-run.**
|
| 312 |
+
* **Naming:** historically βTwIL-8Bβ referred to **rl100**; this repository now publishes
|
| 313 |
+
**s30** as TwIL-8B. βGPQAβ means GPQA Diamond; βAIMEβ without a year is the legacy set.
|
| 314 |
+
Scores are percentages (0.964 β 96.4%).
|
| 315 |
+
|
| 316 |
+
Full methodology, caveats, and the numbered source list are in
|
| 317 |
+
[`TwIL-8B-evaluation-report.pdf`](TwIL-8B-evaluation-report.pdf).
|
| 318 |
+
|
| 319 |
+
## Relationship to TwIL-LM
|
| 320 |
+
|
| 321 |
+
TwIL-8B sits in the same webAI TwIL family as
|
| 322 |
+
[`TwIL-LM3`](https://huggingface.co/webAI-Official/TwIL-LM3) and
|
| 323 |
+
[`TwIL-LM3-Pro`](https://huggingface.co/webAI-Official/TwIL-LM3-Pro), but on a different base
|
| 324 |
+
and objective mix: Granite 4.2 **8B** with a contest-math / code / IF emphasis, rather than the
|
| 325 |
+
3B formal-logic Track A / Track B suite. The LM3 cards remain the reference for in-domain
|
| 326 |
+
formal-logic gates; this card is the reference for the 8B reasoning evals above.
|
| 327 |
+
|
| 328 |
+
## License and attribution
|
| 329 |
+
|
| 330 |
+
Released under the **Apache License 2.0** β see `apache-2.0-LICENSE.txt`.
|
| 331 |
+
|
| 332 |
+
The base model, `ibm-granite/granite-4.2-8b`, is Copyright IBM Corporation and is also
|
| 333 |
+
distributed under Apache 2.0; all credit for the base model goes to IBM.
|
| 334 |
+
|
| 335 |
+
## References
|
| 336 |
|
| 337 |
+
Primary write-up: [`TwIL-8B-evaluation-report.pdf`](TwIL-8B-evaluation-report.pdf)
|
| 338 |
+
(November 2026). Selected sources:
|
| 339 |
|
| 340 |
+
1. TwIL internal eval, high-effort pass@1 (`final.*.json` summaries) β rl100, s20, s30, lineage
|
| 341 |
+
2. [Gemma 4 model card](https://ai.google.dev/gemma/docs) β Google
|
| 342 |
+
3. Gemma 4 Technical Report, Table 5 (arXiv 2607.02770)
|
| 343 |
+
4. Qwen3.6-27B model card β Gemma4-31B baseline column (HMMT)
|
| 344 |
+
5. RedHatAI gemma-4-31B lighteval BF16 baseline
|
| 345 |
+
6. [Qwen3.5-9B model card](https://huggingface.co/Qwen/Qwen3.5-9B)
|
| 346 |
+
7. [MathArena](https://matharena.ai/) β Qwen3.5-9B / frontier contest math + tokens
|
| 347 |
+
8. SOTA2 Research β MATH-500 leaderboard
|
| 348 |
+
9. Artificial Analysis via OpenRouter β Qwen3.5 9B (Reasoning) HLE
|
| 349 |
+
10. EvalPlus submission #300 β Gemma 4 31B HumanEval / HumanEval+
|
| 350 |
+
11. Community Qwen3.5-9B thinking-on HumanEval / HumanEval+ baseline
|
| 351 |
+
12β21. Frontier cards and aggregators (OpenAI GPT-5.5, Anthropic Opus 4.8, xAI Grok 4.3,
|
| 352 |
+
MathArena / BenchLeader, Artificial Analysis, Vals AI, Z.ai GLM-5.2, benchgap.net) β
|
| 353 |
+
see the PDF for the full numbered list
|