Skip to content

Commit ca5f79c

Browse files
committed
wip
Signed-off-by: Raphael Glon <[email protected]>
1 parent 1756a6d commit ca5f79c

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

dockerfiles/pytorch/neuronx.sh

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@ apt-get update -y \
88
gnupg2 \
99
wget
1010

11-
echo "deb https://apt.repos.neuron.amazonaws.com jammy main" > /etc/apt/sources.list.d/neuron.list
11+
. /etc/os-release
12+
tee /etc/apt/sources.list.d/neuron.list > /dev/null <<EOF
13+
deb https://apt.repos.neuron.amazonaws.com ${VERSION_CODENAME} main
14+
EOF
1215
wget -qO - https://apt.repos.neuron.amazonaws.com/GPG-PUB-KEY-AMAZON-AWS-NEURON.PUB | apt-key add -
1316

1417
apt-get update -y \
@@ -20,11 +23,11 @@ apt-get update -y \
2023

2124
pip install -U pip
2225

23-
pip3 install neuronx-cc==2.12.68.0 \
24-
torch-neuronx==1.13.1.1.13.1 \
25-
transformers-neuronx==0.9.474 \
26+
pip3 install neuronx-cc==2.* \
27+
torch-neuronx==2.* \
28+
transformers-neuronx\
2629
--extra-index-url=https://pip.repos.neuron.amazonaws.com
2730

28-
pip3 install optimum[neuronx,diffusers]
31+
pip3 install --extra-index-url=https://pip.repos.neuron.amazonaws.com optimum[neuronx,diffusers]
2932

30-
pip install ".[st,torch1]"
33+
pip install ".[st,torch-neuronx]"

setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
"wheel==0.42.0",
1818
"setuptools==69.1.0",
1919
"cmake==3.28.3",
20-
"transformers[sklearn,sentencepiece, audio, vision]==4.38.2",
21-
"huggingface_hub==0.20.3",
20+
"transformers[sklearn,sentencepiece, audio, vision]>=4.36.0",
21+
"huggingface_hub==0.23.0",
2222
"orjson",
2323
# vision
2424
"Pillow",
@@ -40,7 +40,7 @@
4040
extras["diffusers"] = ["diffusers==0.26.3", "accelerate==0.27.2"]
4141
extras["torch"] = ["torch==2.2.0", "torchvision", "torchaudio"]
4242
# For neuronx
43-
extras["torch1"] = ["torch==1.13.1", "torchvision", "torchaudio"]
43+
extras["torch-neuronx"] = ["torch-neuronx", "torchvision", "torchaudio"]
4444
extras["tensorflow"] = ["tensorflow"]
4545
extras["test"] = [
4646
"pytest==7.2.1",

0 commit comments

Comments
 (0)