WebBrain-LingLoop-8B-A1.3B: an experimental looped architecture language model
2 min readupdated
This experimental language model (Large Language Model) is built on inclusionAI/Ling-3.0-tiny by adding a 2-pass looped depth mechanism. The base weights are frozen while the middle layers execute twice, augmented by lightweight gated adapters. The resulting text generation boasts enhanced logical and mathematical reasoning capabilities driven by context reprocessing. This model is well-suited for researchers and developers interested in architectural experiments involving transformer depth.
Key features
- Experimental 2-pass looped architecture with frozen base weights.
- Noticeable accuracy gains on math benchmarks (Math500, GSM8K).
- Inclusion of lightweight trainable gated adapters (loop_gate_rank=64).
- Quantized versions in GGUF format are available for easy deployment.
What you can do
- Run the model locally using the
transformerslibrary for text generation and problem solving. - Conduct independent testing of the model on logical and mathematical tasks.
- Integrate the GGUF version of the model into third-party inference interfaces and utilities.
Example
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
repo_id = "webbrain-one/WebBrain-LingLoop-8B-A1.3B"
tokenizer = AutoTokenizer.from_pretrained(repo_id, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
repo_id,
trust_remote_code=True,
attn_implementation="eager",
torch_dtype="auto",
device_map={"": "cuda:0"},
).eval()
prompt = "Question: What is 17 times 23? Answer:"
enc = tokenizer(prompt, return_tensors="pt")
enc.pop("token_type_ids", None)
enc = enc.to(model.device)
with torch.no_grad():
out = model.generate(**enc, max_new_tokens=32, do_sample=False)
print(tokenizer.decode(out[0][enc["input_ids"].shape[1]:], skip_special_tokens=True))Read more
DetailsMath500 (Looped No-CoT): 30.80 vs 27.20 for Stock
GSM8K (Looped Short-192): 78.00 vs 65.50 for Stock
Parameters: ~12.6M trainable adapter parameters
The model is experimental; independent verification is recommended for production use










Comments