How do I get notified when my ML training finishes?
POST to your Lert link right after the training loop. Drop the final accuracy or loss in the body and your iPhone buzzes the second the run ends — in about a second. No account, no API keys, no SDK. Setup takes under 30 seconds.
Training runs can chew through hours on a GPU, and refreshing a terminal to see if the loss curve flattened is a poor use of your day. Better to have the run buzz your phone the moment it's done — ideally with the final metric so you know if it's worth looking at. Lert makes that one line: your unique link is the credential, so there's no auth and nothing extra to install alongside your stack.
Set it up in under 30 seconds
- Download the app. Open it once — there's no account to create.
- Copy your link. A private link like
https://lert.dev/p/your-idis on screen; one tap copies it. - POST after the training loop. Include final accuracy or loss so the buzz tells you the result.
Start the run, step away, and your phone buzzes with the result — even locked in your pocket.
The code
import requests for epoch in range(EPOCHS): train_one_epoch(model, loader) # your training step acc = evaluate(model, val_loader) requests.post("https://lert.dev/p/your-id", json={ "title": "Training finished", "body": f"{EPOCHS} epochs · val acc {acc:.3f}" })
No headers beyond JSON, no auth token, no SDK. Works the same whether you're in PyTorch, TensorFlow, or a plain loop. Running on a remote box or in a notebook? The line is identical — the request just needs outbound internet.
Long sweeps: put the POST inside a try/finally (or your trainer's on-end callback) so you also get buzzed if the run crashes or is killed — often the thing you most need to hear about with GPU time on the clock.
Related things people wire up
- When a Python script finishes
- When a long-running script finishes
- When a scraper finishes
- Long-script notifications
- Full Python push guide
It's free for one channel and 50 notifications a day; Lert Pro is $2.99/month for unlimited. See the docs for the full API.
Send your first one in 30 seconds.
Download Lert, copy your link, POST to it. Your iPhone buzzes.