Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
5873742
dtensor support
kshitij12345 Mar 21, 2025
377125a
add comment
kshitij12345 Mar 24, 2025
7ab82f6
add more comments
kshitij12345 Mar 24, 2025
e6aa8d3
update comment
kshitij12345 Mar 24, 2025
e76fc17
add test for execpted failing cases
kshitij12345 Mar 24, 2025
eaac9f7
support for method
kshitij12345 Mar 24, 2025
94ef69d
update failing case test
kshitij12345 Mar 24, 2025
5d81851
remove generated traces
kshitij12345 Mar 26, 2025
7277753
undo pre-commit change
kshitij12345 Mar 26, 2025
a8c58e4
undo debug changes
kshitij12345 Mar 26, 2025
d87b103
update failing test to use thunder.jit
kshitij12345 Mar 26, 2025
b101161
update registration helper
kshitij12345 Mar 26, 2025
b551cb8
Apply suggestions from code review
kshitij12345 Mar 31, 2025
1c75a80
Merge branch 'main' of github.com:Lightning-AI/lightning-thunder into…
kshitij12345 Apr 1, 2025
5854c86
address review and upadte
kshitij12345 Apr 1, 2025
a778830
update dtensor proxy repr
kshitij12345 Apr 2, 2025
41990d0
Merge branch 'main' of github.com:Lightning-AI/lightning-thunder into…
kshitij12345 Apr 2, 2025
eda0277
Merge branch 'main' of github.com:Lightning-AI/lightning-thunder into…
kshitij12345 Apr 3, 2025
8abf040
Merge branch 'main' of github.com:Lightning-AI/lightning-thunder into…
kshitij12345 Apr 9, 2025
225f2e3
update jit_ext access to torchfn_to_thunder registry : test
kshitij12345 Apr 9, 2025
2b85b31
empty commit
kshitij12345 Apr 9, 2025
5d0296f
Revert "update jit_ext access to torchfn_to_thunder registry : test"
kshitij12345 Apr 10, 2025
dedab03
temp commit
kshitij12345 Apr 15, 2025
efaae1d
Merge branch 'main' of github.com:Lightning-AI/lightning-thunder into…
kshitij12345 Apr 24, 2025
ddcf208
update to manual decomp
kshitij12345 Apr 24, 2025
6a6bf11
add manual grad rule
kshitij12345 Apr 24, 2025
2a8ea02
update
kshitij12345 May 14, 2025
9490cac
update - clean-up
kshitij12345 May 14, 2025
bd1ecbb
update attrs on DTensorProxy
kshitij12345 May 14, 2025
5d1f20b
Merge branch 'main' of github.com:Lightning-AI/lightning-thunder into…
kshitij12345 May 14, 2025
255c82d
remove debug change
kshitij12345 May 15, 2025
dba02d2
remove unused imports
kshitij12345 May 15, 2025
e8f6d0b
remove unused import
kshitij12345 May 15, 2025
83ae80a
update function name
kshitij12345 May 15, 2025
4cd9bec
cotangent metadata check initial support
kshitij12345 May 16, 2025
b49df80
address review : p1
kshitij12345 May 16, 2025
b206632
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] May 16, 2025
b70238a
address review
kshitij12345 May 16, 2025
1ff76b3
Merge branch 'dtensor-init-support' of https://github.com/kshitij1234…
kshitij12345 May 16, 2025
3e295da
update and refactor
kshitij12345 May 16, 2025
8f4a029
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] May 16, 2025
a445053
update and add test
kshitij12345 Jun 6, 2025
530d29c
update test
kshitij12345 Jun 6, 2025
56dc94e
Merge branch 'main' of https://github.com/Lightning-AI/lightning-thun…
kshitij12345 Jun 6, 2025
e285e97
undo changes for thunderfx path, fix later
kshitij12345 Jun 6, 2025
284d109
Move import of is_dtensor_proxy to the top of the file
IvanYashchuk Jun 11, 2025
b26e8b7
Move import of check_dtensor_spec_repr to the top of the file
IvanYashchuk Jun 11, 2025
a7eed41
format dtensor imports
IvanYashchuk Jun 11, 2025
8bd1b99
Move import of handle_check_dtensor_spec_in_prologue to the top of th…
IvanYashchuk Jun 11, 2025
8cad766
Return only fake tensors from run_with_fake_tensor
IvanYashchuk Jun 11, 2025
f4dc375
Remove unused aot_function
IvanYashchuk Jun 11, 2025
c8459a2
Remove TracingContext, tracing usage
IvanYashchuk Jun 11, 2025
2cf4c39
Inline FakeTensorMode into _run_with_fake
IvanYashchuk Jun 11, 2025
1949011
Rename _run_with_fake->run_with_fake_tensor
IvanYashchuk Jun 11, 2025
fdfbb79
Merge branch 'main' of https://github.com/Lightning-AI/lightning-thun…
kshitij12345 Jun 12, 2025
031eba0
address review
kshitij12345 Jun 12, 2025
d600791
Merge branch 'dtensor-init-support' of https://github.com/kshitij1234…
kshitij12345 Jun 12, 2025
384b7c6
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jun 12, 2025
8bc5228
update
kshitij12345 Jun 12, 2025
f688c98
Merge branch 'dtensor-init-support' of https://github.com/kshitij1234…
kshitij12345 Jun 12, 2025
27a4c26
xfail constant_folding test
kshitij12345 Jun 13, 2025
9291923
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jun 13, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Rename _run_with_fake->run_with_fake_tensor
  • Loading branch information
IvanYashchuk committed Jun 11, 2025
commit 1949011dfd4ae16a500bac67301b96ec7d8493df
19 changes: 2 additions & 17 deletions thunder/torch/experimental/dtensor_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
from torch._subclasses.fake_tensor import FakeTensorMode


def _run_with_fake(torch_op, *args, **kwargs):
def run_with_fake_tensor(torch_op, *args, **kwargs):
"""
Run a torch operation with fake tensors.
Run a torch operation with fake tensors and return the output.

Args:
torch_op: The torch operation to execute
Expand Down Expand Up @@ -59,21 +59,6 @@ def materialize_fake_tensors(t):
return f(*args, **kwargs)


def run_with_fake_tensor(torch_op, *args, **kwargs):
"""
Run a torch operation with fake tensors and return the output.

Args:
torch_op: The torch operation to execute
*args: Arguments to pass to the torch operation
**kwargs: Keyword arguments to pass to the torch operation

Returns:
The output of the torch operation executed with fake tensors
"""
return _run_with_fake(torch_op, *args, **kwargs)


def check_dtensor_cotangent_metadata(dtensor, metadata):
if not dtensor._spec == metadata:
raise RuntimeError(
Expand Down
Loading