Image-Text-to-Text
MLX
Safetensors
English
Chinese
qwen3_5
apple-silicon
qwen3.5
fine tune
heretic
uncensored
abliterated
Merge
thinking
reasoning
creative
writing
fiction
roleplaying
vision
conversational
4-bit precision
Instructions to use pipenetwork/Qwen3.5-9B-The-Defiant-Fable-Uncensored-Heretic-MLX-4bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use pipenetwork/Qwen3.5-9B-The-Defiant-Fable-Uncensored-Heretic-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("pipenetwork/Qwen3.5-9B-The-Defiant-Fable-Uncensored-Heretic-MLX-4bit") config = load_config("pipenetwork/Qwen3.5-9B-The-Defiant-Fable-Uncensored-Heretic-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 pipenetwork/Qwen3.5-9B-The-Defiant-Fable-Uncensored-Heretic-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 "pipenetwork/Qwen3.5-9B-The-Defiant-Fable-Uncensored-Heretic-MLX-4bit"
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "mlx-lm": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "pipenetwork/Qwen3.5-9B-The-Defiant-Fable-Uncensored-Heretic-MLX-4bit" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use pipenetwork/Qwen3.5-9B-The-Defiant-Fable-Uncensored-Heretic-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 "pipenetwork/Qwen3.5-9B-The-Defiant-Fable-Uncensored-Heretic-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 pipenetwork/Qwen3.5-9B-The-Defiant-Fable-Uncensored-Heretic-MLX-4bit
Run Hermes
hermes
- OpenClaw new
How to use pipenetwork/Qwen3.5-9B-The-Defiant-Fable-Uncensored-Heretic-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 "pipenetwork/Qwen3.5-9B-The-Defiant-Fable-Uncensored-Heretic-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 "pipenetwork/Qwen3.5-9B-The-Defiant-Fable-Uncensored-Heretic-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"
Unified measured-quantization table across all tiers
Browse files
README.md
CHANGED
|
@@ -94,38 +94,31 @@ prompt = apply_chat_template(processor, config, "Describe this image.", num_imag
|
|
| 94 |
print(generate(model, processor, prompt, ["your_image.jpg"], max_tokens=512, verbose=False))
|
| 95 |
```
|
| 96 |
|
| 97 |
-
##
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
|
|
| 105 |
-
|
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
|
| 114 |
-
|
| 115 |
-
|
| 116 |
-
|
| 117 |
-
| bf16 reference | 17.91 GB | 8.1273 | — | — | — | 38.6 t/s |
|
| 118 |
-
| 8bit | 9.51 GB | 8.1277 | +0.00% | 0.00124 | 98.24% | 66.9 t/s |
|
| 119 |
-
| 6bit | 7.28 GB | 8.1426 | +0.19% | 0.00523 | 96.20% | 80.3 t/s |
|
| 120 |
-
| 5bit | 6.16 GB | 8.2012 | +0.91% | 0.01845 | 93.24% | 91.5 t/s |
|
| 121 |
-
| **4bit** (this repo) | 5.04 GB | 8.5816 | +5.59% | 0.07330 | 87.06% | 108.6 t/s |
|
| 122 |
-
| 3bit | 3.92 GB | 10.8167 | +33.09% | 0.32843 | 73.44% | 124.9 t/s |
|
| 123 |
-
| [nightmedia mxfp4](https://huggingface.co/nightmedia/Qwen3.5-9B-DS9-USS-Defiant-mxfp4-mlx) | 4.76 GB | 8.9443 | +10.05% | 0.11328 | 82.34% | 113.5 t/s |
|
| 124 |
|
| 125 |
Reading it:
|
| 126 |
|
| 127 |
- **8bit is effectively free** — bf16 perplexity to four decimals at 47% of the footprint.
|
| 128 |
-
- **5bit is the best quality-per-GB**: under 1% perplexity
|
| 129 |
- **The usable floor is 4bit.** 3bit still answers factual questions correctly but costs
|
| 130 |
+33% perplexity; treat it as a tight-memory fallback.
|
| 131 |
- **No 2-bit tier is published.** Pure 2-bit collapses (ppl 214.5, 28% top-1) and MLX's
|
|
@@ -134,10 +127,9 @@ Reading it:
|
|
| 134 |
- At the 4-bit tier this affine group-64 quant loses about half the perplexity MXFP4 does,
|
| 135 |
costing 4.5 vs 4.25 bits/weight.
|
| 136 |
|
| 137 |
-
All tiers are quantizations of the same weights, so this isolates the quantization scheme.
|
| 138 |
Reproduce with [`bench.py`](https://github.com/PipeNetwork/defiant-fable-mlx).
|
| 139 |
|
| 140 |
-
## Sampling
|
| 141 |
|
| 142 |
DavidAU's notes for this model, which carry over:
|
| 143 |
|
|
|
|
| 94 |
print(generate(model, processor, prompt, ["your_image.jpg"], max_tokens=512, verbose=False))
|
| 95 |
```
|
| 96 |
|
| 97 |
+
## All quantizations, measured
|
| 98 |
+
|
| 99 |
+
Every tier below quantizes the *identical* bf16 weights, so bf16 is exact ground truth and
|
| 100 |
+
the quantization scheme is the only variable. Measured on 65,536 tokens of wikitext-2 test
|
| 101 |
+
at 1024 context, all models fed the same token ids through mlx-lm, on an M3 Ultra. KL is
|
| 102 |
+
against bf16's own output distribution — lower means closer to the original model.
|
| 103 |
+
|
| 104 |
+
| Repo | Size | Bits/w | ppl | Δppl | KL(bf16‖q) | top-1 | decode | verdict |
|
| 105 |
+
|---|---|---|---|---|---|---|---|---|
|
| 106 |
+
| [bf16](https://huggingface.co/pipenetwork/Qwen3.5-9B-The-Defiant-Fable-Uncensored-Heretic-MLX-bf16) | 18.8 GB | 16 | 8.1273 | — | — | — | 38.6 t/s | exact reference |
|
| 107 |
+
| [8bit](https://huggingface.co/pipenetwork/Qwen3.5-9B-The-Defiant-Fable-Uncensored-Heretic-MLX-8bit) | 10.4 GB | 8.86 | 8.1277 | +0.00% | 0.00124 | 98.24% | 66.9 t/s | free — no reason to run bf16 |
|
| 108 |
+
| [6bit](https://huggingface.co/pipenetwork/Qwen3.5-9B-The-Defiant-Fable-Uncensored-Heretic-MLX-6bit) | 8.2 GB | 6.96 | 8.1426 | +0.19% | 0.00523 | 96.20% | 80.3 t/s | near-lossless |
|
| 109 |
+
| [5bit](https://huggingface.co/pipenetwork/Qwen3.5-9B-The-Defiant-Fable-Uncensored-Heretic-MLX-5bit) | 7.1 GB | 6.01 | 8.2012 | +0.91% | 0.01845 | 93.24% | 91.5 t/s | **best quality-per-GB** |
|
| 110 |
+
| **[4bit](https://huggingface.co/pipenetwork/Qwen3.5-9B-The-Defiant-Fable-Uncensored-Heretic-MLX-4bit)** ← this repo | 6.0 GB | 5.06 | 8.5816 | +5.59% | 0.07330 | 87.06% | 108.6 t/s | usable floor; common default |
|
| 111 |
+
| [3bit](https://huggingface.co/pipenetwork/Qwen3.5-9B-The-Defiant-Fable-Uncensored-Heretic-MLX-3bit) | 4.8 GB | 4.11 | 10.8167 | +33.09% | 0.32843 | 73.44% | 124.9 t/s | tight-memory fallback only |
|
| 112 |
+
| [nightmedia mxfp4](https://huggingface.co/nightmedia/Qwen3.5-9B-DS9-USS-Defiant-mxfp4-mlx) | 5.6 GB | 4.25 | 8.9443 | +10.05% | 0.11328 | 82.34% | 113.5 t/s | for comparison |
|
| 113 |
+
|
| 114 |
+
Sizes are the full repo; `Bits/w` is the whole-model average, which sits above the nominal
|
| 115 |
+
width because the vision tower stays bf16 (0.91 GB) in every tier. All tiers are group size
|
| 116 |
+
64, `affine` mode.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 117 |
|
| 118 |
Reading it:
|
| 119 |
|
| 120 |
- **8bit is effectively free** — bf16 perplexity to four decimals at 47% of the footprint.
|
| 121 |
+
- **5bit is the best quality-per-GB**: under 1% perplexity.
|
| 122 |
- **The usable floor is 4bit.** 3bit still answers factual questions correctly but costs
|
| 123 |
+33% perplexity; treat it as a tight-memory fallback.
|
| 124 |
- **No 2-bit tier is published.** Pure 2-bit collapses (ppl 214.5, 28% top-1) and MLX's
|
|
|
|
| 127 |
- At the 4-bit tier this affine group-64 quant loses about half the perplexity MXFP4 does,
|
| 128 |
costing 4.5 vs 4.25 bits/weight.
|
| 129 |
|
|
|
|
| 130 |
Reproduce with [`bench.py`](https://github.com/PipeNetwork/defiant-fable-mlx).
|
| 131 |
|
| 132 |
+
## Sampling
|
| 133 |
|
| 134 |
DavidAU's notes for this model, which carry over:
|
| 135 |
|