Forward pass
Submits a forward operation that will asynchronously run a no-grad forward pass and return per-token log-probabilities for each sample.
Path parameters
Training session ID
Request body
Example request
{
"samples": [
{
"model_input": {
"chunks": [
{
"encoded_text": {
"tokens": [
123,
456,
789
]
}
}
]
},
"routed_experts": {
"shape": [
"512",
"64",
"8"
]
}
}
]
}Response
Example response
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"output": {
"logprobs": [
{
"data": [
-1.2,
-0.8,
-1.5,
-0.9,
-1.1
]
}
]
},
"error": {
"message": "Operation timed out"
}
}Changes
Changed in 6 of the 15 revisions of this API.101012
- ▲
added the new required request property
//new-required-request-property
- ●
removed the request property
//request-property-removed
- ○
added the new optional request property
//new-optional-request-property
This revision also has 10 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ○
added the new optional request property
////new-optional-request-property
- ○
the request property
////became optionalrequest-property-became-optional
- ○
- ▲
request property
/////list-of-types was narrowed by removing typesinteger and stringfrom media typeapplication/jsonrequest-property-list-of-types-narrowed
- ●
the
/////request property's min was set to0.00request-property-min-set
- ●
removed the request property
//request-property-removed
- ○
added the new optional request property
///new-optional-request-property
- ▲
- ●
added the new
TRAINING_OPERATION_ERROR_CODE_NON_FINITE_LOSSenum value to the/response property for the response statusresponse-property-enum-value-added
- ●
- ▲
added the new required request property
////new-required-request-property
- ▲
added the new required request property
////new-required-request-property
- ▲
added the new required request property
////new-required-request-property
- ▲
added the new required request property
////new-required-request-property
- ▲
added the new required request property
////new-required-request-property
- ▲
the request property
/////became requiredrequest-property-became-required
- ▲
the request property
//became requiredrequest-property-became-required
- ●
removed the request property
////request-property-removed
- ●
removed the request property
////request-property-removed
- ●
removed the request property
////request-property-removed
- ●
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
This revision also has 11 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ▲
the
////response's property format changed fromfloatto no format for statusresponse-property-type-changed
- ○
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
- ○
added the new optional request property
///new-optional-request-property
- ○
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
This revision also has 2 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