-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
113 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
# Better use newer Python as generated code can use new features | ||
FROM python:3.10-slim | ||
|
||
# install git, g++ and python3-tk | ||
RUN apt-get update && apt-get install -y \ | ||
git \ | ||
g++ \ | ||
python3-tk \ | ||
zip \ | ||
unzip \ | ||
procps \ | ||
r-base \ | ||
libgdal-dev \ | ||
# Add these new dependencies for matplotlib | ||
libfreetype6-dev \ | ||
libpng-dev \ | ||
pkg-config \ | ||
python3-dev \ | ||
python3-matplotlib \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
# upgrade to latest pip | ||
RUN pip install --upgrade pip | ||
|
||
# Add a new user "bigcodebenchuser" | ||
RUN adduser --disabled-password --gecos "" bigcodebenchuser | ||
|
||
RUN rm -rf /bigcodebench | ||
|
||
# Acquire benchmark code to local | ||
ADD "https://api.github.com/repos/bigcode-project/bigcodebench/commits?per_page=1" latest_commit | ||
RUN git clone https://github.com/bigcode-project/bigcodebench.git /bigcodebench | ||
|
||
RUN pip install numpy==1.24.3 pyarrow==14.0.1 | ||
|
||
RUN cd /bigcodebench && \ | ||
pip install . --no-deps && \ | ||
pip install \ | ||
appdirs>=1.4.4 \ | ||
fire>=0.6.0 \ | ||
multipledispatch>=0.6.0 \ | ||
pqdm>=0.2.0 \ | ||
tempdir>=0.7.1 \ | ||
termcolor>=2.0.0 \ | ||
tqdm>=4.56.0 \ | ||
tree_sitter_languages>=1.10.2 \ | ||
tree-sitter==0.21.3 \ | ||
wget>=3.2 \ | ||
gradio-client \ | ||
rich | ||
|
||
RUN pip install -I --timeout 2000 -r https://raw.githubusercontent.com/bigcode-project/bigcodebench/refs/heads/main/Requirements/requirements-eval.txt | ||
|
||
# Ensure the numpy version is compatible with the datasets version | ||
RUN pip install datasets==2.17.0 | ||
|
||
# Pre-install the dataset | ||
RUN python3 -c "from bigcodebench.data import get_bigcodebench; get_bigcodebench(subset='full'); get_bigcodebench(subset='hard')" | ||
|
||
WORKDIR /app | ||
|
||
RUN chown -R bigcodebenchuser:bigcodebenchuser /app | ||
|
||
RUN chmod -R 777 /app | ||
|
||
USER bigcodebenchuser |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# This is a config for E2B sandbox template. | ||
# You can use template ID (tbjhnhg5e3bd22i8jqgk) or template name (bigcodebench-evaluator) to create a sandbox: | ||
|
||
# Python SDK | ||
# from e2b import Sandbox, AsyncSandbox | ||
# sandbox = Sandbox("bigcodebench-evaluator") # Sync sandbox | ||
# sandbox = await AsyncSandbox.create("bigcodebench-evaluator") # Async sandbox | ||
|
||
# JS SDK | ||
# import { Sandbox } from 'e2b' | ||
# const sandbox = await Sandbox.create('bigcodebench-evaluator') | ||
|
||
team_id = "f317d0d2-ba02-44c5-8b77-e4a2d7830c7c" | ||
dockerfile = "e2b.Dockerfile" | ||
template_name = "bigcodebench-evaluator" | ||
template_id = "tbjhnhg5e3bd22i8jqgk" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters