Skip to main content
New to deployments? Start with our Deployments Quickstart to deploy and query your first model in minutes, then return here to learn about configuration options.
On-demand deployments give you dedicated GPUs for your models, providing several advantages over serverless:
  • Better performance – Lower latency, higher throughput, and predictable performance unaffected by other users
  • No hard rate limits – Only limited by your deployment’s capacity
  • Cost-effective at scale – Cheaper under high utilization. Unlike serverless models (billed per token), on-demand deployments are billed by GPU-second.
  • Broader model selection – Access models not available on serverless
  • Custom models – Upload your own models (for supported architectures) from Hugging Face or elsewhere
Need higher GPU quotas or want to reserve capacity? Contact us.

Creating & querying deployments

Create a deployment:
--deployment-shape default has Fireworks pick a validated shape for the model — see Letting Fireworks pick a shape. To choose a shape yourself, run firectl deployment-shape-version match --model <model-id> first and pass a shape’s name to --deployment-shape.
Deployment placement (--region) must be set at creation time and cannot be changed in place.If you do not specify --region, the deployment uses the GLOBAL multi-region: Fireworks can place its replicas in any region and move waiting replicas to another region when capacity frees up there. To limit where it runs, set --region to a multi-region or a single region:
Only GLOBAL is available by default. Quota for US, CANADA, EUROPE, APAC, and single regions must be granted by Fireworks — contact us. Deploying with a region you have no quota for is rejected at creation. See Regions for details.

Check current placement

The deployment metadata shows where the deployment is currently allowed to schedule replicas (placement / region configuration).

Change placement

There is no supported command to change region placement on an existing deployment. To change placement, recreate the deployment:
See Regions for mega-regions and hardware availability. See Deployment shapes below to optimize for speed, throughput, or cost. Query your deployment: After creating a deployment, query it using this format:
You can find your deployment name anytime with firectl deployment list and firectl deployment get <DEPLOYMENT_ID>.
Example:

Code examples

Deployment status states

Deployment states from the Gateway API spec:
  • CREATING - still being created
  • READY - ready to be used
  • UPDATING - in-progress updates happening
  • DELETING - being deleted
  • DELETED - soft-deleted
  • FAILED - creation failed (see status for details)
UI-only states are display labels derived from deployment fields:
  • Inactive: state == READY && max_replica_count == 0 && ready_replica_count == 0
  • Scaled to 0: state == READY && min_replica_count == 0 && max_replica_count > 0 && desired_replica_count == 0 && ready_replica_count == 0
These are display labels computed from deployment fields; they are not new backend Deployment.State enum values.

Deployment shapes

Deployment shapes are the primary way to configure deployments. They’re pre-configured templates optimized for speed, cost, or efficiency, including hardware, quantization, and other performance factors. Every shape is validated by Fireworks, so a deployment created from a shape uses a known-good configuration of GPU count, precision, and serving parameters.
Do not create deployments without a shape. Always pass --deployment-shape — a concrete shape, or default to have Fireworks pick one. Deployments created without a shape skip these validation checks — mistakes like a GPU count that can’t fit the model surface only at creation, where they cause failures. Most failed deployment creations on Fireworks are deployments without a shape. Enforcement is coming soon: shapeless creation will then require an explicit opt-in — see Explicitly creating a deployment without a shape. If no shape fits your workload, contact us and we’ll help you find or add one.
Over the API, deploymentShape also accepts the special value default: the server picks a validated shape for the model for you — pass --deployment-shape default with firectl. For details, see Letting Fireworks pick a shape.
  • Fast – Low latency for interactive workloads
  • Throughput – Cost-per-token at scale for high-volume workloads
  • Minimal – Lowest cost for testing or light workloads
Usage:
match reports the deployable set. Shapes your account cannot deploy on are dropped, exact base-model matches are preferred over same-model-type and parameter-count siblings, and LoRA addon and live-merge models are matched against their base model. Over the API, the equivalent is Match Deployment Shape Versions. To see every validated shape matching a base model instead (including ones your account cannot use), use firectl deployment-shape-version list --base-model <model-id> — base models only, it fails on LoRA addon and live-merge models. match does not take addons into account. For a deployment with --enable-addons, use the Match Deployment Shape Versions API with enableAddons set.

