gemma-4-12B

View as Markdown

Gemma-4-12B has a checked-in NeMo AutoModel recipe for text generation. The Hugging Face configuration declares the Gemma4UnifiedForConditionalGeneration architecture.

Fine-Tune Gemma-4-12B

Follow the installation instructions, then run the recipe from the repository root:

automodel examples/llm_finetune/gemma/gemma_4_12b_hellaswag.yaml --nproc-per-node 8

Choose a Workflow

GoalStart Here
Run the primary recipe for this modelUse the recipe configuration.
Prepare your environmentFollow the installation instructions.

Configuration

SettingConfiguration
Hardware-
StrategyFSDP2; tp_size=1, pp_size=1, cp_size=1
Nodes-
FeaturesCheckpointing (enabled=true)
Advancedbf16

Model Reference

Model Architecture

PropertyValue
TaskText generation
ArchitectureGemma4UnifiedForConditionalGeneration

Available Models