interactive
job), where your application controls sampling, rewards, and model updates. To
fine-tune a GLiNER encoder with managed training (config job), use the
Encoder Quickstart.
1. Authenticate
- Create a Fastino account.
- Open API keys.
- Create a key and copy it when shown.
X-API-Key: $FASTINO_API_KEY. See
Authentication for the complete authentication contract.
Choose one supported interface:
- Native JSON clients call
POST /v1/training/jobs/create-model, queue model operations under/v1/training/jobs/{job_id}, and poll each returnedfuture_iduntilcompleted,failed, orcancelled. - Existing Tinker programs keep
tinker==0.32.0; follow Migrate from Tinker for SDK setup.
seq_id and no heartbeat. The server assigns operation
ordering and keeps the internal session alive. A request with wait=true waits
for at most 25 seconds, so a client must continue polling a nonterminal
future. Follow Build an interactive training loop
for rewards, repeated rollouts, and recovery after this quickstart.
2. Install the client libraries
You need Python 3.11 or later.transformers provides the model’s tokenizer and
jinja2 renders its chat template; the training itself runs on Fastino.
3. Choose a model
LoRA ranks from 1 through 32 are supported; the default is 32.
4. Understand the create request
The script in the next step creates one job withPOST /v1/training/jobs/create-model and this request body:
job_id and the future_id of the job’s create
future. The values below are placeholders:
wait helper reads
each future until status is completed, failed, or cancelled. With
wait=true, each request waits for at most 25 seconds.
The first call on a cold model can take several minutes while Fastino
provisions its training cell. Provisioning time varies; keep polling the
create future until it reaches a terminal status.
5. Train, save, and sample
The script below runs the whole loop: create a job, run three forward-backward passes and optimizer steps, save a sampler checkpoint, sample from it, and stop the job. Createquickstart.py:
wait
raises and the dependent operation is not submitted.
enable_thinking=False closes the model’s reasoning block before the supervised
answer begins. It is a tokenizer template argument, not a Training API request
field.
Run the script:
TRAINING_JOB_ID=.
An interactive job with no calls for 30 minutes is released. Its checkpoints
are kept. Stopping returns immediately and prevents new calls, but already
queued operations may finish before resources are released. Usage may
continue until that release. You can still sample and download its sampler
checkpoints.
6. Verify the canonical job
Continue
Encoder Quickstart
Fine-tune a GLiNER encoder with managed training.
Interactive jobs reference
Review every interactive-job request and response.
Interactive training loop
Add rewards, updates, and recovery to an interactive training loop.

