Thunder Compute provides managed instances that are optimized for performance. The Thunder Compute CLI contains all of the functionality you need to create, edit, use, and delete these instances.
$ tnr create
$ tnr start [instance_ID]
$ tnr stop [instance_ID]
$ tnr delete [instance_ID]
$ tnr connect [instance_ID]
$ tnr status
$ tnr status
To run code on Thunder Compute GPUs, prefix any command with the $ tnr run
command. This gives any process direct access to a GPU, without paying when the GPU is idle. You can use $ tnr device cpu
to guarantee that you are disconnected from a GPU, however this is not required. If the GPU is idle you will never pay.
The Thunder Compute CLI uses the TNR_API_TOKEN
environment variable for authentication. This saved token is used to authenticate all operations. You can generate these single-use tokens in the console. Thunder Compute tokens do not expire and you can revoke them at any time. To access Thunder Compute from multiple devices, generate separate tokens for each device.
Storage on Thunder Compute instances is persistent. By default, instances have 100GB of storage which can be configured with $ tnr create
. If you have significant amounts of data in a storage bucket and are constrained to a specific region or cloud provider, contact our support team.