Skip to content

Rich interactive visualization of Jax and XLA computational graph IRs.

Notifications You must be signed in to change notification settings

UofT-EcoSystem/jaxviz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jaxviz

Rich interactive visualization of Jax and XLA computational graph IRs.

Features

  • Dump XLA computational graph and IRs
  • Profile with NVTX, nsight systems, nsight compute
  • Display interactive XLA graphviz (jax.XlaComputation.as_hlo_dot_graph)

Installation (depricated)

npm install
npm run dev # Start parcel webserver

Usage

Jaxviz one file (depricated)

python3 jaxviz/jaxviz.py --file jaxviz/examples/cartpole_mlp/1_dot/main.py

XLA dump

XLA_FLAGS='--xla_dump_to=dump --xla_dump_hlo_as_html --xla_dump_hlo_as_text --xla_dump_hlo_pass_re=.*' python3 jaxviz/examples/cartpole_mlp/99_full/main.py

Nsight systems profile

# In container:
nsys profile --force-overwrite=true --duration=20 --stats=true -o my_test python3 jaxviz/examples/cartpole_mlp/99_full/main.py
# On laptop:
scp eco-13:/home/dans/jaxviz/my_test.qdrep .

Nsight compute profile

# In container:
ncu -o profile -f --set full --kernel-id ::fusion_3:6 python3 jaxviz/examples/cartpole_mlp/99_full/main.py
# On laptop:
scp eco-13:/home/dans/jaxviz/profile.ncu-rep .

Scratch

Open tunnels to eco-13 for parcel and tensorboard

ssh -N -L 8101:localhost:8101 -L 8102:localhost:8102 -L 8103:localhost:8103 -L 8104:localhost:8104 eco-13 &

About

Rich interactive visualization of Jax and XLA computational graph IRs.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published