Instructions to use Robin1333k/Qwen3.5-4B-Base-MLX-6bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use Robin1333k/Qwen3.5-4B-Base-MLX-6bit 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("Robin1333k/Qwen3.5-4B-Base-MLX-6bit") 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 Robin1333k/Qwen3.5-4B-Base-MLX-6bit with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "Robin1333k/Qwen3.5-4B-Base-MLX-6bit"
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": "Robin1333k/Qwen3.5-4B-Base-MLX-6bit" } ] } } }Run Pi
# Start Pi in your project directory: pi
- MLX LM
How to use Robin1333k/Qwen3.5-4B-Base-MLX-6bit with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Interactive chat REPL mlx_lm.chat --model "Robin1333k/Qwen3.5-4B-Base-MLX-6bit"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "Robin1333k/Qwen3.5-4B-Base-MLX-6bit" # Calling the OpenAI-compatible server with curl curl -X POST "http://localhost:8080/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Robin1333k/Qwen3.5-4B-Base-MLX-6bit", "messages": [ {"role": "user", "content": "Hello"} ] }' - Hermes Agent
How to use Robin1333k/Qwen3.5-4B-Base-MLX-6bit 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 "Robin1333k/Qwen3.5-4B-Base-MLX-6bit"
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 Robin1333k/Qwen3.5-4B-Base-MLX-6bit
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use Robin1333k/Qwen3.5-4B-Base-MLX-6bit with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "Robin1333k/Qwen3.5-4B-Base-MLX-6bit"
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 "Robin1333k/Qwen3.5-4B-Base-MLX-6bit" \ --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.5-4B-Base, MLX, 6-bit
A 6-bit MLX quantization of Qwen/Qwen3.5-4B-Base
(affine, group size 64). The download is 3.2 GB, for on-device inference on Apple Silicon.
Only the weights are quantized. This is not a fine-tune, so the behaviour is the base model's.
The smaller sibling is Robin1333k/Qwen3.5-2B-Base-MLX-6bit,
quantized the same way.
Intended use
Built for AutoComplete, a system-wide inline text-prediction app for macOS. The model continues what you are typing, a few words at a time. These conventions matter if you want the same behaviour:
- Pass the raw prefix, with no chat template and no BOS. It is a base model. A chat template makes it answer questions instead of continuing text.
- Strip trailing whitespace before encoding (a flush prefix) and reconcile the leading space when you
render, so
fooandfoogive the same prompt. - Decode greedily (temperature 0) with a repetition penalty of 1.15, and stop at the first clause boundary after content.
chat_template.jinja ships as it came from the original model.
Measurements
All numbers below come from AutoComplete's own evaluation in October 2026. The comparison point is the 2B sibling above. Each model ran alone on one Apple Silicon Mac with 32 GB of memory. Older or 8 GB Macs were not measured.
Suggestion quality
The evaluation replayed the app's decode settings and output filters on held-out text and counted how many words of each suggestion a typist would accept (higher is better). The sign test is two-sided and exact, on accepted words per start, ties dropped.
| corpus | language | 2B | this model | starts better / worse | p |
|---|---|---|---|---|---|
| held-out prose (351 starts) | German | 0.383 | 0.521 | 21 / 6 | 0.006 |
| held-out prose | English | 0.636 | 0.734 | 23 / 9 | 0.020 |
| held-out prose | both | 0.512 | 0.632 | 44 / 15 | 0.0002 |
| split-author (192 starts) | German | 0.312 | 0.427 | 10 / 3 | 0.092 |
| split-author | English | 0.760 | 0.854 | 10 / 6 | 0.454 |
| split-author | both | 0.536 | 0.641 | 20 / 9 | 0.061 |
Consecutive cuts of one held-out text share their prefix, so the held-out p-values overstate the evidence. The split-author corpus takes its cuts from different sentences and is the cleaner test.
Latency
Measured in-process with mlx-swift-lm 3.31.3 on 40 short prompts, each predicted twice. First
token is the prefill plus the mean per-step decode time. A full suggestion is at most 24 tokens.
| model | first token P50 / P90 | full suggestion P50 / P90 | load from the file cache |
|---|---|---|---|
| Qwen3.5-2B-Base 6-bit | 75 / 82 ms | 161 / 316 ms | 2.6 s |
| Qwen3.5-4B-Base 6-bit (this) | 131 / 145 ms | 245 / 405 ms | 2.6 s |
Memory
| state | measured |
|---|---|
| MLX active memory after load | 3260 MB |
process memory (phys_footprint) after load, in the app |
about 3.4 GB |
| process memory during a predict with a 512-token prompt, in the app | 4416 MB |
| process memory after the app's idle cache flush | about 3.4 GB |
The 2B needs about 1.5 GB of MLX memory after load. The in-app numbers come from a macOS virtual machine.
Languages
Measured in English and German. German stays the weaker language at this size, though it gains the most over the 2B (0.38 to 0.52 accepted words per start on the held-out prose).
Provenance
Converted from the official Qwen/Qwen3.5-4B-Base weights with MLX: 6 bits, group size 64, affine.
The licence is Apache 2.0, inherited from the base model (see the licence link above). All credit for
the model belongs to the Qwen team. This repository adds a quantization and a measurement, nothing
more.
- Downloads last month
- 128
6-bit
Model tree for Robin1333k/Qwen3.5-4B-Base-MLX-6bit
Base model
Qwen/Qwen3.5-4B-Base