How to use from
SGLang
Install from pip and serve model
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
    --model-path "zecanard/gemma-4-31B-it-Claude-Opus-Distilled-MLX-6bit-int6-affine" \
    --host 0.0.0.0 \
    --port 30000
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:30000/v1/chat/completions" \
	-H "Content-Type: application/json" \
	--data '{
		"model": "zecanard/gemma-4-31B-it-Claude-Opus-Distilled-MLX-6bit-int6-affine",
		"messages": [
			{
				"role": "user",
				"content": [
					{
						"type": "text",
						"text": "Describe this image in one sentence."
					},
					{
						"type": "image_url",
						"image_url": {
							"url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg"
						}
					}
				]
			}
		]
	}'
Use Docker images
docker run --gpus all \
    --shm-size 32g \
    -p 30000:30000 \
    -v ~/.cache/huggingface:/root/.cache/huggingface \
    --env "HF_TOKEN=<secret>" \
    --ipc=host \
    lmsysorg/sglang:latest \
    python3 -m sglang.launch_server \
        --model-path "zecanard/gemma-4-31B-it-Claude-Opus-Distilled-MLX-6bit-int6-affine" \
        --host 0.0.0.0 \
        --port 30000
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:30000/v1/chat/completions" \
	-H "Content-Type: application/json" \
	--data '{
		"model": "zecanard/gemma-4-31B-it-Claude-Opus-Distilled-MLX-6bit-int6-affine",
		"messages": [
			{
				"role": "user",
				"content": [
					{
						"type": "text",
						"text": "Describe this image in one sentence."
					},
					{
						"type": "image_url",
						"image_url": {
							"url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg"
						}
					}
				]
			}
		]
	}'
Quick Links

🦆 zecanard/gemma-4-31B-it-Claude-Opus-Distilled-MLX-6bit-int6-affine

This model was converted to MLX from TeichAI/gemma-4-31B-it-Claude-Opus-Distill using mlx-vlm version 0.6.3. Please refer to the original model card for more details.

🌟 Quality

Quantized vision language model with an effective 7.170 bits per weight.

mlx_vlm.convert --quantize --q-group-size 32 --q-bits 6 --q-mode affine

🛠️ Customizations

This quant includes a bugfix related to tools calling. It is aware of the current date, and also enables thinking (if available). You may disable this behavior by deleting the following line from the chat template, or changing true to false:

{%- set enable_thinking = true %}

You may need to adjust your environment’s Reasoning Section Parsing to recognize <|channel>thought as the Start String, and <channel|> as the End String.

🖥️ Use with mlx

pip install -U mlx-vlm
mlx_vlm.generate --model zecanard/gemma-4-31B-it-Claude-Opus-Distilled-MLX-6bit-int6-affine --max-tokens 100 --temperature 0 --prompt "Describe this image." --image <path_to_image>
Downloads last month
149
Safetensors
Model size
31B params
Tensor type
U32
·
BF16
·
MLX
Hardware compatibility
Log In to add your hardware

6-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for zecanard/gemma-4-31B-it-Claude-Opus-Distilled-MLX-6bit-int6-affine

Datasets used to train zecanard/gemma-4-31B-it-Claude-Opus-Distilled-MLX-6bit-int6-affine