mirror of
https://github.com/NousResearch/atropos.git
synced 2026-04-22 16:48:57 +00:00
Merge branch 'pipelineRL' into OnPolicyDistillation
This commit is contained in:
commit
33f5696171
23 changed files with 6975 additions and 758 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue