API Reference¶
Generated from the source at build time, so it cannot drift.
The one class most workflows touch¶
rome.Manager wires the three managers together and exposes
their whole API on one object. Adoption is Manager(...), start(),
add_training_data(), get_current_model(), stop().
Framework¶
| Module | Contents |
|---|---|
rome.manager |
Manager — the single object a host workflow talks to. |
rome.data |
DataManager, DataConfig — the corpus and how a dataset is built from it. |
rome.trainer |
Trainer, TrainerConfig, TrainerStatus — scheduling rounds, publishing checkpoints. |
rome.stream |
Stream, StreamConfig, StreamContext, StreamTask, StreamKind, StreamStatus — persistent inference and reward. |
rome.utils |
Namespace, thread_handle, submit_task — DDict layout and asyncflow submission. |
rome.dummy |
DummyTrainer, DummyModel and stream functions, for model-free runs. |
Trainers¶
| Module | Contents |
|---|---|
rome.train.base |
TrainTask, FunctionTrainer — the interface every training algorithm implements. |
rome.train.llm |
GRPOTrainer, GRPOConfig, ModelConfig, load_model, save_model. |
examples.impress_r.mpnn |
ProteinMPNNTrainer, ProteinMPNNConfig, percentile_sampler — the IMPRESS-R integration. |
examples.impress_r.mpnn ships with the example rather than with the framework,
because ROME is workflow agnostic and the ProteinMPNN trainer is an IMPRESS-R
integration. It is documented here because it is public API for anyone adopting
IMPRESS-R.
Reading the reference alongside the guide¶
The reference is exhaustive; the guide explains what to reach for. Pair them:
- Data Manager ↔
rome.data - Training Manager ↔
rome.trainer - Stream Manager ↔
rome.stream - Writing a trainer ↔
rome.train.base - Shared state ↔
rome.utils