w.ai CLI Guide
Last updated
Last updated
To get started with the CLI, install it as mentioned in Quick Start
If on a device with a desktop environment/a browser, start by logging in:
And then run using
Visit the .
Login or create a w.ai account.
Select API Keys
and create a new key.
You now have a key that you can set on the headless environment using
And then run normally (in the headless environment) as follows:
You can list generated API keys using
And revoke any using
For more info, run
If you want to run with a subset of your GPUs, add a -g
flag to the run command followed by a list of the GPU IDs. For example, to run on GPUs 0 and 1, the command would be:
If no GPU is provided, it will be ran on GPU 0