> ## Documentation Index
> Fetch the complete documentation index at: https://docs.fastino.ai/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Use https://docs.fastino.ai/llms.txt to discover and navigate pages. Use https://docs.fastino.ai/llms-full.txt when you need the complete documentation corpus. Use https://docs.fastino.ai/openapi.json as the source of truth for customer-facing routes. For GLiDE decision inference, call POST https://api.fastino.ai/v1/systemone with model fastino/GLiDE. Start managed training (config job) with POST /v1/training/jobs using base_model. For interactive training, native JSON clients use the public operations under /v1/training/jobs and /v1/training/usage. Existing Tinker clients use tinker==0.32.0 with TINKER_BASE_URL=https://api.fastino.ai/v1/training/compat/tinker and TINKER_CREDENTIAL_CMD. Compatibility child routes are private and absent from OpenAPI. Auto Train is private access and has no public route; direct interested users to sales@fastino.ai. Do not infer undocumented routes. Read API keys from FASTINO_API_KEY and never embed credentials in code, logs, or reports.

# Queue a forward operation

> Queue a forward pass without gradients on an interactive training job, then poll the returned future_id until the status is completed, failed, or cancelled.

`POST /v1/training/jobs/{job_id}/forward`

Computes the loss and per-token log probabilities of a batch without
accumulating gradients. Use it for evaluation or to score tokens before an
update.

The body, response, and result match
[`POST /v1/training/jobs/{job_id}/forward-backward`](https://docs.fastino.ai/api-reference/training-jobs/interactive/forward-backward).
The future `type` is `forward`.

A GLiDE (`fastino/GLiDE`) job takes `decisions`, and here a row needs no `gold`
or `soft_target`. Each result in `loss_fn_outputs` holds the row's option
probabilities as `probs`, as [`POST /v1/systemone`](https://docs.fastino.ai/api-reference/inference/systemone)
serves them. Use it to score held-out rows; nothing is trained. See
[Train GLiDE](https://docs.fastino.ai/api-reference/training-jobs/interactive/forward-backward.md#train-glide).

The numeric token arrays below are illustrative placeholders. Tokenize your
actual text with the tokenizer for the job's `base_model`.

```bash cURL theme={null}
curl -X POST "https://api.fastino.ai/v1/training/jobs/$TRAINING_JOB_ID/forward" \
  -H "X-API-Key: $FASTINO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "datums": [
      {
        "model_input": {"chunks": [{"type": "encoded_text", "tokens": [151644, 872, 198, 3838]}]},
        "loss_fn_inputs": {
          "target_tokens": {"data": [872, 198, 3838, 30], "dtype": "int64"}
        }
      }
    ]
  }'
```

```json Response theme={null}
{
  "future_id": "FUTURE_ID",
  "job_id": "SESSION_ID:train:0",
  "type": "forward"
}
```

## Errors

| Status | Meaning |
| - | - |
| `400` | Unknown `loss_fn`, a non-integer `target_tokens` tensor, out-of-vocabulary token IDs, the job was stopped, or a batch the model would refuse (see below). |
| `402` | The team is out of credits or has no valid payment setup. |
| `404` | The job doesn't exist or belongs to another team. |
| `422` | The body sends both or neither of `datums` and `decisions`, either is empty, `decisions` has more than `512` rows, or the body has an unknown field. |
| `429` | The job already has `512` operations queued. Wait for its existing futures to finish before retrying. See [Interactive-job lifecycle](https://docs.fastino.ai/training.md#interactive-job-lifecycle). |

Before queuing the batch, the route also refuses with `400` the batches
[`forward-backward`](https://docs.fastino.ai/api-reference/training-jobs/interactive/forward-backward#errors)
refuses for the same reasons. The longest datum `forward` accepts can differ
from `forward-backward`'s.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.