Call POST /api/v1/abort_gradient_epoch when a forward_backward response is
ambiguous (for example, the client lost the response) or when a client manually
cancels an epoch before optim_step. The request follows the normal asynchronous
protocol:
{
"model_id": "policy",
"seq_id": 42
}
The abort is whole-epoch, not per request: it discards every accumulated capture
since the last successful optimizer step. It is idempotent while the epoch is
still unmutated, so a client may safely repeat an ambiguous abort request before
replaying the complete epoch.
An abort refuses a poisoned session or a session whose optimizer mutation is
awaiting distributed publication. Those states cannot be repaired in-process.
In particular, an ambiguous optim_step response may mean parameters or
optimizer state already changed: restart from the last checkpoint. Never use
abort_gradient_epoch to retry an ambiguous optimizer step.
Create and register a new training session. LoRA mode supports multi-tenant sessions; full-weight mode only supports the reserved model_id="default" session.
POST
/api/v1/unload_model
Unload a session, freeing associated adapter state.
POST
/api/v1/kill_session
Kill an active session. In LoRA mode, non-default tenant sessions are removed; in full-weight mode, the single active session is reset.
GET
/api/v1/session_info
List active sessions and their state.
POST
/api/v1/create_session
Create and register a Tinker-compatible session ID for follow-up calls.
POST
/api/v1/session_heartbeat
Refresh a session’s last-activity timestamp for idle cleanup.
ZORL and its REST routes were removed. Known ZORL configuration fields now
fail with a migration error at YAML, --server.*, and session API boundaries;
unrelated unknown fields retain their rolling-client/shared-config behavior.
Multi-adapter training accepts raw numerator losses only. Setting
normalize_loss_before_backward rejects the forward_backward call; leave
normalization to optim_step, which divides by the accumulated valid-token
denominator exactly once.
A zero or non-finite global valid-token denominator is a hard, non-retryable
data error. Repair the empty/invalid batch before beginning a new epoch.
Authoritative adapter clipping supports the L2 norm only. gradient_clip
remains the scalar L2 threshold; other norm types are rejected.