MLX Community · First MLX build 21 May 2025
medgemma-4b-it
MLX
TextVision health-ai-developer-foundations
A 5B parameter vision and text model, with 4 MLX builds, from 4-bit to bf16.
- Parameters
- 5B From Hugging Face
- Quantisation
- 4-bit medgemma-4b-it-4bit
- Memory needed
- 6 GB Estimate, unified memory
- Download
- 3.0 GB Weights, estimated
- Downloads
- 150 This build, last 30 days
- Task
- Vision and text Text, Vision
- MLX builds
- 4 On mlx-community
- Devices
- Mac Apple silicon
Memory
Will it fit?Needs about 6 GB at 4-bit
8 GB
16 GB
24 GB
32 GB
64 GB
128 GB
Fits with headroomTight, close other appsWon’t fit
Estimated from the size of the weights, plus a fifth for context and working memory and 2 GB for macOS and your apps. Long contexts need more.
Run it
Terminal · mlx-vlm$ pip install -U mlx-vlm
$ python -m mlx_vlm.generate --model mlx-community/medgemma-4b-it-4bit --image photo.jpg --prompt "Describe this image"
MLX builds
4 on mlx-community| medgemma-4b-it-4bit | 4-bit | 3.0 GB | 6 GB | 150 |
|---|---|---|---|---|
| medgemma-4b-it-6bit | 6-bit | 4.2 GB | 7 GB | 40 |
| medgemma-4b-it-8bit | 8-bit | 4.8 GB | 8 GB | 88 |
| medgemma-4b-it-bf16 | bf16 | 9.9 GB | 14 GB | 46 |
Sizes are estimated from Hugging Face’s parameter counts and the quantisation. Downloads are for the last 30 days.