Letting Fireworks pick a shape

Every client surface accepts a special value that has the server pick a validated shape for the model and apply it, the same as passing that shape explicitly:
The pick never silently overrides fields you set. If every compatible shape conflicts with fields in your request (for example an acceleratorType no shape validates), the request fails with an error naming the conflicting fields, the compatible shapes, and how to create the deployment without a shape. If no shape is compatible with the model at all, the request also fails — in that case, contact us and we’ll help you find or add one.

Explicitly creating a deployment without a shape (advanced users only)

Every surface accepts an explicit opt-out that creates the deployment without a shape. Setting it together with a shape is an error — a deployment is either shaped or explicitly shapeless.
Deployments created this way skip shape validation and are far more likely to fail at creation — most failed deployment creations on Fireworks are shapeless deployments. Only use the opt-out when you have a specific reason no shape covers, and contact us so we can help. Enforcement is coming soon: shapeless creation will then require this flag, so use a shape (or default) now unless you deliberately need this path.
Need even better performance with tailored optimizations? Contact our team.

Managing & configuring deployments

Basic management

Use deployment tags to attach customer-defined metadata such as an environment, team, or workload.
By default, deployments scale to zero if unused for 1 hour. Deployments with min replicas set to 0 are automatically deleted after 7 days of no traffic.
When a deployment is scaled to zero, requests return a 503 error immediately while the deployment scales up. Your application should implement retry logic to handle this. See Scaling from zero behavior for implementation details.

GPU hardware

Do not create deployments without a shape. If a deployment shape fits your workload, use it — this section only applies when no shape fits. Creating a deployment without a shape (not passing --deployment-shape) skips validation: most failed deployment creations on Fireworks are deployments without a shape, and shapeless creation will soon require an explicit opt-in. If you need a configuration no shape covers, contact us and we’ll help you find or add one.
Choose GPU type with --accelerator-type:
  • NVIDIA_A100_80GB
  • NVIDIA_H100_80GB
  • NVIDIA_H200_141GB
  • NVIDIA_B200_180GB
  • NVIDIA_B300_288GB
  • AMD_MI325X_256GB
  • AMD_MI350X_288GB
GPU availability varies by region. See the Create Deployment API reference for the authoritative list of supported accelerator types.
Not every model runs on every GPU. Each model is validated only on specific accelerator type, GPU count, and precision combinations — many models support just one or two entries from the list above. To see what a model supports, match its deployment shapes:
The GPUS, ACCELERATOR, and PRECISION columns are the validated combinations; the model’s page in the Fireworks console shows the same options under dedicated deployments. Setting --accelerator-type or --accelerator-count to a combination no shape validates will typically fail at creation — often with a generic Internal error occurred message that does not name the hardware mismatch. If you need hardware no shape covers, contact us.

Autoscaling

Control replica counts, scale timing, and load targets for your deployment. See the Autoscaling guide for configuration options.

Multiple GPUs per replica

Use multiple GPUs to improve latency and throughput. First check whether a multi-GPU deployment shape already exists for your model:
If no multi-GPU shape fits, start from the closest shape and override the GPU count with --accelerator-count — see the warning under GPU hardware for why omitting --deployment-shape entirely should be a last resort:
More GPUs = faster generation. Note that scaling is sub-linear (2x GPUs ≠ 2x performance).

Preemptible deployments (eval / batch)

A preemptible deployment borrows idle reserved GPUs. It serves the same API as any other deployment, but Fireworks can take the GPUs back at any time, so use it only for evals and bulk offline work whose client retries failed requests. For the training eval workflow, see Evaluating Trained Models.
Moving off Batch inference? Batch is paused and accepts no new jobs, and Fireworks will permanently delete stored Batch input datasets and job outputs. To run your Batch input files on a preemptible deployment, follow Migrating Batch API workloads to preemptible deployments. It includes a migration script that handles concurrency, retries and resume.
A replica can be preempted mid-request without warning. Never send production or latency-sensitive traffic to a preemptible deployment.

Preemptible vs. on-demand

Preemptible capacity is no harder to get than on-demand capacity: if a preemptible deployment can’t be placed, an on-demand one can’t either. The difference is that a preemptible replica can also lose its GPUs after it starts.

