Shipyard
Post-training framework for AI agents on Harbor tasks.
Installation
Requires Python 3.12+ and uv:
uv tool install shipyard-rl
Quickstart
The recipes train on Tinker and run their trials in Modal's sandboxes, whose calls reach the model through a Cloudflare tunnel this machine opens: install cloudflared, or keep Docker running.
shipyard init # copy the recipes and .env.example here
cp .env.example .env # then set TINKER_API_KEY in .env
uvx modal setup # log in to Modal, or set its keys in .env
uvx harbor@0.24.0 datasets download reasoning-gym-easy -o tasks # the recipes' tasks, in tasks/reasoning-gym-easy/
shipyard run recipes/dapo # the run writes runs/dapo__<id>/
As shipped, the run takes about 1 h 45 min and costs about $20: $15 of Tinker and $5 of Modal, measured in November 2026. Add --recipe.steps 1 to stop after the first step, about 10 minutes and under $2.
Customizing
- Settings: a recipe's settings can be updated in its
run.toml(model, harnesses, data, learning rate, LoRA rank, ...); you can overwrite them using--table.key VALUEonshipyard run. - Algorithm: a recipe defines a
trainer.pywhere it subclassesTrainerand writesstepfrom the primitivesdraw,rolloutandupdate, giving the sequences their advantages in between; the core holds no algorithm of its own (seesrc/shipyard). - Recipes: GRPO, DAPO (also with its rollouts overlapping its updates), rejection-sampling fine-tuning, on-policy distillation and GEPA, in
recipes/.
The trainer updates on exactly what the agent sampled: harness-proxy serves the model to the harnesses, and records every call's token ids and logprobs.
Layout
src/shipyard/ the Trainer API, with models/, jobs/ and run/
packages/harness-proxy/ serves the agent to its harnesses, and records every call
recipes/ the built-in recipes
License
Apache-2.0. See LICENSE.
Metadata
Release files for shipyard-rl 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| shipyard_rl-0.2.0.tar.gz | 242.4 kB | With provenance | Details for shipyard_rl-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| shipyard_rl-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for shipyard_rl-0.2.0-py3-none-any.whl |
Total release size: 395.9 kB
Release files / shipyard_rl-0.2.0.tar.gz
| Download URL | shipyard_rl-0.2.0.tar.gz |
|---|---|
| Size | 242.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9116dc830ca44011ee0705d93e00802f78d1e80533b26f078843d4a2a1f47f24
|
|
BLAKE2b-256 checksum How to use checksums |
85e2633a5b8cb28beeb98dbd1badb35e2f3d75842f51966f65de9e50b911ef64
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.
Transparency logRelease files / shipyard_rl-0.2.0-py3-none-any.whl
| Download URL | shipyard_rl-0.2.0-py3-none-any.whl |
|---|---|
| Size | 153.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
966acb4fcd824ee4f86d20b0924af74c11819a7a6bf69e4a52251dd099c286dd
|
|
BLAKE2b-256 checksum How to use checksums |
e7a3c86bdc8b7ce4815354e705c84f322e61454115af6460f87f1b3ca0c1dc0a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.
Transparency logSecurity for shipyard-rl 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for shipyard_rl-0.2.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.