Text Generation
Transformers
Safetensors
looped_bailing_moe_int3
webbrain
int3
8gb-vram
Mixture of Experts
looped-transformer
conversational
custom_code
8-bit precision
Instructions to use webbrain-one/WebBrain-RingLoop-16B-A1.4B-INT3 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-INT3 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-INT3", 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-INT3", 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-INT3 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-INT3" # 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-INT3", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/webbrain-one/WebBrain-RingLoop-16B-A1.4B-INT3
- SGLang
How to use webbrain-one/WebBrain-RingLoop-16B-A1.4B-INT3 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-INT3" \ --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-INT3", "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-INT3" \ --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-INT3", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use webbrain-one/WebBrain-RingLoop-16B-A1.4B-INT3 with Docker Model Runner:
docker model run hf.co/webbrain-one/WebBrain-RingLoop-16B-A1.4B-INT3
# pip install -U transformers accelerate
# Load model directly
from transformers import AutoModelForCausalLM
model = AutoModelForCausalLM.from_pretrained("webbrain-one/WebBrain-RingLoop-16B-A1.4B-INT3", trust_remote_code=True, device_map="auto")Quick Links
WebBrain-RingLoop-16B-A1.4B-INT3 (<=8 GB VRAM)
Low-VRAM quantized edition of webbrain-one/WebBrain-RingLoop-16B-A1.4B compressed to 7.01 GiB so the full 2-pass looped 16.4B MoE runs natively on 8 GB VRAM consumer GPUs via transformers (trust_remote_code=True).
- Routed Experts (
Layers 1โ19, 256 experts): Symmetric Group-64 NF3 (3-bit NormalFloat codebook) (uint8packed +bfloat16scale) with active-only chunked unpacking. - Embeddings & LM Head: Per-row symmetric INT8 (
int8+bfloat16scale). - Precision-Critical Weights: Attention, routers, shared experts, Layer 0 dense MLP, norms (BF16) and all
10.53Mcross-pass looped bridge weights (FP32) kept unquantized.
Verified 8 GB VRAM Parity Benchmarks (dev_80, Greedy, RTX 5090 Measured)
| Metric | FP8 Reference (phase2_2pass) |
WebBrain-RingLoop-16B-A1.4B-INT3 |
|---|---|---|
| Loaded Model VRAM | 16.25 GiB | 7.01 GiB |
Peak VRAM (BS=1, 2-Pass) |
โ | 7.31 GiB |
Peak VRAM (BS=8, 2-Pass) |
โ | 15.10 GiB |
dev_80 No-CoT Accuracy |
35.00% | 35.00% |
dev_80 Short-CoT-192 Accuracy |
57.50% | 50.00% |
Quickstart (8 GB GPU)
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
repo_id = "webbrain-one/WebBrain-RingLoop-16B-A1.4B-INT3"
tok = 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 remainder when 7^100 is divided by 10.<role>ASSISTANT</role><think>\n"
)
inp = tok(prompt, return_tensors="pt", return_token_type_ids=False).to("cuda:0")
out = model.generate(**inp, max_new_tokens=256, do_sample=False)
print(tok.decode(out[0][inp["input_ids"].shape[1]:], skip_special_tokens=True))
- Downloads last month
- -
Model tree for webbrain-one/WebBrain-RingLoop-16B-A1.4B-INT3
Base model
inclusionAI/Ling-mini-base-2.0-20T Finetuned
inclusionAI/Ring-mini-2.0 Finetuned
webbrain-one/WebBrain-RingLoop-16B-A1.4B
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="webbrain-one/WebBrain-RingLoop-16B-A1.4B-INT3", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)