Skip to content

Commit

Permalink
Merge branch 'rs-dgrad-overlap-bugfix' of github.com:denera/Transform…
Browse files Browse the repository at this point in the history
…erEngine into rs-dgrad-overlap-bugfix
  • Loading branch information
denera committed Dec 5, 2024
2 parents 2535d77 + 4764591 commit 340e033
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions transformer_engine/pytorch/module/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,9 +418,8 @@ def add_ub(
if name in ub_cfgs:
final_cfg = get_default_config(name)
final_cfg.update(ub_cfgs[name])
final_cfg["fp8_buf"] = (
(name in layers_all_gather_overlap)
or ub_cfgs[name].get("fp8_buf", False)
final_cfg["fp8_buf"] = (name in layers_all_gather_overlap) or ub_cfgs[name].get(
"fp8_buf", False
)
add_ub(name, **final_cfg)

Expand Down

0 comments on commit 340e033

Please sign in to comment.