Instructions to use Robin1333k/Qwen3.5-2B-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-2B-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-2B-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-2B-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-2B-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-2B-Base-MLX-6bit" } ] } } }Run Pi
# Start Pi in your project directory: pi
- MLX LM
How to use Robin1333k/Qwen3.5-2B-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-2B-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-2B-Base-MLX-6bit" # Calling the OpenAI-compatible server with curl curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Robin1333k/Qwen3.5-2B-Base-MLX-6bit", "messages": [ {"role": "user", "content": "Hello"} ] }' - Hermes Agent
How to use Robin1333k/Qwen3.5-2B-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-2B-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-2B-Base-MLX-6bit
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use Robin1333k/Qwen3.5-2B-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-2B-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-2B-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-2B-Base — MLX, 6-bit
A 6-bit MLX quantization of Qwen/Qwen3.5-2B-Base,
converted with mlx_lm.convert (--q-bits 6 --q-group-size 64, affine). ~1.5 GB, for on-device
inference on Apple Silicon.
Only the weights are quantized — this is not a fine-tune. The behaviour is the base model's.
Why 6-bit and not 4-bit
The obvious choice for a ~2B model on-device is 4-bit, and for this model it is a mistake. Measured on a word-acceptance bake-off (higher is better — mean words accepted per suggestion, EN/DE, from a flush and a trailing-space prefix):
| quantization | size | EN flush | EN space | DE flush | DE space |
|---|---|---|---|---|---|
| 4-bit (affine, g64) | 1.0 GB | 1.25 | 0.58 | 1.42 | 0.42 |
| mixed 4/6-bit | 1.0 GB | 1.25 | 0.58 | 1.42 | 0.42 |
| 6-bit (affine, g64) | 1.5 GB | 2.08 | 0.54 | 1.50 | 0.58 |
| bf16 (reference) | 4.3 GB | 2.08 | 0.75 | 1.50 | 0.58 |
Naive 4-bit loses ~40 % on English against bf16 (1.25 vs 2.08) — enough to put it below a smaller
1.7B model, i.e. the quantization gave back more than the extra parameters bought. mixed_4_6 measured
identical to plain 4-bit here. 6-bit recovers full bf16 quality on every flush column.
Its one regression is EN trailing-space (0.54 vs 0.75), which does not matter for the intended use: the consumer strips trailing whitespace before inference, so that column is never exercised.
The general lesson, if you are quantizing a small base model yourself: re-check against bf16. The 4-bit build looked fine in casual use and was 40 % worse where it counted.
Intended use
Built for AutoComplete, a system-wide inline text-prediction tool for macOS — the model predicts the continuation of what you are typing, a few words at a time. That shapes how it is used, and the conventions are worth repeating if you want comparable behaviour:
- Raw prefix, no chat template, no BOS. It is a base model. Wrapping the prompt in a chat template makes it answer questions instead of continuing text.
- A flush prefix — trailing whitespace stripped before encoding, the leading space reconciled on
render, so
fooandfooproduce the same prompt. - Greedy decoding (temperature 0) with a mild repetition penalty, stopped at the first clause boundary after content.
chat_template.jinja ships as it came from the original model, for anyone who wants it.
Languages
Verified in English and German. German is the weaker axis — the bake-off measures roughly half the mid-clause acceptance rate of English, and in longer generations it produces occasional hard grammar errors (verb-final order in subordinate clauses) and English-shaped collocations. That is a property of the base model at this size, not of the quantization: 6-bit matches bf16 on German exactly.
Provenance
Converted from the official Qwen/Qwen3.5-2B-Base weights. Apache 2.0, inherited from the base model —
see the license 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
- -
6-bit
Model tree for Robin1333k/Qwen3.5-2B-Base-MLX-6bit
Base model
Qwen/Qwen3.5-2B-Base