Views
No views yet
| Base model | Supra-Router-51M (Llama arch, ~51.7M params) |
| Quantization | MX FP4 (micro-scaled 4-bit float) |
| Bits per weight | 4.253 |
| Disk size | 28 MB (from ~101 MB fp16) |
| Format | MLX (safetensors) |
1from mlx_lm import load, generate
2
3model, tokenizer = load("sahilchachra/supra-router-51m-mxfp4-mlx")
4
5prompt = "Task: Write a movie script about a chef who gets lost at sea.\nAnalysis: "
6out = generate(model, tokenizer, prompt=prompt, max_tokens=100, verbose=False)
7print(out)Task: [prompt]\nAnalysis: ). It emits a deterministic, pipe-separated telemetry string:Domain: [Semantic Field] | Complexity: [1-5] | Math: [True/False] | Code: [True/False] | Route: [small model/big model] | Justification: [...]1mlx_lm.generate --model sahilchachra/supra-router-51m-mxfp4-mlx \
2 --prompt "Task: Explain quantum entanglement.\nAnalysis: " \
3 --max-tokens 100routing_choice/math_task/coding_task/complexity_score labels. Each variant loaded fresh via mlx_lm.load and run through mlx_lm.generate with greedy decoding, parsing the model's own pipe-separated output.| Variant | Route accuracy | Math flag accuracy | Code flag accuracy | Complexity exact-match | Agreement with FP16 |
|---|---|---|---|---|---|
| fp16 | 98% | 100% | 100% | 92% | — |
| mxfp4 | 94% | 100% | 100% | 84% | 96% |
| mxfp8 | 94% | 98% | 100% | 88% | 96% |
mlx_lm.generate on all variants:Prompt: "Task: Write a movie script about a chef who gets lost at sea.\nAnalysis: "
Output: Domain: Film scripting | Complexity: 2 | Math: False | Code: False | Route: small model | ...Prompt: "Task: Write a Python function to compute the nth Fibonacci number using dynamic programming.\nAnalysis: "
Output: Domain: Programming | Complexity: 2 | Math: False/True | Code: True | Route: big model | ...Route: small model / Route: big model) as the FP16 original on both prompts — the compression preserves the model's core routing behavior.