> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/nemo/automodel/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.nvidia.com/nemo/automodel/_mcp/server.

# Gemma 2

> Supported Gemma 2 checkpoints and NeMo AutoModel recipes.

[Gemma 2](https://huggingface.co/google/gemma-2-9b-it) is Google's second-generation Gemma language model family.

|                  |                                         |
| ---------------- | --------------------------------------- |
| **Task**         | Text Generation                         |
| **Architecture** | `Gemma2ForCausalLM`                     |
| **Parameters**   | 2B, 9B, 27B                             |
| **HF Org**       | [google](https://huggingface.co/google) |

## Example Models and Recipes

| Model                                                                 | Recipe                                                                                                                           |
| --------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- |
| [`google/gemma-2-9b-it`](https://huggingface.co/google/gemma-2-9b-it) | [Full SFT](https://github.com/NVIDIA-NeMo/Automodel/blob/main/examples/llm_finetune/gemma/gemma_2_9b_it_squad.yaml)              |
| [`google/gemma-2-9b-it`](https://huggingface.co/google/gemma-2-9b-it) | [LoRA](https://github.com/NVIDIA-NeMo/Automodel/blob/main/examples/llm_finetune/gemma/gemma_2_9b_it_squad_peft.yaml)             |
| [`google/gemma-2-9b-it`](https://huggingface.co/google/gemma-2-9b-it) | [FP8 HellaSwag](https://github.com/NVIDIA-NeMo/Automodel/blob/main/examples/llm_finetune/gemma/gemma_2_9b_it_hellaswag_fp8.yaml) |

## Run the Recipe

```bash
uv run automodel --nproc-per-node=8 examples/llm_finetune/gemma/gemma_2_9b_it_squad.yaml
```

See the [Installation Guide](/get-started/installation) and [LLM Fine-Tuning Guide](/recipes-e2e-examples/sft-peft).