HF Model & Benchmark Matrix

24,078 variants · 14,984 scores · 120 benchmarks

gemma-3-4b-it

google/gemma-3-4b-it

kind
original
quant
bf16 (16-bit)
family
gemma
modality
image-text-to-text
root model
google/gemma-3-4b-pt
provider
google
license
gemma
language
—
context
—
library
transformers
vRAM (GB)
—
size on disk
—
downloads
2,093,730
likes
1,432
created
—
last modified
2025-03-21T20:20:53+00:00 (2025)
huggingface
https://huggingface.co/google/gemma-3-4b-it
tags
transformerssafetensorsgemma3image-text-to-textconversationalarxiv:1905.07830arxiv:1905.10044arxiv:1911.11641arxiv:1904.09728arxiv:1705.03551arxiv:1911.01547arxiv:1907.10641arxiv:1903.00161arxiv:2009.03300arxiv:2304.06364arxiv:2103.03874arxiv:2110.14168arxiv:2311.12022arxiv:2108.07732arxiv:2107.03374arxiv:2210.03057arxiv:2106.03193arxiv:1910.11856arxiv:2502.12404

Benchmark scores (20)

benchmarkcategoryscorecontextconfevidence
PIQAknowledge73.8[PIQA][]medium| [PIQA][piqa] | 0-shot | 73.8 | 79.6 | 81.8 | 83.3 |
DocVQAmultimodal72.8[DocVQA][] (val)medium| [DocVQA][docvqa] (val) | 72.8 | 82.3 | 85.6 |
ChartQAmultimodal63.6[ChartQA][]medium| [ChartQA][chartqa] | 63.6 | 74.7 | 76.3 |
BoolQknowledge63.2[BoolQ][]medium| [BoolQ][boolq] | 0-shot | 63.2 | 72.3 | 78.8 | 82.4 |
HellaSwagknowledge62.3[HellaSwag][]medium| [HellaSwag][hellaswag] | 10-shot | 62.3 | 77.2 | 84.2 | 85.6 |
MMLUknowledge59.6[MMLU][]medium| [MMLU][mmlu] | 5-shot | 59.6 | 74.5 | 78.6 |
WinoGrandeknowledge58.2[WinoGrande][]medium| [WinoGrande][winogrande] | 5-shot | 58.2 | 64.7 | 74.3 | 78.8 |
MBPPcoding46.0[MBPP][]medium| [MBPP][mbpp] | 3-shot | 46.0 | 60.4 | 65.6 |
DROPreasoning42.4[DROP][]medium| [DROP][drop] | 1-shot | 42.4 | 60.1 | 72.2 | 77.2 |
AGIEvalreasoning42.1[AGIEval][]medium| [AGIEval][agieval] | 3-5-shot | 42.1 | 57.4 | 66.2 |
TriviaQAknowledge39.8[TriviaQA][]medium| [TriviaQA][triviaqa] | 5-shot | 39.8 | 65.8 | 78.2 | 85.5 |
MMMUmultimodal39.2[MMMU][] (pt)medium| [MMMU][mmmu] (pt) | 39.2 | 50.3 | 56.1 |
GSM8Kmath38.4[GSM8K][]medium| [GSM8K][gsm8k] | 8-shot | 38.4 | 71.0 | 82.6 |
HumanEvalcoding36.0[HumanEval][]medium| [HumanEval][humaneval] | 0-shot | 36.0 | 45.7 | 48.8 |
MMLUknowledge29.2[MMLU][] (Pro COT)medium| [MMLU][mmlu] (Pro COT) | 5-shot | 29.2 | 45.3 | 52.2 |
BBHreasoning28.4[BIG-Bench Hard][]medium| [BIG-Bench Hard][bbh] | few-shot | 28.4 | 50.9 | 72.6 | 77.7 |
MMLUknowledge24.9[Global-MMLU-Lite][global--lite]medium| [Global-MMLU-Lite][global-mmlu-lite] | 24.9 | 57.0 | 69.4 | 75.7 |
MATHmath24.2[MATH][]medium| [MATH][math] | 4-shot | 24.2 | 43.3 | 50.0 |
GPQAreasoning15.0[GPQA][]medium| [GPQA][gpqa] | 5-shot | 15.0 | 25.4 | 24.3 |
MGSMmath2.04[MGSM][]medium| [MGSM][mgsm] | 2.04 | 34.7 | 64.3 | 74.3 |

Discussions (90)

