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

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.1.3
File Size Uploaded Provenance
etude_sdk-0.1.3.tar.gz 461.8 kB With provenance Details

Built distribution (wheel)

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

Total release size: 800.6 kB

Release files / etude_sdk-0.1.3.tar.gz

Download URL etude_sdk-0.1.3.tar.gz
Size 461.8 kB
Tags Source
SHA-256 checksum
How to use checksums
935c486d469f56a9a9eaa7fdbd21288b313ff685a1511aa294bfbfccb677a563
BLAKE2b-256 checksum
How to use checksums
d8e06d0442d263ad9ad5190c5d43740b386b5b6cb67efba1640854ac2d361f11
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.1.3-py3-none-any.whl

Download URL etude_sdk-0.1.3-py3-none-any.whl
Size 338.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1f0e18dab01571ffe11743948b547589b808a2509323ada5d93e9a3ec9c6aaba
BLAKE2b-256 checksum
How to use checksums
8d13f877e2d926276302f9387d594b2f18e356c36aaad8a4211509ec5f9c0c26
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.1.3

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