Spaces:
Running
Running
Jae-Won Chung
commited on
Commit
•
f980d4c
1
Parent(s):
bf13008
Update Dockerfile and packaging
Browse files- deployment/benchmark.Dockerfile +3 -7
- requirements-benchmark.txt +0 -5
- setup.py +1 -1
deployment/benchmark.Dockerfile
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
FROM nvidia/cuda:11.
|
2 |
|
3 |
# Basic installs
|
4 |
ARG DEBIAN_FRONTEND=noninteractive
|
@@ -18,13 +18,9 @@ RUN mkdir -p /root/.local \
|
|
18 |
&& rm -f Miniconda3-py39_23.3.1-0-Linux-x86_64.sh \
|
19 |
&& ln -sf /root/.local/miniconda3/etc/profile.d/conda.sh /etc/profile.d/conda.sh
|
20 |
|
21 |
-
# Install
|
22 |
-
RUN pip install torch==2.0.1
|
23 |
-
|
24 |
-
# Install requirements for benchmarking
|
25 |
ADD . /workspace/leaderboard
|
26 |
-
RUN cd /workspace/leaderboard
|
27 |
-
&& pip install -r requirements-benchmark.txt
|
28 |
|
29 |
# Clone lm-evaluation-harness and install
|
30 |
RUN cd /workspace \
|
|
|
1 |
+
FROM nvidia/cuda:11.8.0-base-ubuntu22.04
|
2 |
|
3 |
# Basic installs
|
4 |
ARG DEBIAN_FRONTEND=noninteractive
|
|
|
18 |
&& rm -f Miniconda3-py39_23.3.1-0-Linux-x86_64.sh \
|
19 |
&& ln -sf /root/.local/miniconda3/etc/profile.d/conda.sh /etc/profile.d/conda.sh
|
20 |
|
21 |
+
# Install spitfight
|
|
|
|
|
|
|
22 |
ADD . /workspace/leaderboard
|
23 |
+
RUN cd /workspace/leaderboard && pip install -e .[benchmark]
|
|
|
24 |
|
25 |
# Clone lm-evaluation-harness and install
|
26 |
RUN cd /workspace \
|
requirements-benchmark.txt
DELETED
@@ -1,5 +0,0 @@
|
|
1 |
-
zeus-ml==0.4.0
|
2 |
-
fschat==0.2.20
|
3 |
-
rwkv==0.7.5
|
4 |
-
einops
|
5 |
-
tyro
|
|
|
|
|
|
|
|
|
|
|
|
setup.py
CHANGED
@@ -11,7 +11,7 @@ extras_require = {
|
|
11 |
"gradio==3.39.0",
|
12 |
"text_generation @ git+https://github.com/ml-energy/text_generation_energy@master",
|
13 |
],
|
14 |
-
"benchmark": ["zeus-ml", "fschat==0.2.23", "tyro", "rich"],
|
15 |
"dev": ["pytest"],
|
16 |
}
|
17 |
|
|
|
11 |
"gradio==3.39.0",
|
12 |
"text_generation @ git+https://github.com/ml-energy/text_generation_energy@master",
|
13 |
],
|
14 |
+
"benchmark": ["zeus-ml", "fschat==0.2.23", "torch==2.0.1", "tyro", "rich"],
|
15 |
"dev": ["pytest"],
|
16 |
}
|
17 |
|