Skip to content
Merged
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
9 changes: 9 additions & 0 deletions infra/tpu-pytorch-releases/artifacts.auto.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ versioned_builds = [
pytorch_git_rev = "v2.1.0-rc2"
package_version = "2.1.0rc2"
accelerator = "tpu"
bundle_libtpu = "0"
},
{
git_tag = "v2.1.0"
Expand All @@ -54,6 +55,14 @@ versioned_builds = [
python_version = "3.10"
bundle_libtpu = "0"
},
{
git_tag = "v2.1.0"
pytorch_git_rev = "v2.1.0-rc2"
package_version = "2.1.0rc2+libtpu"
accelerator = "tpu"
python_version = "3.10"
bundle_libtpu = "1"
},
{
git_tag = "v2.0.0"
package_version = "2.0"
Expand Down
2 changes: 1 addition & 1 deletion infra/tpu-pytorch-releases/artifacts_builds.tf
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ locals {
versioned_builds_dict = {
for b in var.versioned_builds :
format("r%s_%s_%s",
b.package_version,
replace(b.package_version, "+", "_"),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what does this line do?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This replaces the + in the wheel name with a _. + is allowed in Python package names, but not in the trigger name or Docker image tag.

https://developer.hashicorp.com/terraform/language/functions/replace

b.python_version,
b.accelerator == "tpu" ? "tpuvm" : format("cuda_%s", b.cuda_version)
) => b
Expand Down