11# Job config to LoRA tune Gemma 4 27B (Mixture-of-Experts).
22#
3- # NOTE: This recipe installs Oumi in EDITABLE mode from the synced working dir
4- # (`-e '.[gpu]'`) and runs the LOCAL config path (no `oumi://` prefix). This is
5- # required while the Gemma 4 27B recipe and the `lora_exclude_modules` feature
6- # are pre-release and not yet on `main`.
7- #
83# Requirements:
94# - Set up SkyPilot GCP: https://oumi.ai/docs/en/latest/user_guides/launch/launch.html#setup
105# - apache-2.0 license, no gating: https://huggingface.co/google/gemma-4-26B-A4B-it
116# - Log into WandB (`wandb login`) or disable `enable_wandb`
127#
138# Usage:
14- # oumi launch up -c configs/recipes/gemma4/sft/27b_lora/gcp_job.yaml --cluster gemma4-27b-lora
9+ # oumi launch up -c oumi:// configs/recipes/gemma4/sft/27b_lora/gcp_job.yaml --cluster gemma4-27b-lora
1510#
1611# See Also:
1712# - Documentation: https://oumi.ai/docs/en/latest/user_guides/launch/launch.html
@@ -24,8 +19,7 @@ name: gemma4-27b-lora
2419resources :
2520 cloud : gcp
2621 accelerators : " A100:8"
27- use_spot : true
28- region : europe-west4 # 40GB A100s available here with abundant spot quota.
22+ use_spot : false
2923 disk_size : 500 # Disk size in GBs
3024
3125working_dir : .
@@ -39,15 +33,15 @@ envs:
3933
4034setup : |
4135 set -e
42- pip install uv && SETUPTOOLS_SCM_PRETEND_VERSION_FOR_OUMI=0.0.0.dev0 uv pip install --system -e '. [gpu]' hf_transfer
36+ pip install uv && uv pip install --system oumi [gpu] hf_transfer
4337
4438run : |
4539 set -e # Exit if any command failed.
4640 source ./configs/examples/misc/sky_init.sh
4741
4842 set -x
4943 oumi distributed torchrun -m oumi train \
50- -c configs/recipes/gemma4/sft/27b_lora/train.yaml \
44+ -c oumi:// configs/recipes/gemma4/sft/27b_lora/train.yaml \
5145 --training.run_name "${OUMI_RUN_NAME}.${SKYPILOT_TASK_ID}"
5246
5347 echo "Node ${SKYPILOT_NODE_RANK} is all done!"
0 commit comments