Instructions to use p0ly31/Qwen3.8-Flash-Next-DERISKED-MTPLX-Optimized-Speed with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use p0ly31/Qwen3.8-Flash-Next-DERISKED-MTPLX-Optimized-Speed 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("p0ly31/Qwen3.8-Flash-Next-DERISKED-MTPLX-Optimized-Speed") 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 p0ly31/Qwen3.8-Flash-Next-DERISKED-MTPLX-Optimized-Speed with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "p0ly31/Qwen3.8-Flash-Next-DERISKED-MTPLX-Optimized-Speed"
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": "p0ly31/Qwen3.8-Flash-Next-DERISKED-MTPLX-Optimized-Speed" } ] } } }Run Pi
# Start Pi in your project directory: pi
- MLX LM
How to use p0ly31/Qwen3.8-Flash-Next-DERISKED-MTPLX-Optimized-Speed with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Interactive chat REPL mlx_lm.chat --model "p0ly31/Qwen3.8-Flash-Next-DERISKED-MTPLX-Optimized-Speed"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "p0ly31/Qwen3.8-Flash-Next-DERISKED-MTPLX-Optimized-Speed" # Calling the OpenAI-compatible server with curl curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "p0ly31/Qwen3.8-Flash-Next-DERISKED-MTPLX-Optimized-Speed", "messages": [ {"role": "user", "content": "Hello"} ] }' - Hermes Agent
How to use p0ly31/Qwen3.8-Flash-Next-DERISKED-MTPLX-Optimized-Speed 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 "p0ly31/Qwen3.8-Flash-Next-DERISKED-MTPLX-Optimized-Speed"
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 p0ly31/Qwen3.8-Flash-Next-DERISKED-MTPLX-Optimized-Speed
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use p0ly31/Qwen3.8-Flash-Next-DERISKED-MTPLX-Optimized-Speed with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "p0ly31/Qwen3.8-Flash-Next-DERISKED-MTPLX-Optimized-Speed"
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 "p0ly31/Qwen3.8-Flash-Next-DERISKED-MTPLX-Optimized-Speed" \ --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"
MTPLX.COM: 2 to 3x speedup. The fastest way to run models on a Mac.
Qwen 3.8 Flash-Next DERISKED Optimized Speed
Dynamic 4-bit quant with 8-bit attention. Higher quality and slightly slower. Built from the Blackfrost DERISKED checkpoint, for operator-controlled security research.
Blackfrost's DERISKED release of Qwen's 125B-A6B Flash-Next preview, the Qwen4-generation architecture with GDN hybrid MoE, Qwen Sparse Attention, and the 51B-parameter n-gram memory, running natively on MTPLX with its native multi-token-prediction head drafting through MTPLX's speculative lane. This is the same recipe as the first-party Optimized Speed pack: the Qwen Sparse Attention projections are kept at 8-bit, so the attention pathway that steers long contexts keeps its precision. For the unmodified Qwen checkpoint, pick that first-party pack instead.
The 32 GB n-gram embedding table streams from SSD by default, so the model fits a 96 GB+ Apple Silicon Mac with headroom. The weights stay resident, the table does not have to.
What DERISKED means
The base checkpoint is Blackfrost's, not Qwen's. Per Blackfrost's model card, its refusal surface was modified at the weight level for operator-controlled security research and red-team evaluation; no SFT, DPO, LoRA, merging, expert pruning or quantization was applied upstream. In Blackfrost's words: "This is not a safety-stock checkpoint and must not be deployed, marketed, or evaluated as one." This pack inherits that status. It changes the numeric format, not the behavior.
The chat template is copied verbatim from the Blackfrost checkpoint and carries the Blackfrost Qwentium operational prompt: a behavioral instruction, not an authorization system or a security boundary. Safety controls belong outside the model. Blackfrost recommends authenticated inference endpoints, independent request and tool-execution logging, least-privilege credentials, sandboxed code and file access, and explicit human approval for irreversible actions.
Speeds
Measured on an M5 Max with 128 GB, single stream, real server
(mtplx serve, Turbo profile, MTPLX 2.10.2), official Qwen 3.8 sampling
(temperature 1.0, top-p 0.95, top-k 20; sampled, not greedy).
| Run | tok/s |
|---|---|
| Coding task, MTP speculative decode (the default) | 66.2 |
| Same task, plain autoregressive | 46.6 |
That is a 1.4x speculative multiplier through the product serve path, on sampled output that follows the model's own distribution.
How it is built
- MoE experts and dense matrices at 4-bit with 32-weight groups; the Qwen Sparse Attention projections, the GDN output projection, the MoE router, the shared expert, the QSA indexer, the embeddings and the output head promoted to 8-bit (the quality edge over a flat 4-bit build).
- The GDN convolution and recurrent-state parameters, the hyper-connection
mixers, the PLE projections and every norm stay 16-bit. The MTP head ships
as
mtp.safetensorswith its experts at 4-bit. - The n-gram embedding table ships as a separate
ngram-table.safetensorssidecar (4-bit) that MTPLX streams from SSD (resident is opt-in on very large machines). The vision tower is preserved in the weights.
| Download | 115.3 GB (includes the 32 GB n-gram table) |
| Resident weights (n-gram on SSD) | ~83 GB + working set |
| Recommended Macs | 96 GB+ unified memory |
| Context window | 262,144 tokens |
| MTP depth | adaptive, ceiling 3 |
| Sampling | temperature 1.0, top-p 0.95, top-k 20 (the official Qwen 3.8 contract) |
The serving contract ships inside mtplx_runtime.json. MTPLX reads it on
load. Drafts are accepted with the probability-ratio rule plus residual
resampling, so the output follows the model's own distribution at any
temperature.
Use it
Mac app: download at mtplx.com, then find this pack under Forge, Discover (search the repo name).
Command line:
pip install mtplx
mtplx serve --model p0ly31/Qwen3.8-Flash-Next-DERISKED-MTPLX-Optimized-Speed
Siblings, built from the unmodified Qwen checkpoint: Optimized Speed (same recipe) and Bare Speed (flat 4-bit, the quickest build).
Base model: Blackfrost-AI/Qwen3.8-Flash-Next-DERISKED-BF16
(Qwen Community License; the Blackfrost model card is preserved in this repo
as README-upstream-blackfrost.md). Upstream:
Qwen/Qwen3.8-Flash-Next.
- Downloads last month
- 512
4-bit