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.
- 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
Creating & querying deployments
Create a deployment:Check current placement
Change placement
There is no supported command to change region placement on an existing deployment. To change placement, recreate the deployment:Code examples
- Python (Fireworks SDK)
- Python (OpenAI SDK)
- JavaScript
- curl
Deployment status states
Deployment states from the Gateway API spec:CREATING- still being createdREADY- ready to be usedUPDATING- in-progress updates happeningDELETING- being deletedDELETED- soft-deletedFAILED- creation failed (see status for details)
Inactive:state == READY && max_replica_count == 0 && ready_replica_count == 0Scaled to 0:state == READY && min_replica_count == 0 && max_replica_count > 0 && desired_replica_count == 0 && ready_replica_count == 0
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.- Fast – Low latency for interactive workloads
- Throughput – Cost-per-token at scale for high-volume workloads
- Minimal – Lowest cost for testing or light workloads
Managing & configuring deployments
Basic management
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.
GPU hardware
Choose GPU type with--accelerator-type:
NVIDIA_A100_80GBNVIDIA_H100_80GBNVIDIA_H200_141GB
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:Preemptible deployments (eval / batch)
Preemptible deployments let you run evaluation and batch workloads without holding dedicated on-demand capacity. Passing--preemptible at creation opts the deployment into borrowing idle reserved GPUs instead of reserving GPUs exclusively for you, so you do not pay to hold dedicated capacity for an eval that only runs occasionally.
Because the capacity is borrowed, it can be reclaimed (preempted) at any time and is not guaranteed. In practice a preemptible deployment usually stays up long enough to run an eval end to end, but you must treat disappearance as a normal outcome, not an error.
Guarantees vs. risks
No unique availability risk. Preemptible does not make capacity harder to get. If there is no capacity for a preemptible deployment, there is no capacity for an on-demand one either. The only difference is that a preemptible deployment can also be taken back after it starts.
Requirements
firectl>= 1.7.26.--preemptibleis a newer flag and is silently ignored on older builds (no error, and the deployment is created as standard on-demand). Check withfirectl versionand upgrade if you are below this version.
Create a preemptible deployment
--wait blocks until the deployment is ready (1 hour default; tune with --wait-timeout).
Check status and then send eval requests as you would to any deployment:
Advanced
- Speculative decoding - Speed up text generation using draft models or n-gram speculation
- Quantization - Reduce model precision (e.g., FP16 to FP8) to improve speeds and reduce costs by 30-50%
- Performance benchmarking - Measure and optimize your deployment’s performance with load testing
- Managing default deployments - Control which deployment handles queries when using just the model name
- Publishing deployments - Make your deployment accessible to other Fireworks users
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
Fine-tuning
Fine-tune models for your specific use case