A Python SDK for Osmosis LLM training workflows: reward/rubric validation, rollout, platform CLI, and evaluation tools.
Project description
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 runwhen 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
- Eval — graded runs, pass@k, cache/resume with
osmosis eval run - CLI reference
Contributing
See CONTRIBUTING.md for development setup, testing, linting, and PR guidelines.
License
MIT License - see LICENSE file for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6fd6526a283e11bde6afe010f7f379ee02ccd0c30a261360759fecc1cdcc684f
|
|
| MD5 |
13e47bcb463317601ae51bd464449bfb
|
|
| BLAKE2b-256 |
643cdebe3e77ee156e60c56219090ce82329b26e4815644bd694b169fa8d787c
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6a0fb7d77ba126a003ac27e2023390fead52bbf6998165e46f19de15b5892a08
|
|
| MD5 |
d6862d0da97dc0fb6122f656b413131a
|
|
| BLAKE2b-256 |
2935fb0fd5646352fe6422559f0b9b5365c38cfc14c1c602b85aa779575bbabd
|