---
title: codegemma-2b-keras
canonical_url: "https://www.modelscope.cn/models/google/codegemma-2b-keras"
md_url: "https://www.modelscope.cn/models/google/codegemma-2b-keras.md"
repository: google/codegemma-2b-keras
last_updated: 2025-04-21
license: gemma
pipeline_tag: text-generation
tasks:
  - text-generation
library_name:
  - pytorch
frameworks:
  - pytorch
downloads: 418
stars: 0
---

# codegemma-2b-keras

> codegemma-2b-keras - google 在 ModelScope 开源的模型。❗️There is a newer version of this model here: huggingface.co/google/codegemma-1.1-2b-keras

google/codegemma-2b-keras 是 ModelScope 魔搭社区上的text-generation模型，采用 gemma 许可。

- **Repository**: google/codegemma-2b-keras
- **License**: gemma
- **Tasks**: text-generation
- **Downloads**: 418
- **Stars**: 0
- **Last updated**: 2025-04-21

Source: https://www.modelscope.cn/models/google/codegemma-2b-keras

---

# CodeGemma

**❗️There is a newer version of this model here: [huggingface.co/google/codegemma-1.1-2b-keras](https://huggingface.co/google/codegemma-1.1-2b-keras)**

This model card corresponds to the 2B base version of the Code Gemma model for usage in keras.

For more information about the model, visit https://huggingface.co/google/codegemma-2b.

Google Model Page
: [CodeGemma](https://ai.google.dev/gemma/docs/codegemma)

Resources and Technical Documentation
: [Technical Report](https://goo.gle/codegemma)
: [Responsible Generative AI Toolkit](https://ai.google.dev/responsible)

Terms of Use
: [Terms](https://www.kaggle.com/models/google/codegemma/license/consent/verify/huggingface?returnModelRepoId=google/codegemma-2b-keras)

Authors
: Google

## Loading the model

```python
import keras_nlp

gemma_lm = keras_nlp.models.GemmaCausalLM.from_preset("hf://google/codegemma-2b-keras")
```
