Instructions to use nopmobiel/Qwen3.8-Flash-Next-MLX-4bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use nopmobiel/Qwen3.8-Flash-Next-MLX-4bit with MLX:
# Make sure mlx-vlm is installed # pip install --upgrade mlx-vlm from mlx_vlm import load, generate from mlx_vlm.prompt_utils import apply_chat_template from mlx_vlm.utils import load_config # Load the model model, processor = load("nopmobiel/Qwen3.8-Flash-Next-MLX-4bit") config = load_config("nopmobiel/Qwen3.8-Flash-Next-MLX-4bit") # Prepare input image = ["http://images.cocodataset.org/val2017/000000039769.jpg"] prompt = "Describe this image." # Apply chat template formatted_prompt = apply_chat_template( processor, config, prompt, num_images=1 ) # Generate output output = generate(model, processor, formatted_prompt, image) print(output) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Pi
How to use nopmobiel/Qwen3.8-Flash-Next-MLX-4bit with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "nopmobiel/Qwen3.8-Flash-Next-MLX-4bit"
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": "nopmobiel/Qwen3.8-Flash-Next-MLX-4bit" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent
How to use nopmobiel/Qwen3.8-Flash-Next-MLX-4bit 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 "nopmobiel/Qwen3.8-Flash-Next-MLX-4bit"
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 nopmobiel/Qwen3.8-Flash-Next-MLX-4bit
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use nopmobiel/Qwen3.8-Flash-Next-MLX-4bit with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "nopmobiel/Qwen3.8-Flash-Next-MLX-4bit"
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 "nopmobiel/Qwen3.8-Flash-Next-MLX-4bit" \ --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-Flash-Next MLX 4-bit
Local MLX conversion of Qwen/Qwen3.8-Flash-Next.
- Language weights: affine 4-bit, group size 64.
- PLE n-gram embedding: affine 4-bit, group size 32.
- MoE routing gates: affine 8-bit, group size 64.
- Vision tower: BF16.
- Native MTP tensors are not included in this base checkpoint.
This model requires the Qwen4-Exp support in the accompanying local
mlx-vlm checkout.
Runtime setup
Qwen4-Exp is newer than the current stock mlx-vlm model registry. Until the
implementation is upstreamed, use the runtime module bundled in this repo:
git clone https://github.com/Blaizzy/mlx-vlm.git
cp -R mlx_vlm_qwen4_exp/qwen4_exp mlx-vlm/mlx_vlm/models/qwen4_exp
python3 -m venv .venv
.venv/bin/pip install -e ./mlx-vlm
.venv/bin/pip install --upgrade git+https://github.com/huggingface/transformers.git
.venv/bin/mlx_vlm.generate \
--model . \
--prompt "Hello!" \
--max-tokens 256
The bundled module registers the Qwen3-VL-compatible processor and multimodal chat format automatically. Native MTP speculative decoding is not included.
For an interactive terminal chat after setup:
.venv/bin/mlx_vlm.chat \
--model . \
--max-tokens 512 \
--temperature 0.0
Commands inside the chat include /image <path>, /clear, and /exit.
LM Studio (experimental)
LM Studio's current MLX runtime does not yet bundle qwen4_exp. From this
model directory, install the included compatibility module:
chmod +x install_lmstudio_patch.sh
./install_lmstudio_patch.sh
Then unload and reload the model in LM Studio. On a 128 GB Mac, LM Studio may still reject the checkpoint based on its conservative memory estimate. Enable Developer Mode and select Settings → Hardware → Model loading guardrails → OFF only after closing other memory-heavy applications. The measured peak is about 104.1 GB, so smaller-memory Macs are not recommended.
Verified with LM Studio 0.4.21 (Build 2), MLX runtime 1.11.0, including
multi-turn text chat and image understanding. The compatibility module also
supplies the sparse-attention path needed by larger image prompts. Updating LM
Studio's MLX runtime may replace the installed module; rerun the script if
qwen4_exp becomes unrecognized again or vision generation fails after an
update.
Verified locally
Tested on a 128 GB Apple M5 Max:
- Text: 9.13 prompt tokens/s, 60.95 generation tokens/s.
- Image + text: 214.84 prompt tokens/s, 48.92 generation tokens/s.
- Peak unified memory: 104.07 GB.
- LM Studio multi-turn text chat: 36.63 generation tokens/s.
- LM Studio image understanding: 31.01 generation tokens/s.
- Downloads last month
- -
4-bit
Model tree for nopmobiel/Qwen3.8-Flash-Next-MLX-4bit
Base model
Qwen/Qwen3.8-Flash-Next