clone 2nd repo
Browse files- Dockerfile +9 -5
- startup.sh +3 -0
Dockerfile
CHANGED
@@ -5,7 +5,7 @@ WORKDIR /code
|
|
5 |
# Install base utilities
|
6 |
RUN apt-get update \
|
7 |
&& apt-get install -y build-essential \
|
8 |
-
&& apt-get install -y wget \
|
9 |
&& apt-get clean \
|
10 |
&& rm -rf /var/lib/apt/lists/*
|
11 |
|
@@ -17,10 +17,14 @@ RUN wget --quiet https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86
|
|
17 |
# Put conda in path so we can use conda activate
|
18 |
ENV PATH=$CONDA_DIR/bin:$PATH
|
19 |
|
20 |
-
|
21 |
-
RUN conda env create --file /code/environment.yml
|
22 |
|
23 |
COPY . .
|
24 |
|
25 |
-
|
26 |
-
|
|
|
|
|
|
|
|
|
|
|
|
5 |
# Install base utilities
|
6 |
RUN apt-get update \
|
7 |
&& apt-get install -y build-essential \
|
8 |
+
&& apt-get install -y wget libsnappy-dev \
|
9 |
&& apt-get clean \
|
10 |
&& rm -rf /var/lib/apt/lists/*
|
11 |
|
|
|
17 |
# Put conda in path so we can use conda activate
|
18 |
ENV PATH=$CONDA_DIR/bin:$PATH
|
19 |
|
20 |
+
RUN conda install --yes pytorch torchvision torchaudio pytorch-cuda=12.1 -c pytorch -c nvidia
|
|
|
21 |
|
22 |
COPY . .
|
23 |
|
24 |
+
RUN git clone https://github.com/TRI-ML/vlm-evaluation.git
|
25 |
+
|
26 |
+
RUN cd vlm-evaluation && pip install -e .
|
27 |
+
|
28 |
+
RUN pip install -e .
|
29 |
+
|
30 |
+
CMD ["sh", "/code/startup.sh"]
|
startup.sh
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
#!/bin/sh
|
2 |
+
python -m serve.controller --host 0.0.0.0 --port 10000 &
|
3 |
+
python -m serve.gradio_web_server --controller http://localhost:10000 --model-list-mode reload --share
|