Text Generation
Transformers
Safetensors
English
qwen3
structured-output
policy-routing
json
mubit
conversational
text-generation-inference
Instructions to use MubitLabs/Mubit-Qwen3-8B-Policy-Router with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use MubitLabs/Mubit-Qwen3-8B-Policy-Router with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="MubitLabs/Mubit-Qwen3-8B-Policy-Router") 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("MubitLabs/Mubit-Qwen3-8B-Policy-Router") model = AutoModelForCausalLM.from_pretrained("MubitLabs/Mubit-Qwen3-8B-Policy-Router", 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 MubitLabs/Mubit-Qwen3-8B-Policy-Router with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "MubitLabs/Mubit-Qwen3-8B-Policy-Router" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "MubitLabs/Mubit-Qwen3-8B-Policy-Router", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/MubitLabs/Mubit-Qwen3-8B-Policy-Router
- SGLang
How to use MubitLabs/Mubit-Qwen3-8B-Policy-Router 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 "MubitLabs/Mubit-Qwen3-8B-Policy-Router" \ --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": "MubitLabs/Mubit-Qwen3-8B-Policy-Router", "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 "MubitLabs/Mubit-Qwen3-8B-Policy-Router" \ --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": "MubitLabs/Mubit-Qwen3-8B-Policy-Router", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use MubitLabs/Mubit-Qwen3-8B-Policy-Router with Docker Model Runner:
docker model run hf.co/MubitLabs/Mubit-Qwen3-8B-Policy-Router
Upload v3 Mubit-baked weights (mubit-stress verified: +9.9pp hand/router exact_all, +14.3pp router_perturb compliance 65/2, +1.7pp IFEval, +1.1pp MMLU)
Browse filesFiles changed (4)
123version https://git-lfs.github.com/spec/v1oid sha256:5991236cea6fe21f3d43cab0f0e84448734fbbe0789816202989f2ddc9d18282size 3993160032123version https://git-lfs.github.com/spec/v1oid sha256:a6f97d50e1c73ff1d64acd8f4a79db78894676b74c7596e0499001a7e6e1bf2fsize 3993160032
123version https://git-lfs.github.com/spec/v1oid sha256:83750a29bc8b0eb08c69bc8863cad6402a37619edfe43d23670f81fe7d7dd308size 3959604768123version https://git-lfs.github.com/spec/v1oid sha256:5ca17056f5071524eb50fc0c3dcdc37eb10a047ccaf5cf6bbab241057da58bc8size 3959604768
123version https://git-lfs.github.com/spec/v1oid sha256:b5ee7de71fbf17db3d5704e0c8f2bc7d005ca9e1d7ca2aeb19827b0cfcaa917asize 3187841392123version https://git-lfs.github.com/spec/v1oid sha256:ead86002989f8df0bf29ce469f284ffea3310cac77b303832167737bb4273491size 3187841392
123456789101112131415{"alpha": 32.0,"base_model": "Qwen/Qwen3-8B","layer_prefix": "model.layers","max_delta_frob_norm": 8.407397,"parity_max_abs_diff": 0.734375,"patched_shards": 1,"patched_tensors": 8,"quick_exact_8": 0.125,"quick_field_8": 0.7,"rank": 16,"repo": "MubitLabs/Mubit-Qwen3-8B-Policy-Router","scaling": 2.0,"teacher_model": "Qwen/Qwen3-32B"}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133{"alpha": 64.0,"bake": {"max_delta_frob_norm": 3.504642,"patched_shard_names": ["model-00002-of-00005.safetensors","model-00003-of-00005.safetensors","model-00004-of-00005.safetensors"],"patched_shards": 3,"patched_tensors": 20,"per_tensor_delta_frob_norm": {"model.layers.12.mlp.down_proj.weight": 1.769289,"model.layers.12.self_attn.o_proj.weight": 1.548773,"model.layers.14.mlp.down_proj.weight": 1.803605,"model.layers.14.self_attn.o_proj.weight": 1.516263,"model.layers.17.mlp.down_proj.weight": 2.000957,"model.layers.17.self_attn.o_proj.weight": 1.785067,"model.layers.19.mlp.down_proj.weight": 2.075819,"model.layers.19.self_attn.o_proj.weight": 1.811737,"model.layers.22.mlp.down_proj.weight": 2.375178,"model.layers.22.self_attn.o_proj.weight": 2.205681,"model.layers.24.mlp.down_proj.weight": 2.274013,"model.layers.24.self_attn.o_proj.weight": 2.491747,"model.layers.27.mlp.down_proj.weight": 2.294812,"model.layers.27.self_attn.o_proj.weight": 2.470217,"model.layers.29.mlp.down_proj.weight": 2.412351,"model.layers.29.self_attn.o_proj.weight": 1.903875,"model.layers.32.mlp.down_proj.weight": 2.465209,"model.layers.32.self_attn.o_proj.weight": 1.962076,"model.layers.35.mlp.down_proj.weight": 3.504642,"model.layers.35.self_attn.o_proj.weight": 2.927051},"resolved_weight_keys": {"L12__mlp.down_proj": "model.layers.12.mlp.down_proj.weight","L12__self_attn.o_proj": "model.layers.12.self_attn.o_proj.weight","L14__mlp.down_proj": "model.layers.14.mlp.down_proj.weight","L14__self_attn.o_proj": "model.layers.14.self_attn.o_proj.weight","L17__mlp.down_proj": "model.layers.17.mlp.down_proj.weight","L17__self_attn.o_proj": "model.layers.17.self_attn.o_proj.weight","L19__mlp.down_proj": "model.layers.19.mlp.down_proj.weight","L19__self_attn.o_proj": "model.layers.19.self_attn.o_proj.weight","L22__mlp.down_proj": "model.layers.22.mlp.down_proj.weight","L22__self_attn.o_proj": "model.layers.22.self_attn.o_proj.weight","L24__mlp.down_proj": "model.layers.24.mlp.down_proj.weight","L24__self_attn.o_proj": "model.layers.24.self_attn.o_proj.weight","L27__mlp.down_proj": "model.layers.27.mlp.down_proj.weight","L27__self_attn.o_proj": "model.layers.27.self_attn.o_proj.weight","L29__mlp.down_proj": "model.layers.29.mlp.down_proj.weight","L29__self_attn.o_proj": "model.layers.29.self_attn.o_proj.weight","L32__mlp.down_proj": "model.layers.32.mlp.down_proj.weight","L32__self_attn.o_proj": "model.layers.32.self_attn.o_proj.weight","L35__mlp.down_proj": "model.layers.35.mlp.down_proj.weight","L35__self_attn.o_proj": "model.layers.35.self_attn.o_proj.weight"}},"bank_npz_name": "router8b.npz","bank_sha256": "5e75c9442857159fdba287f71ca933286f0eaeb21532b845753b265c821171f6","base_model": "Qwen/Qwen3-8B","base_revision": null,"created_at_utc": "2026-11-29T13:14:07.288766+00:00","dual_thinking": true,"engine": "mubit_direct_weight_space_programming","hf_repo": "MubitLabs/Mubit-Qwen3-8B-Policy-Router","hook_bake_parity": {"argmax_agreement": 1.0,"max_abs_logit_diff": 0.5,"mean_cosine_sim": 0.999896,"min_cosine_sim": 0.999666,"num_probes": 16,"parity_certified": true},"layer_prefix": "model.layers","model_key": "router8b","model_type": "qwen3","rank": 32,"rom_max_drift": 5.412885525292012e-11,"rom_scaled_max_drift": 1.0825771050584023e-10,"scaling": 2.0,"schema_version": "mubit_wsp_bank_v2","single_rounding_bf16": true,"site_count": 20,"site_full_paths": {"L12__mlp.down_proj": "model.layers.12.mlp.down_proj","L12__self_attn.o_proj": "model.layers.12.self_attn.o_proj","L14__mlp.down_proj": "model.layers.14.mlp.down_proj","L14__self_attn.o_proj": "model.layers.14.self_attn.o_proj","L17__mlp.down_proj": "model.layers.17.mlp.down_proj","L17__self_attn.o_proj": "model.layers.17.self_attn.o_proj","L19__mlp.down_proj": "model.layers.19.mlp.down_proj","L19__self_attn.o_proj": "model.layers.19.self_attn.o_proj","L22__mlp.down_proj": "model.layers.22.mlp.down_proj","L22__self_attn.o_proj": "model.layers.22.self_attn.o_proj","L24__mlp.down_proj": "model.layers.24.mlp.down_proj","L24__self_attn.o_proj": "model.layers.24.self_attn.o_proj","L27__mlp.down_proj": "model.layers.27.mlp.down_proj","L27__self_attn.o_proj": "model.layers.27.self_attn.o_proj","L29__mlp.down_proj": "model.layers.29.mlp.down_proj","L29__self_attn.o_proj": "model.layers.29.self_attn.o_proj","L32__mlp.down_proj": "model.layers.32.mlp.down_proj","L32__self_attn.o_proj": "model.layers.32.self_attn.o_proj","L35__mlp.down_proj": "model.layers.35.mlp.down_proj","L35__self_attn.o_proj": "model.layers.35.self_attn.o_proj"},"slug": "mubit-qwen3-8b-policy-router","stage": {"copied_files": 8,"linked_files": 5},"target_sites": ["L12__mlp.down_proj","L12__self_attn.o_proj","L14__mlp.down_proj","L14__self_attn.o_proj","L17__mlp.down_proj","L17__self_attn.o_proj","L19__mlp.down_proj","L19__self_attn.o_proj","L22__mlp.down_proj","L22__self_attn.o_proj","L24__mlp.down_proj","L24__self_attn.o_proj","L27__mlp.down_proj","L27__self_attn.o_proj","L29__mlp.down_proj","L29__self_attn.o_proj","L32__mlp.down_proj","L32__self_attn.o_proj","L35__mlp.down_proj","L35__self_attn.o_proj"],"trust_remote_code": false}
model-00002-of-00005.safetensors+1-1
model-00003-of-00005.safetensors+1-1
model-00004-of-00005.safetensors+1-1
mubit_edit_metadata.json+128-10