Image-Text-to-Text
MLX
Safetensors
qwen3_5
qwen3.5
vision-language-model
tool-calling
quantized
4bit
vanta
ios
conversational
4-bit precision
Instructions to use TerminatorPower/Qwen3.5-2B-4bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use TerminatorPower/Qwen3.5-2B-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("TerminatorPower/Qwen3.5-2B-4bit") config = load_config("TerminatorPower/Qwen3.5-2B-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 TerminatorPower/Qwen3.5-2B-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 "TerminatorPower/Qwen3.5-2B-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": "TerminatorPower/Qwen3.5-2B-4bit" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent
How to use TerminatorPower/Qwen3.5-2B-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 "TerminatorPower/Qwen3.5-2B-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 TerminatorPower/Qwen3.5-2B-4bit
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use TerminatorPower/Qwen3.5-2B-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 "TerminatorPower/Qwen3.5-2B-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 "TerminatorPower/Qwen3.5-2B-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"
Model card and banner for Vanta
Browse files- .gitattributes +1 -0
- README.md +140 -0
- banner.png +3 -0
.gitattributes
CHANGED
|
@@ -34,3 +34,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
banner.png filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,140 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
base_model: Qwen/Qwen3.5-2B
|
| 3 |
+
library_name: mlx
|
| 4 |
+
pipeline_tag: image-text-to-text
|
| 5 |
+
tags:
|
| 6 |
+
- mlx
|
| 7 |
+
- qwen3.5
|
| 8 |
+
- vision-language-model
|
| 9 |
+
- tool-calling
|
| 10 |
+
- quantized
|
| 11 |
+
- 4bit
|
| 12 |
+
- vanta
|
| 13 |
+
- ios
|
| 14 |
+
license: apache-2.0
|
| 15 |
+
---
|
| 16 |
+
|
| 17 |
+
<p align="center">
|
| 18 |
+
<a href="https://apps.apple.com/tr/app/vanta-local-ai-llm-chat/id6758898098">
|
| 19 |
+
<img src="banner.png" alt="Qwen3.5 2B — the lighter on-device model in Vanta, Local AI LLM Chat" width="100%" />
|
| 20 |
+
</a>
|
| 21 |
+
</p>
|
| 22 |
+
|
| 23 |
+
<h1 align="center">Qwen3.5-2B-4bit</h1>
|
| 24 |
+
|
| 25 |
+
<p align="center">
|
| 26 |
+
A verbatim mirror of
|
| 27 |
+
<a href="https://huggingface.co/mlx-community/Qwen3.5-2B-4bit">mlx-community/Qwen3.5-2B-4bit</a>,
|
| 28 |
+
kept here so the <b>Vanta</b> iOS app always has a stable lighter model to download from.
|
| 29 |
+
</p>
|
| 30 |
+
|
| 31 |
+
## Run it on your iPhone with Vanta
|
| 32 |
+
|
| 33 |
+
This is one of the built-in one-tap downloads in **Vanta — Local AI LLM Chat**, a
|
| 34 |
+
local-first AI chat app for iPhone and iPad. Vanta runs this model fully on-device
|
| 35 |
+
with Apple's MLX framework — no account, no cloud, no key. Your chats stay on your
|
| 36 |
+
device. Because it is a vision model, you can chat about images too, and because
|
| 37 |
+
its chat template declares tools, Vanta can let it use web search, memory, PDF
|
| 38 |
+
search and your MCP servers.
|
| 39 |
+
|
| 40 |
+
**[Download Vanta on the App Store →](https://apps.apple.com/tr/app/vanta-local-ai-llm-chat/id6758898098)**
|
| 41 |
+
|
| 42 |
+
Vanta recommends this smaller model on RAM-tight devices, where the
|
| 43 |
+
[4B](https://huggingface.co/TerminatorPower/Qwen3.5-4B-4bit) is too heavy — it is
|
| 44 |
+
the only featured pick on 4 GB iPhones, and the lighter, faster alternative
|
| 45 |
+
everywhere else.
|
| 46 |
+
|
| 47 |
+
---
|
| 48 |
+
|
| 49 |
+
> **This is a copy.** Every model file in this repository is an exact copy of
|
| 50 |
+
> [`mlx-community/Qwen3.5-2B-4bit`](https://huggingface.co/mlx-community/Qwen3.5-2B-4bit).
|
| 51 |
+
> We cloned it so that **Vanta always has a reliable, always-available source**
|
| 52 |
+
> to download this model from, independent of any upstream changes. All credit for
|
| 53 |
+
> the model weights and the MLX conversion goes to
|
| 54 |
+
> [mlx-community](https://huggingface.co/mlx-community), [Qwen](https://huggingface.co/Qwen),
|
| 55 |
+
> and the original authors. No weights, config or tokenizer file was modified —
|
| 56 |
+
> only this model card and its banner were added.
|
| 57 |
+
|
| 58 |
+
---
|
| 59 |
+
|
| 60 |
+
## Model details
|
| 61 |
+
|
| 62 |
+
| | |
|
| 63 |
+
|---|---|
|
| 64 |
+
| **Original model** | [Qwen/Qwen3.5-2B](https://huggingface.co/Qwen/Qwen3.5-2B) |
|
| 65 |
+
| **Upstream MLX repo** | [mlx-community/Qwen3.5-2B-4bit](https://huggingface.co/mlx-community/Qwen3.5-2B-4bit) |
|
| 66 |
+
| **Architecture** | `qwen3_5` (hybrid attention, 24 layers, hidden size 2048) |
|
| 67 |
+
| **Quantization** | 4-bit, group size 64 |
|
| 68 |
+
| **Format** | MLX safetensors |
|
| 69 |
+
| **Task** | Image-text-to-text |
|
| 70 |
+
| **Context window** | 262,144 tokens |
|
| 71 |
+
| **Download size** | ~1.75 GB |
|
| 72 |
+
| **License** | Apache 2.0 |
|
| 73 |
+
|
| 74 |
+
## What it can do
|
| 75 |
+
|
| 76 |
+
- **Reads images.** The repo carries a `vision_config` and a
|
| 77 |
+
`preprocessor_config.json` declaring `Qwen3VLProcessor`, so the vision tower
|
| 78 |
+
loads through the standard MLX VLM path.
|
| 79 |
+
- **Calls tools.** The chat template declares an XML function-call format
|
| 80 |
+
(`<tool_call><function=name><parameter=…>`), which both `mlx-lm` and Vanta parse.
|
| 81 |
+
- **Answers straight away.** Qwen3.5 is a hybrid reasoner, and this 2B's chat
|
| 82 |
+
template leaves the `<think>` block closed unless you pass
|
| 83 |
+
`enable_thinking=True` — the opposite of the
|
| 84 |
+
[4B](https://huggingface.co/TerminatorPower/Qwen3.5-4B-4bit), which reasons by
|
| 85 |
+
default. That is what keeps it quick on a small phone. Vanta always passes the
|
| 86 |
+
flag explicitly, so the app is in control either way.
|
| 87 |
+
|
| 88 |
+
### Verified
|
| 89 |
+
|
| 90 |
+
Loaded and run on Apple Silicon with `mlx-vlm` 0.5.0 and `mlx-lm` 0.31.3 before
|
| 91 |
+
publishing: the model loads through `Qwen3VLProcessor`, answers text prompts,
|
| 92 |
+
correctly describes an image, and emits a well-formed `<tool_call>` for a
|
| 93 |
+
function it was given.
|
| 94 |
+
|
| 95 |
+
> **A note on the `-OptiQ-4bit` variants.** Vanta does not use
|
| 96 |
+
> `mlx-community/Qwen3.5-2B-OptiQ-4bit`: it ships no `preprocessor_config.json`
|
| 97 |
+
> and keeps the vision tower outside the safetensors index in a non-standard
|
| 98 |
+
> `optiq/` directory, so a standard MLX VLM processor cannot be built for it.
|
| 99 |
+
> This plain 4-bit conversion is the one that loads end to end.
|
| 100 |
+
|
| 101 |
+
## Usage
|
| 102 |
+
|
| 103 |
+
```python
|
| 104 |
+
from mlx_vlm import load, generate
|
| 105 |
+
from mlx_vlm.prompt_utils import apply_chat_template
|
| 106 |
+
|
| 107 |
+
model, processor = load("TerminatorPower/Qwen3.5-2B-4bit")
|
| 108 |
+
|
| 109 |
+
prompt = apply_chat_template(processor, model.config, "Describe this image.", num_images=1)
|
| 110 |
+
print(generate(model, processor, prompt, image=["path/to/image.jpg"], max_tokens=512))
|
| 111 |
+
```
|
| 112 |
+
|
| 113 |
+
**CLI:**
|
| 114 |
+
|
| 115 |
+
```bash
|
| 116 |
+
python3 -m mlx_vlm.generate \
|
| 117 |
+
--model TerminatorPower/Qwen3.5-2B-4bit \
|
| 118 |
+
--image path/to/image.jpg \
|
| 119 |
+
--prompt "Describe this image."
|
| 120 |
+
```
|
| 121 |
+
|
| 122 |
+
**Text only, with `mlx-lm`:**
|
| 123 |
+
|
| 124 |
+
```bash
|
| 125 |
+
python3 -m mlx_lm generate \
|
| 126 |
+
--model TerminatorPower/Qwen3.5-2B-4bit \
|
| 127 |
+
--prompt "Explain hybrid attention in two sentences."
|
| 128 |
+
```
|
| 129 |
+
|
| 130 |
+
## Related
|
| 131 |
+
|
| 132 |
+
- **Larger Vanta pick:** [TerminatorPower/Qwen3.5-4B-4bit](https://huggingface.co/TerminatorPower/Qwen3.5-4B-4bit)
|
| 133 |
+
- **Upstream MLX repo:** [mlx-community/Qwen3.5-2B-4bit](https://huggingface.co/mlx-community/Qwen3.5-2B-4bit)
|
| 134 |
+
- **Original:** [Qwen/Qwen3.5-2B](https://huggingface.co/Qwen/Qwen3.5-2B)
|
| 135 |
+
- **Speech models for Vanta:** [TerminatorPower/whisperkit-coreml](https://huggingface.co/TerminatorPower/whisperkit-coreml)
|
| 136 |
+
|
| 137 |
+
## License
|
| 138 |
+
|
| 139 |
+
This model inherits the [Apache 2.0 license](https://huggingface.co/Qwen/Qwen3.5-2B)
|
| 140 |
+
from the original Qwen model. The mirror does not add any restrictions.
|
banner.png
ADDED
|
Git LFS Details
|