Spike-4B-MLX / README.md
Piecrust's picture
Fix strikethrough: approx tilde -> β‰ˆ
5b62d96 verified
|
Raw
History Blame Contribute Delete
2.31 kB
---
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
---
<p align="center">
<img src="https://huggingface.co/Piecrust/Spike-4B-MLX/resolve/main/banner.png" alt="Spike-4B-MLX" width="100%">
</p>
# 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:<name> {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:<name> {json}`.
## License
Derivative of Qwen3.5-4B under the [Apache 2.0 License](https://www.apache.org/licenses/LICENSE-2.0).