Commit 6b8822e
Sweeps: Add notes to Sweeps walkthrough and
Description
-----------
Add warnings next to `wandb.agent()` in both the tutorial and
`wandb.agent()` doc about guarding your `wandb.sweep` and `wandb.agent`
calls with `if __name__ == '__main__':` if you're using
`multiprocessing`, along with links to official documentation about it.
`guides/sweeps/walkthrough/`:
<img width="1020" height="516" alt="Screenshot 2025-08-26 at 10 54 07"
src="https://github.com/user-attachments/assets/6285357d-219b-46c7-814d-667445385f73"
/>
`guides/sweeps/start-sweep-agents/`:
<img width="1029" height="1227" alt="Screenshot 2025-08-26 at 10 53 57"
src="https://github.com/user-attachments/assets/e1afac2d-5fe3-4df7-b420-9a5e4ad2c14b"
/>
Related issues
-----------
- Fixes https://wandb.atlassian.net/browse/WB-22363
<!-- preview-links-comment -->
📄 **[View preview links for changed
content](#1555 (comment)
---------
Co-authored-by: Noah Luna <15202580+ngrayluna@users.noreply.github.com>wandb.agent() docs about guarding main when using multiprocessing (#1555)1 parent 73d26b6 commit 6b8822e
2 files changed
Lines changed: 32 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
44 | 58 | | |
45 | 59 | | |
46 | 60 | | |
| |||
71 | 85 | | |
72 | 86 | | |
73 | 87 | | |
74 | | - | |
| 88 | + | |
75 | 89 | | |
76 | 90 | | |
77 | 91 | | |
| |||
86 | 100 | | |
87 | 101 | | |
88 | 102 | | |
89 | | - | |
| 103 | + | |
90 | 104 | | |
91 | 105 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
112 | | - | |
| 112 | + | |
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
118 | 132 | | |
119 | 133 | | |
120 | 134 | | |
| |||
126 | 140 | | |
127 | 141 | | |
128 | 142 | | |
129 | | - | |
130 | | - | |
| |||
0 commit comments