Codegemma 7B by google

 »  All LLMs  »  google  »  Codegemma 7B   URL Share it on

Codegemma 7B is an open-source language model by google. Features: 7b LLM, VRAM: 17.1GB, Context: 8K, License: gemma, HF Score: 56.7, LLM Explorer Score: 0.17, Arc: 53.9, HellaSwag: 76.7, MMLU: 56.6, TruthfulQA: 38, WinoGrande: 69.6, GSM8K: 45.5, HumanEval: 40.1.

  Endpoints compatible   Gemma   Region:us   Safetensors   Sharded   Tensorflow

Codegemma 7B Benchmarks

Codegemma 7B Parameters and Internals

Model Type 
text-to-text, text-to-code, decoder-only
Use Cases 
Areas:
Research, Commercial applications
Applications:
Code Completion, Code Generation, Code Conversation, Code Education
Primary Use Cases:
Code completion with IDE extension, Interactive code learning experiences
Limitations:
Limitations of LLMs based on training data., Potential representational harms.
Considerations:
See Gemma model card for comprehensive considerations.
Additional Notes 
The model is built for Responsible AI development with a focus on open code applications.
Supported Languages 
English (Fluent)
Training Details 
Data Sources:
Publicly available code repositories, Open source mathematics datasets, Synthetically generated code
Data Volume:
500 billion tokens
Methodology:
FIM, PSM/SPM modes
Hardware Used:
TPUvs5e
Model Architecture:
Not explicitly mentioned
Safety Evaluation 
Methodologies:
Internal red-teaming, Structured evaluations
Risk Categories:
Human safety, Representational harms, Cyber-offence capabilities
Ethical Considerations:
Testing autonomous hacking capabilities and ensuring potential harms are limited.
Responsible Ai Considerations 
Fairness:
Human evaluation on prompts covering content safety and representational harms.
Transparency:
Discussions and evaluations are detailed in the Gemma model card.
Accountability:
Developed by Google, accountable for outputs under their AI principles.
Mitigation Strategies:
Controlled through structured evaluations and internal red-teaming.
Input Output 
Input Format:
For pretrained model: code prefix and/or suffix for code completion and generation.
Accepted Modalities:
text
Output Format:
For instruction-tuned model: code and natural language
Performance Tips:
Ensure correct usage of FIM tokens in prompts.
LLM NameCodegemma 7B
Repository 🤗https://huggingface.co/google/codegemma-7b 
Model Size7b
Required VRAM17.1 GB
Updated2026-04-12
Maintainergoogle
Model Typegemma
Model Files  5.0 GB: 1-of-4   5.0 GB: 2-of-4   5.0 GB: 3-of-4   2.1 GB: 4-of-4
Model ArchitectureGemmaForCausalLM
Licensegemma
Context Length8192
Model Max Length8192
Transformers Version4.39.3
Tokenizer ClassGemmaTokenizer
Padding Token<pad>
Vocabulary Size256000
Torch Data Typebfloat16

Quantized Models of the Codegemma 7B

Model
Likes
Downloads
VRAM
Codegemma 7B GGUF02253 GB

Best Alternatives to Codegemma 7B

Best Alternatives
Context / RAM
Downloads
Likes
Kaggle Math Model Gemma V112K / 17.1 GB50
Gemma 1.1 7B It8K / 17.1 GB20065275
Gemma 1.1 7B It8K / 17.1 GB284
Gemma 7B It8K / 17.1 GB102910
SeaLLM 7B V2.58K / 17.1 GB1241050
Zephyr 7B Gemma DPO Avg8K / 17.1 GB150
Zephyr 7B Gemma Rpo Avg8K / 17.1 GB70
... Codegemma 2 7B It Alpaca V1.38K / 17.1 GB91
Zephyr 7B Gemma V0.18K / 17.1 GB302124
... 7B Finetuned Sft Navarasa 2.08K / 34 GB31423
Note: green Score (e.g. "73.2") means that the model is better than google/codegemma-7b.

Rank the Codegemma 7B Capabilities

🆘 Have you tried this model? Rate its performance. This feedback would greatly assist ML community in identifying the most suitable model for their needs. Your contribution really does make a difference! 🌟

Instruction Following and Task Automation  
Factuality and Completeness of Knowledge  
Censorship and Alignment  
Data Analysis and Insight Generation  
Text Generation  
Text Summarization and Feature Extraction  
Code Generation  
Multi-Language Support and Translation  

What open-source LLMs or SLMs are you in search of? 53254 in total.

Our Social Media →  
Original data from HuggingFace, OpenCompass and various public git repos.
Check out Ag3ntum — our secure, self-hosted AI agent for server management.
Release v20260328a