xeophon commited on
Commit
b60b68b
·
verified ·
1 Parent(s): 32fdf48

Add a local uv quickstart with pinned Verifiers v1

Browse files

Pin Python 3.13 and Verifiers v1, lock dependencies, and provide an eval.toml that runs one task locally with only task tools. Document the short run command and endpoint configuration.

Files changed (5) hide show
  1. .python-version +1 -0
  2. README.md +25 -10
  3. eval.toml +18 -0
  4. pyproject.toml +3 -0
  5. uv.lock +0 -0
.python-version ADDED
@@ -0,0 +1 @@
 
 
1
+ 3.13
README.md CHANGED
@@ -6,20 +6,35 @@ tags:
6
 
7
  # general-agent
8
 
9
- Requires `verifiers[harbor]>=0.3.1`.
10
-
11
  Multi-turn tool-use tasks from the self-growing general-agent toolbench, where each task ships its own tool world and a gold tool-call chain. Tasks are scored by replaying the gold chain and rewarding an exact final database-hash match or a passing `verify(db)` check.
12
 
13
- ## Taskset
 
 
 
 
 
 
 
 
14
 
15
- - **Source:** [`general-agent` corpus](https://github.com/PrimeIntellect-ai/prime-envs) downloaded via the Harbor CLI (not vendored)
16
- - **Size:** 4,417 tasks
17
 
18
- ## Notes
19
 
20
- - The corpus is downloaded on first use (cached under `~/.cache/harbor/`) via the Harbor CLI, resolved through the legacy Harbor registry in `PrimeIntellect-ai/prime-envs`. Needs read access to those repos; point `--env.taskset.repo` / `--env.taskset.dataset` at a branch or pin for local or PR-branch validation.
21
 
22
- ## Changelog
 
 
 
 
 
 
 
 
23
 
24
- - 2026-07-31: Migrated each task's dynamic tool server to the explicit `toolsets(config)` API required by `verifiers>=0.2.2.dev65`.
25
- - 2026-07-10: Ported to the task-centric verifiers API: rewards and lifecycle hooks live on the `Task` (a `TaskData` row + behavior split), and task-facing config knobs (judges, tool/user placement, scoring parameters) moved from `--env.taskset.*` to `--env.taskset.task.*`. Requires `verifiers>=0.2.0` and Python `>=3.11`.
 
 
 
6
 
7
  # general-agent
8
 
 
 
9
  Multi-turn tool-use tasks from the self-growing general-agent toolbench, where each task ships its own tool world and a gold tool-call chain. Tasks are scored by replaying the gold chain and rewarding an exact final database-hash match or a passing `verify(db)` check.
10
 
11
+ ## Run a model
12
+
13
+ Install [uv](https://docs.astral.sh/uv/getting-started/installation/) and Git, and serve a tool-calling model at `http://localhost:8000/v1`. Replace `local-model` with the served model ID:
14
+
15
+ ```sh
16
+ git clone https://huggingface.co/datasets/PrimeIntellect/general-agent
17
+ cd general-agent
18
+ uv run vf-eval @ eval.toml --model local-model
19
+ ```
20
 
21
+ `uv` installs Python 3.13 and the pinned Verifiers v1 dependencies. The task corpus downloads automatically on first use and is cached under `~/.cache/harbor/`.
 
22
 
23
+ The supplied `eval.toml` runs one task once. The model receives only the task's tools, with no shell. The harness and tool server run locally; Docker and a Prime account are not required. Results are saved under `outputs/` and are not uploaded.
24
 
25
+ If your model endpoint requires authentication, set `LOCAL_MODEL_API_KEY`. To use another endpoint, add `--client.base-url https://your-endpoint/v1` or edit `eval.toml`.
26
 
27
+ Run more tasks with `-n` and set concurrency with `-c`:
28
+
29
+ ```sh
30
+ uv run vf-eval @ eval.toml --model local-model -n 20 -c 4
31
+ ```
32
+
33
+ Select a task or family with `--env.taskset.tasks '["3d_print_shop_t0"]'`. Add `--dry-run` to check the configuration without calling the model.
34
+
35
+ ## Taskset
36
 
37
+ - **Size:** 4,417 tasks.
38
+ - **Corpus:** [`general-agent@2026-06-25`](https://github.com/PrimeIntellect-ai/prime-tasks/tree/257b6781f9f4017e179eb81fbd940414b4f16fdf/datasets/general-agent), downloaded through the Harbor registry in `PrimeIntellect-ai/prime-envs`.
39
+ - **Code:** [PrimeIntellect-ai/prime-envs](https://github.com/PrimeIntellect-ai/prime-envs/tree/5732a4bbb7e454716608b5f8af51ec890892350f/environments/tool_use/general_agent).
40
+ - **Verifiers:** [pinned v1 revision](https://github.com/PrimeIntellect-ai/verifiers/tree/f2382d3c285ecb85578caf2948f24d0eeed84561), installed through `uv` using `pyproject.toml` and `uv.lock`.
eval.toml ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ model = "local-model"
2
+ num_rollouts = 1
3
+ max_concurrent = 1
4
+ push = false
5
+
6
+ [select]
7
+ limit = 1
8
+
9
+ [client]
10
+ base_url = "http://localhost:8000/v1"
11
+ api_key_var = "LOCAL_MODEL_API_KEY"
12
+
13
+ [env.taskset]
14
+ id = "general-agent"
15
+
16
+ [env.agent]
17
+ runtime = { type = "subprocess" }
18
+ harness = { id = "null" }
pyproject.toml CHANGED
@@ -14,3 +14,6 @@ build-backend = "hatchling.build"
14
 
15
  [tool.hatch.build.targets.wheel]
16
  packages = ["general_agent"]
 
 
 
 
14
 
15
  [tool.hatch.build.targets.wheel]
16
  packages = ["general_agent"]
17
+
18
+ [tool.uv.sources]
19
+ verifiers = { git = "https://github.com/PrimeIntellect-ai/verifiers", rev = "f2382d3c285ecb85578caf2948f24d0eeed84561" }
uv.lock ADDED
The diff for this file is too large to render. See raw diff