Skip to content

Commit c411fdb

Browse files
committed
chore: add hf cli
1 parent dfa44e8 commit c411fdb

2 files changed

Lines changed: 11 additions & 10 deletions

File tree

sweep/README.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@ LoRA rank, learning rate, batch size, and target layer configurations.
55

66
## Setup on the H100
77

8-
**1. Clone the repo and install dependencies**
8+
**1. Clone the repo, install dependencies, and activate the venv**
99

1010
```bash
1111
git clone <repo-url> && cd voice
1212
uv sync
13+
source .venv/bin/activate
1314
```
1415

1516
**2. Set environment variables**
@@ -24,15 +25,15 @@ WANDB_API_KEY=...
2425
**3. Log in to Hugging Face and W&B**
2526

2627
```bash
27-
uv run huggingface-cli login
28-
uv run wandb login
28+
huggingface-cli login
29+
wandb login
2930
```
3031

3132
**4. Verify the grid looks correct**
3233

3334
```bash
3435
cd sweep
35-
uv run python sweep.py --dry-run
36+
python sweep.py --dry-run
3637
```
3738

3839
## Running the sweep
@@ -42,9 +43,9 @@ Start a tmux session so the sweep survives SSH disconnection:
4243
```bash
4344
tmux new -s sweep
4445
cd sweep
45-
uv run python sweep.py
46+
python sweep.py
4647
# Override GPU if needed (default is device 3):
47-
# uv run python sweep.py --device 0
48+
# python sweep.py --device 0
4849
# Ctrl+B, D → detach (safe to close laptop)
4950
# tmux attach -t sweep → reconnect later
5051
```
@@ -57,7 +58,7 @@ Progress is logged to `sweep.log` and to the W&B project `VOICE`.
5758
it will skip completed runs and retry failed ones:
5859

5960
```bash
60-
uv run python sweep.py
61+
python sweep.py
6162
```
6263

6364
## Outputs

sweep/sweep.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
1010
Usage (inside tmux on the H100)::
1111
12-
uv run python sweep.py
13-
uv run python sweep.py --dry-run # print grid without training
14-
uv run python sweep.py --device 0 # override GPU (default: 3)
12+
python sweep.py
13+
python sweep.py --dry-run # print grid without training
14+
python sweep.py --device 0 # override GPU (default: 3)
1515
"""
1616

1717
import argparse

0 commit comments

Comments
 (0)