Skip to content

Commit

Permalink
Avoid using torch.compile for roll and fill_ (#609)
Browse files Browse the repository at this point in the history
Signed-off-by: Kirthi Shankar Sivamani <[email protected]>
  • Loading branch information
ksivaman authored and ptrendx committed Jan 19, 2024
1 parent 4f9662f commit 96b31f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions transformer_engine/pytorch/fp8.py
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@ def _update_amax_history(amax_history: torch.Tensor) -> torch.Tensor:
return amax_history


@jit_fuser
@torch.jit.script
def _default_get_amax(
amax_history: torch.Tensor,
amax_compute_algo: str,
Expand Down Expand Up @@ -625,7 +625,7 @@ def _compute_scaling_factor_inverse(
return torch.where(non_weight_mask, 1.0 / scale, scale_inv)


@jit_fuser
@torch.jit.script
def _fused_amax_and_scale_update(
amax_history: torch.Tensor,
scale: torch.Tensor,
Expand Down

0 comments on commit 96b31f8

Please sign in to comment.