Training
Forward-only pass
Submit a mini-batch for a forward-only pass without accumulating gradients. Poll the returned request identifier for the result.
Paramètres d’en-tête
Foundry-Features
enum
obligatoire
A feature flag opt-in required when using preview operations or modifying persisted preview resources.
Paramètres de chemin d’accès
sessionId
string
obligatoire
Identifier of the fine-tuning session that will process the batch.
Paramètres de la requête
api-version
string
obligatoire
The API version to use for this operation.
Corps de la demande
Training batch and loss configuration for the forward-only pass.
forward_input
SessionFineTuning.ForwardInput
obligatoire
Inputs for a forward-only pass without gradient accumulation. Uses the same batch and loss configuration as a forward-backward pass.
data
SessionFineTuning.FineTuningDatum[]
obligatoire
Training examples to process in this batch.
loss_fn
string | enum
obligatoire
Supported loss functions for forward-backward passes.
enum
loss_fn_config
SessionFineTuning.LossFnConfig
Optional per-loss-function hyper-parameters.
clip_low_threshold
number
PPO (Proximal Policy Optimization) / CISPO (Clipped Importance-Sampled Policy Optimization): lower clip threshold.
clip_high_threshold
number
PPO (Proximal Policy Optimization) / CISPO (Clipped Importance-Sampled Policy Optimization): upper clip threshold.
tau_pos
number
SAPO (Soft Adaptive Policy Optimization): positive advantage temperature.
tau_neg
number
SAPO (Soft Adaptive Policy Optimization): negative advantage temperature.
Réponses
The request has succeeded.
Corps
request_id
string
obligatoire
Request identifier to pass to the session's request-status endpoint.
status
enum
obligatoire
Indicates that the request has not yet completed.
session_id
string
obligatoire
Identifier of the session processing this request.
Requête
POST /fine_tuning/sessions/{sessionId}/forward HTTP/1.1
Response
Status: 200
Content-Type: application/json
Status: 4XX
Content-Type: application/json
Status: 5XX
Content-Type: application/json