Text Generation
Transformers
Safetensors
looped_bailing_moe
webbrain
Mixture of Experts
looped-transformer
reasoning
ring-mini-2.0
bailing-moe
test-time-compute
conversational
custom_code
Instructions to use webbrain-one/WebBrain-RingLoop-16B-A1.4B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use webbrain-one/WebBrain-RingLoop-16B-A1.4B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="webbrain-one/WebBrain-RingLoop-16B-A1.4B", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("webbrain-one/WebBrain-RingLoop-16B-A1.4B", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use webbrain-one/WebBrain-RingLoop-16B-A1.4B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "webbrain-one/WebBrain-RingLoop-16B-A1.4B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "webbrain-one/WebBrain-RingLoop-16B-A1.4B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/webbrain-one/WebBrain-RingLoop-16B-A1.4B
- SGLang
How to use webbrain-one/WebBrain-RingLoop-16B-A1.4B 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 "webbrain-one/WebBrain-RingLoop-16B-A1.4B" \ --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": "webbrain-one/WebBrain-RingLoop-16B-A1.4B", "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 "webbrain-one/WebBrain-RingLoop-16B-A1.4B" \ --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": "webbrain-one/WebBrain-RingLoop-16B-A1.4B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use webbrain-one/WebBrain-RingLoop-16B-A1.4B with Docker Model Runner:
docker model run hf.co/webbrain-one/WebBrain-RingLoop-16B-A1.4B
File size: 8,826 Bytes
7620f15 869deac 7620f15 869deac 7620f15 869deac 7620f15 869deac 7620f15 869deac 7620f15 869deac 7620f15 869deac 7620f15 869deac 7620f15 869deac 7620f15 869deac 7620f15 869deac 7620f15 869deac 7620f15 869deac 7620f15 869deac 7620f15 869deac 7620f15 869deac 7620f15 869deac 7620f15 869deac 7620f15 869deac 7620f15 869deac 7620f15 869deac | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 | ---
license: mit
base_model: inclusionAI/Ring-mini-2.0
library_name: transformers
pipeline_tag: text-generation
tags:
- webbrain
- moe
- looped-transformer
- reasoning
- ring-mini-2.0
- bailing-moe
- test-time-compute
---
# WebBrain-RingLoop-16B-A1.4B
**WebBrain-RingLoop-16B-A1.4B** upgrades [`inclusionAI/Ring-mini-2.0`](https://huggingface.co/inclusionAI/Ring-mini-2.0) (`16.4B` total / **`1.4B` active** Mixture-of-Experts) with **Inkling-2-Miniβstyle looped depth**, allowing the middle 10 layers to think twice before predicting each token.
It adds only **10.5M lightweight parameters (`+0.06%`)**, keeps all original weights intact, and runs smoothly on **8 GB consumer GPUs** via either PyTorch or `llama.cpp` β while boosting instant direct-answer and brief-reasoning accuracy over the original `Ring-mini-2.0` by up to **+30.8 percentage points**.
> Looking for causal ablations, parameter-matched LoRA controls, 2-pass vs. 3-pass Pareto analysis, or gate diagnostics? Read the full **[Technical Report](./TECHNICAL_REPORT.md)**.
### Model Family & 8 GB GPU Downloads
| Edition | Format | Size / VRAM | Link |
|---|---|---:|---|
| **Main (BF16)** | Hugging Face `bfloat16` (`trust_remote_code=True`) | ~30.3 GiB | [`webbrain-one/WebBrain-RingLoop-16B-A1.4B`](https://huggingface.co/webbrain-one/WebBrain-RingLoop-16B-A1.4B) |
| **8 GB GPU (PyTorch)** | NF3-g64 Experts + INT8 Emb/LM-Head (`trust_remote_code=True`) | **7.01 GiB** (`7.31 GiB` peak) | [`webbrain-one/WebBrain-RingLoop-16B-A1.4B-INT3`](https://huggingface.co/webbrain-one/WebBrain-RingLoop-16B-A1.4B-INT3) |
| **8 GB GPU (`llama.cpp`)** | Native GGUF (`Q2_K` / `Q3_K_S` / `Q3_K_M` / `Q4_K_M`, [`ggml-org/llama.cpp#33298`](https://github.com/ggml-org/llama.cpp/pull/33298)) | **6.05β7.66 GiB** (`Q3_K_S`: **406 tok/s**) | [`webbrain-one/WebBrain-RingLoop-16B-A1.4B-GGUF`](https://huggingface.co/webbrain-one/WebBrain-RingLoop-16B-A1.4B-GGUF) |
---
## Benchmarks: Original `Ring-mini-2.0` & 2026 Open-Weight Landscape
<p align="center">
<img src="assets/fig0_2026_comparison.png" alt="WebBrain-RingLoop vs Original Ring-mini-2.0 and 2026 Open-Weight Models" width="98%"/>
</p>
### 1. Before vs. After: Original `Ring-mini-2.0` vs. `WebBrain-RingLoop-16B-A1.4B`
Evaluated identically in-house (greedy decoding, official `Ring` chat template, frozen test splits, and identical token caps):
| Benchmark | Thinking Mode | Original `Ring-mini-2.0` | **`WebBrain-RingLoop-16B-A1.4B`** | Gain |
|---|---|---:|---:|---:|
| `MATH-500` (`n=250`) | Direct Answer (0 tok) | 20.00% | **28.80%** | **+8.80 pp** |
| `MATH-500` (`n=250`) | Brief Reasoning (`<=192` tok) | 28.80% | **45.20%** | **+16.40 pp** |
| `MMLU-Pro STEM` (`n=250`) | Direct Answer (0 tok) | 8.80% | **39.60%** | **+30.80 pp** |
| `MMLU-Pro STEM` (`n=250`) | Brief Reasoning (`<=192` tok) | 25.60% | **41.20%** | **+15.60 pp** |
| `MMLU-Pro STEM` (`n=50`) | Extended (`<=2048` tok) | 48.00% | **78.00%** | **+30.00 pp** |
| `GSM8K` (`n=200`) | Direct Answer (0 tok) | 24.50% | **31.00%** | **+6.50 pp** |
| `GSM8K` (`n=200`) | Brief Reasoning (`<=192` tok) | 50.00% | **70.00%** | **+20.00 pp** |
| `LongBench v2` (`n=100`, `<=3.5K` ctx) | Direct Answer (0 tok) | 14.00% | **34.00%** | **+20.00 pp** |
| `LongBench v2` (`n=100`, `<=3.5K` ctx) | Brief Reasoning (`<=192` tok) | 9.00% | **29.00%** | **+20.00 pp** |
| `AIME 2024+2025` (`n=60`) | Extended (`<=2048` tok) | 13.33% | **16.67%** | **+3.34 pp** |
---
### 2. Comparison With `Inkling 2 Mini` & Current 2026 Open-Weight Models (Public Benchmarks)
> **Scope Note:** Scores for `Inkling 2 Mini`, `Gemma 4`, `Qwen3.5`, `Qwen3.8`, `Muse Glimmer`, and `Nemotron 3.5` come directly from their **official 2026 public model cards** (full unconstrained reasoning / context), whereas `Ring-mini-2.0` and `WebBrain-RingLoop` reflect our **capped-budget in-house runs** (`MMLU-Pro STEM` `<=2K`, `LongBench v2` `<=3.5K` No-CoT, `AIME 24+25` `<=2K`, `ARC-AGI-1` compact `<=192` tok) shown side-by-side to frame hardware class vs. capability.
| Model | Architecture | Active / Total Params | Min VRAM | `MMLU-Pro` | `LongBench v2` | `ARC-AGI-1` | `AIME` |
|---|---|---:|---:|---:|---:|---:|---:|
| **`WebBrain-RingLoop-16B-A1.4B` (Ours)** | **Looped MoE (2-pass)** | **1.4B act (~2.1B eff) / 16.4B** | **8 GB** | **78.0%** *(STEM 2K)* | **34.0%** *(No-CoT <=3.5K)* | **6.0%** *(192 tok)* | **16.7%** *(24+25 2K)* |
| `Ring-mini-2.0` (Original Base) | MoE (1-pass) | 1.4B / 16.4B | 8 GB | 48.0% *(STEM 2K)* | 14.0% *(No-CoT <=3.5K)* | 6.0% *(192 tok)* | 13.3% *(24+25 2K)* |
| `Inkling 2 Mini` *(Nov 2026)* | Looped MoE (3-pass) | 3.4B act (5.4B eff) / 26.4B | 32 GB+ | β | **66.9%** | 84.5% | β |
| `Gemma 4 E2B` | Dense Hybrid + PLE | 2.3B eff / 5.1B | 8 GB | 60.0% | β | β | 37.5% *(AIME 26)* |
| `Gemma 4 E4B` | Dense Hybrid + PLE | 4.5B eff / 8B | 8β12 GB | 69.4% | β | β | 42.5% *(AIME 26)* |
| `Gemma 4 12B Unified` | Dense Multimodal | 12B / 12B | 12β16 GB | 77.2% | β | β | 77.5% *(AIME 26)* |
| `Qwen3.5-4B` | Dense | 4B / 5B | 8 GB | 79.1% | β | β | β |
| `Qwen3.5-9B` | Dense | 8B / 10B | 12β16 GB | 82.5% | 55.2% | β | **92.5%** *(AIME 26)* |
| `Gemma 4 26B A4B` | MoE (1-pass) | 3.8B / 25.2B | 24 GB | 82.6% | β | β | 88.3% *(AIME 26)* |
| `Qwen3.8-27B` | Dense | 27B / 27B | 24β32 GB+ | β | 52.3% | **87.5%** | β |
| `Gemma 4 31B` | Dense Multimodal | 31B / 31B | 24β32 GB+ | **85.2%** | 52.9% | β | 89.2% *(AIME 26)* |
| `Muse Glimmer` | Dense | 30B / 30B | 24β32 GB+ | β | 33.1% | β | β |
| `Nemotron 3.5 Super VL` | MoE Hybrid VL | 12B / 125B | 80 GB+ | β | 62.1% | 22.7% | β |
---
## What Makes `WebBrain-RingLoop` Different?
<p align="center">
<img src="assets/fig1_architecture.png" alt="WebBrain-RingLoop Architecture" width="95%"/>
</p>
1. **Second-Pass Depth Without Adding Experts:** Just like Thinking Machines Lab's **Inkling 2 Mini** loops its middle layers across passes, `WebBrain-RingLoop` runs `Ring-mini-2.0`'s middle 10 layers (`5β14`) **twice per token** (`30` effective layers from `20` physical layers), bridging the two passes with **10.5M lightweight weights** while leaving the `16.4B` base model frozen.
2. **Instant Intelligence at Small Budgets:** Standard thinking models often need hundreds or thousands of reasoning tokens to do well. Looped depth gives the model extra internal compute *inside every single token*, producing large gains even at **0 reasoning tokens** or **192-token limits**.
3. **True 8 GB Consumer GPU Speed:** With only **1.4B active parameters** (`~2.1B` effective per token across 2 passes), the quantized `Q3_K_S` GGUF fits in **7.00 GiB VRAM** and runs at **406 tok/s** on RTX 5090 (vs. 32 GB+ recommended for `Inkling 2 Mini`).
---
## Quickstart
### PyTorch / `transformers` (8 GB GPU `-INT3` or Full `BF16`)
```python
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
repo_id = "webbrain-one/WebBrain-RingLoop-16B-A1.4B-INT3" # or "webbrain-one/WebBrain-RingLoop-16B-A1.4B"
tokenizer = AutoTokenizer.from_pretrained(repo_id, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
repo_id,
torch_dtype=torch.bfloat16,
device_map={"": "cuda:0"},
trust_remote_code=True,
).eval()
prompt = (
"<role>SYSTEM</role>You are Ring, an assistant created by inclusionAI"
"<role>HUMAN</role>Find the number of positive integers n <= 100 that are divisible by 3 or 5.<role>ASSISTANT</role><think>\n"
)
inputs = tokenizer(prompt, return_tensors="pt", return_token_type_ids=False).to("cuda:0")
with torch.no_grad():
out = model.generate(**inputs, max_new_tokens=256, do_sample=False)
print(tokenizer.decode(out[0][inputs["input_ids"].shape[1]:], skip_special_tokens=True))
```
### `llama.cpp` (8 GB GPU `Q3_K_S` GGUF)
```bash
git clone https://github.com/esokullu/llama.cpp.git -b feat/bailingmoe2-loop
cmake -S llama.cpp -B llama.cpp/build -DGGML_CUDA=ON && cmake --build llama.cpp/build --target llama-cli -j
huggingface-cli download webbrain-one/WebBrain-RingLoop-16B-A1.4B-GGUF WebBrain-RingLoop-16B-A1.4B-Q3_K_S.gguf --local-dir ./models
./llama.cpp/build/bin/llama-cli -m ./models/WebBrain-RingLoop-16B-A1.4B-Q3_K_S.gguf -ngl 99 -c 2048 -p "Find the remainder when 7^100 is divided by 10."
```
---
## Deep Dive & Credits
- **Detailed Technical Report:** [`TECHNICAL_REPORT.md`](./TECHNICAL_REPORT.md) β full causal ablations (parameter-matched `r=64` LoRA control, zero-message ablation, 1-pass check, ODE loop baseline), 2-pass vs. 3-pass Pareto curves, and learned gate diagnostics.
- Built on [`inclusionAI/Ring-mini-2.0`](https://huggingface.co/inclusionAI/Ring-mini-2.0); cross-pass depth recurrence inspired by [`thinkingmachines/Inkling-2-Mini`](https://huggingface.co/thinkingmachines/Inkling-2-Mini).
|