Skip to content
Draft
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
4 changes: 2 additions & 2 deletions tests/unit/runtime/half_precision/test_fp8.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ def run_zero(stage, model_dtype):
rtol, atol = 1e-07, 1e-05

# Relax tolerance only for ROCm + FP16
if is_rocm_pytorch() and model_dtype == torch.float16:
rtol, atol = 3e-07, 3e-05
if is_rocm_pytorch() and base_datatype in ["fp16", "bf16"]:
rtol, atol = 1e-07, 1e-04
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rraminen Suggest figuring out if this is HW-specific e.g. MI200/MI300?


# config
zero_stage = [0, 1, 2, 3]
Expand Down