Getting Started
You can now run selected code on our cloud GPUs using the official Snowcell SDK
-
Log in to the Snowcell Console: And obtain your API key
-
Authenticate: Import the
Client
class and authenticate with Snowcellfrom snowcell.client import Client
client = Client(api_key='xyz123fgh456') -
Decorate your function: This will send your function to our cloud GPU to be ran on
@client.function(name="my task", cpu=1.5, memory=2)
def predict(**inputs):
return inputs['x'] + inputs['y']
predict(x=3, y=2)