derek-thomas
commited on
Commit
·
930f2f9
1
Parent(s):
33f813b
Moving to data and adding notebooks
Browse files- Dockerfile +2 -2
- on_startup_user.sh +10 -2
- start_server.sh +1 -1
Dockerfile
CHANGED
|
@@ -60,8 +60,8 @@ RUN curl -sLo ~/miniconda.sh https://repo.continuum.io/miniconda/Miniconda3-py31
|
|
| 60 |
WORKDIR $HOME/app
|
| 61 |
|
| 62 |
# Create folder for notebooks
|
| 63 |
-
RUN mkdir -p
|
| 64 |
-
chown user:user
|
| 65 |
|
| 66 |
#######################################
|
| 67 |
# Start root user section
|
|
|
|
| 60 |
WORKDIR $HOME/app
|
| 61 |
|
| 62 |
# Create folder for notebooks
|
| 63 |
+
RUN mkdir -p /data/notebooks && \
|
| 64 |
+
chown user:user /data/notebooks
|
| 65 |
|
| 66 |
#######################################
|
| 67 |
# Start root user section
|
on_startup_user.sh
CHANGED
|
@@ -14,13 +14,21 @@
|
|
| 14 |
#rm -rf /tmp/tgi-benchmark-notebooks
|
| 15 |
|
| 16 |
# Install llmperf
|
| 17 |
-
cd
|
| 18 |
git clone https://github.com/ray-project/llmperf.git
|
| 19 |
cd llmperf
|
| 20 |
git checkout afd137a
|
| 21 |
-
mv ~/app/setup.py .
|
| 22 |
pip install -e .
|
| 23 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 24 |
# Add dark theme
|
| 25 |
mkdir -p ~/.jupyter/lab/user-settings/@jupyterlab/apputils-extension/ && \
|
| 26 |
echo '{ "theme":"JupyterLab Dark" }' > ~/.jupyter/lab/user-settings/@jupyterlab/apputils-extension/themes.jupyterlab-settings
|
|
|
|
| 14 |
#rm -rf /tmp/tgi-benchmark-notebooks
|
| 15 |
|
| 16 |
# Install llmperf
|
| 17 |
+
cd /data
|
| 18 |
git clone https://github.com/ray-project/llmperf.git
|
| 19 |
cd llmperf
|
| 20 |
git checkout afd137a
|
|
|
|
| 21 |
pip install -e .
|
| 22 |
|
| 23 |
+
# Get notebooks
|
| 24 |
+
git clone https://huggingface.co/derek-thomas/tgi-notebooks-optimization /tmp/tgi-notebooks-optimization
|
| 25 |
+
|
| 26 |
+
# Move the contents to /data
|
| 27 |
+
mv /tmp/tgi-notebooks-optimization/0*.ipynb /data/notebooks
|
| 28 |
+
|
| 29 |
+
# Remove the temporary clone directory
|
| 30 |
+
rm -rf /tmp/tgi-notebooks-optimization
|
| 31 |
+
|
| 32 |
# Add dark theme
|
| 33 |
mkdir -p ~/.jupyter/lab/user-settings/@jupyterlab/apputils-extension/ && \
|
| 34 |
echo '{ "theme":"JupyterLab Dark" }' > ~/.jupyter/lab/user-settings/@jupyterlab/apputils-extension/themes.jupyterlab-settings
|
start_server.sh
CHANGED
|
@@ -3,7 +3,7 @@ JUPYTER_TOKEN="${JUPYTER_TOKEN:=huggingface}"
|
|
| 3 |
|
| 4 |
echo "Starting Jupyter Lab with token $JUPYTER_TOKEN"
|
| 5 |
|
| 6 |
-
NOTEBOOK_DIR="
|
| 7 |
|
| 8 |
jupyter-lab \
|
| 9 |
--ip 0.0.0.0 \
|
|
|
|
| 3 |
|
| 4 |
echo "Starting Jupyter Lab with token $JUPYTER_TOKEN"
|
| 5 |
|
| 6 |
+
NOTEBOOK_DIR="/data/"
|
| 7 |
|
| 8 |
jupyter-lab \
|
| 9 |
--ip 0.0.0.0 \
|