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
Copy file name to clipboardExpand all lines: README.md
+26-1Lines changed: 26 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -54,7 +54,32 @@ It uses Ray Train + Accelerate for distributed training.
54
54
55
55
Unless you overwrote `output_dir`, results will be stored in `outputs/training_type/job_name/`
56
56
57
-
### 3. Bundle Checkpoint for LEAP
57
+
### 3. (Optional) Experiment Tracking with Weights & Biases
58
+
59
+
To enable experiment tracking (using [Weights & Biases](https://wandb.ai)):
60
+
61
+
- Set `wandb_logging=True` in `config.py` in your `user_config` overrides or default configs.
62
+
-**Offline mode (default)**: If no `WANDB_API_KEY` is set, wandb logs locally to `./wandb/` directory. No API key needed!
63
+
-**Online mode**: Set the `WANDB_API_KEY` environment variable to sync to wandb.ai dashboard:
64
+
65
+
```bash
66
+
export WANDB_API_KEY=your_api_key # optional; for online syncing to wandb.ai
67
+
```
68
+
69
+
You can also customize the project name (defaults to `"leap-finetune"`):
70
+
71
+
```bash
72
+
export WANDB_PROJECT=my-custom-project # optional; defaults to "leap-finetune"
73
+
```
74
+
75
+
After training, view your metrics:
76
+
77
+
-**Online mode**: View at `https://wandb.ai/<your-entity>/<project-name>/runs/<run-name>`
78
+
-**Offline mode**: Sync later with `wandb sync ./wandb/offline-run-*` or view locally
79
+
80
+
Runs are named after your `job_name` and metrics are reported via TRL/Transformers. Training metrics (loss, learning rate, etc.) are logged every `logging_steps` (default: 10), and evaluation metrics are logged at the end of each epoch.
81
+
82
+
### 4. Bundle Checkpoint for LEAP
58
83
59
84
When training is done, you can bundle your output checkpoint with `leap-bundle` to use it directly within LEAP. Checkout our [Quick Start guide](https://leap.liquid.ai/docs/leap-bundle/quick-start?utm_source=github&utm_medium=link&utm_campaign=LEAP&utm_content=general).
0 commit comments