mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-04-21 06:42:10 +00:00
feat(neuron): avoid installing CUDA in image
This commit is contained in:
parent
7d6ff64c13
commit
d39e002fa5
@ -120,6 +120,12 @@ RUN apt-get update -y \
|
|||||||
|
|
||||||
ENV PATH="/opt/bin/:/opt/aws/neuron/bin:${PATH}"
|
ENV PATH="/opt/bin/:/opt/aws/neuron/bin:${PATH}"
|
||||||
|
|
||||||
|
# Install manually torch CPU version to avoid pulling CUDA
|
||||||
|
RUN pip3 install \
|
||||||
|
torch==2.1.2 \
|
||||||
|
torchvision==0.16.2 \
|
||||||
|
--index-url https://download.pytorch.org/whl/cpu
|
||||||
|
|
||||||
RUN pip3 install \
|
RUN pip3 install \
|
||||||
neuronx-cc==2.15.143.0 \
|
neuronx-cc==2.15.143.0 \
|
||||||
torch-neuronx==2.1.2.2.3.2 \
|
torch-neuronx==2.1.2.2.3.2 \
|
||||||
|
Loading…
Reference in New Issue
Block a user