Skip to content

feat: jax analysis reporting command line tool#210

Merged
gabeweisz merged 6 commits intomainfrom
feat/jax_analysis_reporting
Jul 1, 2025
Merged

feat: jax analysis reporting command line tool#210
gabeweisz merged 6 commits intomainfrom
feat/jax_analysis_reporting

Conversation

@olehtika
Copy link
Copy Markdown
Contributor

-Add jax analysis reporting command line tool with console scripts entry point
-Add number of gpus normalized time to create_breakdown_df

@ajassani
Copy link
Copy Markdown
Collaborator

The API looks good to me
Will wait for @gabeweisz for JAX specific comments

@ajassani
Copy link
Copy Markdown
Collaborator

@jiagaoxiang can you give this a try as well for your usecase?

Copy link
Copy Markdown

@jasainio jasainio left a comment

Choose a reason for hiding this comment

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

Looks good


@staticmethod
def create_breakdown_df(events: dict, total_time):
def create_breakdown_df(events: dict, total_time, num_gpus: int):
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Can you add a default here? Or detect the # of GPUs from the trace? Otherwise this might break existing code

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

@gabeweisz can you review the PR again with Juha's changes?

@jasainio jasainio requested a review from gabeweisz July 1, 2025 09:01
jujaykka added 2 commits July 1, 2025 10:21
- When profiling a jit-compiled function like the train_step in
  Maxtext, the parsed xplane.pb will have a header line starting with
  "HloModule ". This line has no information that we currently want to
  parse but at the same time, it causes an exception to be raised. This
  commit completely ignores the header line.
Copy link
Copy Markdown
Collaborator

@gabeweisz gabeweisz left a comment

Choose a reason for hiding this comment

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

Looks good to me

@gabeweisz gabeweisz merged commit c764dc2 into main Jul 1, 2025
@gabeweisz gabeweisz deleted the feat/jax_analysis_reporting branch July 1, 2025 20:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants