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

# codegemma-1.1-2b-keras

> codegemma-1.1-2b-keras - google 在 ModelScope 开源的模型。Google Model Page: CodeGemma

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

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

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

---

# CodeGemma

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

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

Keras models can be used with JAX, PyTorch or TensorFlow as numerical backends.
JAX, with its support for SPMD model paralellism, is recommended for large models.
For more information: [distributed training with Keras and JAX](https://keras.io/guides/distribution/).

You can find other models in the CodeGemma family here:

|    | Base                                               | Instruct                                                             |
|----|----------------------------------------------------|----------------------------------------------------------------------|
| 2B | [**codegemma-1.1-2b-keras**](https://huggingface.co/google/codegemma-1.1-2b-keras) |  |
| 7B | [codegemma-7b-keras](https://huggingface.co/google/codegemma-7b-keras) | [codegemma-1.1-7b-it-keras](https://huggingface.co/google/codegemma-1.1-7b-it-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://ai.google.dev/gemma/terms)

Authors
: Google

## Loading the model

```python
import keras_nlp

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