Skip to content

Commit

Permalink
Add option to unbundle libtpu (#5534) (#5536)
Browse files Browse the repository at this point in the history
* Add optiona to unbundle libtpu

* Add clarifying note
  • Loading branch information
will-cromar committed Sep 14, 2023
1 parent 2d7e92f commit ff30d64
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
3 changes: 1 addition & 2 deletions infra/ansible/config/env.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,4 @@ build_env:
tpu:
ACCELERATOR: tpu
TPUVM_MODE: 1
BUNDLE_LIBTPU: 1

BUNDLE_LIBTPU: "{{ bundle_libtpu }}"
2 changes: 2 additions & 0 deletions infra/ansible/config/vars.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ package_version: 2.1.0
nightly_release: false
# Whether to disable XRT during build
disable_xrt: 0
# Whether to preinstall libtpu in the PyTorch/XLA wheel. Ignored for GPU build.
bundle_libtpu: 1
3 changes: 2 additions & 1 deletion infra/tpu-pytorch-releases/artifacts.auto.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ versioned_builds = [
pytorch_git_tag = "v2.1.0-rc2"
package_version = "2.1"
accelerator = "tpu"
python_version = "3.10"
python_version = "3.10"
bundle_libtpu = "0"
},
{
git_tag = "v2.0.0"
Expand Down
2 changes: 2 additions & 0 deletions infra/tpu-pytorch-releases/artifacts_builds.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ variable "nightly_builds" {
cuda_version = optional(string, "11.8")
python_version = optional(string, "3.8")
arch = optional(string, "amd64")
bundle_libtpu = optional(string, "1")
})
)

Expand Down Expand Up @@ -39,6 +40,7 @@ variable "versioned_builds" {
python_version = optional(string, "3.8")
cuda_version = optional(string, "11.8")
arch = optional(string, "amd64")
bundle_libtpu = optional(string, "1")
})
)

Expand Down

0 comments on commit ff30d64

Please sign in to comment.