Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions tests/e2e/megatron/test_quick_start_glm4_9B.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import os

import torch

from tests.ci.ci_register import register_cuda_ci

import miles.utils.external_utils.command_utils as U
Expand All @@ -9,6 +11,7 @@
)

ENABLE_EVAL = U.get_bool_env_var("MILES_TEST_ENABLE_EVAL", "0")
IS_ROCM = hasattr(torch.version, "hip") and torch.version.hip is not None

MODEL_NAME = "GLM-Z1-9B-0414"
MODEL_TYPE = "glm4-9B"
Expand Down Expand Up @@ -104,6 +107,9 @@ def execute():
f"--rollout-num-gpus {NUM_GPUS // 2} "
)

if IS_ROCM:
misc_args += "--no-gradient-accumulation-fusion "

train_args = (
f"{ckpt_args} "
f"{rollout_args} "
Expand Down