# Capacity Blocks for ML

**URL:** <https://community.cloudbank.org/t/capacity-blocks-for-ml/252>\
**Category:** AWS\
**Created:** [September 5, 2025, 12:59am UTC](https://community.cloudbank.org/t/capacity-blocks-for-ml/252 "2025-09-05T00:59:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vin011](https://avatars.discourse-cdn.com/v4/letter/v/71e660/32.png) [@vin011](https://community.cloudbank.org/u/vin011)\
**Post date:** [September 5, 2025, 12:59am UTC](https://community.cloudbank.org/t/capacity-blocks-for-ml/252/1 "2025-09-05T00:59:45Z")

</div>

# Overview

This guide walks through reserving and launching Capacity Blocks for ML.

> **Note** : The purchase of Capacity Blocks for ML is blocked by default for NAIRR researchers.
> 
> Before deciding to use Capacity Blocks for ML, please try Spot Instances first. Spot Instances are more cost-effective and flexible, though availability depends on demand. You can learn more about launching Spot Instances here: [https://community.cloudbank.org/t/launching-a-spot-instance-vm-on-aws-ec2/218](https://community.cloudbank.org/t/launching-a-spot-instance-vm-on-aws-ec2/218).
> 
> If you would like to enable Capacity Blocks for your project, please review this guide, email [help@cloudbank.org](mailto:help@cloudbank.org), and provide a brief justification on why your project requires them, the number of capacity blocks you plan to purchase, and the estimated cost.

AWS Capacity Blocks for ML provides the ability to reserve high-performance EC2 GPU instances for a specified future date and duration, giving users more control over resource planning, especially during periods of peak demand. This ensures high availability of resources, even when demand increases.

When to use Capacity Blocks:

- You need access to the latest GPUs for 1 or more days
- Your research has firm deadlines
- Capacity shortage would seriously impact your timeline
- You are training large models (\>1B parameters)
- Your budget allows guaranteed capacity premium

When not to use Capacity Blocks:

- You are doing exploratory research with uncertain requirements
- You are developing or code testing
- You have budget-constrained projects prioritizing cost
- You only need short bursts (\< 24 hours) of GPUs
- You have experimental code that might not work

Capacity Blocks for ML uses fixed upfront pricing for the reservation period, regardless of the actual usage or market demand fluctuations. The payment is made at the time of reservation to the AWS account and will be charged as a credit to your CloudBank funds. If you choose a Platform other than `Linux/UNIX`, there will be a separate charge for the operating system license that will be charged when the instances are launched during the reservation period. Capacity block and platform pricing is available at [https://aws.amazon.com/ec2/capacityblocks/pricing/](https://aws.amazon.com/ec2/capacityblocks/pricing/).

Once a Capacity Block reservation is made, the reservation can only be extended by adding additional days to the reservation. **All other details cannot be modified and the reservation cannot be canceled**. Users should carefully review their requirements before committing to the reservation.

To note, Capacity Blocks for ML is a specific type of AWS Capacity Reservation. It differs from On-Demand Capacity Reservations, which are used to reserve general compute instances. On-Demand offers more reservation flexibility with allowed modifications and cancellations.

> Recommended Booking Prerequisites (1-8 weeks prior):
> 
> - Estimate GPU-hour requirements (convert this to # of EC2 instances hrs.)
> - Prepare and stage datasets in AWS
> - Test code on smaller Spot/On-Demand instances
> - Create optimized AMIs with dependencies
> - Set up EC2 launch templates, monitoring and auto-save
> - See more at :
> - [https://community.cloudbank.org/t/ec2-launch-templates/251](https://community.cloudbank.org/t/ec2-launch-templates/251)
> - [https://docs.aws.amazon.com/autoscaling/ec2/userguide/launch-template-capacity-blocks.html](https://docs.aws.amazon.com/autoscaling/ec2/userguide/launch-template-capacity-blocks.html)
> 
> Now you’re ready
> 
> - Book your Capacity Block reservations and use the launch template to create your instance at a scheduled time.

# Purchasing a Capacity Block

The below guides you through the process of purchasing a Capacity Block. For additional information, please refer to [AWS User Guide for Capacity Blocks](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-capacity-blocks.html).

First, ensure the AWS Console is set to the desired region and Availability Zone as the Capacity Reservations will automatically inherit the same zone and cannot be changed.

 ![Availability Zone](https://us1.discourse-cdn.com/flex016/uploads/cloudbank1/original/1X/5e64d33f17eef757ddd39535c1eca163289d7039.png)

Then go to the EC2 dashboard and select `Capacity Reservations` on the left navigation.

 ![EC2 Dashboard](https://us1.discourse-cdn.com/flex016/uploads/cloudbank1/original/1X/43a1a9e4808227299490f56b6b8ebe987267a636.png)

If this is your first time, you will see a welcome message; select `Purchase Capacity Blocks for ML` and `Get started`.

 ![Capacity Reservation Dashboard - First Time](https://us1.discourse-cdn.com/flex016/uploads/cloudbank1/original/1X/3d74e5f9dab14806dcbf71c3473d62578d750dd1.png)

Otherwise, if you have used Capacity Reservations before, you will see the Capacity Reservation list. Select the `Create Capacity Reservations` button.

 ![Capacity Reservation Dashboard](https://us1.discourse-cdn.com/flex016/uploads/cloudbank1/original/1X/c9f0b307518181e89d9e6743e0fa8fec410b8e2d.png)

Then the page will display the Capacity Reservation options and descriptions. Under “Capacity Blocks for ML”, select `Create`.

 ![Create CB ML](https://us1.discourse-cdn.com/flex016/uploads/cloudbank1/original/1X/47c6295337d3396806500eb8fe27a2381fa7e57f.png)

Select the `Instance Type`, `Platform`, `Total capacity` (between 1 and 64 instances) and `Durations` (the duration must be 1-14 days, 21 days, 28 days, or multiples of 7 up to 182 days). **These options cannot be modified once the Capacity Block has been reserved.**

 ![Capacity Block Attributes](https://us1.discourse-cdn.com/flex016/uploads/cloudbank1/original/1X/1acaaede2557304960b161ad922e326cc237749d.png)

Enter the day you want to reserve the “Capacity Blocks for ML” and select `Find Capacity Block`. Capacity Blocks always start and stop at ​​11:30 UTC.  
**Note, once reserved, the date cannot be changed. Payment is processed at the time the reservation order is placed, not when the reserved capacity becomes available.**

 ![Capacity Block Start Date](https://us1.discourse-cdn.com/flex016/uploads/cloudbank1/original/1X/ecdc4611d399af2b1b5712a67e1944a9a93b9416.png)

AWS will show a summary of the “Capacity Blocks for ML” reservation. **Also**  **note the cost, availability zone, and start and end date and time. You will be charged the full amount no matter how long the instances run and the billing period will promptly start at the start date and time.** Then select `Next`.

 ![Summary](https://us1.discourse-cdn.com/flex016/uploads/cloudbank1/original/1X/ef71a20d03219e419604ad01302004a664d07a7b.png)

Add `Tags`, if you wish, then select `Next`.

 ![Tags](https://us1.discourse-cdn.com/flex016/uploads/cloudbank1/original/1X/b83cc63854a31af47c1ed0c1d75b1a7c94ed8cd8.png)

Carefully review the details (dates, duration, instance, tags, etc) of the “Capacity Blocks for ML”. **Again, after the “Capacity Blocks for ML” has been reserved, it cannot be changed.**

 ![Review Reservation - 1](https://us1.discourse-cdn.com/flex016/uploads/cloudbank1/original/1X/fcf46f9bd8776bf09d6f98ad39a19b4cac868286.png)  
 ![Review Reservation - 2](https://us1.discourse-cdn.com/flex016/uploads/cloudbank1/original/1X/f64830d4be4540038bf65119caadd47c603f4d6e.png)

Type confirm in the box and select `Create` to finalize the “Capacity Blocks for ML” reservation.  
Your account will be charged the full amount once the `Create` button is selected.

 ![Confirm Reservation](https://us1.discourse-cdn.com/flex016/uploads/cloudbank1/original/1X/69307ae69bc7624fe3e1084cfc4d314cbd7e8fd1.png)

A success message will be displayed, confirming the “Capacity Blocks for ML” has been scheduled and you will be taken to the `Capacity Reservations` page, where a list of all scheduled reservations will be shown.

 ![Success Message](https://us1.discourse-cdn.com/flex016/uploads/cloudbank1/original/1X/aa67cfe11aec47551cd31bf18374ff37020e4b31.png)

You can click on each item in the `Capacity Reservations` list to see the details.

 ![Reservation Details](https://us1.discourse-cdn.com/flex016/uploads/cloudbank1/original/1X/1fdc0be13c770771d4a4e0f79893b6a98217268c.png)

When the time and date for the “Capacity Blocks for ML” arrives, you can launch the instances as normal using the EC2 launch methods. Make sure you select the same `Instance Type`, `Platform/Operating System`, and `Availability Zone` as specified in your ​​ “Capacity Blocks for ML” reservation.

> **Note** : 30mins before the “Capacity Blocks for ML” reservation end time, any EC2 instances launched under the block will be shut down automatically, regardless of their current workload or processes. The instances cannot be restarted or re-accessed after termination.
> 
> To avoid data loss, make sure to save all work and output to persistent storage such as AWS S3 or EBS before this shutdown window begins.

# Using an Active Capacity Block Reservation

During the Capacity Block window the status will change to Active and the number of available instances will be listed.

 ![Active CB Reservation](https://us1.discourse-cdn.com/flex016/uploads/cloudbank1/original/1X/e07715ff5650c1d9a055bb45706eb3166ef09a5f.png)

Select the Instance for the details view and select `Launch Instances`.

 ![Reservation Launch Instance](https://us1.discourse-cdn.com/flex016/uploads/cloudbank1/original/1X/4e7e01181026236cf0f58753be9411db90b5c333.png)

Give the Instance a name.

 ![Instance Name](https://us1.discourse-cdn.com/flex016/uploads/cloudbank1/original/1X/bd6243a7d78e6122194618c9f3bb6b90dd6dde0c.png)

Select the OS Image, either a custom AMI that you created or one of Amazon’s AMIs. **Make sure the OS type matches the Platform selected when the Capacity Block was reserved.**

 ![Select OS AMI](https://us1.discourse-cdn.com/flex016/uploads/cloudbank1/original/1X/e3ac18e4a594d78d7b6cbca4b0eb5bd1cd4bf5f2.png)

Verify the preselected instance type matches the instance type reserved for the Capacity Block.

 ![Instance Type](https://us1.discourse-cdn.com/flex016/uploads/cloudbank1/original/1X/b612d4572d4754edc10c2cf81ee1e83b4678290c.png)

The Capacity Block details should be preselected. Verify the Capacity reservation targeted ID matches the Capacity Block that you want to use.

 ![Instance Reservation Details](https://us1.discourse-cdn.com/flex016/uploads/cloudbank1/original/1X/df03b0c1c0d629ba334b7081c19ca0bcd476b818.png)

Select the name of the key pair you want to use.

 ![Key Pair](https://us1.discourse-cdn.com/flex016/uploads/cloudbank1/original/1X/c22696f68acd95d9c515606459231fb12f66b34d.png)

Select either “Create security group” or “Select an existing security group”.

 ![Security Groups](https://us1.discourse-cdn.com/flex016/uploads/cloudbank1/original/1X/81d93f8fce1ea830bcb0a9397ccb3f32a840be99.png)

You can add additional storage and update the advanced settings, then select `Launch Instance`.

 ![Launch Finalized Instance](https://us1.discourse-cdn.com/flex016/uploads/cloudbank1/original/1X/eecc6d81c4538aaa371aeb11900647fd392834c7.png)

You should see confirmation that the instance was successfully launched.

 ![Instance Success Message](https://us1.discourse-cdn.com/flex016/uploads/cloudbank1/original/1X/7db351577891bcc246b39e98c5c928cc7de9c49d.png)

The instance will be visible in the Instances list.

 ![View Launched Instance](https://us1.discourse-cdn.com/flex016/uploads/cloudbank1/original/1X/0527c8669eb052524527dfc3247e2a2c42a68735.png)

AWS will state that 0 instances are available if you go back to the Capacity Reservation menu.

 ![Final Reservation State](https://us1.discourse-cdn.com/flex016/uploads/cloudbank1/original/1X/917e97bc42ee168c10df54157ea49a8927f46bb8.png)

# Related Videos

**“Capacity Blocks for ML”** presented at a Cloudbank Zoom Workshop on August 14th, 2025 by Nick Okram from AWS

[![](https://us1.discourse-cdn.com/flex016/uploads/cloudbank1/original/1X/556e3b266c54c71cf6a299dfd34f277fbcb78f73.jpeg "Cloud Clinic: AWS Capacity Blocks for ML - 08/14/2025") ](https://www.youtube.com/watch?v=FijG7l7-JPA)
