Skip to main content

Modify an Instance

Use the modify command with the instance ID and new configuration:
tnr modify <instance_id> [options]

Available Options

OptionDescription
--gpuGPU type. Options depend on mode
--num-gpusNumber of GPUs. Options depend on mode and GPU type
--vcpusNumber of virtual CPUs (prototyping mode; options vary by GPU type and count)
--primary-diskPrimary disk size in GB (can only be increased)
--ephemeral-diskEphemeral storage in GB, mounted at /ephemeral (0 to disable). See Ephemeral Storage
--modeSwitch between prototyping and production

Examples

# Switch to a different GPU
tnr modify 0 --gpu a100

# Scale up CPUs
tnr modify 0 --vcpus 16

# Increase disk size
tnr modify 0 --primary-disk 300

# Switch to production mode
tnr modify 0 --mode production
Disk size can only be increased, not decreased.

What Can Be Modified

ResourceCan Modify?Notes
GPU TypeYes
GPU CountYes
vCPUsYesPrototyping mode only
RAMYesScales with vCPUs (prototyping) or GPUs (production)
ModeYesSwitch between prototyping and production
Primary DiskIncrease onlyCannot shrink disk
Ephemeral StorageYesData is lost when modified. See Ephemeral Storage
RAM is automatically determined based on your configuration. See the pricing page for details.