Downloads · 30 days
33
13% of all-time downloads
andrevp/Keye-VL-1.5-8B-MLX-4bit
Keye-VL-1.5-8B-MLX-4bit is a image-text-to-text model from andrevp. Use it for the image-text-to-text task on the model card, and read the license before you ship it in a product. It is set up for mlx. The card lists the license as apache-2.0.
Kwai-Keye/Keye-VL-15-8B converted to MLX format with 4-bit quantization for fast inference on Apple Silicon.
Downloads · 30 days
33
13% of all-time downloads
All-time downloads
263
Public
Parameters
8.7B
5.5 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors5.5 GB · 100%
How the weights are stored.
U328.2B · 95%
From the Hugging Face model README
Kwai-Keye/Keye-VL-1_5-8B converted to MLX format with 4-bit quantization for fast inference on Apple Silicon.
| Mode | Prompt (tok/s) | Generation (tok/s) | Peak Memory |
|---|---|---|---|
| Text only | ~210 | ~52 | 5.6 GB |
| Video (8 frames) | ~194 | ~36 | 7.2 GB |
| Image | ~150 | ~34 | 14.2 GB |
pip install mlx-vlm qwen-vl-utils
from mlx_vlm import load, generate
model, processor = load("andrevp/Keye-VL-1.5-8B-MLX-4bit", trust_remote_code=True)
# Image
prompt = processor.apply_chat_template(
[{"role": "user", "content": [
{"type": "image", "image": "photo.jpg"},
{"type": "text", "text": "Describe this image."},
]}],
tokenize=False, add_generation_prompt=True,
)
output = generate(
model, processor, prompt,
image=["photo.jpg"], max_tokens=200,
)
print(output.text)
# One-shot
python chat.py photo.jpg -p "What's in this image?"
python chat.py video.mp4 -p "Describe this video" --nframes 16
# Interactive
python chat.py photo.jpg
keyevl1_5) is required — included in this repo's conversion.