[CI][ROCm] Standardize AMD test job labels by device (#52976)

Signed-off-by: Andreas Karatzas <Andreas.Karatzas@amd.com>
Signed-off-by: Andreas Karatzas <akaratza@amd.com>
This commit is contained in:
Andreas Karatzas
2026-08-19 22:33:25 -05:00
committed by GitHub
parent e85dd21497
commit 4f66bc3e0d
4 changed files with 384 additions and 340 deletions
+4 -4
View File
@@ -102,7 +102,7 @@ def run_dp_sharded_vision_model_vs_direct(
# Set random seed for reproducibility
set_random_seed(0)
device = f"{current_platform.device_name}:{local_rank}"
device = f"{current_platform.device_type}:{local_rank}"
torch.accelerator.set_device_index(device)
torch.set_default_device(device)
@@ -288,7 +288,7 @@ def run_dp_sharded_mrope_vision_model_vs_direct(
"""
# Set random seed for reproducibility
set_random_seed(0)
device = f"{current_platform.device_name}:{local_rank}"
device = f"{current_platform.device_type}:{local_rank}"
torch.accelerator.set_device_index(device)
torch.set_default_device(device)
@@ -365,7 +365,7 @@ def run_dp_sharded_mrope_vision_model_empty_input_worker(
):
"""Test run_dp_sharded_mrope_vision_model with empty input."""
# Set up distributed environment
device = f"{current_platform.device_name}:{local_rank}"
device = f"{current_platform.device_type}:{local_rank}"
torch.accelerator.set_device_index(device)
torch.set_default_device(device)
@@ -414,7 +414,7 @@ def run_dp_sharded_mrope_vision_model_uneven_load_worker(
"""Test run_dp_sharded_mrope_vision_model with uneven load distribution."""
# Set up distributed environment
set_random_seed(123)
device = f"{current_platform.device_name}:{local_rank}"
device = f"{current_platform.device_type}:{local_rank}"
torch.accelerator.set_device_index(device)
torch.set_default_device(device)