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

How to profile Alpa models and get the trace #971

Open
zigzagcai opened this issue Dec 7, 2023 · 1 comment
Open

How to profile Alpa models and get the trace #971

zigzagcai opened this issue Dec 7, 2023 · 1 comment

Comments

@zigzagcai
Copy link

zigzagcai commented Dec 7, 2023

System information

  • Alpa version: 1.0.0.dev0
  • Are you willing to contribute it (Yes/No): Not sure, will submit PR if I have the bandwidth

Describe the new feature and the current behavior/state
The JAX framework has a built-in jax.profiler that can profile trace, but when we tried to use jax.profiler to analyze model traces which was parallelized by alpa.parallelize instead of jax.jit, we found that there is no trace about cuda kernel.

I wonder if there are any ways to analyze Alpa traces? Thanks!

Will this change the current API? How?
N
Describe alternatives you've considered

Additional context
None

@zigzagcai
Copy link
Author

zigzagcai commented Dec 7, 2023

When I tried to use jax.profiler to get the traces, I found only cpu traces and no cuda kernel traces tracked.

image

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

1 participant