Skip to main content

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 VALUE on shipyard run.
  • Algorithm: a recipe defines a trainer.py where it subclasses Trainer and writes step from the primitives draw, rollout and update, giving the sequences their advantages in between; the core holds no algorithm of its own (see src/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.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for shipyard-rl 0.1.0
File Size Uploaded Provenance Actions
shipyard_rl-0.1.0.tar.gz 230.5 kB With provenance Details for shipyard_rl-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for shipyard-rl 0.1.0
File Interpreter ABI Platform Actions
shipyard_rl-0.1.0-py3-none-any.whl Python 3 none any Details for shipyard_rl-0.1.0-py3-none-any.whl

Total release size: 376.3 kB

Release files / shipyard_rl-0.1.0.tar.gz

Download URL shipyard_rl-0.1.0.tar.gz
Size 230.5 kB
Tags Source
SHA-256 checksum
How to use checksums
a2f7bbb4df8f0fcb6368a8df1a2553a6ce21bb146af65abdb88fcfd1b77bc6dc
BLAKE2b-256 checksum
How to use checksums
cb4c6f1c525397870b314be3946172a30ad49b22a8bd05bd2e625e9ba3006bd3
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 24, 2026.

Transparency log

Release files / shipyard_rl-0.1.0-py3-none-any.whl

Download URL shipyard_rl-0.1.0-py3-none-any.whl
Size 145.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
127a6fef9956ed9e998284daa1e343fe579b10cdc8b8103e08f82bec0c94aea8
BLAKE2b-256 checksum
How to use checksums
d38cd940b412f9c530c2bd255e65f5bc57776e71aae4a574640268a3d9976683
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 24, 2026.

Transparency log

Security for shipyard-rl 0.1.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.

Select from 2 files

Attestation for shipyard_rl-0.1.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 24, 2026.

Transparency log

A 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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page