--- license: apache-2.0 base_model: Qwen/Qwen3.5-4B library_name: mlx pipeline_tag: text-generation tags: - mlx - vision-language - tool-calling - function-calling - spike - on-device language: - en - de thumbnail: https://huggingface.co/Piecrust/Spike-4B-MLX/resolve/main/banner.png ---

Spike-4B-MLX

# Spike-4B ยท MLX (4-bit) **Spike** is the on-device assistant in the **Spike AI** iOS app โ€” the build that runs on your iPhone โ€” 4-bit MLX via mlx-swift. ๐Ÿ“ฑ **Get it on the App Store:** https://apps.apple.com/app/spike-ai/id6749781844 A LoRA fine-tune of [Qwen/Qwen3.5-4B](https://huggingface.co/Qwen/Qwen3.5-4B) (a vision-language model), specialized for Spike's tool-calling โ€” reminders, calendar, Apple Home, maps, web, files, code, and the SSH/agent toolset โ€” **plus vision** (flyer โ†’ calendar, note โ†’ reminder, receipt โ†’ answer), while staying a natural conversationalist. English + German. Tool grammar: `tool: {json}`. ## Files 4-bit MLX weights (`model.safetensors`, โ‰ˆ3.0 GB) + tokenizer, processor, chat template. > Qwen3.5 is a new *hybrid* (linear-attention + full-attention) architecture; a text-only [GGUF build](https://huggingface.co/Piecrust/Spike-4B-GGUF) is also available for llama.cpp servers. ## Eval โ€” Spike harness (base Qwen3.5-4B โ†’ Spike-4B) | Metric | Base | **Spike-4B** | |---|---:|---:| | Tool calls ยท thinking-off | 42.4% | **99.8%** | | Tool calls ยท thinking-on | โ€” | **99.8%** | | Vision (image โ†’ tool / answer) | 68.1% | **100%** | | Normal-chat tool-leak (lower=better) | 1.6% | **0%** | Trained text+thinking+German, then a vision-replay stage, then a **conversation-repair** stage (distilled base-model chat + contrastive tool/vision replay) so it keeps `enable_thinking` reasoning and vision, tool-calls at 99.8%, **and does not hijack casual chat into tool calls**. ## Usage - Trained on Spike's **compact system prompt**; use that exact prompt. - Optional reasoning via the `enable_thinking` chat-template kwarg. - One text tool call per turn: `tool: {json}`. ## License Derivative of Qwen3.5-4B under the [Apache 2.0 License](https://www.apache.org/licenses/LICENSE-2.0).