Skip to content
This repository was archived by the owner on Aug 7, 2025. It is now read-only.

Commit 4563876

Browse files
author
Naman Nandan
committed
Add support for inf2 dependency handling
1 parent 02ca36c commit 4563876

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

requirements/neuronx.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
numpy==1.21.6
2+
protobuf==3.20.3
3+
torch==1.13.1+cpu
4+
torchvision==0.14.1+cpu
5+
torchtext==0.14.1
6+
torchaudio==0.13.1+cpu
7+
torchdata==0.5.1
8+
neuronx-cc
9+
torch-neuronx
10+
transformers-neuronx

ts_scripts/install_dependencies.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,13 @@ def install_python_packages(self, cuda_version, requirements_file_path, nightly)
6767
gpu_requirements_file = os.path.join("requirements", "common_gpu.txt")
6868
os.system(f"{sys.executable} -m pip install -U -r {gpu_requirements_file}")
6969

70+
# Install dependencies for Inferentia2
71+
if args.neuronx:
72+
neuronx_requirements_file = os.path.join("requirements", "neuronx.txt")
73+
os.system(
74+
f"{sys.executable} -m pip install -U -r {neuronx_requirements_file}"
75+
)
76+
7077
def install_node_packages(self):
7178
os.system(
7279
f"{self.sudo_cmd}npm install -g newman newman-reporter-htmlextra markdown-link-check"
@@ -193,6 +200,11 @@ def get_brew_version():
193200
choices=["cu92", "cu101", "cu102", "cu111", "cu113", "cu116", "cu117", "cu118"],
194201
help="CUDA version for torch",
195202
)
203+
parser.add_argument(
204+
"--neuronx",
205+
action="store_true",
206+
help="Install dependencies for inferentia2 support",
207+
)
196208
parser.add_argument(
197209
"--environment",
198210
default="prod",

0 commit comments

Comments
 (0)