---
title: gemma-3-4b-pt-4bit
canonical_url: "https://www.modelscope.cn/models/mlx-community/gemma-3-4b-pt-4bit"
md_url: "https://www.modelscope.cn/models/mlx-community/gemma-3-4b-pt-4bit.md"
repository: mlx-community/gemma-3-4b-pt-4bit
last_updated: 2025-03-18
license: gemma
pipeline_tag: image-text-to-text
tasks:
  - image-text-to-text
model_type:
  - gemma3
architectures:
  - Gemma3ForConditionalGeneration
library_name:
  - mlx
  - safetensors
  - pytorch
frameworks:
  - pytorch
inference_backends:
  - "deploy_task vlm/text/emb"
  - "sglang 0.5.2"
  - "vllm 0.9.2"
downloads: 521
stars: 0
tags:
  - mlx
---

# gemma-3-4b-pt-4bit

> gemma-3-4b-pt-4bit - mlx-community 在 ModelScope 开源的模型。mlx-community/gemma-3-4b-pt-4bit This model was converted to MLX format from google/gemma-3-4b-pt using mlx-vlm version 0.1.18. Refer to the original model card for more details on the model. Use with mlx

mlx-community/gemma-3-4b-pt-4bit 是 ModelScope 魔搭社区上的image-text-to-text模型，采用 gemma 许可，可用 deploy_task vlm/text/emb、sglang 0.5.2、vllm 0.9.2 部署。

- **Repository**: mlx-community/gemma-3-4b-pt-4bit
- **License**: gemma
- **Tasks**: image-text-to-text
- **Inference backends**: deploy_task vlm/text/emb, sglang 0.5.2, vllm 0.9.2
- **Tags**: mlx
- **Downloads**: 521
- **Stars**: 0
- **Last updated**: 2025-03-18

Source: https://www.modelscope.cn/models/mlx-community/gemma-3-4b-pt-4bit

---

# mlx-community/gemma-3-4b-pt-4bit
This model was converted to MLX format from [`google/gemma-3-4b-pt`]() using mlx-vlm version **0.1.18**.
Refer to the [original model card](https://huggingface.co/google/gemma-3-4b-pt) for more details on the model.
## Use with mlx

```bash
pip install -U mlx-vlm
```

```bash
python -m mlx_vlm.generate --model mlx-community/gemma-3-4b-pt-4bit --max-tokens 100 --temperature 0.0 --prompt "Describe this image." --image <path_to_image>
```