When to use it

Create a preemptible deployment

Set preemptible at creation. You can’t change it later; to switch, delete the deployment and create a new one. Pass an explicit deployment shape. default can pick costlier hardware than you expect. List the shapes your account can use for the model:
--wait blocks until the deployment is ready, for up to 1 hour by default (--wait-timeout changes it).You need firectl 1.7.26 or newer; older builds ignore --preemptible and create an on-demand deployment. Run firectl version to check. Some versions hide the flag from --help but still accept it.
Check status with firectl deployment get <NAME> -a <ACCOUNT_ID>, then send requests as you would to any deployment. Delete the deployment when the job finishes, to stop billing:

GPU quota

Preemptible deployments have their own GPU quota, separate from on-demand. Each accelerator type has one account-wide quota, preemptible-<accelerator>-count. It counts max replica count times GPUs per replica across your preemptible deployments that aren’t deleted or failed.
A create over the quota fails with RESOURCE_EXHAUSTED and names the quota. For defaults and increases, see Account quotas.

Placement: partial and cross-region

Fireworks places each replica on its own. If you ask for 20 replicas and 8 fit, those 8 start serving while the other 12 wait. The deployment shows PARTIAL_READY until every replica is ready, then READY, and its status message reports progress, for example no available capacity for NVIDIA_H100_80GB x8 (placed 8 of 20 replicas). Fireworks keeps retrying the rest and doesn’t fail the deployment for waiting on capacity. Without --region, or with a multi-region such as GLOBAL or US, replicas can land in different regions of that placement, and requests are routed across all of them. If replicas wait more than about 5 minutes and another region in the placement has room for all of them, Fireworks can move them there, both at creation and after a preemption. To keep every replica in one region, set --region to a single region. See Regions.

What happens when a replica is preempted

Fireworks reclaims a replica when the workload that reserved its GPUs needs them back. This can happen at any time, mid-request, with no notice.
  • Requests in flight on that replica fail. Other ready replicas keep serving.
  • Fireworks recreates the replica, and it restarts when GPUs free up, possibly in another region. If 10 of 20 replicas are preempted, the other 10 keep serving while the 10 wait. Fireworks doesn’t guarantee how long the wait is. GPU billing counts only ready replicas, so you aren’t billed for a preempted replica while it waits, or for a PREEMPTED deployment.
  • You don’t need to recreate the deployment. A partial preemption leaves its state unchanged.
  • If preemption takes every ready replica, the state changes from READY to PREEMPTED and requests fail. It changes back to READY on its own when a replica is ready again, or when you scale the deployment to 0. firectl deployment get and the Get Deployment response show the state.
  • If that happens while firectl deployment create --wait is running, the command returns and says the deployment is PREEMPTED.
  • To see how many replicas are serving, check replica_stats.ready_replica_count in firectl deployment get <NAME> -a <ACCOUNT_ID> -o json, or replicaStats.readyReplicaCount in the Get Deployment response.

How you are notified

Each preempted replica adds an event to the deployment’s activity log, in the dashboard and in firectl deployment events list: “Replica preempted to free capacity; it will restart when capacity is available”. Rollouts, scale-downs and other restarts don’t add this event. If preemption leaves no replica ready, the deployment’s creator gets an email, and a second one when the deployment can serve again. A partial preemption sends no email.

Your responsibilities

Your client must handle replicas disappearing:
  • Retry connection errors, HTTP 5xx and 429 with exponential backoff and jitter. Expect bursts of failures while a replica restarts, and longer gaps if every replica was preempted.
  • Give each input a stable ID and write each result once under that ID, so a retry doesn’t create a duplicate.
  • Record finished inputs as results arrive, so you can resume from the rest after an interruption.
  • Set an overall deadline. If no replica is ready for longer than you can wait, delete the deployment and retry later, or move the work to on-demand or serverless.

Advanced

Next steps

Autoscaling

Configure autoscaling for optimal cost and performance

Upload custom models

Deploy your own models from Hugging Face

Quantization

Reduce costs with model quantization

Regions

Choose deployment regions for optimal latency

Reserved capacity

Purchase reserved GPUs for guaranteed capacity

Training

Train models for your specific use case