|
Download adapter/README.md from HuggingFaceSwarms/collaborative-intelligence-benchmark: direct link, hf CLI and curl.
- Browser
- Download file 9.91 kB
-
https://huggingface.co/datasets/HuggingFaceSwarms/collaborative-intelligence-benchmark/resolve/70bf2120b9fad211b64201848cb7c201d0c59a23/adapter/README.md
- Command line
-
hf download hf://datasets/HuggingFaceSwarms/collaborative-intelligence-benchmark@70bf2120b9fad211b64201848cb7c201d0c59a23/adapter/README.md
-
curl -L -o README.md https://huggingface.co/datasets/HuggingFaceSwarms/collaborative-intelligence-benchmark/resolve/70bf2120b9fad211b64201848cb7c201d0c59a23/adapter/README.md
9.91 kB
| # Collaborative Intelligence with stock Flock and Harbor | |
| The release path is a task dataset plus this small adapter wheel and an unchanged | |
| Flock checkout. It covers the four released dimensions, with the original | |
| partner/referee assignments and isolated native checker. Personal study ledgers, | |
| Slurm scripts, registries and research controllers are not required. | |
| The first verified stock recipe is **Gemini 3.8 Flash, OpenAI-compatible chat, | |
| Pi 1.5.0, low reasoning, 256 Pi turns**. It uses stock Flock's **one-hour run | |
| guard**, with `agent_timeout_seconds: null` and no generated Harbor agent timeout. | |
| Sol Responses and direct Opus Messages are not supported stock recipes here. | |
| The Opus model described below is the private Taking-over grader. | |
| Release history and known issues of earlier revisions: `CHANGELOG.md` at the dataset root. | |
| ## Install and configure | |
| The dataset contains the adapter source. From its `adapter/` directory, install | |
| the locked dependencies and the unchanged, tested Flock revision into the same | |
| Python environment. No benchmark-specific Flock fork or development checkout is | |
| required. Git access to Flock's private `huggingface/msgboard` dependency is needed. | |
| ```sh | |
| uv sync --python 3.13 --locked --extra harbor --extra hub | |
| uv pip install --python .venv/bin/python \ | |
| 'flock @ git+https://github.com/huggingface/flock.git@f3970bc5e7be2e9d533e33d457e82c41082a7cd3' | |
| export PATH="$PWD/.venv/bin:$PATH" | |
| ``` | |
| `uv build --wheel` also creates a distributable adapter wheel. These commands | |
| apply to the dataset's bundled adapter as well as this development checkout. | |
| Provide `GEMINI_API_KEY` for the evaluated model. The trusted team container also | |
| needs the original `ANTHROPIC_API_KEY`, `OPENAI_API_KEY`, and a reachable original | |
| `Qwen/Qwen3-14B` route. For example, configure `HARNESS_VLLM_ENDPOINTS` as | |
| `{"Qwen/Qwen3-14B":"http://TEAM_REACHABLE_HOST:8001/v1"}` and, if needed, | |
| `HARNESS_VLLM_API_KEY`. Team loopback is reserved for its internal evaluated-seat | |
| bridge; an endpoint at `localhost:8001` is not the external Qwen partner. | |
| An explicit `HARNESS_OPENAI_COMPAT` Qwen route with a supported team-only key | |
| variable is also accepted. Preserve Qwen3-14B; do not replace it with another | |
| Qwen model. Set `ANTHROPIC_WORKSPACE_ID` when your Anthropic account requires it. | |
| Do not put credentials in YAML, task images, Hub files or logs. Stock Flock | |
| provides the evaluated key to its agent; partner/referee/reader credentials are | |
| forwarded only to the separate team service. Submitted sandbox code executes in | |
| a separate unprivileged worker without these credentials or private evidence. | |
| Download the task commit named in the dataset README to a local snapshot for sweep | |
| manifests, and pin the same commit in `recipe.yaml` (the sweep refuses anything but a | |
| 40-character commit). Authentication for a private dataset uses the normal Hub login. | |
| ```python | |
| from huggingface_hub import snapshot_download | |
| snapshot_download( | |
| "misc-org/collaborative-intelligence-harbor", repo_type="dataset", | |
| revision="TASK_COMMIT", local_dir="tasks", | |
| ) | |
| ``` | |
| ```yaml | |
| name: ci-fullpi-gemini | |
| harness: pi | |
| model: openai/gemini-3.8-flash | |
| inference: | |
| base_url: http://model-compat:8003/v1 | |
| api_key_env: GEMINI_API_KEY | |
| api_format: openai_chat_completions | |
| reasoning_effort: low | |
| task: | |
| repo: https://huggingface.co/datasets/misc-org/collaborative-intelligence-harbor | |
| revision: TASK_COMMIT | |
| selector: ONE_TASK_ID_FROM_A_MANIFEST | |
| agents: | |
| count: 1 | |
| environment: | |
| backend: docker # or podman (see below) | |
| limits: | |
| run_timeout_seconds: 3600 | |
| agent_max_turns: 256 | |
| agent_timeout_seconds: null | |
| output_dir: results | |
| ``` | |
| Harbor builds the egress sidecar from a short image name (`gogost/gost@sha256:...`). | |
| With rootless Podman, install `podman-compose==1.5.0` into the same environment | |
| (`uv pip install --python .venv/bin/python podman-compose==1.5.0`), use | |
| `environment.backend: podman`, and add two settings: | |
| `unqualified-search-registries = ["docker.io"]` in a file named by | |
| `CONTAINERS_REGISTRIES_CONF`; a `podman-compose` wrapper, because Harbor calls | |
| `compose exec --no-TTY`, which podman-compose spells `-T`: | |
| ```sh | |
| cat > ~/bin/podman-compose-shim <<'SH' | |
| #!/bin/bash | |
| args=(); for a in "$@"; do [[ "$a" == "--no-TTY" ]] && a="-T"; args+=("$a"); done | |
| exec "$(dirname "$(command -v python)")/podman-compose" "${args[@]}" | |
| SH | |
| chmod 700 ~/bin/podman-compose-shim && export PODMAN_COMPOSE_PROVIDER=~/bin/podman-compose-shim | |
| ``` | |
| and, if Docker Hub rate-limits you, a `[[registry.mirror]]` with `location = "mirror.gcr.io"` | |
| for `docker.io` in the same registries file (images are pinned by digest). | |
| Without a user systemd session (e.g. inside batch jobs), Podman does not run container | |
| health checks on its own, and each task starts the agent only once `team` and | |
| `model-compat` report healthy: run the checks periodically, e.g. with | |
| `scripts/podman_healthchecks.py` from the Flock repository. | |
| The team container also receives `GEMINI_API_KEY` (as `CI_PRIVATE_READOUT_API_KEY`) | |
| for the private final-answer call; the agent never sees that request. | |
| **Kernel modules for the network guard.** Harbor's agent-phase allowlist switches | |
| nftables rules inside the run, which needs the host kernel modules `nft_fib_inet`, | |
| `nft_redir` and `nft_chain_nat` to be loaded. Rootless Podman cannot load them; on a | |
| node where they are not loaded, Harbor refuses to start the agent ("cannot change | |
| network policy after start"), so runs fail closed and are held, never scored. Check | |
| `grep -E "^(nft_fib_inet|nft_redir|nft_chain_nat) " /proc/modules` before launching. No root is | |
| needed to fix it: creating one such rule in a throwaway rootless namespace makes the kernel | |
| autoload them, e.g. `printf 'table inet w { chain o { type nat hook output priority -100; fib daddr | |
| type local tcp dport 1 redirect to :12345; } }' | unshare -rn nft -f -` (`scripts/podman-env.sh` | |
| does this). Docker with root | |
| loads them automatically. Private Hub tasks also need `git-lfs` (runtime archives are | |
| LFS files) and git credentials for huggingface.co (e.g. `GIT_ASKPASS`), because Harbor | |
| fetches tasks with `git`. | |
| The task-local `model-compat` gateway forwards every request unchanged to the | |
| configured provider, except that it drops Google's unsupported top-level `store` | |
| field, pins the evaluated model, and rejects provider-side tools and remote content. | |
| When a streamed reply is slow, it answers at once and sends SSE keepalive comments | |
| until the provider responds, because Harbor's egress guard drops a connection that | |
| gets no response headers within 15 s; it always asks the provider for uncompressed bytes, | |
| because those keepalive headers cannot carry a provider's `Content-Encoding`. If the caller | |
| hangs up, the provider request is closed. Staged Pi extensions preserve real opaque tool-call signatures. This requires | |
| no host gateway or Flock fork. Normal provider keys and the original Stanford episode budget still | |
| apply; the research financial broker is not part of this recipe. | |
| ## Run and aggregate | |
| `collab-intel-harbor-run --config recipe.yaml` launches **one** selected task. | |
| For the full release, use the downloaded dataset's catalog and manifests: | |
| ```sh | |
| collab-intel-harbor-sweep --config recipe.yaml --dataset-root /path/to/new-hub-snapshot \ | |
| --output results/full-gemini --concurrency 4 --plan-only | |
| collab-intel-harbor-sweep --config recipe.yaml --dataset-root /path/to/new-hub-snapshot \ | |
| --output results/full-gemini --concurrency 4 | |
| ``` | |
| The default schedule is **320 logical rows / 316 canonical physical runs before | |
| solo gating**: 20 solo gates and three test seeds per public item in each of four | |
| dimensions. Optional controls are excluded even if declared by the catalog; | |
| `--include-controls` explicitly adds them. A failed or excluded solo skips its | |
| dependent tests. Shared aliases execute once. Independent cases can proceed when | |
| another gate is held. | |
| Reusing the same output resumes only never-started eligible cases. Completed | |
| verdicts, including ordinary failures, are never regenerated. Held attempts | |
| (unscored infrastructure failures) are kept as-is unless you pass | |
| `--retry-held N`: each held case is then retried at most N times, its old | |
| directory is preserved as `cases/<case>.held-K`, and `progress.json` lists it | |
| under `retired_attempts`. Source, configuration, route and manifest changes | |
| fail closed. `progress.json` records this status and | |
| `scores.json` uses the original Stanford seed/gate aggregator. An incomplete | |
| batch exits nonzero and remains partial. | |
| For a separate read-only score export, run `collab-intel-harbor-score` with | |
| `--manifest SELECTED_SCORING_MANIFEST --runs VERIFIER_RESULT_JSON ...`, one | |
| `--flock-run RUN_JSON` per contributing stock run, and `--upstream-root` pointing | |
| to any task's private test context, `tasks/<task>/tests` (its compact runtime archive is | |
| verified and unpacked to a cache). Use the control-free copy under | |
| `<output>/scoring-manifests/` when optional controls were not run; | |
| an original control-declaring | |
| manifest correctly reports those controls missing. Host timeouts, exceptions, | |
| cut conversations and unsupported reader continuations stay unscored. A genuine | |
| finished native result can survive later cleanup failure only with verified | |
| completion-before-cutoff evidence. | |
| Taking-over test rewards require the **released Stanford Opus grader** and its | |
| original application rule. Reader rationale stays private. A rejected scripted | |
| stop continues through the same live Pi session and original native prefix; | |
| unsupported label-changing continuations remain held. This is a new prospective | |
| Full Pi protocol, not a claim that old interrupted sessions were exactly resumed | |
| or that the paper's original judge execution was identical. | |
| Source pin, runtime details and free validation evidence are in [RUNTIME.md](RUNTIME.md) | |
| and [VALIDATION.md](VALIDATION.md). Retain all upstream licenses, notices and | |
| canaries; benchmark material is not training data. | |