WebBrain-RingLoop-16B-A1.4B
a model with a recurrent reasoning loop
2 min readupdated
The model is based on the base inclusionAI/Ring-mini-2.0 and turns it into a system with a looped layer pass for improved logical reasoning. Due to lightweight added bridges and two passes through the middle layers, the model achieves accuracy gains on math and science benchmarks without altering the core experts. The development targets research and practical tasks where enhanced reasoning accuracy matters.
Key features
- Accuracy boost: Improved results on the
MATH-500andMMLU-Pro STEMbenchmarks. - Looped architecture: Iterative exchange of hidden states between passes through the middle layers.
- Base preservation: Base model weights are frozen; only small additional components are trained.
- Execution flexibility:
bfloat16formats, quantized versions, andllama.cpp GGUFsupport are available.
What you can do
- Run inference through the
transformerslibrary to solve complex math problems. - Use a quantized version to run on memory-constrained GPUs.
- Integrate the model into a local text assistant with a focus on reasoning.
- Test changing the number of passes (
num_passes) on the fly to balance speed and quality.
Example
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
repo_id = "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="auto",
trust_remote_code=True,
)
prompt = "SYSTEMYou are RingHUMANSolve 2+2ASSISTANT\n"
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
out = model.generate(**inputs, max_new_tokens=128, do_sample=False)
print(tokenizer.decode(out[0], skip_special_tokens=True))
Read more
Details• Benchmarks: Average accuracy gain across 4 key splits was +17.90 percentage points.
• Training: Involves 10.53 million trainable parameters (+0.064% to the base).
• Requirements: Requires the
trust_remote_code=True parameter when loading.









Comments