-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[better_errors] Refactor more uses of pe.tracing_debug_info (part 1) #26097
Open
gnecula
wants to merge
1
commit into
jax-ml:main
Choose a base branch
from
gnecula:debug_info_no_pe_debug_info
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+152
−92
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gnecula
force-pushed
the
debug_info_no_pe_debug_info
branch
from
January 25, 2025 14:56
92ad1a9
to
27b51e5
Compare
gnecula
force-pushed
the
debug_info_no_pe_debug_info
branch
2 times, most recently
from
January 25, 2025 15:06
7dc9bb6
to
f72f39e
Compare
gnecula
changed the title
[better_errors] Refactor more uses of partial_eval.tracing_debug_info
[better_errors] Refactor more uses of partial_eval.tracing_debug_info (part 1)
Jan 25, 2025
gnecula
force-pushed
the
debug_info_no_pe_debug_info
branch
2 times, most recently
from
January 25, 2025 17:07
b5e69d6
to
ce5ba76
Compare
gnecula
added a commit
to gnecula/jax
that referenced
this pull request
Jan 25, 2025
… (part 2) We replace those uses with api_util.tracing_debug_info, which means we have to move the call further upstream. But this is better because we have the actual args and kwargs, and we can do a better job, especially for arg_names. This is part 2 of a series (following jax-ml#26097) for Pallas.
gnecula
added a commit
to gnecula/jax
that referenced
this pull request
Jan 25, 2025
… (part 3) We replace those uses with api_util.tracing_debug_info, which means we have to move the call further upstream. But this is better because we have the actual args and kwargs, and we can do a better job, especially for arg_names. This is part 3 of a series (following jax-ml#26097, xxx) for jit, checkify, custom_dce.
gnecula
force-pushed
the
debug_info_no_pe_debug_info
branch
from
January 26, 2025 06:13
ce5ba76
to
21a82e6
Compare
gnecula
added a commit
to gnecula/jax
that referenced
this pull request
Jan 26, 2025
… (part 2) We replace those uses with api_util.tracing_debug_info, which means we have to move the call further upstream. But this is better because we have the actual args and kwargs, and we can do a better job, especially for arg_names. This is part 2 of a series (following jax-ml#26097) for Pallas.
gnecula
force-pushed
the
debug_info_no_pe_debug_info
branch
3 times, most recently
from
January 26, 2025 07:57
2029c18
to
b004848
Compare
gnecula
changed the title
[better_errors] Refactor more uses of partial_eval.tracing_debug_info (part 1)
[better_errors] Refactor more uses of pe.tracing_debug_info (part 1)
Jan 26, 2025
gnecula
added a commit
to gnecula/jax
that referenced
this pull request
Jan 26, 2025
We replace uses of `pe.tracing_debug_info` with with `api_util.tracing_debug_info`, which uses the actual args and kwargs, instead of `in_tree` to manufacture fake args and kwargs. This ends up being more accurate, especially for `arg_names`; see changes in debug_info_tests.py. This means that we have to construct the debug info further upstream, before flattening args. This will later help populate debug info in `WrappedFun` and `Jaxpr`. This is part 2 of a series (following jax-ml#26097) for Pallas.
gnecula
added a commit
to gnecula/jax
that referenced
this pull request
Jan 26, 2025
We replace uses of `pe.tracing_debug_info` with with `api_util.tracing_debug_info`, which uses the actual args and kwargs, instead of `in_tree` to manufacture fake args and kwargs. This ends up being more accurate, especially for `arg_names`; see changes in debug_info_tests.py. This means that we have to construct the debug info further upstream, before flattening args. This will later help populate debug info in `WrappedFun` and `Jaxpr`. This is part 3 of a series (following jax-ml#26097, jax-ml#26099) for jit, pmap, checkify, custom_dce.
gnecula
added a commit
to gnecula/jax
that referenced
this pull request
Jan 26, 2025
We replace uses of `pe.tracing_debug_info` with with `api_util.tracing_debug_info`, which uses the actual args and kwargs, instead of `in_tree` to manufacture fake args and kwargs. This ends up being more accurate, especially for `arg_names`; see changes in debug_info_tests.py. This means that we have to construct the debug info further upstream, before flattening args. This will later help populate debug info in `WrappedFun` and `Jaxpr`. This is part 3 of a series (following jax-ml#26097, jax-ml#26099) for jit, pmap, checkify, custom_dce.
gnecula
force-pushed
the
debug_info_no_pe_debug_info
branch
6 times, most recently
from
January 27, 2025 10:08
c8a6053
to
d833b03
Compare
gnecula
added a commit
to gnecula/jax
that referenced
this pull request
Jan 27, 2025
We replace uses of `pe.tracing_debug_info` with with `api_util.tracing_debug_info`, which uses the actual args and kwargs, instead of `in_tree` to manufacture fake args and kwargs. This ends up being more accurate, especially for `arg_names`; see changes in debug_info_tests.py. This means that we have to construct the debug info further upstream, before flattening args. This will later help populate debug info in `WrappedFun` and `Jaxpr`. This is part 2 of a series (following jax-ml#26097) for Pallas.
gnecula
added a commit
to gnecula/jax
that referenced
this pull request
Jan 27, 2025
We replace uses of `pe.tracing_debug_info` with with `api_util.tracing_debug_info`, which uses the actual args and kwargs, instead of `in_tree` to manufacture fake args and kwargs. This ends up being more accurate, especially for `arg_names`; see changes in debug_info_tests.py. This means that we have to construct the debug info further upstream, before flattening args. This will later help populate debug info in `WrappedFun` and `Jaxpr`. This is part 3 of a series (following jax-ml#26097, jax-ml#26099) for jit, pmap, checkify, custom_dce.
… (part 1) We replace those uses with api_util.tracing_debug_info, which means we have to move the call further upstream. But this is better because we have the actual args and kwargs, and we can do a better job, especially for `arg_names`. This is part 1 of a series, for: cond, switch, while, scan, composite, custom_dce, custom_root, custom_linear_solve, saved_residuals.
gnecula
force-pushed
the
debug_info_no_pe_debug_info
branch
from
January 27, 2025 10:59
d833b03
to
7361d17
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
We replace uses of
pe.tracing_debug_info
with withapi_util.tracing_debug_info
,which uses the actual args and kwargs, instead of
in_tree
to manufacture fakeargs and kwargs. This ends up being more accurate, especially for
arg_names
;see changes in debug_info_tests.py.
This means that we have to construct the debug info further upstream, before
flattening args. This will later help populate debug info in
WrappedFun
andJaxpr
.This is part 1 of a series, for: cond, switch, while, scan, composite,
custom_dce, custom_root, custom_linear_solve, saved_residuals.