titleauthorstatuscommentstype
Create .eval_results/ask-my-agent-bench-2.yamlsapbotopen0disc
Create .eval-results/ask-my-agent-bench-2.yamlsapbotclosed0disc
VORTEXRAG: 7-Layer RAG — EM 74.8 on QA benchmarks, solves Semantic Drift [open source]vigneshwar234closed0disc
Add EvalEval community eval resultsEvalEvalBotopen0disc
Update README.mdMohamed0meropen0disc
I built a unified wrapper for llmcompressor, llama.cpp & coremltools. Looking for LLM users to help me break it!kinderasteroidopen0disc
Finetuning Code Link In Native PyTorchdutta18open0disc
anisAniskhan29draft0disc
anisAniskhan29draft0disc
Request: DOIAlperIsleyenclosed0disc
Request: DOISalehsstopen0disc
Add Artificial Analysis evaluations for gemma-3-4bdavidlmsopen0disc
Add model-index with comprehensive benchmark evaluationsdavidlmsopen0disc
TestKishi1draft0disc
Token Count Calculation in SFT Data Distribution Curationtcy006open0disc
gemma 3bojupexadraft0disc
LoRA/PEFT can’t target nn.Parameter vision→text projection in Gemma-3 VLM — why use nn.Parameter instead of nn.Linear(bias=False)?alexanderyjopen0disc
4bit Quantization Failure for gemma 4bshabha7092open0disc
Gemma fullRamarajuKdraft0disc
testmunbujangdraft0disc
Inference Issue with Multi GPU'sm-nameeropen0disc
<pad> <pad> <pad> fixtest53100open0disc
processor does not have a chat templatePrabhjot410open0disc
onnx modelGerald001open0disc
Parameters are contradictory use_cache=Falselemon0703open0disc
onnx modelrobustdevclosed0disc
confusion with model importCharushilaclosed0disc
Re: failing structured output generationmsi-sbraun-11open0disc
Gemma3-U1ForSureTesterSimclosed0disc
Cannot recreate benchmark resultsalternisopen0disc
The example code provided (without modifications) produces gibberishzqQHopen0disc
Update README.mdFeelthevenomclosed0disc
Solve error about "dynamo"audrey666closed0disc
Update README.mddj1507open0disc
Missing values in 4B, 12B config.jsondepasqualeopen0disc
git-clonedevrfdraft0disc
Update preprocessor_config.jsonnm-researchopen0disc
use model run failedpb-1open0disc
cache_dir with ssd super slow and once loaded in nvidia quadro P4000 with 4bit return nothing Image is made of multiple images inside with timestampjef06closed0disc
Bug report: torch._dynamo.exc.Unsupported: Unexpected type in sourceless builder transformers.models.gemma3.configuration_gemma3.Gemma3TextConfigYovelRVeritexopen0disc
Update config.jsonolegshulyakovopen0disc
Update README.mdVANNVISALopen0disc
Tokenizer's `model_max_length` unusual valueawniclosed0disc
Update README.mdDimaYastrebovclosed0disc
Error in loading Modelsans07open0disc
gemma3-1b-itTAENNYdraft0disc
Explicitly include num_attention_heads and num_key_value_heads in text_config for Gemma3 4Bebsmothersopen0disc
Deployment issues on sagemakertychen6677open0disc
Please open-source Gemini 1.5 Flashdrguolaiopen0disc
CUDA error: device-side assert triggeredArshiaSooriopen0disc
HihNanoser12closed0disc
Low GPU Utilization during inference?BagelBigopen0disc
Object detection capabilities ?syrineMopen0disc
SigLIP or SigLIP2 encoder?orrzoharopen0disc
text-generationrakmikopen0disc
I'm releasing the speech version of Gemma-3!junneiopen0disc
Update README.mdsachin7yadavaopen0disc
Issue with vLLM Deployment of gemma-3-4b-it on Tesla T4 - No Outputtwodaixopen0disc
Batch processing on a GPU?buckeye17-bahopen0disc
Please release also Gemini Flash 1.5 weights.ZeroWwopen0disc
Finetuning script using HuggingFace2U1closed0disc
VRAM not freed during long generations (Gemma, max_new_tokens=3000)Nessitopen0disc
The checkpoint you are trying to load has model type `gemma3` but Transformers does not recognize this architecturebajajrahul03open0disc
Does not works with bitsandbytes 4bit and 8bitzokicaopen0disc
Pan&Scan is desable by default ?Jack-HR-Redopen0disc
Update READMEpatloebermerged0disc
Update README.mdmervemerged0disc
Upload tokenizer.modelNexesenexopen0disc
cannot import name 'Gemma3ForConditionalGeneration' from 'transformers'ansh10daveclosed0disc
Having a hard time fine tuning with LoRAabcampbellopen0disc
Adding "vocab_size" to config.jsonnmysoreopen0disc
The checkpoint you are trying to load has model type `gemma3` but Transformers does not recognize this architecture.bedoonrajopen0disc
getting key error while running inference for pipeline api given in "Usage section"himanshu-bluebrainopen0disc
How can I run the pipeline without the Image input?prakhaaaasopen0disc
Model Produces no OutputsRonanMcGovernclosed0disc
AttributeError: 'HybridCache' object has no attribute 'float'naruto-soopopen0disc
Not enough parameters in 4b config.jsonkrammnicopen0disc
AttributeError: 'Gemma3Config' object has no attribute 'vocab_size'MinecAnton209open0disc
Add video inferencemerveopen0disc
Failed to deploy on Amazon SageMaker ml.g5.4xlarge instanceKhalizoclosed0disc
Local Installation Video and Testing - Step by Stepfahdmirzacopen0disc
Question About Benchmark Version in READMElianghsunopen0disc
Feedback: mildly disappointed there isn't 9B versionnonetrixopen0disc
I am getting error for shape mismatch with the provided codeabhgargclosed0disc
Update chat_templateXenovamerged0disc
Update README.mdmervemerged0disc
Add code snippet, change pipeline tag and library namemerveclosed0disc
Add code snippet, change pipeline tag and library namemerveclosed0disc
Add <end_of_turn> as a terminatorpcuenqclosed0disc
Upload tokenizerXenovamerged0disc
Hugging Face model & benchmark data scraped & matrix-ified. 24,078 variants · 14,984 scores · 120 benchmarks.