Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant