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
git pull # This should work without prompting for credentials
219
+
```
220
+
221
+
#### Using the remote training script
222
+
223
+
Once Git credentials are configured on your server, run `remote_train.sh`**from your local machine** (not on the GPU server):
192
224
193
225
```bash
194
-
#Start remote training
226
+
#From your local machine, start training on the remote GPU server
195
227
./remote_train.sh
196
228
229
+
# Kill existing training sessions and optionally start new one
230
+
./remote_train.sh --kill # or -k
231
+
197
232
# You'll be prompted for:
198
233
# - Server address (hostname or IP)
199
234
# - Username
200
-
# - Password (for SSH)
201
235
```
202
236
203
-
This script will:
204
-
1. Connect to your GPU server via SSH
205
-
2. Clone or update the repository in `~/llm-stylometry`
206
-
3. Start training in a `screen` session that persists after disconnection
207
-
4. Allow you to safely disconnect while training continues
237
+
**What this script does:** The `remote_train.sh` script connects to your GPU server via SSH and executes `run_llm_stylometry.sh --train -y` in a `screen` session. This allows you to disconnect your local machine while the GPU server continues training.
238
+
239
+
The script will:
240
+
1. SSH into your GPU server
241
+
2. Update the repository in `~/llm-stylometry` (or clone if it doesn't exist)
242
+
3. Start `run_llm_stylometry.sh --train -y` in a `screen` session
243
+
4. Exit, allowing your local machine to disconnect while training continues on the server
244
+
245
+
#### Monitoring training progress
246
+
247
+
To check on the training status, SSH into the server and reattach to the screen session:
208
248
209
-
To monitor training progress:
210
249
```bash
250
+
# From your local machine
211
251
ssh username@server
212
-
screen -r llm_training # Reattach to training session
213
-
# Press Ctrl+A, then D to detach again
252
+
253
+
# On the server, reattach to see live training output
254
+
screen -r llm_training
255
+
256
+
# To detach and leave training running, press Ctrl+A, then D
257
+
# To exit SSH while keeping training running
258
+
exit
214
259
```
215
260
216
-
### Downloading Trained Models
261
+
####Downloading results after training completes
217
262
218
-
After training completes on a remote server, use `sync_models.sh` to download the models:
263
+
Once training is complete, use `sync_models.sh`**from your local machine**to download the trained models and results:
0 commit comments