Spaces:
Running
Running
Update Dockerfile
Browse files- 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 |
-
|
| 47 |
-
|
| 48 |
-
|
| 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
|