badaoui HF Staff commited on
Commit
5964425
·
verified ·
1 Parent(s): f0be84b

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -4
Dockerfile CHANGED
@@ -43,10 +43,9 @@ RUN apt-get update && apt-get install -y \
43
 
44
  ENV PATH =/opt/aws/neuron/bin:$PATH
45
 
46
- RUN pip install --no-cache-dir --extra-index-url https://pip.repos.neuron.amazonaws.com \
47
- git+https://github.com/huggingface/optimum-neuron.git@cpu-compilation
48
- RUN pip install --no-cache-dir --extra-index-url https://pip.repos.neuron.amazonaws.com \
49
- optimum-neuron[neuronx]
50
 
51
  # End Neuron setup
52
  RUN pip install --no-cache-dir pip -U && \
 
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 ".[neuronx]" /tmp/optimum-neuron
 
49
 
50
  # End Neuron setup
51
  RUN pip install --no-cache-dir pip -U && \