Instructions to use webbrain-one/WebBrain-LingLoop-8B-A1.3B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use webbrain-one/WebBrain-LingLoop-8B-A1.3B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="webbrain-one/WebBrain-LingLoop-8B-A1.3B", trust_remote_code=True) 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("webbrain-one/WebBrain-LingLoop-8B-A1.3B", trust_remote_code=True) model = AutoModelForCausalLM.from_pretrained("webbrain-one/WebBrain-LingLoop-8B-A1.3B", trust_remote_code=True, 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
- vLLM
How to use webbrain-one/WebBrain-LingLoop-8B-A1.3B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "webbrain-one/WebBrain-LingLoop-8B-A1.3B" # 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-LingLoop-8B-A1.3B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/webbrain-one/WebBrain-LingLoop-8B-A1.3B
- SGLang
How to use webbrain-one/WebBrain-LingLoop-8B-A1.3B 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-LingLoop-8B-A1.3B" \ --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-LingLoop-8B-A1.3B", "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-LingLoop-8B-A1.3B" \ --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-LingLoop-8B-A1.3B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use webbrain-one/WebBrain-LingLoop-8B-A1.3B with Docker Model Runner:
docker model run hf.co/webbrain-one/WebBrain-LingLoop-8B-A1.3B
# pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("webbrain-one/WebBrain-LingLoop-8B-A1.3B", trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained("webbrain-one/WebBrain-LingLoop-8B-A1.3B", trust_remote_code=True, 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]:]))WebBrain-LingLoop-8B-A1.3B
WebBrain-LingLoop-8B-A1.3B upgrades inclusionAI/Ling-3.0-tiny with Inkling-2-Mini-style looped depth. The base weights stay frozen; only a 12.63M-parameter cross-pass adapter is trained.
LingLoop improves tool calling over Ling and approaches Qwen3.8-27B
WebBrain-LingLoop scored 61.25% on our sampled BFCL tool-calling average, up 10.63 percentage points from Ling-3.0-tiny. It came within 6.25 points of Qwen3.8-27B and scored above Qwen3.6-35B-A3B, Inkling-2-Mini, and SenseNova-Loop-9B. Against the base model, single-turn accuracy rose from 73/80 to 74/80 and multi-turn completion rose from 2/20 to 6/20.
| Model | BFCL two-suite mean |
|---|---|
| Qwen3.8-27B | 67.50% |
| WebBrain-LingLoop-8B-A1.3B | 61.25% |
| Qwen3.6-35B-A3B | 53.13% |
| Ling-3.0-tiny | 50.63% |
| Inkling-2-Mini | 40.63% |
| SenseNova-Loop-9B | 11.88% |
The average weights both suites equally. All six models ran on the same 80 single-turn Python AST cases and 20 multi-turn simulator cases. We evaluated LingLoop from its safetensors checkpoint, Inkling-2-Mini as IQ4_NL GGUF, and the other baselines as Q4_K_M GGUF.
Downloads
| File | Type | Size |
|---|---|---|
WebBrain-LingLoop-8B-A1.3B.gguf |
BF16 | ~15.9 GB |
WebBrain-LingLoop-8B-A1.3B-Q6_K.gguf |
Q6_K | ~6.9 GB |
WebBrain-LingLoop-8B-A1.3B-Q4_K_M.gguf |
Q4_K_M | ~5.3 GB |
For the sibling model on Ring-mini-2.0, see WebBrain-RingLoop-16B-A1.4B-GGUF.
Architecture
Ling-3.0-tiny is a 24-layer hybrid MoE with 6 blocks of [3 KDA + 1 MLA]. The looped-depth layout is:
- Prelude layers
0..3: once - Core layers
4..19: twice - Coda layers
20..23: once - Pass 0 uses physical slots
4..19; pass 1 uses isolated virtual slots24..39 - 12.63M added parameters: depth-attention readers + rank-64 zero-init gates
- Between passes:
h' = h - tanh(W_f ๏ฟฝ r(h, m)) * h + tanh(W_g ๏ฟฝ r(h, m)) * m
This mirrors the idea in WebBrain-RingLoop-16B-A1.4B, which loops layers 5..14 twice with 10.5M added parameters, but applies it to a smaller hybrid KDA/MLA MoE.
| WebBrain-RingLoop-16B-A1.4B | WebBrain-LingLoop-8B-A1.3B | |
|---|---|---|
| Base | Ring-mini-2.0 | Ling-3.0-tiny |
| Total / active | 16.4B / 1.4B | ~8B / 1.3B |
| Physical layers | 20 | 24 |
| Looped layers | 5..14 |
4..19 |
| Passes | 2 | 2 |
| Virtual slots | 20..29 |
24..39 |
| Added params | 10.5M | 12.63M |
| GGUF arch | bailingmoe2_loop |
bailingmoe3_loop |
Quickstart
A llama.cpp build with bailingmoe3_loop support is required.
./llama-completion --no-conversation \
-m WebBrain-LingLoop-8B-A1.3B-Q4_K_M.gguf \
-p "Question: What is 17 times 23? Answer:" \
-n 32 --temp 0 -ngl 99 --device CUDA0
Use --single-turn instead of --no-conversation to apply the base Ling chat template; the chat path may produce a short chain-of-thought before the final answer.
Validation
test-llama-archs -a loop: 3/3 passed (bailingmoe2_loop,bailingmoe3_loop,inkling2_loop).- Raw BF16 completion:
Question: What is 17 times 23? Answer:?391 [end of text]. - Single-pass logit PPL on the 58-token parity prompt:
- Python Looped Ling:
4.326 - GGUF BF16:
4.424 - GGUF Q6_K:
4.300 - GGUF Q4_K_M:
4.290
- Python Looped Ling:
The BF16 and quantized builds are experimental; independent evaluation is recommended.
- Downloads last month
- 760
Model tree for webbrain-one/WebBrain-LingLoop-8B-A1.3B
Base model
inclusionAI/Ling-3.0-tiny
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="webbrain-one/WebBrain-LingLoop-8B-A1.3B", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)