You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[GraphTrainer] Support transformer_block_bucketing in aot_fx_trace mode
aot_fx_trace mode traces with record_module_stack=False, so nodes lack
nn_module_stack metadata that manual_overlap_bucketing uses to match
nodes to modules. This change uses the existing annotate_fn mechanism
(already used for AC region tagging) to tag module FQNs during tracing,
then provides a custom module_stack_fn to manual_overlap_bucketing.
Changes:
- Add annotate_module_fqns() and get_module_stack_from_annotation() to
common_utils.py
- Call annotate_module_fqns() in both llama3 and deepseek_v3 annotate
functions
- Add module_stack_fn parameter to
transformer_block_bucketing_reordering_pass
- Update construct_default_graph_passes to accept compile_config, model,
and parallel_dims, and wire up the bucketing pass with reassign_to_pg
- Pass config/model/parallel_dims from GraphTrainer to
construct_default_graph_passes
- Add numerics tests for both llama3 and deepseek_v3 with aot_fx_trace
+ transformer_block_bucketing
0 commit comments