Commit
·
61333ba
verified
·
0
Parent(s):
Super-squash branch 'main' using huggingface_hub
Browse files- .gitattributes +38 -0
- README.md +426 -0
- gemma-3-1b-it-Q4_K_M.gguf +3 -0
- gemma-3-1b-it-Q8_0.gguf +3 -0
- gemma-3-1b-it-f16.gguf +3 -0
.gitattributes
ADDED
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
*.7z filter=lfs diff=lfs merge=lfs -text
|
2 |
+
*.arrow filter=lfs diff=lfs merge=lfs -text
|
3 |
+
*.bin filter=lfs diff=lfs merge=lfs -text
|
4 |
+
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
5 |
+
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
6 |
+
*.ftz filter=lfs diff=lfs merge=lfs -text
|
7 |
+
*.gz filter=lfs diff=lfs merge=lfs -text
|
8 |
+
*.h5 filter=lfs diff=lfs merge=lfs -text
|
9 |
+
*.joblib filter=lfs diff=lfs merge=lfs -text
|
10 |
+
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
11 |
+
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
12 |
+
*.model filter=lfs diff=lfs merge=lfs -text
|
13 |
+
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
14 |
+
*.npy filter=lfs diff=lfs merge=lfs -text
|
15 |
+
*.npz filter=lfs diff=lfs merge=lfs -text
|
16 |
+
*.onnx filter=lfs diff=lfs merge=lfs -text
|
17 |
+
*.ot filter=lfs diff=lfs merge=lfs -text
|
18 |
+
*.parquet filter=lfs diff=lfs merge=lfs -text
|
19 |
+
*.pb filter=lfs diff=lfs merge=lfs -text
|
20 |
+
*.pickle filter=lfs diff=lfs merge=lfs -text
|
21 |
+
*.pkl filter=lfs diff=lfs merge=lfs -text
|
22 |
+
*.pt filter=lfs diff=lfs merge=lfs -text
|
23 |
+
*.pth filter=lfs diff=lfs merge=lfs -text
|
24 |
+
*.rar filter=lfs diff=lfs merge=lfs -text
|
25 |
+
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
26 |
+
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
27 |
+
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
28 |
+
*.tar filter=lfs diff=lfs merge=lfs -text
|
29 |
+
*.tflite filter=lfs diff=lfs merge=lfs -text
|
30 |
+
*.tgz filter=lfs diff=lfs merge=lfs -text
|
31 |
+
*.wasm filter=lfs diff=lfs merge=lfs -text
|
32 |
+
*.xz filter=lfs diff=lfs merge=lfs -text
|
33 |
+
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
+
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
+
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
36 |
+
gemma-3-1b-it-Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
37 |
+
gemma-3-1b-it-Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
38 |
+
gemma-3-1b-it-f16.gguf filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
@@ -0,0 +1,426 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: gemma
|
3 |
+
---
|
4 |
+
|
5 |
+
# Gemma 3 model card
|
6 |
+
|
7 |
+
**Model Page**: [Gemma](https://ai.google.dev/gemma/docs/core)
|
8 |
+
|
9 |
+
**Resources and Technical Documentation**:
|
10 |
+
|
11 |
+
* [Gemma 3 Technical Report][g3-tech-report]
|
12 |
+
* [Responsible Generative AI Toolkit][rai-toolkit]
|
13 |
+
* [Gemma on Kaggle][kaggle-gemma]
|
14 |
+
* [Gemma on Vertex Model Garden][vertex-mg-gemma3]
|
15 |
+
|
16 |
+
**Terms of Use**: [Terms][terms]
|
17 |
+
|
18 |
+
**Authors**: Google DeepMind
|
19 |
+
|
20 |
+
## Model Information
|
21 |
+
|
22 |
+
Summary description and brief definition of inputs and outputs.
|
23 |
+
|
24 |
+
### Description
|
25 |
+
|
26 |
+
Gemma is a family of lightweight, state-of-the-art open models from Google,
|
27 |
+
built from the same research and technology used to create the Gemini models.
|
28 |
+
Gemma 3 models are multimodal, handling text and image input and generating text
|
29 |
+
output, with open weights for both pre-trained variants and instruction-tuned
|
30 |
+
variants. Gemma 3 has a large, 128K context window, multilingual support in over
|
31 |
+
140 languages, and is available in more sizes than previous versions. Gemma 3
|
32 |
+
models are well-suited for a variety of text generation and image understanding
|
33 |
+
tasks, including question answering, summarization, and reasoning. Their
|
34 |
+
relatively small size makes it possible to deploy them in environments with
|
35 |
+
limited resources such as laptops, desktops or your own cloud infrastructure,
|
36 |
+
democratizing access to state of the art AI models and helping foster innovation
|
37 |
+
for everyone.
|
38 |
+
|
39 |
+
### Inputs and outputs
|
40 |
+
|
41 |
+
- **Input:**
|
42 |
+
- Text string, such as a question, a prompt, or a document to be summarized
|
43 |
+
- Images, normalized to 896 x 896 resolution and encoded to 256 tokens
|
44 |
+
each
|
45 |
+
- Total input context of 128K tokens for the 4B, 12B, and 27B sizes, and
|
46 |
+
32K tokens for the 1B size
|
47 |
+
|
48 |
+
- **Output:**
|
49 |
+
- Generated text in response to the input, such as an answer to a
|
50 |
+
question, analysis of image content, or a summary of a document
|
51 |
+
- Total output context of 8192 tokens
|
52 |
+
|
53 |
+
### Citation
|
54 |
+
|
55 |
+
```none
|
56 |
+
@article{gemma_2025,
|
57 |
+
title={Gemma 3},
|
58 |
+
url={https://goo.gle/Gemma3Report},
|
59 |
+
publisher={Kaggle},
|
60 |
+
author={Gemma Team},
|
61 |
+
year={2025}
|
62 |
+
}
|
63 |
+
```
|
64 |
+
|
65 |
+
## Model Data
|
66 |
+
|
67 |
+
Data used for model training and how the data was processed.
|
68 |
+
|
69 |
+
### Training Dataset
|
70 |
+
|
71 |
+
These models were trained on a dataset of text data that includes a wide variety
|
72 |
+
of sources. The 27B model was trained with 14 trillion tokens, the 12B model was
|
73 |
+
trained with 12 trillion tokens, 4B model was trained with 4 trillion tokens and
|
74 |
+
1B with 2 trillion tokens. Here are the key components:
|
75 |
+
|
76 |
+
- Web Documents: A diverse collection of web text ensures the model is
|
77 |
+
exposed to a broad range of linguistic styles, topics, and vocabulary. The
|
78 |
+
training dataset includes content in over 140 languages.
|
79 |
+
- Code: Exposing the model to code helps it to learn the syntax and
|
80 |
+
patterns of programming languages, which improves its ability to generate
|
81 |
+
code and understand code-related questions.
|
82 |
+
- Mathematics: Training on mathematical text helps the model learn logical
|
83 |
+
reasoning, symbolic representation, and to address mathematical queries.
|
84 |
+
- Images: A wide range of images enables the model to perform image
|
85 |
+
analysis and visual data extraction tasks.
|
86 |
+
|
87 |
+
The combination of these diverse data sources is crucial for training a powerful
|
88 |
+
multimodal model that can handle a wide variety of different tasks and data
|
89 |
+
formats.
|
90 |
+
|
91 |
+
### Data Preprocessing
|
92 |
+
|
93 |
+
Here are the key data cleaning and filtering methods applied to the training
|
94 |
+
data:
|
95 |
+
|
96 |
+
- CSAM Filtering: Rigorous CSAM (Child Sexual Abuse Material) filtering
|
97 |
+
was applied at multiple stages in the data preparation process to ensure
|
98 |
+
the exclusion of harmful and illegal content.
|
99 |
+
- Sensitive Data Filtering: As part of making Gemma pre-trained models
|
100 |
+
safe and reliable, automated techniques were used to filter out certain
|
101 |
+
personal information and other sensitive data from training sets.
|
102 |
+
- Additional methods: Filtering based on content quality and safety in
|
103 |
+
line with [our policies][safety-policies].
|
104 |
+
|
105 |
+
## Implementation Information
|
106 |
+
|
107 |
+
Details about the model internals.
|
108 |
+
|
109 |
+
### Hardware
|
110 |
+
|
111 |
+
Gemma was trained using [Tensor Processing Unit (TPU)][tpu] hardware (TPUv4p,
|
112 |
+
TPUv5p and TPUv5e). Training vision-language models (VLMS) requires significant
|
113 |
+
computational power. TPUs, designed specifically for matrix operations common in
|
114 |
+
machine learning, offer several advantages in this domain:
|
115 |
+
|
116 |
+
- Performance: TPUs are specifically designed to handle the massive
|
117 |
+
computations involved in training VLMs. They can speed up training
|
118 |
+
considerably compared to CPUs.
|
119 |
+
- Memory: TPUs often come with large amounts of high-bandwidth memory,
|
120 |
+
allowing for the handling of large models and batch sizes during training.
|
121 |
+
This can lead to better model quality.
|
122 |
+
- Scalability: TPU Pods (large clusters of TPUs) provide a scalable
|
123 |
+
solution for handling the growing complexity of large foundation models.
|
124 |
+
You can distribute training across multiple TPU devices for faster and more
|
125 |
+
efficient processing.
|
126 |
+
- Cost-effectiveness: In many scenarios, TPUs can provide a more
|
127 |
+
cost-effective solution for training large models compared to CPU-based
|
128 |
+
infrastructure, especially when considering the time and resources saved
|
129 |
+
due to faster training.
|
130 |
+
- These advantages are aligned with
|
131 |
+
[Google's commitments to operate sustainably][sustainability].
|
132 |
+
|
133 |
+
### Software
|
134 |
+
|
135 |
+
Training was done using [JAX][jax] and [ML Pathways][ml-pathways].
|
136 |
+
|
137 |
+
JAX allows researchers to take advantage of the latest generation of hardware,
|
138 |
+
including TPUs, for faster and more efficient training of large models. ML
|
139 |
+
Pathways is Google's latest effort to build artificially intelligent systems
|
140 |
+
capable of generalizing across multiple tasks. This is specially suitable for
|
141 |
+
foundation models, including large language models like these ones.
|
142 |
+
|
143 |
+
Together, JAX and ML Pathways are used as described in the
|
144 |
+
[paper about the Gemini family of models][gemini-2-paper]; *"the 'single
|
145 |
+
controller' programming model of Jax and Pathways allows a single Python
|
146 |
+
process to orchestrate the entire training run, dramatically simplifying the
|
147 |
+
development workflow."*
|
148 |
+
|
149 |
+
## Evaluation
|
150 |
+
|
151 |
+
Model evaluation metrics and results.
|
152 |
+
|
153 |
+
### Benchmark Results
|
154 |
+
|
155 |
+
These models were evaluated against a large collection of different datasets and
|
156 |
+
metrics to cover different aspects of text generation:
|
157 |
+
|
158 |
+
#### Reasoning and factuality
|
159 |
+
|
160 |
+
| Benchmark | Metric | Gemma 3 PT 1B | Gemma 3 PT 4B | Gemma 3 PT 12B | Gemma 3 PT 27B |
|
161 |
+
| ------------------------------ |----------------|:--------------:|:-------------:|:--------------:|:--------------:|
|
162 |
+
| [HellaSwag][hellaswag] | 10-shot | 62.3 | 77.2 | 84.2 | 85.6 |
|
163 |
+
| [BoolQ][boolq] | 0-shot | 63.2 | 72.3 | 78.8 | 82.4 |
|
164 |
+
| [PIQA][piqa] | 0-shot | 73.8 | 79.6 | 81.8 | 83.3 |
|
165 |
+
| [SocialIQA][socialiqa] | 0-shot | 48.9 | 51.9 | 53.4 | 54.9 |
|
166 |
+
| [TriviaQA][triviaqa] | 5-shot | 39.8 | 65.8 | 78.2 | 85.5 |
|
167 |
+
| [Natural Questions][naturalq] | 5-shot | 9.48 | 20.0 | 31.4 | 36.1 |
|
168 |
+
| [ARC-c][arc] | 25-shot | 38.4 | 56.2 | 68.9 | 70.6 |
|
169 |
+
| [ARC-e][arc] | 0-shot | 73.0 | 82.4 | 88.3 | 89.0 |
|
170 |
+
| [WinoGrande][winogrande] | 5-shot | 58.2 | 64.7 | 74.3 | 78.8 |
|
171 |
+
| [BIG-Bench Hard][bbh] | few-shot | 28.4 | 50.9 | 72.6 | 77.7 |
|
172 |
+
| [DROP][drop] | 1-shot | 42.4 | 60.1 | 72.2 | 77.2 |
|
173 |
+
|
174 |
+
[hellaswag]: https://arxiv.org/abs/1905.07830
|
175 |
+
[boolq]: https://arxiv.org/abs/1905.10044
|
176 |
+
[piqa]: https://arxiv.org/abs/1911.11641
|
177 |
+
[socialiqa]: https://arxiv.org/abs/1904.09728
|
178 |
+
[triviaqa]: https://arxiv.org/abs/1705.03551
|
179 |
+
[naturalq]: https://github.com/google-research-datasets/natural-questions
|
180 |
+
[arc]: https://arxiv.org/abs/1911.01547
|
181 |
+
[winogrande]: https://arxiv.org/abs/1907.10641
|
182 |
+
[bbh]: https://paperswithcode.com/dataset/bbh
|
183 |
+
[drop]: https://arxiv.org/abs/1903.00161
|
184 |
+
|
185 |
+
#### STEM and code
|
186 |
+
|
187 |
+
| Benchmark | Metric | Gemma 3 PT 4B | Gemma 3 PT 12B | Gemma 3 PT 27B |
|
188 |
+
| ------------------------------ |----------------|:-------------:|:--------------:|:--------------:|
|
189 |
+
| [MMLU][mmlu] | 5-shot | 59.6 | 74.5 | 78.6 |
|
190 |
+
| [MMLU][mmlu] (Pro COT) | 5-shot | 29.2 | 45.3 | 52.2 |
|
191 |
+
| [AGIEval][agieval] | 3-5-shot | 42.1 | 57.4 | 66.2 |
|
192 |
+
| [MATH][math] | 4-shot | 24.2 | 43.3 | 50.0 |
|
193 |
+
| [GSM8K][gsm8k] | 8-shot | 38.4 | 71.0 | 82.6 |
|
194 |
+
| [GPQA][gpqa] | 5-shot | 15.0 | 25.4 | 24.3 |
|
195 |
+
| [MBPP][mbpp] | 3-shot | 46.0 | 60.4 | 65.6 |
|
196 |
+
| [HumanEval][humaneval] | 0-shot | 36.0 | 45.7 | 48.8 |
|
197 |
+
|
198 |
+
[mmlu]: https://arxiv.org/abs/2009.03300
|
199 |
+
[agieval]: https://arxiv.org/abs/2304.06364
|
200 |
+
[math]: https://arxiv.org/abs/2103.03874
|
201 |
+
[gsm8k]: https://arxiv.org/abs/2110.14168
|
202 |
+
[gpqa]: https://arxiv.org/abs/2311.12022
|
203 |
+
[mbpp]: https://arxiv.org/abs/2108.07732
|
204 |
+
[humaneval]: https://arxiv.org/abs/2107.03374
|
205 |
+
|
206 |
+
#### Multilingual
|
207 |
+
|
208 |
+
| Benchmark | Gemma 3 PT 1B | Gemma 3 PT 4B | Gemma 3 PT 12B | Gemma 3 PT 27B |
|
209 |
+
| ------------------------------------ |:-------------:|:-------------:|:--------------:|:--------------:|
|
210 |
+
| [MGSM][mgsm] | 2.04 | 34.7 | 64.3 | 74.3 |
|
211 |
+
| [Global-MMLU-Lite][global-mmlu-lite] | 24.9 | 57.0 | 69.4 | 75.7 |
|
212 |
+
| [WMT24++][wmt24pp] (ChrF) | 36.7 | 48.4 | 53.9 | 55.7 |
|
213 |
+
| [FloRes][flores] | 29.5 | 39.2 | 46.0 | 48.8 |
|
214 |
+
| [XQuAD][xquad] (all) | 43.9 | 68.0 | 74.5 | 76.8 |
|
215 |
+
| [ECLeKTic][eclektic] | 4.69 | 11.0 | 17.2 | 24.4 |
|
216 |
+
| [IndicGenBench][indicgenbench] | 41.4 | 57.2 | 61.7 | 63.4 |
|
217 |
+
|
218 |
+
[mgsm]: https://arxiv.org/abs/2210.03057
|
219 |
+
[flores]: https://arxiv.org/abs/2106.03193
|
220 |
+
[xquad]: https://arxiv.org/abs/1910.11856v3
|
221 |
+
[global-mmlu-lite]: https://huggingface.co/datasets/CohereForAI/Global-MMLU-Lite
|
222 |
+
[wmt24pp]: https://arxiv.org/abs/2502.12404v1
|
223 |
+
[eclektic]: https://arxiv.org/abs/2502.21228
|
224 |
+
[indicgenbench]: https://arxiv.org/abs/2404.16816
|
225 |
+
|
226 |
+
#### Multimodal
|
227 |
+
|
228 |
+
| Benchmark | Gemma 3 PT 4B | Gemma 3 PT 12B | Gemma 3 PT 27B |
|
229 |
+
| ------------------------------ |:-------------:|:--------------:|:--------------:|
|
230 |
+
| [COCOcap][coco-cap] | 102 | 111 | 116 |
|
231 |
+
| [DocVQA][docvqa] (val) | 72.8 | 82.3 | 85.6 |
|
232 |
+
| [InfoVQA][info-vqa] (val) | 44.1 | 54.8 | 59.4 |
|
233 |
+
| [MMMU][mmmu] (pt) | 39.2 | 50.3 | 56.1 |
|
234 |
+
| [TextVQA][textvqa] (val) | 58.9 | 66.5 | 68.6 |
|
235 |
+
| [RealWorldQA][realworldqa] | 45.5 | 52.2 | 53.9 |
|
236 |
+
| [ReMI][remi] | 27.3 | 38.5 | 44.8 |
|
237 |
+
| [AI2D][ai2d] | 63.2 | 75.2 | 79.0 |
|
238 |
+
| [ChartQA][chartqa] | 63.6 | 74.7 | 76.3 |
|
239 |
+
| [VQAv2][vqav2] | 63.9 | 71.2 | 72.9 |
|
240 |
+
| [BLINK][blinkvqa] | 38.0 | 35.9 | 39.6 |
|
241 |
+
| [OKVQA][okvqa] | 51.0 | 58.7 | 60.2 |
|
242 |
+
| [TallyQA][tallyqa] | 42.5 | 51.8 | 54.3 |
|
243 |
+
| [SpatialSense VQA][ss-vqa] | 50.9 | 60.0 | 59.4 |
|
244 |
+
| [CountBenchQA][countbenchqa] | 26.1 | 17.8 | 68.0 |
|
245 |
+
|
246 |
+
[coco-cap]: https://cocodataset.org/#home
|
247 |
+
[docvqa]: https://www.docvqa.org/
|
248 |
+
[info-vqa]: https://arxiv.org/abs/2104.12756
|
249 |
+
[mmmu]: https://arxiv.org/abs/2311.16502
|
250 |
+
[textvqa]: https://textvqa.org/
|
251 |
+
[realworldqa]: https://paperswithcode.com/dataset/realworldqa
|
252 |
+
[remi]: https://arxiv.org/html/2406.09175v1
|
253 |
+
[ai2d]: https://allenai.org/data/diagrams
|
254 |
+
[chartqa]: https://arxiv.org/abs/2203.10244
|
255 |
+
[vqav2]: https://visualqa.org/index.html
|
256 |
+
[blinkvqa]: https://arxiv.org/abs/2404.12390
|
257 |
+
[okvqa]: https://okvqa.allenai.org/
|
258 |
+
[tallyqa]: https://arxiv.org/abs/1810.12440
|
259 |
+
[ss-vqa]: https://arxiv.org/abs/1908.02660
|
260 |
+
[countbenchqa]: https://github.com/google-research/big_vision/blob/main/big_vision/datasets/countbenchqa/
|
261 |
+
|
262 |
+
## Ethics and Safety
|
263 |
+
|
264 |
+
Ethics and safety evaluation approach and results.
|
265 |
+
|
266 |
+
### Evaluation Approach
|
267 |
+
|
268 |
+
Our evaluation methods include structured evaluations and internal red-teaming
|
269 |
+
testing of relevant content policies. Red-teaming was conducted by a number of
|
270 |
+
different teams, each with different goals and human evaluation metrics. These
|
271 |
+
models were evaluated against a number of different categories relevant to
|
272 |
+
ethics and safety, including:
|
273 |
+
|
274 |
+
- **Child Safety**: Evaluation of text-to-text and image to text prompts
|
275 |
+
covering child safety policies, including child sexual abuse and
|
276 |
+
exploitation.
|
277 |
+
- **Content Safety:** Evaluation of text-to-text and image to text prompts
|
278 |
+
covering safety policies including, harassment, violence and gore, and hate
|
279 |
+
speech.
|
280 |
+
- **Representational Harms**: Evaluation of text-to-text and image to text
|
281 |
+
prompts covering safety policies including bias, stereotyping, and harmful
|
282 |
+
associations or inaccuracies.
|
283 |
+
|
284 |
+
In addition to development level evaluations, we conduct "assurance
|
285 |
+
evaluations" which are our 'arms-length' internal evaluations for responsibility
|
286 |
+
governance decision making. They are conducted separately from the model
|
287 |
+
development team, to inform decision making about release. High level findings
|
288 |
+
are fed back to the model team, but prompt sets are held-out to prevent
|
289 |
+
overfitting and preserve the results' ability to inform decision making.
|
290 |
+
Assurance evaluation results are reported to our Responsibility & Safety Council
|
291 |
+
as part of release review.
|
292 |
+
|
293 |
+
### Evaluation Results
|
294 |
+
|
295 |
+
For all areas of safety testing, we saw major improvements in the categories of
|
296 |
+
child safety, content safety, and representational harms relative to previous
|
297 |
+
Gemma models. All testing was conducted without safety filters to evaluate the
|
298 |
+
model capabilities and behaviors. For both text-to-text and image-to-text, and
|
299 |
+
across all model sizes, the model produced minimal policy violations, and showed
|
300 |
+
significant improvements over previous Gemma models' performance with respect
|
301 |
+
to ungrounded inferences. A limitation of our evaluations was they included only
|
302 |
+
English language prompts.
|
303 |
+
|
304 |
+
## Usage and Limitations
|
305 |
+
|
306 |
+
These models have certain limitations that users should be aware of.
|
307 |
+
|
308 |
+
### Intended Usage
|
309 |
+
|
310 |
+
Open vision-language models (VLMs) models have a wide range of applications
|
311 |
+
across various industries and domains. The following list of potential uses is
|
312 |
+
not comprehensive. The purpose of this list is to provide contextual information
|
313 |
+
about the possible use-cases that the model creators considered as part of model
|
314 |
+
training and development.
|
315 |
+
|
316 |
+
- Content Creation and Communication
|
317 |
+
- Text Generation: These models can be used to generate creative text
|
318 |
+
formats such as poems, scripts, code, marketing copy, and email drafts.
|
319 |
+
- Chatbots and Conversational AI: Power conversational interfaces
|
320 |
+
for customer service, virtual assistants, or interactive applications.
|
321 |
+
- Text Summarization: Generate concise summaries of a text corpus,
|
322 |
+
research papers, or reports.
|
323 |
+
- Image Data Extraction: These models can be used to extract,
|
324 |
+
interpret, and summarize visual data for text communications.
|
325 |
+
- Research and Education
|
326 |
+
- Natural Language Processing (NLP) and VLM Research: These
|
327 |
+
models can serve as a foundation for researchers to experiment with VLM
|
328 |
+
and NLP techniques, develop algorithms, and contribute to the
|
329 |
+
advancement of the field.
|
330 |
+
- Language Learning Tools: Support interactive language learning
|
331 |
+
experiences, aiding in grammar correction or providing writing practice.
|
332 |
+
- Knowledge Exploration: Assist researchers in exploring large
|
333 |
+
bodies of text by generating summaries or answering questions about
|
334 |
+
specific topics.
|
335 |
+
|
336 |
+
### Limitations
|
337 |
+
|
338 |
+
- Training Data
|
339 |
+
- The quality and diversity of the training data significantly
|
340 |
+
influence the model's capabilities. Biases or gaps in the training data
|
341 |
+
can lead to limitations in the model's responses.
|
342 |
+
- The scope of the training dataset determines the subject areas
|
343 |
+
the model can handle effectively.
|
344 |
+
- Context and Task Complexity
|
345 |
+
- Models are better at tasks that can be framed with clear
|
346 |
+
prompts and instructions. Open-ended or highly complex tasks might be
|
347 |
+
challenging.
|
348 |
+
- A model's performance can be influenced by the amount of context
|
349 |
+
provided (longer context generally leads to better outputs, up to a
|
350 |
+
certain point).
|
351 |
+
- Language Ambiguity and Nuance
|
352 |
+
- Natural language is inherently complex. Models might struggle
|
353 |
+
to grasp subtle nuances, sarcasm, or figurative language.
|
354 |
+
- Factual Accuracy
|
355 |
+
- Models generate responses based on information they learned
|
356 |
+
from their training datasets, but they are not knowledge bases. They
|
357 |
+
may generate incorrect or outdated factual statements.
|
358 |
+
- Common Sense
|
359 |
+
- Models rely on statistical patterns in language. They might
|
360 |
+
lack the ability to apply common sense reasoning in certain situations.
|
361 |
+
|
362 |
+
### Ethical Considerations and Risks
|
363 |
+
|
364 |
+
The development of vision-language models (VLMs) raises several ethical
|
365 |
+
concerns. In creating an open model, we have carefully considered the following:
|
366 |
+
|
367 |
+
- Bias and Fairness
|
368 |
+
- VLMs trained on large-scale, real-world text and image data can
|
369 |
+
reflect socio-cultural biases embedded in the training material. These
|
370 |
+
models underwent careful scrutiny, input data pre-processing described
|
371 |
+
and posterior evaluations reported in this card.
|
372 |
+
- Misinformation and Misuse
|
373 |
+
- VLMs can be misused to generate text that is false, misleading,
|
374 |
+
or harmful.
|
375 |
+
- Guidelines are provided for responsible use with the model, see the
|
376 |
+
[Responsible Generative AI Toolkit][rai-toolkit].
|
377 |
+
- Transparency and Accountability:
|
378 |
+
- This model card summarizes details on the models' architecture,
|
379 |
+
capabilities, limitations, and evaluation processes.
|
380 |
+
- A responsibly developed open model offers the opportunity to
|
381 |
+
share innovation by making VLM technology accessible to developers and
|
382 |
+
researchers across the AI ecosystem.
|
383 |
+
|
384 |
+
Risks identified and mitigations:
|
385 |
+
|
386 |
+
- **Perpetuation of biases**: It's encouraged to perform continuous
|
387 |
+
monitoring (using evaluation metrics, human review) and the exploration of
|
388 |
+
de-biasing techniques during model training, fine-tuning, and other use
|
389 |
+
cases.
|
390 |
+
- **Generation of harmful content**: Mechanisms and guidelines for content
|
391 |
+
safety are essential. Developers are encouraged to exercise caution and
|
392 |
+
implement appropriate content safety safeguards based on their specific
|
393 |
+
product policies and application use cases.
|
394 |
+
- **Misuse for malicious purposes**: Technical limitations and developer
|
395 |
+
and end-user education can help mitigate against malicious applications of
|
396 |
+
VLMs. Educational resources and reporting mechanisms for users to flag
|
397 |
+
misuse are provided. Prohibited uses of Gemma models are outlined in the
|
398 |
+
[Gemma Prohibited Use Policy][prohibited-use].
|
399 |
+
- **Privacy violations**: Models were trained on data filtered for removal
|
400 |
+
of certain personal information and other sensitive data. Developers are
|
401 |
+
encouraged to adhere to privacy regulations with privacy-preserving
|
402 |
+
techniques.
|
403 |
+
|
404 |
+
### Benefits
|
405 |
+
|
406 |
+
At the time of release, this family of models provides high-performance open
|
407 |
+
vision-language model implementations designed from the ground up for
|
408 |
+
responsible AI development compared to similarly sized models.
|
409 |
+
|
410 |
+
Using the benchmark evaluation metrics described in this document, these models
|
411 |
+
have shown to provide superior performance to other, comparably-sized open model
|
412 |
+
alternatives.
|
413 |
+
|
414 |
+
[g3-tech-report]: https://goo.gle/Gemma3Report
|
415 |
+
[rai-toolkit]: https://ai.google.dev/responsible
|
416 |
+
[kaggle-gemma]: https://www.kaggle.com/models/google/gemma-3
|
417 |
+
[vertex-mg-gemma3]: https://console.cloud.google.com/vertex-ai/publishers/google/model-garden/gemma3
|
418 |
+
[terms]: https://ai.google.dev/gemma/terms
|
419 |
+
[safety-policies]: https://ai.google/static/documents/ai-responsibility-update-published-february-2025.pdf
|
420 |
+
[prohibited-use]: https://ai.google.dev/gemma/prohibited_use_policy
|
421 |
+
[tpu]: https://cloud.google.com/tpu/docs/intro-to-tpu
|
422 |
+
[sustainability]: https://sustainability.google/operating-sustainably/
|
423 |
+
[jax]: https://github.com/jax-ml/jax
|
424 |
+
[ml-pathways]: https://blog.google/technology/ai/introducing-pathways-next-generation-ai-architecture/
|
425 |
+
[sustainability]: https://sustainability.google/operating-sustainably/
|
426 |
+
[gemini-2-paper]: https://arxiv.org/abs/2312.11805
|
gemma-3-1b-it-Q4_K_M.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8ccc5cd1f1b3602548715ae25a66ed73fd5dc68a210412eea643eb20eb75a135
|
3 |
+
size 806058240
|
gemma-3-1b-it-Q8_0.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b205840c5dcef55078e37d344677869a714ffd42a4ae448c48dcfb52e4bb10d5
|
3 |
+
size 1069306368
|
gemma-3-1b-it-f16.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:05bd381a5f45611ce53f4fdcc6641cf6cec68c3091d74e8a32ea591f062d3fc5
|
3 |
+
size 2006573568
|