Skip to content

Update PyTorch/XLA to 20250606 #287

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

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from
Draft
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
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ dev = [
tp = "torchprime.launcher.cli:cli"

[tool.torchprime]
torch_xla_version = "20250501"
torch_xla_version = "20250606"

[tool.setuptools.packages.find]
where = [""]
Expand Down
4 changes: 4 additions & 0 deletions torchprime/launcher/thunk.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
# `--megascale_grpc_enable_xor_tracer=false` flag when libtpu is updated
xla_flags = os.environ.get("LIBTPU_INIT_ARGS", "")
xla_flags = f"{xla_flags} --megascale_grpc_enable_xor_tracer=false"

# Workaround for MegaScale perf regression
# TODO(b/NNN): Remove the `--megascale_grpc_num_channels` override
xla_flags = f"{xla_flags} --megascale_grpc_num_channels=64"
os.environ["LIBTPU_INIT_ARGS"] = xla_flags

# Get the artifact dir from env var.
Expand Down