You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- **Google DeepMind:**`export GEMINI_API_KEY="your_key_here"` (Google AI Studio has a free API usage quota. Create a key [here](https://aistudio.google.com/apikey) to use `weco`for free.)
51
49
52
-
The optimization process will fail if the necessary keys forthe chosen model are not foundin your environment.
53
-
54
-
3. **Log In to Weco (Optional):**
55
-
56
-
To associate your optimization runs with your Weco account and view them on the Weco dashboard, you can log in. `weco` uses a device authentication flow:
57
-
58
-
- When you first run `weco run`, you'll be prompted if you want to log in or proceed anonymously.
59
-
- If you choose to log in (by pressing `l`), you'll be shown a URL and `weco` will attempt to open it in your default web browser.
60
-
- You then authenticate in the browser. Once authenticated, the CLI will detect this and complete the login.
61
-
- This saves a Weco-specific API key locally (typically at `~/.config/weco/credentials.json`).
62
-
63
-
If you choose to skip login (by pressing Enter or `s`), `weco` will still functionusing the environment variable LLM keys, but the run history will not be linked to a Weco account.
64
-
65
-
To log out and remove your saved Weco API key, use the `weco logout` command.
66
-
67
50
---
68
51
69
-
## Usage
70
-
71
-
The CLI has two main commands:
72
-
73
-
- `weco run`: Initiates the code optimization process.
74
-
- `weco logout`: Logs you out of your Weco account.
This basic example shows how to optimize a simple PyTorch functionfor speedup.
@@ -126,13 +100,8 @@ weco run --source optimize.py \
126
100
127
101
---
128
102
129
-
### `weco logout` Command
130
-
131
-
This command logs you out by removing the locally stored Weco API key.
132
-
133
-
```bash
134
-
weco logout
135
-
```
103
+
### Weco Dashboard
104
+
To associate your optimization runs with your Weco account and view them on the Weco dashboard, you can log in. `weco` uses a device authentication flow
0 commit comments