Instructions to use neopolita/Qwen3.8-84B-A53B-Niwaki-v2-experimental-mlx with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use neopolita/Qwen3.8-84B-A53B-Niwaki-v2-experimental-mlx with MLX:
# Make sure mlx-lm is installed # pip install --upgrade mlx-lm # Generate text with mlx-lm from mlx_lm import load, generate model, tokenizer = load("neopolita/Qwen3.8-84B-A53B-Niwaki-v2-experimental-mlx") prompt = "Write a story about Einstein" messages = [{"role": "user", "content": prompt}] prompt = tokenizer.apply_chat_template( messages, add_generation_prompt=True ) text = generate(model, tokenizer, prompt=prompt, verbose=True) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Pi
How to use neopolita/Qwen3.8-84B-A53B-Niwaki-v2-experimental-mlx with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "neopolita/Qwen3.8-84B-A53B-Niwaki-v2-experimental-mlx"
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "mlx-lm": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "neopolita/Qwen3.8-84B-A53B-Niwaki-v2-experimental-mlx" } ] } } }Run Pi
# Start Pi in your project directory: pi
- MLX LM
How to use neopolita/Qwen3.8-84B-A53B-Niwaki-v2-experimental-mlx with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Interactive chat REPL mlx_lm.chat --model "neopolita/Qwen3.8-84B-A53B-Niwaki-v2-experimental-mlx"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "neopolita/Qwen3.8-84B-A53B-Niwaki-v2-experimental-mlx" # Calling the OpenAI-compatible server with curl curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "neopolita/Qwen3.8-84B-A53B-Niwaki-v2-experimental-mlx", "messages": [ {"role": "user", "content": "Hello"} ] }' - Hermes Agent
How to use neopolita/Qwen3.8-84B-A53B-Niwaki-v2-experimental-mlx with Hermes Agent:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "neopolita/Qwen3.8-84B-A53B-Niwaki-v2-experimental-mlx"
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default neopolita/Qwen3.8-84B-A53B-Niwaki-v2-experimental-mlx
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use neopolita/Qwen3.8-84B-A53B-Niwaki-v2-experimental-mlx with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "neopolita/Qwen3.8-84B-A53B-Niwaki-v2-experimental-mlx"
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "neopolita/Qwen3.8-84B-A53B-Niwaki-v2-experimental-mlx" \ --custom-provider-id mlx-lm \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Qwen3.8-84B-A53B-Niwaki-v2-experimental-mlx
⚠️ EXPERIMENTAL RESEARCH ARTIFACT — NOT FOR REAL USE. This model is a measurement instrument, not a usable assistant. It is Qwen3.8-2.4T-A95B with 98% of its routed experts deleted (2.4T → 84B total / ~53B active parameters, 63 GB on disk) and a short distillation heal. It generates fluent, well-structured text that is frequently and confidently wrong — knowledge that lived in the deleted experts is gone, and no sampling setting brings it back. Published so the curious can poke at what survives extreme MoE pruning at frontier scale.
Niwaki (庭木) are Japan's garden trees, sculpted by meticulous pruning so that every branch serves the form of the whole. This model applies that spirit to a Mixture-of-Experts — here pruned far past the point of use, to see where the form gives way.
A paper with the full method and measurements is coming soon.
What this is
The 2.4T reference routes each token through 10 of 512 experts per layer across 92 layers. This artifact keeps: the full attention/backbone (8-bit), every shared expert (healed, 8-bit), the original routers, and compact 2-bit banks holding only the top-96 most-routed experts in the first 6 layers and top-40 in the last 3 — 664 of 47,104 routed experts (1.4%). Routing renormalizes exactly over the kept experts. A ~0.5M-token knowledge-distillation heal (teacher logits from the reference model) recovered about half of the deletion damage in log-perplexity before plateauing.
Benchmarks
Screen protocol: WikiText-2 and C4 perplexity over 64 × 1024-token windows each (fp32 loss, no chat template) — smaller than the full protocol of the main Niwaki releases; every row below uses the identical windows.
| model | disk | wt2 ppl ↓ | c4 ppl ↓ |
|---|---|---|---|
| Qwen3.8-2.4T-A95B (teacher, API anchor) | ~4,890 GB (bf16) | 2.77* | — |
| shared-experts-only strip (no routed experts) | 52.1 GB | 46.21 | 76.90 |
| + protected expert banks (unhealed) | 63.0 GB | 39.87 | 64.04 |
| this model (protected + healed, folded) | 63.0 GB | 23.13 | 29.95 |
* teacher anchor measured via API echo-scoring on the same text, its own tokenization; indicative, not window-identical. Task-suite evaluation was not run for this artifact.
What to expect
Form survives; knowledge does not. The model plans, formats code blocks, self-corrects, and holds discourse structure — then confabulates the substance (asked for Tetris, it confidently invents a different game). Ranking-style capabilities recover much faster than open generation. Expect coherent wrongness, repetition under greedy decoding, and no factual reliability whatsoever.
Run it
Loads with the same 30-line shim as the other Niwaki releases
(niwaki_v2_load.py, shipped in this repo); everything else is stock
mlx_lm. Needs ~70 GB free unified memory; ~30 tok/s on an M4 Max.
from niwaki_v2_load import load
import mlx_lm
from mlx_lm.sample_utils import make_sampler, make_logits_processors
model, tok = load("neopolita/Qwen3.8-84B-A53B-Niwaki-v2-experimental-mlx")
out = mlx_lm.generate(
model, tok,
prompt=tok.apply_chat_template([{"role": "user", "content": "Hello!"}],
tokenize=False, add_generation_prompt=True),
max_tokens=256,
sampler=make_sampler(temp=1.0, top_p=0.95, top_k=20),
logits_processors=make_logits_processors(repetition_penalty=1.15,
repetition_context_size=256),
)
Shipped sampling defaults (temp 1.0, top-k 20, top-p 0.95) follow the base model; the repetition penalty is recommended — the healed model loops without it.
Model dimensions
92 layers (hybrid linear-attention + gated attention), hidden 8192, 512 routed experts top-10 + 1 shared expert per MoE layer in the reference; here 83 layers are shared-expert-only and 9 layers carry kept-expert banks (96×6 early, 40×3 late, 2-bit g64). Healed output maps are folded into the down-projections (zero extra parameters). Storage: 8-bit backbone + 2-bit banks, mixed precision, 63.0 GB total.
Method
Not documented here yet — a paper with the full method and measurements is coming soon.
- Downloads last month
- 160
8-bit
Model tree for neopolita/Qwen3.8-84B-A53B-Niwaki-v2-experimental-mlx
Base model
Qwen/Qwen3.8-2.4T-A95B