[AMD] fix amd ci dpskv32 (#17432)

Co-authored-by: michaelzhang-ai <michaelzhang.ai@users.noreply.github.com>
This commit is contained in:
YC Tseng
2026-01-22 12:34:24 +08:00
committed by GitHub
parent fafa171529
commit 17807caf82
5 changed files with 16 additions and 7 deletions

View File

@@ -220,6 +220,8 @@ class Indexer(MultiPlatformOp):
@torch.compile(dynamic=True) if not _is_hip else lambda f: f
def _project_and_scale_head_gates(self, x: torch.Tensor):
if _is_hip:
x = x.to(self.weights_proj.weight.dtype)
weights, _ = self.weights_proj(x)
weights = weights.float()
weights = weights * self.n_heads**-0.5
@@ -227,6 +229,8 @@ class Indexer(MultiPlatformOp):
@torch.compile(dynamic=True) if not _is_hip else lambda f: f
def _get_logits_head_gate(self, x: torch.Tensor, q_scale: torch.Tensor):
if _is_hip:
x = x.to(self.weights_proj.weight.dtype)
weights, _ = self.weights_proj(x)
weights = weights.float()
weights = weights * self.n_heads**-0.5

View File

@@ -204,7 +204,7 @@ else:
DEFAULT_URL_FOR_TEST = f"http://127.0.0.1:{DEFAULT_PORT_FOR_SRT_TEST_RUNNER + 1000}"
if is_in_amd_ci():
DEFAULT_TIMEOUT_FOR_SERVER_LAUNCH = 3000
DEFAULT_TIMEOUT_FOR_SERVER_LAUNCH = 3600 # Match H200 timeout for large models
if is_blackwell_system():
DEFAULT_TIMEOUT_FOR_SERVER_LAUNCH = 3000