Create a bucket and access key
Create a bucket for your data and an access key that your tools use to reach it. Creating and deleting buckets and access keys in a workspace requires a role that allows thebucket and access_key resources there. The built-in admin, operator, and
workspace-admin roles allow both.
Creating buckets and access keys requires your organization to set up billing. Have a team member
with the admin or billing role complete
the following under Billing in the console:
- A billing profile
- A primary billing contact
- A card set as the default payment method

europe-north1
region and your
active workspace. Replace acme-training-data throughout with your own
bucket name.
Object storage isn’t available in every region. The console and CLI list supported regions when you
create a bucket. If you need storage in a region we don’t support yet,
contact us.
- CLI
- Console
Install Save the returned access key ID and secret in your secrets manager.
sf and log in, then create a bucket and key in
the same region.sf shows the secret only
once.An access key can read and write every bucket in its workspace and region. Use separate workspaces
when you need separate access boundaries.
Set your storage credentials
Set these variables on your laptop and on each instance that uses the bucket. Find the endpoint in the bucket’s Access bucket panel or withsf storage buckets get acme-training-data.

sf storage access-key create --format env and the console’s Access bucket snippets print
AWS_* names instead. Rename them as shown so they don’t override your existing AWS credentials.
Bring your dataset to SFC
Copy your dataset into the bucket with rclone, then copy it onto each instance that trains on it. Run these commands on your laptop or the machine doing the transfer. Install rclone, then configure an SFC remote with your storage credentials.- From your laptop
- From another S3 provider
Copy your dataset into a versioned directory in the bucket.
copy to transfer new or changed files. Use a new directory such as datasets/v2 for a new
dataset version. To mirror the source exactly, use rclone sync; it also deletes destination files
absent from the source.
Use the dataset on an instance
Connect to your instance, set your storage credentials, and configure rclone as above. Copy the dataset onto its local disk before starting training.~/datasets/v1. Repeat on each instance that needs a local copy.
Save and resume training checkpoints
From an SFC instance, save checkpoints to object storage in the same region as your training job. Checkpoints in object storage stay available when you move to another instance or start another run. With PyTorch already installed, runpython -m pip install boto3 in your training environment. Set
your storage credentials there. Add this to your training loop,
where model, optimizer, and step are your current training state:
Manage buckets and access keys
List buckets and keys withsf storage buckets list and sf storage access-key list, or open
Storage in the console. Revoke a key with sf storage access-key delete training, or open Storage → Access
keys and click Revoke Key.

sf storage buckets delete acme-training-data or select
Delete Bucket in Storage. Confirm the name
when prompted. Deletion removes the bucket and all its objects.

Bucket and access key limits
SF Compute enforces these limits on buckets and access keys:
During rollout, some buckets still have a 100 TiB limit. Existing bucket limits are unchanged.
Usage and billing
SF Compute measures the bytes stored in each bucket hourly. Storage costs $0.14 per GiB-month, prorated by amount stored and time kept. For example, 100 GiB for a full calendar month costs $14, and for half that month it costs $7. SF Compute invoices storage after each UTC calendar month and charges your default card when the invoice is due, 7 days after sending it. Storage charges are separate from prepaid compute credits. Track usage and month-to-date cost under Usage → Storage in the console.

API reference
The SF Compute API doesn’t manage buckets or access keys yet. Usesf storage to script them, or
contact us if you need programmatic access.

