Skip to main content
This quickstart covers both Training API paths. Use managed training when you want Fastino to run the loop. Use a custom training loop when your application must control sampling, rewards, and model updates.

1. Authenticate

  1. Create a Fastino account.
  2. Open API keys.
  3. Create a key and copy it when shown.
Store the key in an environment variable:
Send this key as X-API-Key: $FASTINO_API_KEY. See Authentication for the complete authentication contract.

2. Choose a path

Managed training

3. Prepare a dataset

Upload and process a training dataset, then wait until its version is ready.

4. Choose a model

Query the live catalog before submission:
Save the selected model ID.

5. Create the job

Save the returned id. It is the job_id used by every job-specific route. Reuse the same Idempotency-Key only when retrying this exact create request.

6. Poll the job

For config jobs:
  • status is the persisted lifecycle value, such as errored.
  • normalized_status is the stable polling value, such as failed.
  • is_terminal_status tells your client when to stop polling.
  • error_message describes a failure when available.
Continue until is_terminal_status is true, then inspect the final status, checkpoints, logs, and deployment eligibility.

Custom training loop

Custom training loops require team access and Python 3.11 or later. The supported SDK client talks to Fastino’s hidden HTTP compatibility adapter. Use the client methods below. Do not construct adapter requests.

3. Install the tested client

4. Configure the client

TINKER_CREDENTIAL_CMD runs for every token request and must print one nonempty credential.
Use a normal Fastino key beginning with fast_sk_. Credentials beginning with tml- are rejected. Do not set TINKER_API_KEY.

5. Choose an enabled model

Call ServiceClient.get_server_capabilities() and select a model and LoRA rank from its response:

6. Create the job and sample

Create quickstart.py:
Run the script:
Copy the value printed after TRAINING_JOB_ID=.

7. Verify the canonical job

The response describes the same job created by create_lora_training_client(...). Continue with the SDK client for model operations and use the canonical jobs API for documented job reads.

Continue

Datasets

Prepare and validate training data.

Jobs reference

Review the complete request and response contract.

Training loop

Add rewards, updates, and recovery to a custom loop.