Renaissance Labs

Index / Science and mathematics / Mathematics

0541Mathematics

MathConstructOptimize-Envs (Harbor)

amphora/MathConstructOptimize-Envs-harbor

Produce a valid mathematical construction or best-effort optimum and write it to answer.json in a sandboxed Harbor task.

Open on Hugging FaceHow to run it

Good for

  • sandboxed RL on construct and optimize tasks
  • no-network Harbor runs
  • checker-based grading

Reward

How it is scored
Programmatic check
Signal
Graded, 0 to 1

tests/test.sh runs run.py and check.py and writes reward.txt; construct is 1 if valid, optimize is at least 0.1 if valid.

How to run it

1. From the cardcopied from the publisher's own instructions

uv tool install harbor
huggingface-cli download amphora/MathConstructOptimize-Envs-harbor --repo-type dataset --local-dir mcoe
harbor run -p mcoe/tasks -a oracle -n 16          # validate: every task scores > 0
harbor run -p mcoe/tasks -a terminus-2 -m <model> -n 16

2. Get the filesthe whole repository, to a local folder

hf download amphora/MathConstructOptimize-Envs-harbor --repo-type dataset --local-dir MathConstructOptimize-Envs-harbor

3. Check it with Harborcommon pattern, not from this card

# the oracle agent runs the reference solution, so no model is called
harbor run --repo https://huggingface.co/datasets/amphora/MathConstructOptimize-Envs-harbor --agent oracle

If every task passes, the environment works on your machine. Then swap in your own agent and model. Some repositories keep the tasks in a subfolder; the card says where.

Framework documentation: Harbor. Needs: Docker; raise Docker address pools above about 30 concurrent trials.

Evidence

The oracle agent passes all 3,793 tasks and a no-op agent scores 0.

As reported by the publisher. We have not reproduced it.