nemo_gym.tasks.harbor
nemo_gym.tasks.harbor
Read Harbor task folders and hub references into NeMo Gym materialized tasks.
Harbor is the input format; Gym owns execution. A task is a folder holding
task.toml, instruction.md, environment/ and tests/. A dataset is a
folder of task folders. harbor:<dataset>[@<version>] names a dataset in the
Harbor registry, which this package fetches into Gym’s shared datasets folder.
Submodules
nemo_gym.tasks.harbor.clinemo_gym.tasks.harbor.digestnemo_gym.tasks.harbor.dockerfilenemo_gym.tasks.harbor.hubnemo_gym.tasks.harbor.materializenemo_gym.tasks.harbor.modelsnemo_gym.tasks.harbor.task
Package Contents
Classes
Functions
Data
API
A task folder read into memory.
task_id is the folder name: [task].name is an org/name label that is
not unique across a dataset. image is the prebuilt image when the task
declares one, else the base image of a base-image-only Dockerfile, else None
(a build is required). Without a prebuilt image, workdir, env and user
merge task.toml with what the Dockerfile recorded; task.toml wins.
With a prebuilt image, the Dockerfile contributes no settings.
A task runs in a sandbox exactly when it declares an image or a Dockerfile.
Bases: HarborSettings
One task.toml.
Harbor runs the verifier in the agent’s container unless a separate one is declared.
Digest the task folder at path.
A folder with task.toml is one task; otherwise its direct children are the tasks.
With skipped, a child that fails to load is recorded there under its folder name
and the others still load; without it the first failure raises. A root that is
itself a task always raises.
Read path as one task. Raises HarborTaskError when it is not one.