File size: 1,474 Bytes
834483b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
---
license: apple-amlr
library_name: mlx-vlm
base_model: apple/FastVLM-1.5B
tags:
- fastvlm
- mlx
- mlx-vlm
- vlm
- quantized
- apple-silicon
- 1.5B
- q4 / 4-bit quantized
---

# fastvlm-1.5b-mlx-q4

This repository contains an MLX-converted FastVLM checkpoint.

## Model

- Base model: `apple/FastVLM-1.5B`
- Parameters: `1.5B`
- Precision: `q4 / 4-bit quantized`
- Approx. folder size: `1.4G`

The checkpoint was converted from Apple FastVLM using the official FastVLM model export workflow and patched `mlx-vlm`.

## Files

This repository should include:

- `config.json`
- MLX model weights
- tokenizer files
- `fastvithd.mlpackage` vision tower

## Example Usage

```bash
hf download dbaek111/fastvlm-1.5b-mlx-q4 --local-dir ./fastvlm-1.5b-mlx-q4

python -m mlx_vlm.generate \
  --model ./fastvlm-1.5b-mlx-q4 \
  --image /path/to/your/image.jpg \
  --prompt "Explain the image." \
  --max-tokens 64 \
  --temp 0.0
```

## Benchmark

Benchmark condition:

- Images: three 512px test images
- Max tokens: `64`
- Temperature: `0.0`
- Same prompt across all tested variants
- Model loaded once, then images processed sequentially

| Model | Size | Load | Img1 | Img2 | Img3 | Avg |
|---|---:|---:|---:|---:|---:|---:|
| fastvlm-1.5b-mlx-q4 | 1.4G | 2.46s | 0.454s | 0.462s | 0.443s | 0.453s |

## Notes

This is a converted and quantized derivative of Apple FastVLM.

Please refer to the original Apple FastVLM repository and model card for license and usage conditions.