thunder
This module provides integration with Thunder Compute for running workloads on GPU-enabled Kubernetes nodes.Installation
dagger install github.com/jackowfish/thunder-dagger-module@dd225c3f7aee6e9b510be0d470cc7433646dc654
Entrypoint
Return Type
Thunder !
Example
dagger -m github.com/jackowfish/thunder-dagger-module@dd225c3f7aee6e9b510be0d470cc7433646dc654 call \
func (m *myModule) example() *Thunder {
return dag.
Thunder()
}
@function
def example() -> dag.Thunder:
return (
dag.thunder()
)
@func()
example(): Thunder {
return dag
.thunder()
}
Types
Thunder 🔗
Thunder provides integration with Thunder Compute for GPU workloads
deploy() 🔗
Deploy a new Thunder compute instance with a Dagger runner
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
token | String ! | - | Thunder API token |
gpuType | String ! | "t4" | GPU type |
Example
dagger -m github.com/jackowfish/thunder-dagger-module@dd225c3f7aee6e9b510be0d470cc7433646dc654 call \
deploy --token string --gpu-type string
func (m *myModule) example(ctx context.Context, token string, gpuType string) string {
return dag.
Thunder().
Deploy(ctx, token, gpuType)
}
@function
async def example(token: str, gpu_type: str) -> str:
return await (
dag.thunder()
.deploy(token, gpu_type)
)
@func()
async example(token: string, gpuType: string): Promise<string> {
return dag
.thunder()
.deploy(token, gpuType)
}
destroy() 🔗
Destroy a Thunder compute instance and clean up associated SSH keys and config
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
token | String ! | - | Thunder API token |
instanceId | String ! | - | Instance ID to destroy |
Example
dagger -m github.com/jackowfish/thunder-dagger-module@dd225c3f7aee6e9b510be0d470cc7433646dc654 call \
destroy --token string --instance-id string
func (m *myModule) example(ctx context.Context, token string, instanceId string) string {
return dag.
Thunder().
Destroy(ctx, token, instanceId)
}
@function
async def example(token: str, instance_id: str) -> str:
return await (
dag.thunder()
.destroy(token, instance_id)
)
@func()
async example(token: string, instanceId: string): Promise<string> {
return dag
.thunder()
.destroy(token, instanceId)
}
status() 🔗
List all active Thunder compute instances
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
token | String ! | - | Thunder API token |
Example
dagger -m github.com/jackowfish/thunder-dagger-module@dd225c3f7aee6e9b510be0d470cc7433646dc654 call \
status --token string
func (m *myModule) example(ctx context.Context, token string) string {
return dag.
Thunder().
Status(ctx, token)
}
@function
async def example(token: str) -> str:
return await (
dag.thunder()
.status(token)
)
@func()
async example(token: string): Promise<string> {
return dag
.thunder()
.status(token)
}