Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Register-level FLOPS counting in JAX programs ? #836

Open
mitkotak opened this issue May 18, 2024 · 2 comments
Open

Register-level FLOPS counting in JAX programs ? #836

mitkotak opened this issue May 18, 2024 · 2 comments
Assignees

Comments

@mitkotak
Copy link

Hey I am on the hunt for a FLOPS counter that can count up the ADD/MUL happening at the register level since JAX's FLOP counter can be unreliable. I was wondering whether there's any way to do this using nsys-jax.

If yes, then is there a way to set up nsys-jax up outside a docker container i.e are there a list of instructions that I can send to my sysadmin to help them set it up ?

Thanks !

@mitkotak
Copy link
Author

Just wanted to share an update. What I have been doing so far is running ncu and then counting up the FLOPS using instructions similar to here but as you can imagine, its extremely tedious to run.
Are there any alternatives out there that would be useful particularly for ML pipelines ? I am also open to some form of XLA/HLO level tracer.

Thanks for your input !

@olupton
Copy link
Collaborator

olupton commented Nov 25, 2024

At the moment nsys-jax does not fill this gap, unfortunately. We understand that there is a need for improving the profiling tools here, and hope to support it later.

re: openxla/xla#10479, are there any particular patterns that are not cost-modelled correctly that are affecting you?

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

No branches or pull requests

2 participants