File tree Expand file tree Collapse file tree 5 files changed +1
-24
lines changed
Expand file tree Collapse file tree 5 files changed +1
-24
lines changed Original file line number Diff line number Diff line change 1- # if you want to use modelbench from modelbench-private, uncomment below line
2- # NOTE: this will not work if you do not have access to that repo
3- # USE_PRIVATE_MODELBENCH=true
4-
51# postgres env for local mlflow tracking server
62# you don't need to set these if mlflow is already running somewhere else
73# (in that case, you don't need postgres at all)
Original file line number Diff line number Diff line change 1- # if you want to use modelbench from modelbench-private, uncomment below line
2- # NOTE: this will not work if you do not have access to that repo
3- USE_PRIVATE_MODELBENCH=true
4-
51# THIS MUST BE SET
62MLFLOW_TRACKING_URI=https://modelplane.mlflow.dev.modelmodel.org
73
Original file line number Diff line number Diff line change 1- # if you want to use modelbench from modelbench-private, uncomment below line
2- # NOTE: this will not work if you do not have access to that repo
3- # USE_PRIVATE_MODELBENCH=true
4-
51# postgres env for local mlflow tracking server
62# you don't need to set these if mlflow is already running somewhere else
73# (in that case, you don't need postgres at all)
Original file line number Diff line number Diff line change 11FROM python:3.12-slim
22
3- ARG USE_PRIVATE_MODELBENCH
4-
53ENV PATH="/root/.local/bin:$PATH"
6- ENV USE_PRIVATE_MODELBENCH=${USE_PRIVATE_MODELBENCH}
74# Used for the notebook server
85WORKDIR /app
96
@@ -18,12 +15,7 @@ RUN mkdir -p /root/.ssh && chmod 700 /root/.ssh
1815RUN git config --global core.sshCommand "ssh -o UserKnownHostsFile=/root/.ssh/known_hosts -o ForwardAgent=yes"
1916RUN ssh-keyscan github.com > /root/.ssh/known_hosts
2017
21- # conditionally forward ssh key to install private dependencies
22- RUN --mount=type=ssh if [ "$USE_PRIVATE_MODELBENCH" = "true" ]; then \
23- poetry install --no-interaction --no-ansi --no-root --extras modelbench-private; \
24- else \
25- poetry install --no-interaction --no-ansi --no-root; \
26- fi
18+ RUN poetry install --no-interaction --no-ansi --no-root
2719
2820COPY src/ ./src/
2921RUN echo $(poetry env info --path)
Original file line number Diff line number Diff line change @@ -60,13 +60,10 @@ services:
6060 build :
6161 context : .
6262 dockerfile : Dockerfile.jupyter
63- args :
64- USE_PRIVATE_MODELBENCH : ${USE_PRIVATE_MODELBENCH}
6563 environment :
6664 MLFLOW_TRACKING_URI : ${MLFLOW_TRACKING_URI}
6765 MLFLOW_TRACKING_USERNAME : ${MLFLOW_TRACKING_USERNAME}
6866 MLFLOW_TRACKING_PASSWORD : ${MLFLOW_TRACKING_PASSWORD}
69- USE_PRIVATE_MODELBENCH : ${USE_PRIVATE_MODELBENCH}
7067 JUPYTER_TOKEN : ${JUPYTER_TOKEN}
7168 GIT_PYTHON_REFRESH : ${GIT_PYTHON_REFRESH}
7269 VLLM_API_KEY : ${VLLM_API_KEY}
You can’t perform that action at this time.
0 commit comments