dbaek111 commited on
Commit
89353f5
·
verified ·
1 Parent(s): 1f8d546

Update README

Browse files
Files changed (1) hide show
  1. README.md +69 -0
README.md ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apple-amlr
3
+ library_name: mlx-vlm
4
+ base_model: apple/FastVLM-7B
5
+ tags:
6
+ - fastvlm
7
+ - mlx
8
+ - mlx-vlm
9
+ - vlm
10
+ - quantized
11
+ - apple-silicon
12
+ - 7B
13
+ - q4 / 4-bit quantized
14
+ ---
15
+
16
+ # fastvlm-7b-mlx-q4
17
+
18
+ This repository contains an MLX-converted FastVLM checkpoint.
19
+
20
+ ## Model
21
+
22
+ - Base model: `apple/FastVLM-7B`
23
+ - Parameters: `7B`
24
+ - Precision: `q4 / 4-bit quantized`
25
+ - Approx. folder size: `4.9G`
26
+
27
+ The checkpoint was converted from Apple FastVLM using the official FastVLM model export workflow and patched `mlx-vlm`.
28
+
29
+ ## Files
30
+
31
+ This repository should include:
32
+
33
+ - `config.json`
34
+ - MLX model weights
35
+ - tokenizer files
36
+ - `fastvithd.mlpackage` vision tower
37
+
38
+ ## Example Usage
39
+
40
+ ```bash
41
+ hf download dbaek111/fastvlm-7b-mlx-q4 --local-dir ./fastvlm-7b-mlx-q4
42
+
43
+ python -m mlx_vlm.generate \
44
+ --model ./fastvlm-7b-mlx-q4 \
45
+ --image /path/to/your/image.jpg \
46
+ --prompt "Explain the image." \
47
+ --max-tokens 64 \
48
+ --temp 0.0
49
+ ```
50
+
51
+ ## Benchmark
52
+
53
+ Benchmark condition:
54
+
55
+ - Images: three 512px test images
56
+ - Max tokens: `64`
57
+ - Temperature: `0.0`
58
+ - Same prompt across all tested variants
59
+ - Model loaded once, then images processed sequentially
60
+
61
+ | Model | Size | Load | Img1 | Img2 | Img3 | Avg |
62
+ |---|---:|---:|---:|---:|---:|---:|
63
+ | fastvlm-7b-mlx-q4 | 4.9G | 3.00s | 1.139s | 1.303s | 1.277s | 1.239s |
64
+
65
+ ## Notes
66
+
67
+ This is a converted and quantized derivative of Apple FastVLM.
68
+
69
+ Please refer to the original Apple FastVLM repository and model card for license and usage conditions.