Installation
Install the Fireworks Python package with training extensions:Your first training loop
This quickstart walks through a minimal SFT loop from scratch using only the API. For trainer launch, the only shape-specific input you provide is the training shape ID. In most cases, use the full shared pathaccounts/fireworks/trainingShapes/<shape>. The fireworks account is the public shared shape catalog. The SDK-managed service client resolves the pinned version, creates or reattaches the trainer, and returns a Tinker-compatible training client.
Step 1: Create the managed service
Step 2: Create the training client
Step 3: Build training data
Each training example is a Datum — a tokenized sequence with per-token weights indicating which tokens to train on.Step 4: Write a loss function and train
Step 5: Save and promote
Next steps
- Training and Sampling — full end-to-end lifecycle with deployment evaluation
- Loss Functions — GRPO, DPO, and custom loss function patterns
- Vision Inputs — fine-tune vision-language models with image and text data
- Saving and Loading — checkpointing and weight sync details
- The Cookbook — ready-to-run recipes for GRPO, DPO, and SFT