Skip to content

Commit 8b63640

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

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

dockerfiles/pytorch/neuronx.sh

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,17 @@ apt-get update -y \
2323

2424
pip install -U pip
2525

26-
pip3 install neuronx-cc==2.* \
27-
torch-neuronx==2.* \
28-
transformers-neuronx\
26+
# Taken from optimum neuron, tgi dockerfile
27+
pip3 install \
28+
neuronx-cc==2.13.66.0 \
29+
torch-neuronx==2.1.2.2.1.0 \
30+
transformers-neuronx==0.10.0.21 \
2931
--extra-index-url=https://pip.repos.neuron.amazonaws.com
3032

3133
pip3 install --extra-index-url=https://pip.repos.neuron.amazonaws.com optimum[neuronx,diffusers]
3234

3335
pip install ".[st,torch-neuronx]"
36+
37+
apt-get clean autoremove --yes
38+
39+
rm -rf /var/lib/{apt,cache,log} fi

0 commit comments

Comments
 (0)