Skip to content
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

Update to pytorch 2.6 #8944

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
8 changes: 5 additions & 3 deletions test/dynamo/test_dynamo.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,9 +257,11 @@ def fn_without_input(device):
res_xla_dynamo = compiled_fn(device)
self.assertTrue(torch.allclose(res_cpu, res_xla_dynamo.cpu()))

@parameterized.product(
initialize_on_cuda=[True, False],
backend=['openxla', dynamo_backend2.dynamo_backend])
@parameterized.parameters(
(True, 'openxla'),
(True, dynamo_backend2.dynamo_backend),
(False, 'openxla'),
)
def test_simple_model_with_in_place_ops(self, initialize_on_cuda, backend):

class TestModel(nn.Module):
Expand Down
4 changes: 2 additions & 2 deletions torchax/dev-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-f https://download.pytorch.org/whl/torch
torch==2.5.1; sys_platform == 'darwin' # macOS
torch==2.5.1+cpu; sys_platform != 'darwin' # Non-macOS (CPU-only), like on TPU
torch==2.6.0 ; sys_platform == 'darwin' # macOS
torch==2.6.0+cpu; sys_platform != 'darwin' # Non-macOS (CPU-only), like on TPU
ruff~=0.3.5
2 changes: 0 additions & 2 deletions torchax/torchax/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,6 @@ def disable_temporarily():
torch._register_device_module('jax', torchax.device_module)




def enable_accuracy_mode():
jax.config.update('jax_enable_x64', True)
jax.config.update('jax_default_matmul_precision', 'highest')
Expand Down
Loading
Loading