Sunlight is the smallest model in the Viperfish family of open-weight models. It is a Swift / SwiftUI-focused fine-tune of Qwen2.5-Coder-1.5B-Instruct, small enough to run on an 8 GB Mac.
This repo is the MLX 4-bit build (about 840 MB): the LoRA adapter fused into the 4-bit base. It runs with mlx-lm on Apple Silicon.
pip install mlx-lm
from mlx_lm import load, generate
model, tokenizer = load("viperdevAI/Viperfish-Sunlight-1.5B")
messages = [{"role": "user", "content": "Write a SwiftUI view with a counter and an increment button."}]
prompt = tokenizer.apply_chat_template(messages, add_generation_prompt=True, tokenize=False)
print(generate(model, tokenizer, prompt=prompt, max_tokens=512))
Compared with the base model on my own benchmarks. Swift answers are scored by whether the generated code compiles with swiftc; HumanEval is the standard Python benchmark.
| Model | SwiftUI (60 prompts) | Plain Swift (33 prompts) | HumanEval (164) |
|---|---|---|---|
| Qwen2.5-Coder-1.5B-Instruct (4-bit) | 16 | 13 | 67.7% (111) |
| Viperfish Sunlight 1.5B | 31 | 14 | 56.1% (92) |
SwiftUI roughly doubles. Plain Swift barely moves. Python gets worse.
Sunlight 1.5B, Twilight 3B, Midnight 7B and Hadal 14B, named after the ocean's depth zones. More at viperfish.dev.
Qwen/Qwen2.5-Coder-1.5B-Instruct