badaoui HF Staff commited on
Commit
76fd397
·
verified ·
1 Parent(s): 4da16c7

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -6
Dockerfile CHANGED
@@ -43,11 +43,8 @@ RUN apt-get update && apt-get install -y \
43
 
44
  ENV PATH =/opt/aws/neuron/bin:$PATH
45
 
46
- ARG OPTIMUM_NEURON_BRANCH=main
47
- RUN git clone --branch $OPTIMUM_NEURON_BRANCH https://github.com/huggingface/optimum-neuron.git /tmp/optimum-neuron && \
48
- pip install --no-cache-dir "/tmp/optimum-neuron[neuronx]" && \
49
- rm -rf /tmp/optimum-neuron
50
-
51
  # End Neuron setup
52
  RUN pip install --no-cache-dir pip -U && \
53
  pip install --no-cache-dir \
@@ -89,4 +86,4 @@ ENV PYTHONPATH=$HOME/app \
89
  GRADIO_THEME=huggingface \
90
  TQDM_POSITION=-1 \
91
  TQDM_MININTERVAL=1 \
92
- SYSTEM=spaces
 
43
 
44
  ENV PATH =/opt/aws/neuron/bin:$PATH
45
 
46
+ ARG OPTIMUM_NEURON_VERSION=0.4.0
47
+ RUN pip install --extra-index-url https://pip.repos.neuron.amazonaws.com --no-cache-dir optimum-neuron[neuronx]==$OPTIMUM_NEURON_VERSION
 
 
 
48
  # End Neuron setup
49
  RUN pip install --no-cache-dir pip -U && \
50
  pip install --no-cache-dir \
 
86
  GRADIO_THEME=huggingface \
87
  TQDM_POSITION=-1 \
88
  TQDM_MININTERVAL=1 \
89
+ SYSTEM=spaces