Self-contained task images (FROM python:3.12-slim, own requirements.txt); remove external base-image and agent-specific coupling
Browse files- datasets/mlab-real/README.md +5 -5
- datasets/mlab-real/amp-parkinsons/environment/Dockerfile +21 -2
- datasets/mlab-real/amp-parkinsons/environment/requirements.txt +7 -0
- datasets/mlab-real/amp-parkinsons/task.toml +3 -4
- datasets/mlab-real/amp-parkinsons/tests/test.sh +1 -2
- datasets/mlab-real/cifar10/environment/Dockerfile +21 -2
- datasets/mlab-real/cifar10/environment/requirements.txt +9 -0
- datasets/mlab-real/cifar10/solution/solve.sh +1 -1
- datasets/mlab-real/cifar10/task.toml +3 -4
- datasets/mlab-real/cifar10/tests/test.sh +1 -1
- datasets/mlab-real/dataset.toml +21 -46
- datasets/mlab-real/fathomnet/environment/Dockerfile +21 -2
- datasets/mlab-real/fathomnet/environment/requirements.txt +9 -0
- datasets/mlab-real/fathomnet/task.toml +3 -4
- datasets/mlab-real/fathomnet/tests/test.sh +1 -2
- datasets/mlab-real/feedback/environment/Dockerfile +21 -2
- datasets/mlab-real/feedback/environment/requirements.txt +8 -0
- datasets/mlab-real/feedback/task.toml +3 -4
- datasets/mlab-real/feedback/tests/test.sh +1 -2
- datasets/mlab-real/house-price/environment/Dockerfile +21 -2
- datasets/mlab-real/house-price/environment/requirements.txt +7 -0
- datasets/mlab-real/house-price/solution/solve.sh +1 -1
- datasets/mlab-real/house-price/task.toml +3 -4
- datasets/mlab-real/house-price/tests/test.sh +1 -2
- datasets/mlab-real/identify-contrails/environment/Dockerfile +21 -2
- datasets/mlab-real/identify-contrails/environment/requirements.txt +9 -0
- datasets/mlab-real/identify-contrails/task.toml +3 -4
- datasets/mlab-real/identify-contrails/tests/test.sh +1 -2
- datasets/mlab-real/imdb/environment/Dockerfile +21 -2
- datasets/mlab-real/imdb/environment/requirements.txt +8 -0
- datasets/mlab-real/imdb/solution/solve.sh +1 -1
- datasets/mlab-real/imdb/task.toml +3 -4
- datasets/mlab-real/imdb/tests/test.sh +1 -1
- datasets/mlab-real/ogbn-arxiv/environment/Dockerfile +21 -2
- datasets/mlab-real/ogbn-arxiv/environment/requirements.txt +6 -0
- datasets/mlab-real/ogbn-arxiv/solution/solve.sh +1 -1
- datasets/mlab-real/ogbn-arxiv/task.toml +3 -4
- datasets/mlab-real/ogbn-arxiv/tests/test.sh +1 -1
- datasets/mlab-real/spaceship-titanic/environment/Dockerfile +21 -2
- datasets/mlab-real/spaceship-titanic/environment/requirements.txt +7 -0
- datasets/mlab-real/spaceship-titanic/solution/solve.sh +1 -1
- datasets/mlab-real/spaceship-titanic/task.toml +3 -4
- datasets/mlab-real/spaceship-titanic/tests/test.sh +2 -3
datasets/mlab-real/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
-
#
|
| 2 |
|
| 3 |
-
One folder per task
|
| 4 |
-
(`<task>/environment/data/`), a
|
| 5 |
-
|
| 6 |
-
|
|
|
|
| 1 |
+
# mlab-real
|
| 2 |
|
| 3 |
+
One folder per task. Each task is self-contained: real data
|
| 4 |
+
(`<task>/environment/data/`), a self-contained `environment/Dockerfile`
|
| 5 |
+
(builds from `python:3.12-slim`, no external base image), an agent-neutral
|
| 6 |
+
`instruction.md`, and a scorer (`tests/`). See the repo root README to run.
|
datasets/mlab-real/amp-parkinsons/environment/Dockerfile
CHANGED
|
@@ -1,5 +1,24 @@
|
|
| 1 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
COPY prepare.py /opt/mlab/prepare.py
|
| 3 |
COPY data /opt/mlab/data
|
| 4 |
-
RUN
|
|
|
|
| 5 |
WORKDIR /workspace
|
|
|
|
| 1 |
+
# Self-contained task image: no external base image, no private repos.
|
| 2 |
+
# Build context = this `environment/` directory (Harbor does this automatically).
|
| 3 |
+
FROM python:3.12-slim
|
| 4 |
+
|
| 5 |
+
ENV PYTHONUNBUFFERED=1 PIP_NO_CACHE_DIR=1 PIP_DISABLE_PIP_VERSION_CHECK=1
|
| 6 |
+
|
| 7 |
+
# Tooling that agents commonly need to install themselves / fetch resources.
|
| 8 |
+
RUN apt-get update && apt-get install -y --no-install-recommends \
|
| 9 |
+
git curl ca-certificates build-essential ripgrep unzip \
|
| 10 |
+
&& rm -rf /var/lib/apt/lists/*
|
| 11 |
+
|
| 12 |
+
COPY requirements.txt /tmp/requirements.txt
|
| 13 |
+
# CPU wheels first (small); fall back to the default index on other platforms.
|
| 14 |
+
RUN pip install --upgrade pip wheel "setuptools<81" \
|
| 15 |
+
&& ( pip install "torch==2.2.2" --index-url https://download.pytorch.org/whl/cpu \
|
| 16 |
+
|| pip install "torch==2.2.2" ) \
|
| 17 |
+
&& pip install -r /tmp/requirements.txt
|
| 18 |
+
|
| 19 |
+
# Stage the task data into /workspace and the answer key outside it.
|
| 20 |
COPY prepare.py /opt/mlab/prepare.py
|
| 21 |
COPY data /opt/mlab/data
|
| 22 |
+
RUN python /opt/mlab/prepare.py
|
| 23 |
+
|
| 24 |
WORKDIR /workspace
|
datasets/mlab-real/amp-parkinsons/environment/requirements.txt
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Tabular stack (CPU-friendly). torch is installed separately in the Dockerfile.
|
| 2 |
+
lightautoml
|
| 3 |
+
featuretools
|
| 4 |
+
feature-engine
|
| 5 |
+
scikit-learn
|
| 6 |
+
pandas
|
| 7 |
+
numpy<2
|
datasets/mlab-real/amp-parkinsons/task.toml
CHANGED
|
@@ -2,16 +2,15 @@ schema_version = "1.3"
|
|
| 2 |
artifacts = ["/workspace/submission.csv"]
|
| 3 |
|
| 4 |
[task]
|
| 5 |
-
name = "
|
| 6 |
description = "MLAgentBench amp-parkinsons — full competition data (SMAPE)"
|
| 7 |
-
keywords = ["mlab", "mlagentbench", "tabular", "
|
| 8 |
[[task.authors]]
|
| 9 |
-
name = "
|
| 10 |
|
| 11 |
[metadata]
|
| 12 |
family = "tabular"
|
| 13 |
metric = "SMAPE"
|
| 14 |
-
specialized_libraries = ["lightautoml", "tsfresh"]
|
| 15 |
|
| 16 |
[verifier]
|
| 17 |
timeout_sec = 1800.0
|
|
|
|
| 2 |
artifacts = ["/workspace/submission.csv"]
|
| 3 |
|
| 4 |
[task]
|
| 5 |
+
name = "mlab/amp-parkinsons"
|
| 6 |
description = "MLAgentBench amp-parkinsons — full competition data (SMAPE)"
|
| 7 |
+
keywords = ["mlab", "mlagentbench", "tabular", "full-data"]
|
| 8 |
[[task.authors]]
|
| 9 |
+
name = "mlab"
|
| 10 |
|
| 11 |
[metadata]
|
| 12 |
family = "tabular"
|
| 13 |
metric = "SMAPE"
|
|
|
|
| 14 |
|
| 15 |
[verifier]
|
| 16 |
timeout_sec = 1800.0
|
datasets/mlab-real/amp-parkinsons/tests/test.sh
CHANGED
|
@@ -1,7 +1,6 @@
|
|
| 1 |
#!/bin/bash
|
| 2 |
set -uo pipefail
|
| 3 |
mkdir -p /logs/verifier
|
| 4 |
-
PY=
|
| 5 |
-
[ -x "$PY" ] || PY=python
|
| 6 |
"$PY" /tests/score.py --submission /workspace/submission.csv --answer /opt/mlab/answer.csv --reward-json /logs/verifier/reward.json
|
| 7 |
exit 0
|
|
|
|
| 1 |
#!/bin/bash
|
| 2 |
set -uo pipefail
|
| 3 |
mkdir -p /logs/verifier
|
| 4 |
+
PY=python
|
|
|
|
| 5 |
"$PY" /tests/score.py --submission /workspace/submission.csv --answer /opt/mlab/answer.csv --reward-json /logs/verifier/reward.json
|
| 6 |
exit 0
|
datasets/mlab-real/cifar10/environment/Dockerfile
CHANGED
|
@@ -1,5 +1,24 @@
|
|
| 1 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
COPY prepare.py /opt/mlab/prepare.py
|
| 3 |
COPY data /opt/mlab/data
|
| 4 |
-
RUN
|
|
|
|
| 5 |
WORKDIR /workspace
|
|
|
|
| 1 |
+
# Self-contained task image: no external base image, no private repos.
|
| 2 |
+
# Build context = this `environment/` directory (Harbor does this automatically).
|
| 3 |
+
FROM python:3.12-slim
|
| 4 |
+
|
| 5 |
+
ENV PYTHONUNBUFFERED=1 PIP_NO_CACHE_DIR=1 PIP_DISABLE_PIP_VERSION_CHECK=1
|
| 6 |
+
|
| 7 |
+
# Tooling that agents commonly need to install themselves / fetch resources.
|
| 8 |
+
RUN apt-get update && apt-get install -y --no-install-recommends \
|
| 9 |
+
git curl ca-certificates build-essential ripgrep unzip \
|
| 10 |
+
&& rm -rf /var/lib/apt/lists/*
|
| 11 |
+
|
| 12 |
+
COPY requirements.txt /tmp/requirements.txt
|
| 13 |
+
# CPU wheels first (small); fall back to the default index on other platforms.
|
| 14 |
+
RUN pip install --upgrade pip wheel "setuptools<81" \
|
| 15 |
+
&& ( pip install "torch==2.2.2" "torchvision==0.17.2" --index-url https://download.pytorch.org/whl/cpu \
|
| 16 |
+
|| pip install "torch==2.2.2" "torchvision==0.17.2" ) \
|
| 17 |
+
&& pip install -r /tmp/requirements.txt
|
| 18 |
+
|
| 19 |
+
# Stage the task data into /workspace and the answer key outside it.
|
| 20 |
COPY prepare.py /opt/mlab/prepare.py
|
| 21 |
COPY data /opt/mlab/data
|
| 22 |
+
RUN python /opt/mlab/prepare.py
|
| 23 |
+
|
| 24 |
WORKDIR /workspace
|
datasets/mlab-real/cifar10/environment/requirements.txt
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Vision stack. torch + torchvision are installed separately in the Dockerfile.
|
| 2 |
+
timm
|
| 3 |
+
albumentations
|
| 4 |
+
segmentation-models-pytorch
|
| 5 |
+
opencv-python-headless
|
| 6 |
+
pillow
|
| 7 |
+
scikit-learn
|
| 8 |
+
pandas
|
| 9 |
+
numpy<2
|
datasets/mlab-real/cifar10/solution/solve.sh
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
# Oracle: torchvision.models CNN (resnet18 adapted to 32x32) — the specialized
|
| 3 |
# library this task names.
|
| 4 |
set -euo pipefail
|
| 5 |
-
|
| 6 |
import numpy as np, pandas as pd, torch, torch.nn as nn
|
| 7 |
from torchvision import models
|
| 8 |
|
|
|
|
| 2 |
# Oracle: torchvision.models CNN (resnet18 adapted to 32x32) — the specialized
|
| 3 |
# library this task names.
|
| 4 |
set -euo pipefail
|
| 5 |
+
python - <<'PY'
|
| 6 |
import numpy as np, pandas as pd, torch, torch.nn as nn
|
| 7 |
from torchvision import models
|
| 8 |
|
datasets/mlab-real/cifar10/task.toml
CHANGED
|
@@ -1,15 +1,14 @@
|
|
| 1 |
schema_version = "1.3"
|
| 2 |
artifacts = ["/workspace/submission.csv"]
|
| 3 |
[task]
|
| 4 |
-
name = "
|
| 5 |
description = "MLAgentBench CIFAR-10 (small) — image classification (timm / torchvision)"
|
| 6 |
-
keywords = ["mlab", "mlagentbench", "image", "vision", "
|
| 7 |
[[task.authors]]
|
| 8 |
-
name = "
|
| 9 |
[metadata]
|
| 10 |
family = "vision"
|
| 11 |
metric = "accuracy"
|
| 12 |
-
specialized_libraries = ["timm", "torchvision", "albumentations"]
|
| 13 |
[verifier]
|
| 14 |
timeout_sec = 1200.0
|
| 15 |
collect = []
|
|
|
|
| 1 |
schema_version = "1.3"
|
| 2 |
artifacts = ["/workspace/submission.csv"]
|
| 3 |
[task]
|
| 4 |
+
name = "mlab/cifar10"
|
| 5 |
description = "MLAgentBench CIFAR-10 (small) — image classification (timm / torchvision)"
|
| 6 |
+
keywords = ["mlab", "mlagentbench", "image", "vision", "torchvision"]
|
| 7 |
[[task.authors]]
|
| 8 |
+
name = "mlab"
|
| 9 |
[metadata]
|
| 10 |
family = "vision"
|
| 11 |
metric = "accuracy"
|
|
|
|
| 12 |
[verifier]
|
| 13 |
timeout_sec = 1200.0
|
| 14 |
collect = []
|
datasets/mlab-real/cifar10/tests/test.sh
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
#!/bin/bash
|
| 2 |
set -uo pipefail
|
| 3 |
mkdir -p /logs/verifier
|
| 4 |
-
PY=
|
| 5 |
"$PY" /tests/score.py --submission /workspace/submission.csv --answer /opt/mlab/answer.csv --reward-json /logs/verifier/reward.json
|
| 6 |
exit 0
|
|
|
|
| 1 |
#!/bin/bash
|
| 2 |
set -uo pipefail
|
| 3 |
mkdir -p /logs/verifier
|
| 4 |
+
PY=python; [ -x "$PY" ] || PY=python
|
| 5 |
"$PY" /tests/score.py --submission /workspace/submission.csv --answer /opt/mlab/answer.csv --reward-json /logs/verifier/reward.json
|
| 6 |
exit 0
|
datasets/mlab-real/dataset.toml
CHANGED
|
@@ -1,66 +1,41 @@
|
|
| 1 |
-
# Dataset manifest for
|
| 2 |
-
# Add tasks using: harbor add <org>/<name>
|
| 3 |
-
# Publish using: harbor publish
|
| 4 |
|
| 5 |
[dataset]
|
| 6 |
-
name = "
|
| 7 |
-
|
| 8 |
-
authors = []
|
| 9 |
-
keywords = []
|
| 10 |
|
| 11 |
[[tasks]]
|
| 12 |
-
name = "
|
| 13 |
-
|
| 14 |
|
| 15 |
[[tasks]]
|
| 16 |
-
name = "
|
| 17 |
-
|
| 18 |
|
| 19 |
[[tasks]]
|
| 20 |
-
name = "
|
| 21 |
-
|
| 22 |
|
| 23 |
[[tasks]]
|
| 24 |
-
name = "
|
| 25 |
-
|
| 26 |
|
| 27 |
[[tasks]]
|
| 28 |
-
name = "
|
| 29 |
-
|
| 30 |
|
| 31 |
[[tasks]]
|
| 32 |
-
name = "
|
| 33 |
-
|
| 34 |
|
| 35 |
[[tasks]]
|
| 36 |
-
name = "
|
| 37 |
-
|
| 38 |
|
| 39 |
[[tasks]]
|
| 40 |
-
name = "
|
| 41 |
-
|
| 42 |
|
| 43 |
[[tasks]]
|
| 44 |
-
name = "
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
[[tasks]]
|
| 48 |
-
name = "autods-mlab/imdb-base"
|
| 49 |
-
digest = "sha256:239cbaffb8ccba5fcd937f95ab0473f1addfd8756171c67231a2bd12f88e112d"
|
| 50 |
-
|
| 51 |
-
[[tasks]]
|
| 52 |
-
name = "autods-mlab/ogbn-arxiv"
|
| 53 |
-
digest = "sha256:f7549278a351b19f37d46bf9f50498e377a399ca01495564c6274502d3031b59"
|
| 54 |
-
|
| 55 |
-
[[tasks]]
|
| 56 |
-
name = "autods-mlab/ogbn-arxiv-base"
|
| 57 |
-
digest = "sha256:0d3ec43a85c2ebad2809ef0590ac76131e936fd6d83caf4dd0793e740e842f8d"
|
| 58 |
-
|
| 59 |
-
[[tasks]]
|
| 60 |
-
name = "autods-mlab/spaceship-titanic"
|
| 61 |
-
digest = "sha256:3dbc9593b446adf483db1e39a31b5d2fecb27083424a302d0c329c8634737f1d"
|
| 62 |
-
|
| 63 |
-
[[tasks]]
|
| 64 |
-
name = "autods-mlab/spaceship-titanic-base"
|
| 65 |
-
digest = "sha256:b704bd248e6b143d1e594754d2b5200d5a51b9582325267aee0b0a392c3120f0"
|
| 66 |
-
|
|
|
|
| 1 |
+
# Dataset manifest for mlab-real
|
|
|
|
|
|
|
| 2 |
|
| 3 |
[dataset]
|
| 4 |
+
name = "mlab-real"
|
| 5 |
+
version = "2.0"
|
|
|
|
|
|
|
| 6 |
|
| 7 |
[[tasks]]
|
| 8 |
+
name = "mlab/amp-parkinsons"
|
| 9 |
+
path = "amp-parkinsons"
|
| 10 |
|
| 11 |
[[tasks]]
|
| 12 |
+
name = "mlab/cifar10"
|
| 13 |
+
path = "cifar10"
|
| 14 |
|
| 15 |
[[tasks]]
|
| 16 |
+
name = "mlab/fathomnet"
|
| 17 |
+
path = "fathomnet"
|
| 18 |
|
| 19 |
[[tasks]]
|
| 20 |
+
name = "mlab/feedback"
|
| 21 |
+
path = "feedback"
|
| 22 |
|
| 23 |
[[tasks]]
|
| 24 |
+
name = "mlab/house-price"
|
| 25 |
+
path = "house-price"
|
| 26 |
|
| 27 |
[[tasks]]
|
| 28 |
+
name = "mlab/identify-contrails"
|
| 29 |
+
path = "identify-contrails"
|
| 30 |
|
| 31 |
[[tasks]]
|
| 32 |
+
name = "mlab/imdb"
|
| 33 |
+
path = "imdb"
|
| 34 |
|
| 35 |
[[tasks]]
|
| 36 |
+
name = "mlab/ogbn-arxiv"
|
| 37 |
+
path = "ogbn-arxiv"
|
| 38 |
|
| 39 |
[[tasks]]
|
| 40 |
+
name = "mlab/spaceship-titanic"
|
| 41 |
+
path = "spaceship-titanic"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
datasets/mlab-real/fathomnet/environment/Dockerfile
CHANGED
|
@@ -1,5 +1,24 @@
|
|
| 1 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
COPY prepare.py /opt/mlab/prepare.py
|
| 3 |
COPY data /opt/mlab/data
|
| 4 |
-
RUN
|
|
|
|
| 5 |
WORKDIR /workspace
|
|
|
|
| 1 |
+
# Self-contained task image: no external base image, no private repos.
|
| 2 |
+
# Build context = this `environment/` directory (Harbor does this automatically).
|
| 3 |
+
FROM python:3.12-slim
|
| 4 |
+
|
| 5 |
+
ENV PYTHONUNBUFFERED=1 PIP_NO_CACHE_DIR=1 PIP_DISABLE_PIP_VERSION_CHECK=1
|
| 6 |
+
|
| 7 |
+
# Tooling that agents commonly need to install themselves / fetch resources.
|
| 8 |
+
RUN apt-get update && apt-get install -y --no-install-recommends \
|
| 9 |
+
git curl ca-certificates build-essential ripgrep unzip \
|
| 10 |
+
&& rm -rf /var/lib/apt/lists/*
|
| 11 |
+
|
| 12 |
+
COPY requirements.txt /tmp/requirements.txt
|
| 13 |
+
# CPU wheels first (small); fall back to the default index on other platforms.
|
| 14 |
+
RUN pip install --upgrade pip wheel "setuptools<81" \
|
| 15 |
+
&& ( pip install "torch==2.2.2" "torchvision==0.17.2" --index-url https://download.pytorch.org/whl/cpu \
|
| 16 |
+
|| pip install "torch==2.2.2" "torchvision==0.17.2" ) \
|
| 17 |
+
&& pip install -r /tmp/requirements.txt
|
| 18 |
+
|
| 19 |
+
# Stage the task data into /workspace and the answer key outside it.
|
| 20 |
COPY prepare.py /opt/mlab/prepare.py
|
| 21 |
COPY data /opt/mlab/data
|
| 22 |
+
RUN python /opt/mlab/prepare.py
|
| 23 |
+
|
| 24 |
WORKDIR /workspace
|
datasets/mlab-real/fathomnet/environment/requirements.txt
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Vision stack. torch + torchvision are installed separately in the Dockerfile.
|
| 2 |
+
timm
|
| 3 |
+
albumentations
|
| 4 |
+
segmentation-models-pytorch
|
| 5 |
+
opencv-python-headless
|
| 6 |
+
pillow
|
| 7 |
+
scikit-learn
|
| 8 |
+
pandas
|
| 9 |
+
numpy<2
|
datasets/mlab-real/fathomnet/task.toml
CHANGED
|
@@ -2,16 +2,15 @@ schema_version = "1.3"
|
|
| 2 |
artifacts = ["/workspace/submission.csv"]
|
| 3 |
|
| 4 |
[task]
|
| 5 |
-
name = "
|
| 6 |
description = "MLAgentBench fathomnet — full competition data (micro-F1)"
|
| 7 |
-
keywords = ["mlab", "mlagentbench", "vision", "
|
| 8 |
[[task.authors]]
|
| 9 |
-
name = "
|
| 10 |
|
| 11 |
[metadata]
|
| 12 |
family = "vision"
|
| 13 |
metric = "micro-F1"
|
| 14 |
-
specialized_libraries = ["timm", "torchvision"]
|
| 15 |
|
| 16 |
[verifier]
|
| 17 |
timeout_sec = 1800.0
|
|
|
|
| 2 |
artifacts = ["/workspace/submission.csv"]
|
| 3 |
|
| 4 |
[task]
|
| 5 |
+
name = "mlab/fathomnet"
|
| 6 |
description = "MLAgentBench fathomnet — full competition data (micro-F1)"
|
| 7 |
+
keywords = ["mlab", "mlagentbench", "vision", "full-data"]
|
| 8 |
[[task.authors]]
|
| 9 |
+
name = "mlab"
|
| 10 |
|
| 11 |
[metadata]
|
| 12 |
family = "vision"
|
| 13 |
metric = "micro-F1"
|
|
|
|
| 14 |
|
| 15 |
[verifier]
|
| 16 |
timeout_sec = 1800.0
|
datasets/mlab-real/fathomnet/tests/test.sh
CHANGED
|
@@ -1,7 +1,6 @@
|
|
| 1 |
#!/bin/bash
|
| 2 |
set -uo pipefail
|
| 3 |
mkdir -p /logs/verifier
|
| 4 |
-
PY=
|
| 5 |
-
[ -x "$PY" ] || PY=python
|
| 6 |
"$PY" /tests/score.py --submission /workspace/submission.csv --answer /opt/mlab/answer.csv --reward-json /logs/verifier/reward.json
|
| 7 |
exit 0
|
|
|
|
| 1 |
#!/bin/bash
|
| 2 |
set -uo pipefail
|
| 3 |
mkdir -p /logs/verifier
|
| 4 |
+
PY=python
|
|
|
|
| 5 |
"$PY" /tests/score.py --submission /workspace/submission.csv --answer /opt/mlab/answer.csv --reward-json /logs/verifier/reward.json
|
| 6 |
exit 0
|
datasets/mlab-real/feedback/environment/Dockerfile
CHANGED
|
@@ -1,5 +1,24 @@
|
|
| 1 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
COPY prepare.py /opt/mlab/prepare.py
|
| 3 |
COPY data /opt/mlab/data
|
| 4 |
-
RUN
|
|
|
|
| 5 |
WORKDIR /workspace
|
|
|
|
| 1 |
+
# Self-contained task image: no external base image, no private repos.
|
| 2 |
+
# Build context = this `environment/` directory (Harbor does this automatically).
|
| 3 |
+
FROM python:3.12-slim
|
| 4 |
+
|
| 5 |
+
ENV PYTHONUNBUFFERED=1 PIP_NO_CACHE_DIR=1 PIP_DISABLE_PIP_VERSION_CHECK=1
|
| 6 |
+
|
| 7 |
+
# Tooling that agents commonly need to install themselves / fetch resources.
|
| 8 |
+
RUN apt-get update && apt-get install -y --no-install-recommends \
|
| 9 |
+
git curl ca-certificates build-essential ripgrep unzip \
|
| 10 |
+
&& rm -rf /var/lib/apt/lists/*
|
| 11 |
+
|
| 12 |
+
COPY requirements.txt /tmp/requirements.txt
|
| 13 |
+
# CPU wheels first (small); fall back to the default index on other platforms.
|
| 14 |
+
RUN pip install --upgrade pip wheel "setuptools<81" \
|
| 15 |
+
&& ( pip install "torch==2.2.2" --index-url https://download.pytorch.org/whl/cpu \
|
| 16 |
+
|| pip install "torch==2.2.2" ) \
|
| 17 |
+
&& pip install -r /tmp/requirements.txt
|
| 18 |
+
|
| 19 |
+
# Stage the task data into /workspace and the answer key outside it.
|
| 20 |
COPY prepare.py /opt/mlab/prepare.py
|
| 21 |
COPY data /opt/mlab/data
|
| 22 |
+
RUN python /opt/mlab/prepare.py
|
| 23 |
+
|
| 24 |
WORKDIR /workspace
|
datasets/mlab-real/feedback/environment/requirements.txt
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# NLP stack. torch is installed separately in the Dockerfile.
|
| 2 |
+
transformers==4.44.2
|
| 3 |
+
sentence-transformers
|
| 4 |
+
datasets
|
| 5 |
+
textstat
|
| 6 |
+
scikit-learn
|
| 7 |
+
pandas
|
| 8 |
+
numpy<2
|
datasets/mlab-real/feedback/task.toml
CHANGED
|
@@ -2,16 +2,15 @@ schema_version = "1.3"
|
|
| 2 |
artifacts = ["/workspace/submission.csv"]
|
| 3 |
|
| 4 |
[task]
|
| 5 |
-
name = "
|
| 6 |
description = "MLAgentBench feedback — full competition data (MCRMSE)"
|
| 7 |
-
keywords = ["mlab", "mlagentbench", "nlp", "
|
| 8 |
[[task.authors]]
|
| 9 |
-
name = "
|
| 10 |
|
| 11 |
[metadata]
|
| 12 |
family = "nlp"
|
| 13 |
metric = "MCRMSE"
|
| 14 |
-
specialized_libraries = ["transformers", "sentence-transformers"]
|
| 15 |
|
| 16 |
[verifier]
|
| 17 |
timeout_sec = 1800.0
|
|
|
|
| 2 |
artifacts = ["/workspace/submission.csv"]
|
| 3 |
|
| 4 |
[task]
|
| 5 |
+
name = "mlab/feedback"
|
| 6 |
description = "MLAgentBench feedback — full competition data (MCRMSE)"
|
| 7 |
+
keywords = ["mlab", "mlagentbench", "nlp", "full-data"]
|
| 8 |
[[task.authors]]
|
| 9 |
+
name = "mlab"
|
| 10 |
|
| 11 |
[metadata]
|
| 12 |
family = "nlp"
|
| 13 |
metric = "MCRMSE"
|
|
|
|
| 14 |
|
| 15 |
[verifier]
|
| 16 |
timeout_sec = 1800.0
|
datasets/mlab-real/feedback/tests/test.sh
CHANGED
|
@@ -1,7 +1,6 @@
|
|
| 1 |
#!/bin/bash
|
| 2 |
set -uo pipefail
|
| 3 |
mkdir -p /logs/verifier
|
| 4 |
-
PY=
|
| 5 |
-
[ -x "$PY" ] || PY=python
|
| 6 |
"$PY" /tests/score.py --submission /workspace/submission.csv --answer /opt/mlab/answer.csv --reward-json /logs/verifier/reward.json
|
| 7 |
exit 0
|
|
|
|
| 1 |
#!/bin/bash
|
| 2 |
set -uo pipefail
|
| 3 |
mkdir -p /logs/verifier
|
| 4 |
+
PY=python
|
|
|
|
| 5 |
"$PY" /tests/score.py --submission /workspace/submission.csv --answer /opt/mlab/answer.csv --reward-json /logs/verifier/reward.json
|
| 6 |
exit 0
|
datasets/mlab-real/house-price/environment/Dockerfile
CHANGED
|
@@ -1,5 +1,24 @@
|
|
| 1 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
COPY prepare.py /opt/mlab/prepare.py
|
| 3 |
COPY data /opt/mlab/data
|
| 4 |
-
RUN
|
|
|
|
| 5 |
WORKDIR /workspace
|
|
|
|
| 1 |
+
# Self-contained task image: no external base image, no private repos.
|
| 2 |
+
# Build context = this `environment/` directory (Harbor does this automatically).
|
| 3 |
+
FROM python:3.12-slim
|
| 4 |
+
|
| 5 |
+
ENV PYTHONUNBUFFERED=1 PIP_NO_CACHE_DIR=1 PIP_DISABLE_PIP_VERSION_CHECK=1
|
| 6 |
+
|
| 7 |
+
# Tooling that agents commonly need to install themselves / fetch resources.
|
| 8 |
+
RUN apt-get update && apt-get install -y --no-install-recommends \
|
| 9 |
+
git curl ca-certificates build-essential ripgrep unzip \
|
| 10 |
+
&& rm -rf /var/lib/apt/lists/*
|
| 11 |
+
|
| 12 |
+
COPY requirements.txt /tmp/requirements.txt
|
| 13 |
+
# CPU wheels first (small); fall back to the default index on other platforms.
|
| 14 |
+
RUN pip install --upgrade pip wheel "setuptools<81" \
|
| 15 |
+
&& ( pip install "torch==2.2.2" --index-url https://download.pytorch.org/whl/cpu \
|
| 16 |
+
|| pip install "torch==2.2.2" ) \
|
| 17 |
+
&& pip install -r /tmp/requirements.txt
|
| 18 |
+
|
| 19 |
+
# Stage the task data into /workspace and the answer key outside it.
|
| 20 |
COPY prepare.py /opt/mlab/prepare.py
|
| 21 |
COPY data /opt/mlab/data
|
| 22 |
+
RUN python /opt/mlab/prepare.py
|
| 23 |
+
|
| 24 |
WORKDIR /workspace
|
datasets/mlab-real/house-price/environment/requirements.txt
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Tabular stack (CPU-friendly). torch is installed separately in the Dockerfile.
|
| 2 |
+
lightautoml
|
| 3 |
+
featuretools
|
| 4 |
+
feature-engine
|
| 5 |
+
scikit-learn
|
| 6 |
+
pandas
|
| 7 |
+
numpy<2
|
datasets/mlab-real/house-price/solution/solve.sh
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
#!/bin/bash
|
| 2 |
# Oracle: LightAutoML TabularAutoML — the specialized library this task names.
|
| 3 |
set -euo pipefail
|
| 4 |
-
|
| 5 |
import numpy as np, pandas as pd
|
| 6 |
from lightautoml.automl.presets.tabular_presets import TabularAutoML
|
| 7 |
from lightautoml.tasks import Task
|
|
|
|
| 1 |
#!/bin/bash
|
| 2 |
# Oracle: LightAutoML TabularAutoML — the specialized library this task names.
|
| 3 |
set -euo pipefail
|
| 4 |
+
python - <<'PY'
|
| 5 |
import numpy as np, pandas as pd
|
| 6 |
from lightautoml.automl.presets.tabular_presets import TabularAutoML
|
| 7 |
from lightautoml.tasks import Task
|
datasets/mlab-real/house-price/task.toml
CHANGED
|
@@ -2,16 +2,15 @@ schema_version = "1.3"
|
|
| 2 |
artifacts = ["/workspace/submission.csv"]
|
| 3 |
|
| 4 |
[task]
|
| 5 |
-
name = "
|
| 6 |
description = "MLAgentBench House Prices — tabular regression (LightAutoML)"
|
| 7 |
-
keywords = ["mlab", "mlagentbench", "tabular", "regression"
|
| 8 |
[[task.authors]]
|
| 9 |
-
name = "
|
| 10 |
|
| 11 |
[metadata]
|
| 12 |
family = "tabular"
|
| 13 |
metric = "r2"
|
| 14 |
-
specialized_libraries = ["lightautoml", "featuretools", "feature-engine"]
|
| 15 |
|
| 16 |
[verifier]
|
| 17 |
timeout_sec = 1200.0
|
|
|
|
| 2 |
artifacts = ["/workspace/submission.csv"]
|
| 3 |
|
| 4 |
[task]
|
| 5 |
+
name = "mlab/house-price"
|
| 6 |
description = "MLAgentBench House Prices — tabular regression (LightAutoML)"
|
| 7 |
+
keywords = ["mlab", "mlagentbench", "tabular", "regression"]
|
| 8 |
[[task.authors]]
|
| 9 |
+
name = "mlab"
|
| 10 |
|
| 11 |
[metadata]
|
| 12 |
family = "tabular"
|
| 13 |
metric = "r2"
|
|
|
|
| 14 |
|
| 15 |
[verifier]
|
| 16 |
timeout_sec = 1200.0
|
datasets/mlab-real/house-price/tests/test.sh
CHANGED
|
@@ -3,8 +3,7 @@
|
|
| 3 |
set -uo pipefail
|
| 4 |
|
| 5 |
mkdir -p /logs/verifier
|
| 6 |
-
PY=
|
| 7 |
-
[ -x "$PY" ] || PY=python
|
| 8 |
|
| 9 |
"$PY" /tests/score.py \
|
| 10 |
--submission /workspace/submission.csv \
|
|
|
|
| 3 |
set -uo pipefail
|
| 4 |
|
| 5 |
mkdir -p /logs/verifier
|
| 6 |
+
PY=python
|
|
|
|
| 7 |
|
| 8 |
"$PY" /tests/score.py \
|
| 9 |
--submission /workspace/submission.csv \
|
datasets/mlab-real/identify-contrails/environment/Dockerfile
CHANGED
|
@@ -1,5 +1,24 @@
|
|
| 1 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
COPY prepare.py /opt/mlab/prepare.py
|
| 3 |
COPY data /opt/mlab/data
|
| 4 |
-
RUN
|
|
|
|
| 5 |
WORKDIR /workspace
|
|
|
|
| 1 |
+
# Self-contained task image: no external base image, no private repos.
|
| 2 |
+
# Build context = this `environment/` directory (Harbor does this automatically).
|
| 3 |
+
FROM python:3.12-slim
|
| 4 |
+
|
| 5 |
+
ENV PYTHONUNBUFFERED=1 PIP_NO_CACHE_DIR=1 PIP_DISABLE_PIP_VERSION_CHECK=1
|
| 6 |
+
|
| 7 |
+
# Tooling that agents commonly need to install themselves / fetch resources.
|
| 8 |
+
RUN apt-get update && apt-get install -y --no-install-recommends \
|
| 9 |
+
git curl ca-certificates build-essential ripgrep unzip \
|
| 10 |
+
&& rm -rf /var/lib/apt/lists/*
|
| 11 |
+
|
| 12 |
+
COPY requirements.txt /tmp/requirements.txt
|
| 13 |
+
# CPU wheels first (small); fall back to the default index on other platforms.
|
| 14 |
+
RUN pip install --upgrade pip wheel "setuptools<81" \
|
| 15 |
+
&& ( pip install "torch==2.2.2" "torchvision==0.17.2" --index-url https://download.pytorch.org/whl/cpu \
|
| 16 |
+
|| pip install "torch==2.2.2" "torchvision==0.17.2" ) \
|
| 17 |
+
&& pip install -r /tmp/requirements.txt
|
| 18 |
+
|
| 19 |
+
# Stage the task data into /workspace and the answer key outside it.
|
| 20 |
COPY prepare.py /opt/mlab/prepare.py
|
| 21 |
COPY data /opt/mlab/data
|
| 22 |
+
RUN python /opt/mlab/prepare.py
|
| 23 |
+
|
| 24 |
WORKDIR /workspace
|
datasets/mlab-real/identify-contrails/environment/requirements.txt
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Vision stack. torch + torchvision are installed separately in the Dockerfile.
|
| 2 |
+
timm
|
| 3 |
+
albumentations
|
| 4 |
+
segmentation-models-pytorch
|
| 5 |
+
opencv-python-headless
|
| 6 |
+
pillow
|
| 7 |
+
scikit-learn
|
| 8 |
+
pandas
|
| 9 |
+
numpy<2
|
datasets/mlab-real/identify-contrails/task.toml
CHANGED
|
@@ -2,16 +2,15 @@ schema_version = "1.3"
|
|
| 2 |
artifacts = ["/workspace/submission.csv"]
|
| 3 |
|
| 4 |
[task]
|
| 5 |
-
name = "
|
| 6 |
description = "MLAgentBench identify-contrails — full competition data (Dice)"
|
| 7 |
-
keywords = ["mlab", "mlagentbench", "vision", "
|
| 8 |
[[task.authors]]
|
| 9 |
-
name = "
|
| 10 |
|
| 11 |
[metadata]
|
| 12 |
family = "vision"
|
| 13 |
metric = "Dice"
|
| 14 |
-
specialized_libraries = ["segmentation-models-pytorch"]
|
| 15 |
|
| 16 |
[verifier]
|
| 17 |
timeout_sec = 1800.0
|
|
|
|
| 2 |
artifacts = ["/workspace/submission.csv"]
|
| 3 |
|
| 4 |
[task]
|
| 5 |
+
name = "mlab/identify-contrails"
|
| 6 |
description = "MLAgentBench identify-contrails — full competition data (Dice)"
|
| 7 |
+
keywords = ["mlab", "mlagentbench", "vision", "full-data"]
|
| 8 |
[[task.authors]]
|
| 9 |
+
name = "mlab"
|
| 10 |
|
| 11 |
[metadata]
|
| 12 |
family = "vision"
|
| 13 |
metric = "Dice"
|
|
|
|
| 14 |
|
| 15 |
[verifier]
|
| 16 |
timeout_sec = 1800.0
|
datasets/mlab-real/identify-contrails/tests/test.sh
CHANGED
|
@@ -1,7 +1,6 @@
|
|
| 1 |
#!/bin/bash
|
| 2 |
set -uo pipefail
|
| 3 |
mkdir -p /logs/verifier
|
| 4 |
-
PY=
|
| 5 |
-
[ -x "$PY" ] || PY=python
|
| 6 |
"$PY" /tests/score.py --submission /workspace/submission.csv --answer /opt/mlab/answer.csv --reward-json /logs/verifier/reward.json
|
| 7 |
exit 0
|
|
|
|
| 1 |
#!/bin/bash
|
| 2 |
set -uo pipefail
|
| 3 |
mkdir -p /logs/verifier
|
| 4 |
+
PY=python
|
|
|
|
| 5 |
"$PY" /tests/score.py --submission /workspace/submission.csv --answer /opt/mlab/answer.csv --reward-json /logs/verifier/reward.json
|
| 6 |
exit 0
|
datasets/mlab-real/imdb/environment/Dockerfile
CHANGED
|
@@ -1,5 +1,24 @@
|
|
| 1 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
COPY prepare.py /opt/mlab/prepare.py
|
| 3 |
COPY data /opt/mlab/data
|
| 4 |
-
RUN
|
|
|
|
| 5 |
WORKDIR /workspace
|
|
|
|
| 1 |
+
# Self-contained task image: no external base image, no private repos.
|
| 2 |
+
# Build context = this `environment/` directory (Harbor does this automatically).
|
| 3 |
+
FROM python:3.12-slim
|
| 4 |
+
|
| 5 |
+
ENV PYTHONUNBUFFERED=1 PIP_NO_CACHE_DIR=1 PIP_DISABLE_PIP_VERSION_CHECK=1
|
| 6 |
+
|
| 7 |
+
# Tooling that agents commonly need to install themselves / fetch resources.
|
| 8 |
+
RUN apt-get update && apt-get install -y --no-install-recommends \
|
| 9 |
+
git curl ca-certificates build-essential ripgrep unzip \
|
| 10 |
+
&& rm -rf /var/lib/apt/lists/*
|
| 11 |
+
|
| 12 |
+
COPY requirements.txt /tmp/requirements.txt
|
| 13 |
+
# CPU wheels first (small); fall back to the default index on other platforms.
|
| 14 |
+
RUN pip install --upgrade pip wheel "setuptools<81" \
|
| 15 |
+
&& ( pip install "torch==2.2.2" --index-url https://download.pytorch.org/whl/cpu \
|
| 16 |
+
|| pip install "torch==2.2.2" ) \
|
| 17 |
+
&& pip install -r /tmp/requirements.txt
|
| 18 |
+
|
| 19 |
+
# Stage the task data into /workspace and the answer key outside it.
|
| 20 |
COPY prepare.py /opt/mlab/prepare.py
|
| 21 |
COPY data /opt/mlab/data
|
| 22 |
+
RUN python /opt/mlab/prepare.py
|
| 23 |
+
|
| 24 |
WORKDIR /workspace
|
datasets/mlab-real/imdb/environment/requirements.txt
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# NLP stack. torch is installed separately in the Dockerfile.
|
| 2 |
+
transformers==4.44.2
|
| 3 |
+
sentence-transformers
|
| 4 |
+
datasets
|
| 5 |
+
textstat
|
| 6 |
+
scikit-learn
|
| 7 |
+
pandas
|
| 8 |
+
numpy<2
|
datasets/mlab-real/imdb/solution/solve.sh
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
# Oracle: sentence-transformers embeddings + a light classifier head — the
|
| 3 |
# specialized library this task names.
|
| 4 |
set -euo pipefail
|
| 5 |
-
|
| 6 |
import pandas as pd
|
| 7 |
from sentence_transformers import SentenceTransformer
|
| 8 |
from sklearn.linear_model import LogisticRegression
|
|
|
|
| 2 |
# Oracle: sentence-transformers embeddings + a light classifier head — the
|
| 3 |
# specialized library this task names.
|
| 4 |
set -euo pipefail
|
| 5 |
+
python - <<'PY'
|
| 6 |
import pandas as pd
|
| 7 |
from sentence_transformers import SentenceTransformer
|
| 8 |
from sklearn.linear_model import LogisticRegression
|
datasets/mlab-real/imdb/task.toml
CHANGED
|
@@ -2,16 +2,15 @@ schema_version = "1.3"
|
|
| 2 |
artifacts = ["/workspace/submission.csv"]
|
| 3 |
|
| 4 |
[task]
|
| 5 |
-
name = "
|
| 6 |
description = "MLAgentBench IMDb — text sentiment classification (transformers / sentence-transformers)"
|
| 7 |
-
keywords = ["mlab", "mlagentbench", "text", "nlp", "transformers"
|
| 8 |
[[task.authors]]
|
| 9 |
-
name = "
|
| 10 |
|
| 11 |
[metadata]
|
| 12 |
family = "nlp"
|
| 13 |
metric = "accuracy"
|
| 14 |
-
specialized_libraries = ["transformers", "sentence-transformers", "setfit"]
|
| 15 |
|
| 16 |
[verifier]
|
| 17 |
timeout_sec = 1200.0
|
|
|
|
| 2 |
artifacts = ["/workspace/submission.csv"]
|
| 3 |
|
| 4 |
[task]
|
| 5 |
+
name = "mlab/imdb"
|
| 6 |
description = "MLAgentBench IMDb — text sentiment classification (transformers / sentence-transformers)"
|
| 7 |
+
keywords = ["mlab", "mlagentbench", "text", "nlp", "transformers"]
|
| 8 |
[[task.authors]]
|
| 9 |
+
name = "mlab"
|
| 10 |
|
| 11 |
[metadata]
|
| 12 |
family = "nlp"
|
| 13 |
metric = "accuracy"
|
|
|
|
| 14 |
|
| 15 |
[verifier]
|
| 16 |
timeout_sec = 1200.0
|
datasets/mlab-real/imdb/tests/test.sh
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
#!/bin/bash
|
| 2 |
set -uo pipefail
|
| 3 |
mkdir -p /logs/verifier
|
| 4 |
-
PY=
|
| 5 |
"$PY" /tests/score.py --submission /workspace/submission.csv --answer /opt/mlab/answer.csv --reward-json /logs/verifier/reward.json
|
| 6 |
exit 0
|
|
|
|
| 1 |
#!/bin/bash
|
| 2 |
set -uo pipefail
|
| 3 |
mkdir -p /logs/verifier
|
| 4 |
+
PY=python; [ -x "$PY" ] || PY=python
|
| 5 |
"$PY" /tests/score.py --submission /workspace/submission.csv --answer /opt/mlab/answer.csv --reward-json /logs/verifier/reward.json
|
| 6 |
exit 0
|
datasets/mlab-real/ogbn-arxiv/environment/Dockerfile
CHANGED
|
@@ -1,5 +1,24 @@
|
|
| 1 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
COPY prepare.py /opt/mlab/prepare.py
|
| 3 |
COPY data /opt/mlab/data
|
| 4 |
-
RUN
|
|
|
|
| 5 |
WORKDIR /workspace
|
|
|
|
| 1 |
+
# Self-contained task image: no external base image, no private repos.
|
| 2 |
+
# Build context = this `environment/` directory (Harbor does this automatically).
|
| 3 |
+
FROM python:3.12-slim
|
| 4 |
+
|
| 5 |
+
ENV PYTHONUNBUFFERED=1 PIP_NO_CACHE_DIR=1 PIP_DISABLE_PIP_VERSION_CHECK=1
|
| 6 |
+
|
| 7 |
+
# Tooling that agents commonly need to install themselves / fetch resources.
|
| 8 |
+
RUN apt-get update && apt-get install -y --no-install-recommends \
|
| 9 |
+
git curl ca-certificates build-essential ripgrep unzip \
|
| 10 |
+
&& rm -rf /var/lib/apt/lists/*
|
| 11 |
+
|
| 12 |
+
COPY requirements.txt /tmp/requirements.txt
|
| 13 |
+
# CPU wheels first (small); fall back to the default index on other platforms.
|
| 14 |
+
RUN pip install --upgrade pip wheel "setuptools<81" \
|
| 15 |
+
&& ( pip install "torch==2.2.2" --index-url https://download.pytorch.org/whl/cpu \
|
| 16 |
+
|| pip install "torch==2.2.2" ) \
|
| 17 |
+
&& pip install -r /tmp/requirements.txt
|
| 18 |
+
|
| 19 |
+
# Stage the task data into /workspace and the answer key outside it.
|
| 20 |
COPY prepare.py /opt/mlab/prepare.py
|
| 21 |
COPY data /opt/mlab/data
|
| 22 |
+
RUN python /opt/mlab/prepare.py
|
| 23 |
+
|
| 24 |
WORKDIR /workspace
|
datasets/mlab-real/ogbn-arxiv/environment/requirements.txt
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Graph stack. torch is installed separately in the Dockerfile.
|
| 2 |
+
torch-geometric
|
| 3 |
+
ogb
|
| 4 |
+
scikit-learn
|
| 5 |
+
pandas
|
| 6 |
+
numpy<2
|
datasets/mlab-real/ogbn-arxiv/solution/solve.sh
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
#!/bin/bash
|
| 2 |
# Oracle: torch-geometric GraphSAGE — the specialized library this task names.
|
| 3 |
set -euo pipefail
|
| 4 |
-
|
| 5 |
import numpy as np, pandas as pd, torch, torch.nn.functional as F
|
| 6 |
from torch_geometric.nn import SAGEConv
|
| 7 |
|
|
|
|
| 1 |
#!/bin/bash
|
| 2 |
# Oracle: torch-geometric GraphSAGE — the specialized library this task names.
|
| 3 |
set -euo pipefail
|
| 4 |
+
python - <<'PY'
|
| 5 |
import numpy as np, pandas as pd, torch, torch.nn.functional as F
|
| 6 |
from torch_geometric.nn import SAGEConv
|
| 7 |
|
datasets/mlab-real/ogbn-arxiv/task.toml
CHANGED
|
@@ -1,15 +1,14 @@
|
|
| 1 |
schema_version = "1.3"
|
| 2 |
artifacts = ["/workspace/submission.csv"]
|
| 3 |
[task]
|
| 4 |
-
name = "
|
| 5 |
description = "MLAgentBench OGBN-Arxiv (small) — graph node classification (torch-geometric)"
|
| 6 |
-
keywords = ["mlab", "mlagentbench", "graph", "gnn", "torch-geometric", "ogb"
|
| 7 |
[[task.authors]]
|
| 8 |
-
name = "
|
| 9 |
[metadata]
|
| 10 |
family = "graph"
|
| 11 |
metric = "accuracy"
|
| 12 |
-
specialized_libraries = ["torch-geometric", "ogb"]
|
| 13 |
[verifier]
|
| 14 |
timeout_sec = 1200.0
|
| 15 |
collect = []
|
|
|
|
| 1 |
schema_version = "1.3"
|
| 2 |
artifacts = ["/workspace/submission.csv"]
|
| 3 |
[task]
|
| 4 |
+
name = "mlab/ogbn-arxiv"
|
| 5 |
description = "MLAgentBench OGBN-Arxiv (small) — graph node classification (torch-geometric)"
|
| 6 |
+
keywords = ["mlab", "mlagentbench", "graph", "gnn", "torch-geometric", "ogb"]
|
| 7 |
[[task.authors]]
|
| 8 |
+
name = "mlab"
|
| 9 |
[metadata]
|
| 10 |
family = "graph"
|
| 11 |
metric = "accuracy"
|
|
|
|
| 12 |
[verifier]
|
| 13 |
timeout_sec = 1200.0
|
| 14 |
collect = []
|
datasets/mlab-real/ogbn-arxiv/tests/test.sh
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
#!/bin/bash
|
| 2 |
set -uo pipefail
|
| 3 |
mkdir -p /logs/verifier
|
| 4 |
-
PY=
|
| 5 |
"$PY" /tests/score.py --submission /workspace/submission.csv --answer /opt/mlab/answer.csv --reward-json /logs/verifier/reward.json
|
| 6 |
exit 0
|
|
|
|
| 1 |
#!/bin/bash
|
| 2 |
set -uo pipefail
|
| 3 |
mkdir -p /logs/verifier
|
| 4 |
+
PY=python; [ -x "$PY" ] || PY=python
|
| 5 |
"$PY" /tests/score.py --submission /workspace/submission.csv --answer /opt/mlab/answer.csv --reward-json /logs/verifier/reward.json
|
| 6 |
exit 0
|
datasets/mlab-real/spaceship-titanic/environment/Dockerfile
CHANGED
|
@@ -1,5 +1,24 @@
|
|
| 1 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
COPY prepare.py /opt/mlab/prepare.py
|
| 3 |
COPY data /opt/mlab/data
|
| 4 |
-
RUN
|
|
|
|
| 5 |
WORKDIR /workspace
|
|
|
|
| 1 |
+
# Self-contained task image: no external base image, no private repos.
|
| 2 |
+
# Build context = this `environment/` directory (Harbor does this automatically).
|
| 3 |
+
FROM python:3.12-slim
|
| 4 |
+
|
| 5 |
+
ENV PYTHONUNBUFFERED=1 PIP_NO_CACHE_DIR=1 PIP_DISABLE_PIP_VERSION_CHECK=1
|
| 6 |
+
|
| 7 |
+
# Tooling that agents commonly need to install themselves / fetch resources.
|
| 8 |
+
RUN apt-get update && apt-get install -y --no-install-recommends \
|
| 9 |
+
git curl ca-certificates build-essential ripgrep unzip \
|
| 10 |
+
&& rm -rf /var/lib/apt/lists/*
|
| 11 |
+
|
| 12 |
+
COPY requirements.txt /tmp/requirements.txt
|
| 13 |
+
# CPU wheels first (small); fall back to the default index on other platforms.
|
| 14 |
+
RUN pip install --upgrade pip wheel "setuptools<81" \
|
| 15 |
+
&& ( pip install "torch==2.2.2" --index-url https://download.pytorch.org/whl/cpu \
|
| 16 |
+
|| pip install "torch==2.2.2" ) \
|
| 17 |
+
&& pip install -r /tmp/requirements.txt
|
| 18 |
+
|
| 19 |
+
# Stage the task data into /workspace and the answer key outside it.
|
| 20 |
COPY prepare.py /opt/mlab/prepare.py
|
| 21 |
COPY data /opt/mlab/data
|
| 22 |
+
RUN python /opt/mlab/prepare.py
|
| 23 |
+
|
| 24 |
WORKDIR /workspace
|
datasets/mlab-real/spaceship-titanic/environment/requirements.txt
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Tabular stack (CPU-friendly). torch is installed separately in the Dockerfile.
|
| 2 |
+
lightautoml
|
| 3 |
+
featuretools
|
| 4 |
+
feature-engine
|
| 5 |
+
scikit-learn
|
| 6 |
+
pandas
|
| 7 |
+
numpy<2
|
datasets/mlab-real/spaceship-titanic/solution/solve.sh
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
#!/bin/bash
|
| 2 |
# Oracle: LightAutoML TabularAutoML — the specialized library this task names.
|
| 3 |
set -euo pipefail
|
| 4 |
-
|
| 5 |
import numpy as np, pandas as pd
|
| 6 |
from lightautoml.automl.presets.tabular_presets import TabularAutoML
|
| 7 |
from lightautoml.tasks import Task
|
|
|
|
| 1 |
#!/bin/bash
|
| 2 |
# Oracle: LightAutoML TabularAutoML — the specialized library this task names.
|
| 3 |
set -euo pipefail
|
| 4 |
+
python - <<'PY'
|
| 5 |
import numpy as np, pandas as pd
|
| 6 |
from lightautoml.automl.presets.tabular_presets import TabularAutoML
|
| 7 |
from lightautoml.tasks import Task
|
datasets/mlab-real/spaceship-titanic/task.toml
CHANGED
|
@@ -2,16 +2,15 @@ schema_version = "1.3"
|
|
| 2 |
artifacts = ["/workspace/submission.csv"]
|
| 3 |
|
| 4 |
[task]
|
| 5 |
-
name = "
|
| 6 |
description = "MLAgentBench Spaceship Titanic — tabular binary classification (LightAutoML)"
|
| 7 |
-
keywords = ["mlab", "mlagentbench", "tabular", "classification"
|
| 8 |
[[task.authors]]
|
| 9 |
-
name = "
|
| 10 |
|
| 11 |
[metadata]
|
| 12 |
family = "tabular"
|
| 13 |
metric = "accuracy"
|
| 14 |
-
specialized_libraries = ["lightautoml", "featuretools", "feature-engine"]
|
| 15 |
|
| 16 |
[verifier]
|
| 17 |
timeout_sec = 1200.0
|
|
|
|
| 2 |
artifacts = ["/workspace/submission.csv"]
|
| 3 |
|
| 4 |
[task]
|
| 5 |
+
name = "mlab/spaceship-titanic"
|
| 6 |
description = "MLAgentBench Spaceship Titanic — tabular binary classification (LightAutoML)"
|
| 7 |
+
keywords = ["mlab", "mlagentbench", "tabular", "classification"]
|
| 8 |
[[task.authors]]
|
| 9 |
+
name = "mlab"
|
| 10 |
|
| 11 |
[metadata]
|
| 12 |
family = "tabular"
|
| 13 |
metric = "accuracy"
|
|
|
|
| 14 |
|
| 15 |
[verifier]
|
| 16 |
timeout_sec = 1200.0
|
datasets/mlab-real/spaceship-titanic/tests/test.sh
CHANGED
|
@@ -1,12 +1,11 @@
|
|
| 1 |
#!/bin/bash
|
| 2 |
# Harbor verifier: score /workspace/submission.csv against the held-out answer
|
| 3 |
-
# key and write the reward. Runs in the task container
|
| 4 |
# so the tabular child venv's Python (with pandas) is available.
|
| 5 |
set -uo pipefail
|
| 6 |
|
| 7 |
mkdir -p /logs/verifier
|
| 8 |
-
PY=
|
| 9 |
-
[ -x "$PY" ] || PY=python
|
| 10 |
|
| 11 |
"$PY" /tests/score.py \
|
| 12 |
--submission /workspace/submission.csv \
|
|
|
|
| 1 |
#!/bin/bash
|
| 2 |
# Harbor verifier: score /workspace/submission.csv against the held-out answer
|
| 3 |
+
# key and write the reward. Runs in the task container,
|
| 4 |
# so the tabular child venv's Python (with pandas) is available.
|
| 5 |
set -uo pipefail
|
| 6 |
|
| 7 |
mkdir -p /logs/verifier
|
| 8 |
+
PY=python
|
|
|
|
| 9 |
|
| 10 |
"$PY" /tests/score.py \
|
| 11 |
--submission /workspace/submission.csv \
|