Skip to content

Conversation

@shino16
Copy link
Collaborator

@shino16 shino16 commented Dec 10, 2025

Let's see how many tests fail when we make cache="symbolic values" the default option.

I don't intend to merge this PR. Unmerged PRs and dirty commits are contained.

test: thunder/tests/test_core.py::test_integer_isinstance_mimicry
grad_transform_on_trace creates a cycle in the proxy names of tensor shapes. Specifically, it translates
tA = prims.cat([tB, tC], -1) # "meta f32[..., iX]"
(..., iX) = prims.shape(tA)
into
ta = prims.cat([tb, tc], -1) # "meta f32[..., ix]"
(..., iX) = prims.shape(ta)
This creates a translation ix -> iX. This leads to a cycle when the transform also produces iX -> ix.
Repro: thunder/tests/test_jit_general.py::test_litgpt_variants[meta-long-context-like]
Fixes thunder/tests/test_grad.py::test_phantom_grad_vs_torch_consistency_var_mean_nvfuser_cuda_thunder.dtypes.float32
@beverlylytle
Copy link
Collaborator

FYI: the intention for Q4 is to enable symbolic values for thunderfx, not for thunder.jit.

@shino16 shino16 force-pushed the make-symbolic-default branch from af36fe7 to b3a78f1 Compare December 15, 2025 22:55
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

Successfully merging this pull request may close these issues.

2 participants