Skip to content

Commit

Permalink
Add Autopatch for PT2.4 SageMaker Inference (#4328)
Browse files Browse the repository at this point in the history
* add autopatch for pt2.4 sm inf

* restore toml

---------

Co-authored-by: Yadan Wei <weiyadan@amazon.com>
  • Loading branch information
Yadan-Wei and Yadan Wei authored Oct 7, 2024
1 parent 9112fb6 commit 468a590
Show file tree
Hide file tree
Showing 5 changed files with 103 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pytorch/inference/buildspec-2-4-sm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ framework: &FRAMEWORK pytorch
version: &VERSION 2.4.0
short_version: &SHORT_VERSION "2.4"
arch_type: x86
# autopatch_build: "True"
autopatch_build: "True"

repository_info:
inference_repository: &INFERENCE_REPOSITORY
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,11 @@
},
"awscli": {
"version_specifier": "<2"
},
"torchserve": {
"version_specifier": "==0.11.1"
},
"torch-model-archiver": {
"version_specifier": "==0.11.1"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"captum": {
"version_specifier": "==0.6.0",
"skip": "True"
},
"torchaudio": {
"version_specifier": "==2.4.0+cpu",
"skip": "True"
},
"torchtext": {
"version_specifier": "==0.18.0+cpu",
"skip": "True"
},
"torchvision": {
"version_specifier": "==0.19.0+cpu",
"skip": "True"
},
"idna": {
"version_specifier": ">=3.7"
},
"tqdm": {
"version_specifier": ">=4.66.3"
},
"requests": {
"version_specifier": ">=2.32.2"
},
"setuptools": {
"version_specifier": ">=70.0.0"
},
"urllib3": {
"version_specifier": "<2"
},
"awscli": {
"version_specifier": "<2"
},
"torchserve": {
"version_specifier": "==0.11.1"
},
"torch-model-archiver": {
"version_specifier": "==0.11.1"
},
"sagemaker-pytorch-inference": {
"version_specifier": "==2.0.24"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,11 @@
},
"awscli": {
"version_specifier": "<2"
},
"torchserve": {
"version_specifier": "==0.11.1"
},
"torch-model-archiver": {
"version_specifier": "==0.11.1"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"captum": {
"version_specifier": "==0.6.0",
"skip": "True"
},
"torchaudio": {
"version_specifier": "==2.4.0+cu124",
"skip": "True"
},
"torchtext": {
"version_specifier": "==0.18.0+cu124",
"skip": "True"
},
"torchvision": {
"version_specifier": "==0.19.0+cu124",
"skip": "True"
},
"idna": {
"version_specifier": ">=3.7"
},
"tqdm": {
"version_specifier": ">=4.66.3"
},
"requests": {
"version_specifier": ">=2.32.2"
},
"setuptools": {
"version_specifier": ">=70.0.0"
},
"urllib3": {
"version_specifier": "<2"
},
"awscli": {
"version_specifier": "<2"
},
"torchserve": {
"version_specifier": "==0.11.1"
},
"torch-model-archiver": {
"version_specifier": "==0.11.1"
},
"sagemaker-pytorch-inference": {
"version_specifier": "==2.0.24"
}
}

0 comments on commit 468a590

Please sign in to comment.