ML training monitor. Wraps your training script, streams output, and gives some charts. Quick and easy. No Wandb, no changes to your code, just reading from terminal output.
Install first:
curl -fsSL https://raw.githubusercontent.com/Malav-P/mlobs/main/install.sh | shThen run your training script:
mlc run python train.py --lr 1e-3
# OR
mlc run python main.py
# OR
mlc run <whatever your command is>- Run data is stored at
~/.mlc/runs - To guarantee that your metrics are captured, print in jsonl format:
print(json.dumps({
"step": global_step,
"epoch": epoch,
"loss": round(loss, 6),
"acc": round(acc, 6),
"lr": round(lr, 6),
"grad_norm": round(float(np.linalg.norm(grad)), 6),
}),
flush=True)sudo rm /usr/local/bin/mlc
rm -rf ~/.mlc/runs