Skip to main content
This guide starts managed training (config job). You provide a ready dataset and training settings, and Fastino runs the training loop.

Before you begin

Set FASTINO_API_KEY as shown in the Training API overview. The examples send it in the X-API-Key header and use jq to read JSON responses. Owners, Admins, and Editors can complete this managed workflow. A successful final config job deploys automatically through Fastino’s server-side post-training pipeline; it does not require the creator to hold the separate manual-deployment permission.

1. Choose the task

Extraction

Train GLiNER to find labeled spans such as people, products, or locations. Prepare text and entities rows and upload the dataset as NER data.

Classification

Train GLiNER to assign one or more labels to text. Prepare text with label or labels rows and upload the dataset as classification data.
Keep one row shape throughout each JSONL file. Follow Prepare and upload training datasets for the exact GLiNER JSONL formats, upload-URL request, file upload, processing request, and readiness check. Poll the exact version until it reports ready or failed. Continue only on ready; on failed, surface processing_error, correct the data, and upload a new version.

2. Query trainable models

Do not hard-code a base model from an old example. Query the live catalog immediately before creating the job:
Choose a GLiNER model that supports your task and desired training type. Copy its exact ID for the native Training API’s base_model field.

3. Create a config job

Replace the catalog model, dataset name, and version below.
The response is the created job record. Save its id:
See the create-job API reference for optional config-job fields.

4. Poll the job

Poll GET /v1/training/jobs/{job_id} until is_terminal_status is true:
For the config-job statuses and terminal-state guidance, see the Training API overview. The job’s model_kind normalizes the fine-tune as lora or full; it is null when the persisted training type is not recognized. Also display every item in notices. These non-blocking advisories pair a stable code with a customer-facing message, including serving terms that may apply to full fine-tunes: Run echo "$JOB" | jq '{model_kind, notices: [.notices[]? | {code, message}]}' to preserve both the machine-readable code and the text shown to the customer.

5. Inspect logs and checkpoints

Read logs when you need progress or failure details:
List the checkpoints Fastino created:
See logs and checkpoints for their response fields.

6. Confirm automatic deployment

After training and artifact normalization succeed, a final config job deploys automatically and reaches deployed. Read the job again and confirm that status:
The training job ID is the model identifier used for hosted inference. Manual checkpoint deployment is only needed when an Owner or Admin intentionally selects another eligible checkpoint; see Deploy a checkpoint.

7. Run GLiNER inference

Immediately after deployment, inference can return 425, 429, or 503 while serving capacity becomes available or is rate limited. Retry only those statuses, use a non-negative integer Retry-After value when present, cap each wait (for example, at 30 seconds), and stop after a bounded number of attempts (for example, five). Fail immediately for other statuses and surface the final response if the retry limit is reached. To wait for a cold model instead of retrying 425, see Retries and model warm-up.

Call GLiNER

Use GLiNER for extraction or classification through POST /v1/chat/completions.

Install the GLiNER agent skill

Optionally give Cursor, Claude Code, or Codex the hosted GLiNER workflow.