Skip to content
Closed
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
from torchao.prototype.moe_training.ep.unpermute import _unpermute_bf16
from torchao.prototype.moe_training.mxfp8_grouped_mm import (
_to_mxfp8_then_scaled_grouped_mm,
set_mxfp8_grouped_mm_backend,
)

device = torch.device("cuda")
Expand Down Expand Up @@ -554,6 +555,7 @@ def print_results(experiments: List[Experiment]):
def main(args: argparse.Namespace):
"""Main benchmark entry point."""
torch.random.manual_seed(123)
set_mxfp8_grouped_mm_backend(args.backend)

# Set up process group
setup_distributed()
Expand Down Expand Up @@ -597,5 +599,11 @@ def setup_distributed():
action="store_true",
help="Use torch.compile",
)
parser.add_argument(
"--backend",
choices=("legacy", "cutedsl"),
default="cutedsl",
help="MXFP8 grouped-mm backend",
)
args = parser.parse_args()
main(args)
Loading
Loading