Skip to main content
This guide creates a config training job. You provide a ready dataset and training settings; 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.

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. Continue only after the dataset version reports ready.

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.

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. Deploy the trained model

Check the completed job’s is_deployable and deployability_reason fields, then deploy the selected deployable checkpoint:
Poll the job again until its deployment state is ready. The training job ID is the model identifier used for hosted inference.

7. Run GLiNER inference

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.