Skip to main content

A Python SDK for Osmosis LLM training workflows: reward/rubric validation, rollout, platform CLI, and evaluation tools.

Project description

Osmosis

Platform PyPI Python Codecov License Docs

osmosis-ai

⚠️ Warning: osmosis-ai is still in active development. APIs may change between versions.

Python SDK for Osmosis AI, a platform for training LLMs with reinforcement learning. Implement an AgentWorkflow in Python, add a concrete Grader for serve/eval flows, drive them locally with the CLI, then connect a RolloutServer to managed training.

Quick start

Step What you do
Define agents One AgentWorkflow subclass (+ optional AgentWorkflowConfig) in your repo. For rollout serve, the entrypoint must also expose a concrete Grader (typically with a GraderConfig).
Layout Use a rollout pack directory under rollouts/<name>/ when loading by rollout name; the CLI adds that directory to sys.path.
Serve osmosis rollout serve serve.toml — HTTP server for TrainGate. The entrypoint module must expose a concrete Grader (typically with a GraderConfig); config is TOML ([serve], [server], [debug]).
Evaluate osmosis eval run eval.toml — same execution stack as training, with optional pass@k and caching.

Example repositories: osmosis-git-sync-example (synced agent repo patterns) · osmosis-remote-rollout-example (reference server usage — align with current SDK exports when upgrading).

Documentation index: docs/README.md

Installation

Requires Python 3.12+. For development setup, see CONTRIBUTING.md.

  • An LLM API key (e.g., OpenAI, Anthropic, Groq) — required for osmosis eval run when using hosted models. See supported providers.
  • Osmosis account (optional) — needed for osmosis auth login, workspace management, and platform-backed commands such as datasets, models, and training runs. Sign up at platform.osmosis.ai.

pip

pip install osmosis-ai            # Core SDK
pip install osmosis-ai[server]    # + FastAPI rollout server (pulls in platform extra)
pip install osmosis-ai[full]      # Same as [server] (all packaged optional features)

uv

uv add osmosis-ai                 # Core SDK
uv add osmosis-ai[server]         # + FastAPI rollout server (pulls in platform extra)
uv add osmosis-ai[full]           # Same as [server] (all packaged optional features)

Testing and evaluation

Contributing

See CONTRIBUTING.md for development setup, testing, linting, and PR guidelines.

License

MIT License - see LICENSE file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

osmosis_ai-0.2.18.tar.gz (135.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

osmosis_ai-0.2.18-py3-none-any.whl (169.9 kB view details)

Uploaded Python 3

File details

Details for the file osmosis_ai-0.2.18.tar.gz.

File metadata

  • Download URL: osmosis_ai-0.2.18.tar.gz
  • Upload date:
  • Size: 135.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for osmosis_ai-0.2.18.tar.gz
Algorithm Hash digest
SHA256 6fd6526a283e11bde6afe010f7f379ee02ccd0c30a261360759fecc1cdcc684f
MD5 13e47bcb463317601ae51bd464449bfb
BLAKE2b-256 643cdebe3e77ee156e60c56219090ce82329b26e4815644bd694b169fa8d787c

See more details on using hashes here.

File details

Details for the file osmosis_ai-0.2.18-py3-none-any.whl.

File metadata

  • Download URL: osmosis_ai-0.2.18-py3-none-any.whl
  • Upload date:
  • Size: 169.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for osmosis_ai-0.2.18-py3-none-any.whl
Algorithm Hash digest
SHA256 6a0fb7d77ba126a003ac27e2023390fead52bbf6998165e46f19de15b5892a08
MD5 d6862d0da97dc0fb6122f656b413131a
BLAKE2b-256 2935fb0fd5646352fe6422559f0b9b5365c38cfc14c1c602b85aa779575bbabd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page