Merge branch 'pipelineRL' into OnPolicyDistillation

This commit is contained in:
Jai Suphavadeeprasit 2026-02-19 16:39:21 -05:00
commit 33f5696171
23 changed files with 6975 additions and 758 deletions

View file

@ -348,6 +348,14 @@ async def info():
@app.get("/batch")
async def get_batch():
# Check if trainer has registered first
if not hasattr(app.state, "started"):
return {
"status": "error",
"message": "Trainer not registered. Call /register first.",
"batch": [],
}
if not app.state.started:
app.state.started = True