Training Shapes
In practice, a training shape is the user-facing launch input for trainer jobs. Most users only need to choose a training shape ID such asaccounts/fireworks/trainingShapes/qwen3p5-9b-256k and pass it to the API.
The fireworks account is the shared public shape catalog. Shapes published under can be referenced by all users.
You do not need to know the versioned shape reference, image tag, GPU layout, or linked deployment shape ahead of time. The API resolves those details internally.
What You Need To Know
For most users, the workflow is:- Pick a training shape ID from the available shapes list below. In most cases this should be the full shared path .
- Pass it as
training_shape_idto a cookbook recipe’sTrainerConfig, or toFiretitanServiceClient.from_firetitan_config(...). - Let the SDK resolve the pinned shape version and linked deployment shape.
What A Training Shape Controls
When you specify a training shape, it provides the trainer with:- GPU and node layout:
acceleratorType,acceleratorCount,nodeCount - Model limits:
maxSupportedContextLength - Trainer runtime:
trainerImageTag - Linked serving setup:
deploymentShapeVersion
What You Can And Can’t Change
You can still configure normal training-loop fields such as:base_modellora_ranklearning_ratedisplay_name- Trainer replica count (
TrainerConfig.replica_countortrainer_replica_count) - Deployment replica count (
DeployConfig.replica_countorreplica_count)
Shape-owned infra is locked. Do not try to override
accelerator_type, accelerator_count, node_count, custom_image_tag, or the linked deployment shape.forward_backward... multiple times from your client loop before a single optim_step(...); see Loss Functions.
For field-level behavior and dataclass details, see the FiretitanServiceClient and Cookbook Reference.
Using a Training Shape
The only shape-specific input you provide is the shape ID:- You provide the shape ID (e.g.
accounts/fireworks/trainingShapes/qwen3p5-9b-256k) — no version needed. - The SDK resolves the latest validated version during managed service provisioning.
- The SDK applies the linked deployment shape when you request a sampler deployment.
Available Training Shapes
Below is a searchable catalog of customer-ready training shapes per model. During Reinforcement Fine-Tuning (RFT), two types of models are often deployed: a policy trainer (which updates its weights) and a reference model (which is forward-only).- Policy trainer shapes are used for standard Supervised Fine-Tuning (SFT) or as the active policy model during Reinforcement Learning (RL).
- LoRA trainer shapes are used for parameter-efficient fine-tuning.
- Forward-only / reference shapes are used for reference models in RL pipelines. They do not require optimizer states or backward passes, and thus often require fewer resources.