Instructions to use phucngodev/Qwen3.5-9B-MLX with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use phucngodev/Qwen3.5-9B-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("phucngodev/Qwen3.5-9B-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 phucngodev/Qwen3.5-9B-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 "phucngodev/Qwen3.5-9B-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": "phucngodev/Qwen3.5-9B-MLX" } ] } } }Run Pi
# Start Pi in your project directory: pi
- MLX LM
How to use phucngodev/Qwen3.5-9B-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 "phucngodev/Qwen3.5-9B-MLX"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "phucngodev/Qwen3.5-9B-MLX" # Calling the OpenAI-compatible server with curl curl -X POST "http://localhost:8080/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "phucngodev/Qwen3.5-9B-MLX", "messages": [ {"role": "user", "content": "Hello"} ] }' - Hermes Agent
How to use phucngodev/Qwen3.5-9B-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 "phucngodev/Qwen3.5-9B-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 phucngodev/Qwen3.5-9B-MLX
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use phucngodev/Qwen3.5-9B-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 "phucngodev/Qwen3.5-9B-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 "phucngodev/Qwen3.5-9B-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"
DeepSeek-V4-Pro-Qwen3.5-9B-UNCENSORED MLX 4bit (Apple Silicon)
First MLX build of the viral DeepSeek-V4-Pro-Qwen3.5-9B-UNCENSORED-heretic โ DeepSeek-V4-Pro reasoning distilled into Qwen3.5-9B, then decensored with the Heretic tool's Arbitrary-Rank Ablation. Runs on any Apple Silicon Mac with 16GB+ unified memory.
โ ๏ธ Uncensored model. Refusal behaviour was removed upstream by abliteration (refusals 100/100 โ 3/100, KL 0.042 from base). You are responsible for how you use it and for complying with applicable law.
Lineage
- Jackrong/DeepSeek-V4-Pro-Qwen3.5-9B โ knowledge distillation from DeepSeek-V4-Pro on ~250K math/STEM samples (SFT + GSPO RL), Qwen3.5-9B backbone.
- xtools-at/...-UNCENSORED-heretic โ decensored via Heretic v2 ARA, layers 9โ24.
- This repo โ quantized to MLX 4-bit affine (group 64) from the BF16 source by NovaMLX โ ๆฐๅญๆตๅจ (Shenzhen Digitalflow Software).
Why this build
- First and only MLX conversion of this model (previously GGUF/NVFP4 only โ unusable in MLX runtimes).
- Hybrid attention (75% GatedDeltaNet linear attention + 25% full attention): fast on Apple GPU, 262K context with cheap KV.
Specs
| Architecture | Qwen3_5ForConditionalGeneration (text) |
| Layers | 32 (24 linear + 8 full attention) |
| Quantization | 4-bit affine, group 64 (from BF16 source) |
| Size | 5.6 GB |
| Context | 262,144 tokens |
| Vocab | 248,320 |
Benchmarks (from the distilled base model card)
- GSM8K: 94.50% (teacher DeepSeek-V4-Pro: 92.60%)
- MMLU-Pro (Math/Physics/Chemistry): 90.53% avg โ best among 9B baselines tested
- 316.8 correct answers per 1M reasoning tokens; 36.1% fewer tokens per correct answer vs Qwen3.5-9B
Not a coding specialist โ no coding data in the distillation set.
Speed (Mac Studio M4 Max, 128 GB, NovaMLX server)
| Memory resident | ~4.8 GB wired |
| Time to first token | ~1.9 s |
| Decode | ~32 tok/s |
Usage
Any MLX runtime: NovaMLX, mlx-lm, LM Studio.
mlx_lm.generate --model digiflow/DeepSeek-V4-Pro-Qwen3.5-9B-UNCENSORED-MLX-4bit --prompt "..."
Credits
- Downloads last month
- 207
4-bit
Model tree for phucngodev/Qwen3.5-9B-MLX
Base model
Qwen/Qwen3.5-9B-Base