File size: 1,839 Bytes
d4c6c49
 
 
 
 
 
 
 
 
 
 
 
 
8f1a6b5
18c343f
d4c6c49
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
20b984e
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
---
library_name: mlx
base_model: google/gemma-4-12B-it
license: apache-2.0
pipeline_tag: text-generation
tags:
- mlx
- mlx-lm
- quantized
- 6-bit
- base_model:google/gemma-4-12B-it
---

[![Open in MLXHub](https://mlxhub.app/assets/badge-open-in-mlxhub.svg)](https://mlxhub.app/open-model?repo=DreamFoundries/gemma-4-12B-it-6bit)

# gemma-4-12B-it MLX 6-bit

This repository contains an MLX-LM conversion of [google/gemma-4-12B-it](https://huggingface.co/google/gemma-4-12B-it).

## Conversion Details

- Original model: `google/gemma-4-12B-it`
- Model family: Gemma4
- Source model type: `gemma4_unified`
- Model size: 11,959,730,224 parameters
- Quantization: MLX-LM affine quantization
- Bits: 6-bit
- Group size: 64
- Local MLX folder size at upload time: 9.04 GiB
- Local safetensors weight size at upload time: 9.01 GiB

This Gemma conversion follows the MLX-LM Gemma 4 shared-KV topology and uses non-strict checkpoint loading so extra HF tensors outside that topology are discarded during conversion.

The temporary conversion config remapped `gemma4_unified` to `gemma4` because this mlx-lm build exposes that Gemma 4 implementation.

## Usage

```bash
mlx_lm.generate --model DreamFoundries/gemma-4-12B-it-6bit --prompt "Hello" --max-tokens 64
```

## Benchmarks

No comparative benchmarks have been run yet. The repository does not currently provide quality, speed, memory, or benchmark comparisons against the original weights or other quantizations.

## License

This is a converted/quantized derivative of the original model. Please refer to the original model repository for the upstream license and usage terms: https://huggingface.co/google/gemma-4-12B-it

---

[![Download MLXHub](https://mlxhub.app/assets/badge-download-mlxhub.svg)](https://apps.apple.com/app/apple-store/id6766485144?pt=121945436&ct=HuggingFace&mt=8)