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"
Qwen3.5-2B-4bit
A verbatim mirror of mlx-community/Qwen3.5-2B-4bit, kept here so the Vanta iOS app always has a stable lighter model to download from.
Run it on your iPhone with Vanta
This is one of the built-in one-tap downloads in Vanta — Local AI LLM Chat, a local-first AI chat app for iPhone and iPad. Vanta runs this model fully on-device with Apple's MLX framework — no account, no cloud, no key. Your chats stay on your device. Because it is a vision model, you can chat about images too, and because its chat template declares tools, Vanta can let it use web search, memory, PDF search and your MCP servers.
Download Vanta on the App Store →
Vanta recommends this smaller model on RAM-tight devices, where the 4B is too heavy — it is the only featured pick on 4 GB iPhones, and the lighter, faster alternative everywhere else.
This is a copy. Every model file in this repository is an exact copy of
mlx-community/Qwen3.5-2B-4bit. We cloned it so that Vanta always has a reliable, always-available source to download this model from, independent of any upstream changes. All credit for the model weights and the MLX conversion goes to mlx-community, Qwen, and the original authors. No weights, config or tokenizer file was modified — only this model card and its banner were added.
Model details
| Original model | Qwen/Qwen3.5-2B |
| Upstream MLX repo | mlx-community/Qwen3.5-2B-4bit |
| Architecture | qwen3_5 (hybrid attention, 24 layers, hidden size 2048) |
| Quantization | 4-bit, group size 64 |
| Format | MLX safetensors |
| Task | Image-text-to-text |
| Context window | 262,144 tokens |
| Download size | ~1.75 GB |
| License | Apache 2.0 |
What it can do
- Reads images. The repo carries a
vision_configand apreprocessor_config.jsondeclaringQwen3VLProcessor, so the vision tower loads through the standard MLX VLM path. - Calls tools. The chat template declares an XML function-call format
(
<tool_call><function=name><parameter=…>), which bothmlx-lmand Vanta parse. - Answers straight away. Qwen3.5 is a hybrid reasoner, and this 2B's chat
template leaves the
<think>block closed unless you passenable_thinking=True— the opposite of the 4B, which reasons by default. That is what keeps it quick on a small phone. Vanta always passes the flag explicitly, so the app is in control either way.
Verified
Loaded and run on Apple Silicon with mlx-vlm 0.5.0 and mlx-lm 0.31.3 before
publishing: the model loads through Qwen3VLProcessor, answers text prompts,
correctly describes an image, and emits a well-formed <tool_call> for a
function it was given.
A note on the
-OptiQ-4bitvariants. Vanta does not usemlx-community/Qwen3.5-2B-OptiQ-4bit: it ships nopreprocessor_config.jsonand keeps the vision tower outside the safetensors index in a non-standardoptiq/directory, so a standard MLX VLM processor cannot be built for it. This plain 4-bit conversion is the one that loads end to end.
Usage
from mlx_vlm import load, generate
from mlx_vlm.prompt_utils import apply_chat_template
model, processor = load("TerminatorPower/Qwen3.5-2B-4bit")
prompt = apply_chat_template(processor, model.config, "Describe this image.", num_images=1)
print(generate(model, processor, prompt, image=["path/to/image.jpg"], max_tokens=512))
CLI:
python3 -m mlx_vlm.generate \
--model TerminatorPower/Qwen3.5-2B-4bit \
--image path/to/image.jpg \
--prompt "Describe this image."
Text only, with mlx-lm:
python3 -m mlx_lm generate \
--model TerminatorPower/Qwen3.5-2B-4bit \
--prompt "Explain hybrid attention in two sentences."
Related
- Larger Vanta pick: TerminatorPower/Qwen3.5-4B-4bit
- Upstream MLX repo: mlx-community/Qwen3.5-2B-4bit
- Original: Qwen/Qwen3.5-2B
- Speech models for Vanta: TerminatorPower/whisperkit-coreml
License
This model inherits the Apache 2.0 license from the original Qwen model. The mirror does not add any restrictions.
- Downloads last month
- -
4-bit