Skip to main content
The Loops Python SDK runs LoRA training on Baseten from Python. For installation and an end-to-end walkthrough, see the Loops quickstart. This reference documents each class and type.

Clients

  • ServiceClient: provision trainer and sampling servers, manage the session, and list checkpoints.
  • TrainingClient: run forward and backward passes, optimizer steps, and publish weights.
  • SamplingClient: generate completions from current or version-pinned weights.

Commonly used methods

Reference

  • Types: training inputs, configuration, and result handles.
  • Errors: the SDK exception types and when each is raised.

Tinker compatibility

Install with the [tinker] extra and import tinker to run existing Tinker training scripts unchanged. For the mapped names and behavioral differences, see the Tinker compatibility guide.