--- 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.