Prerequisites
Before you start, make sure you have the following:- A Forge account. If you don’t have one, sign up.
- An API key. In Forge, click your profile icon, select Settings, and click Create new API key. Copy the key when it is displayed, because you can’t view it again. The examples in these docs read it from the
WANDB_API_KEYenvironment variable; the ART quickstart shows where ART expects it. - A project in Weights & Biases to record training metrics and store the trained adapter. See Projects.
- A dataset of input and output examples that show the behavior you want the model to learn. The ART Serverless SFT documentation describes the expected format.
- The ART framework, if you use it rather than calling the API directly. Follow the install steps in the ART quickstart.
When to use Serverless SFT
Serverless SFT is a good fit when you have, or can produce, examples of the behavior you want:- Distillation: Transfer knowledge from a larger, more capable model into a smaller, faster one by training on the larger model’s outputs.
- Teaching output style and format: Train a model to follow a specific response format, tone, or structure.
- Warmup before RL: Give a model supervised examples before refining it with Serverless RL.
Train a model
- ART framework
- Serverless Training API
ART wraps the Serverless Training API and manages datasets, training runs, and checkpoints for you. It is the recommended way to start. Follow the ART Serverless SFT documentation to prepare your dataset and start a training job.