Prerequisites
- SF Compute CLI installed and authenticated (
sf login) - Credits on your account (
sf billing balance) - A sense of which hardware you want (
sf instance-skus list)
Create a pool
Create an instance template
Define the image and startup script for your inference instances.startup.sh
Create a deployment
awaiting_allocation. They start once the pool has compute time.
Create a procurement
node_count as the target tells the procurement to match however many instances exist on the
pool. Pass --instance-sku <id> to pin the procurement to specific hardware; see
instance SKUs for the catalog.
running.
Scale up
Scale down
Handling interruptions
- Stateless workers. Download model weights on boot. Local disk does not persist between instances.
- Health check your load balancer. Route traffic only to instances that are ready.
- Longer
--window. A higher value (e.g.,6h) reduces gaps but commits more spend. See Tuning the managed window.
Monitoring
Next steps
- Adjust
--max-buy-priceand--min-sell-priceto control spend - Buy a reserved block of compute into this pool when you need to guarantee availability: