TerminatorPower commited on
Commit
6f7ff89
·
verified ·
1 Parent(s): cc7beb2

Model card and banner for Vanta

Browse files
Files changed (3) hide show
  1. .gitattributes +1 -0
  2. README.md +140 -0
  3. 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

  • SHA256: 136107589eb0baefdffc9427723e76cb688e484def28f88daa0785d547c19c74
  • Pointer size: 132 Bytes
  • Size of remote file: 1.14 MB