Metadata-Version: 2.5
Name: overturn-trainer
Version: 0.1.0
Summary: Train an open-weight model on your Overturn corrections in your own cloud, then register it for the gate
Project-URL: Homepage, https://github.com/overrule-ai/overturn
Project-URL: Documentation, https://github.com/overrule-ai/overturn/blob/main/docs/owned-models.md
Author: Overturn contributors
License-Expression: Apache-2.0
Keywords: agents,fine-tuning,llm,lora,overturn
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 3
Classifier: Typing :: Typed
Requires-Python: >=3.10
Requires-Dist: httpx>=0.27
Provides-Extra: train
Requires-Dist: accelerate>=0.33; extra == 'train'
Requires-Dist: datasets>=2.20; extra == 'train'
Requires-Dist: peft>=0.12; extra == 'train'
Requires-Dist: torch>=2.3; extra == 'train'
Requires-Dist: transformers>=4.44; extra == 'train'
Requires-Dist: trl>=0.12; extra == 'train'
Description-Content-Type: text/markdown

# overturn-trainer

Train an open-weight model on your [Overturn](https://overturn.run) corrections **in your own cloud**, then register it so Overturn gates it against your suite, shadows it on live traffic, and lets a human promote it.

```bash
pip install 'overturn-trainer[train]'
export OVERTURN_API_KEY=ov_live_…

overturn-trainer run --base meta-llama/Llama-3.1-8B-Instruct --agent ticket-triage --out ./triage-lora
# serve ./triage-lora/adapter on vLLM (--enable-lora --lora-modules triage-lora=./triage-lora/adapter)
# point the Overturn API at it: LOCAL_MODEL_BASE_URL=http://vllm:8000/v1
overturn-trainer run … --register local/triage-lora     # or: overturn models register --base … --served-as local/triage-lora
```

Nothing but the export leaves Overturn; nothing but the registration goes back. `--backend dry` runs the whole pipeline without the ML stack (export, dataset, manifest, registration) — what CI tests.
