Installation
Install the Fireworks Python SDK with training extensions:Your first training loop
This quickstart walks through a minimal SFT loop from scratch using only the SDK. 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, and the SDK resolves the pinned version before passing it through training_shape_ref.
Step 1: Provision a trainer
Step 2: Connect 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
- Saving and Loading — checkpointing and weight sync details
- The Cookbook — ready-to-run recipes for GRPO, DPO, and SFT