badaoui HF Staff commited on
Commit
b4ecb84
·
verified ·
1 Parent(s): 529bfb9

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -11
Dockerfile CHANGED
@@ -43,16 +43,9 @@ RUN apt-get update && apt-get install -y \
43
 
44
  ENV PATH =/opt/aws/neuron/bin:$PATH
45
 
46
- # Define branch and repo (optional args, easy to override at build time)
47
- ARG OPTIMUM_NEURON_BRANCH=cpu-compilation
48
- ARG OPTIMUM_NEURON_REPO=https://github.com/huggingface/optimum-neuron.git
49
-
50
- # Install from your branch
51
- # install the branch
52
- RUN pip install --no-cache-dir "git+https://github.com/huggingface/optimum-neuron.git@cpu-compilation"
53
- # add the extras
54
- RUN pip install --no-cache-dir "optimum-neuron[neuronx]"
55
-
56
  RUN pip install --no-cache-dir pip -U && \
57
  pip install --no-cache-dir \
58
  datasets \
@@ -93,4 +86,4 @@ ENV PYTHONPATH=$HOME/app \
93
  GRADIO_THEME=huggingface \
94
  TQDM_POSITION=-1 \
95
  TQDM_MININTERVAL=1 \
96
- SYSTEM=spaces
 
43
 
44
  ENV PATH =/opt/aws/neuron/bin:$PATH
45
 
46
+ ARG OPTIMUM_NEURON_VERSION=0.3.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 \
51
  datasets \
 
86
  GRADIO_THEME=huggingface \
87
  TQDM_POSITION=-1 \
88
  TQDM_MININTERVAL=1 \
89
+ SYSTEM=spaces