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
Download mubit_edit_metadata.json from MubitLabs/Mubit-Qwen3-8B-Policy-Router: direct link, hf CLI and curl.
- Browser
- Download file 5.79 kB
-
https://huggingface.co/MubitLabs/Mubit-Qwen3-8B-Policy-Router/resolve/main/mubit_edit_metadata.json
- Command line
-
hf download hf://MubitLabs/Mubit-Qwen3-8B-Policy-Router/mubit_edit_metadata.json
-
curl -L -o mubit_edit_metadata.json https://huggingface.co/MubitLabs/Mubit-Qwen3-8B-Policy-Router/resolve/main/mubit_edit_metadata.json
5.79 kB
| { | |
| "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 | |
| } | |