Skip to main content

Etude

Launch training runs on your own or rented machines, and track what they record.

# job.py
from decimal import Decimal

from etude.jobs import training
from etude.launch.records import Job

from train import TrainConfig, train


def runs() -> Job:
    return training(train, config=TrainConfig(lr=1e-3), max_hours=2, max_usd=Decimal(4))
# train.py
from pydantic import BaseModel

from etude.train.records import Step
from etude.train.run import track


class TrainConfig(BaseModel):
    lr: float = 3e-4
    updates: int = 1000


def train(config: TrainConfig) -> None:
    run = track(experiment="capacity-pilot", clocks=[Step("updates", "optimizer updates")])
    for update in range(1, config.updates + 1):
        loss = train_one_update(config.lr)
        run.log({"loss": loss}, updates=update)
        if update % 500 == 0:
            run.checkpoint(save_model(), updates=update)
    run.finish()
etude launch job.py          # on this computer; --pool P for machines you own,
                             # --rent R to rent CPU or GPU machines, or both
etude status                 # where runs stand
etude logs --run RUN         # preparation, every attempt, cleanup
etude reports write --open   # charts of every run, as one HTML file per experiment

Etude decides the job's command: on the machine it imports train from your checkout and calls it with the config, validated back into a TrainConfig. A config train cannot take is refused before anything launches. An evaluation job holds a tournament (evaluation) for one checkpoint the same way, with your play:

from etude.jobs import evaluation

evaluation(progress, play=play, checkpoint=weights, max_hours=0.5, max_usd=Decimal(1))

Everything a run records goes to your own directory or S3 bucket. There is no server to run and no account to make. A run that loses its machine resumes from its last checkpoint on another, and reads back as one run.

Install

Etude needs Python 3.12 and uv.

uv tool install etude-sdk          # the `etude` command
uv add etude-sdk                   # the library, in a training project
uv add 'etude-sdk[s3]'             # with S3 storage

Read more

  • Tracking: runs, clocks, checkpoints, reports.
  • Evaluation: agents playing each other in parallel, benchmarks and round robins, queried with DuckDB.
  • The launcher: typed jobs, pools, SSH hosts, rented machines, cohorts, limits and recovery.

Develop

uv sync
uv run pytest
uv run mypy
uv run ruff check . && uv run ruff format --check .

AGENTS.md holds the conventions, for people and coding agents.

Licence

MIT. See LICENSE.

Metadata

Release files for etude-sdk 0.2.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 etude-sdk 0.2.0
File Size Uploaded Provenance
etude_sdk-0.2.0.tar.gz 465.7 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for etude-sdk 0.2.0
File Interpreter ABI Platform
etude_sdk-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 804.5 kB

Release files / etude_sdk-0.2.0.tar.gz

Download URL etude_sdk-0.2.0.tar.gz
Size 465.7 kB
Tags Source
SHA-256 checksum
How to use checksums
303f27eb2db956c00863b9e643bff8333ae4081595faee73887b7e2dc230be95
BLAKE2b-256 checksum
How to use checksums
f23852e690c5feb3d5c4b16a7730b988d3def6d518dd42c179dbc5e9c4721300
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 Oct 22, 2026.

Transparency log

Release files / etude_sdk-0.2.0-py3-none-any.whl

Download URL etude_sdk-0.2.0-py3-none-any.whl
Size 338.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a11ea285c8b14340cd2b7e678bff7466f2485e1282f473739dfbdbc1d8050241
BLAKE2b-256 checksum
How to use checksums
d4f42271b7370c4497f59af1990c6778c77cbf3f65748eec3484acc332ad7c21
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 Oct 22, 2026.

Transparency log

Security for etude-sdk 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

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for etude_sdk-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 Oct 22, 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.

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