Optimizer step
Submits an optimizer step operation that will asynchronously apply accumulated gradients to update model parameters. Does not make the updated parameters available for sampling; call weights-sync afterwards when you want subsequent samples to use the updated policy.
Path parameters
Training session ID
Request body
Example request
{
"adam_params": {
"learning_rate": 0.0001,
"beta1": 0.9,
"beta2": 0.95,
"eps": 1e-8,
"weight_decay": 0.1,
"grad_clip_norm": 10
},
"muon_params": {
"learning_rate": 0.02,
"momentum": 0.95,
"newton_schulz_steps": 5,
"grad_clip_norm": 10,
"adam": {
"learning_rate": 0.0001,
"beta1": 0.9,
"beta2": 0.95,
"eps": 1e-8,
"weight_decay": 0.1,
"grad_clip_norm": 10
}
}
}Response
Optimizer step operation details
Example response
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"error": {
"message": "Operation timed out"
}
}Changes
Changed in 4 of the 15 revisions of this API.814
- ●
removed the request property
request-property-removed
- ●
- ●
added the new
TRAINING_OPERATION_ERROR_CODE_NON_FINITE_LOSSenum value to the/response property for the response statusresponse-property-enum-value-added
- ●
- ●
removed the request property
request-property-removed
- ●
removed the request property
request-property-removed
- ●
removed the request property
/request-property-removed
- ○
added the new optional request property
new-optional-request-property
- ○
added the new optional request property
/new-optional-request-property
- ○
added the new optional request property
/new-optional-request-property
This revision also has 11 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ●
- ●
removed the request property
/request-property-removed
- ●
removed the request property
request-property-removed
- ●
removed the request property
/request-property-removed
- ○
added the new optional request property
/new-optional-request-property
- ○
added the new optional request property
/new-optional-request-property
- ○
added the new optional request property
/new-optional-request-property
- ○
the
request property default value1.0was addedrequest-property-default-value-added
- ○
the
/request property format was generalized fromfloatto no formatrequest-property-type-generalized
- ○
the
/request property format was generalized fromfloatto no formatrequest-property-type-generalized
- ○
the
/request property format was generalized fromfloatto no formatrequest-property-type-generalized
- ○
the
/request property format was generalized fromfloatto no formatrequest-property-type-generalized
- ○
the
/request property format was generalized fromfloatto no formatrequest-property-type-generalized
- ○
the
/request property format was generalized fromint64to no formatrequest-property-type-generalized
- ○
the
/request property format was generalized fromfloatto no formatrequest-property-type-generalized
This revision also has 2 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ●