Add SLURM training scripts and fix Comet.ml logging - #15
Conversation
️✅ There are no secrets present in this pull request anymore.If these secrets were true positive and are still valid, we highly recommend you to revoke them. 🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request. |
- Add train.sh SLURM batch script for standard and GP training - Add setup_venv.sh for uv-based venv setup on remote server - Fix Comet.ml empty tags error (skip add_tags when tags=[]) - Add val_standard_nll and val_gp_nll to log_validation_metrics - Fix train_masked_config.yaml and train_masked_gp_config.yaml Comet placeholders - Set gp_lengthscale 0.1→5.0, lambda_gp 0.0→0.1, batch_size 1→8, use_kronecker_gp=true in GP config Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
fc806fb to
9b343c8
Compare
…aining Save total_steps in checkpoint so scheduler can be reconstructed with identical warmup/annealing boundaries when resuming. Previously resuming with different epochs config would miscalculate LR schedule. Also bump epochs 10→100 in GP config. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
When training for another N epochs from a fully-converged checkpoint, the saved scheduler state has LR near zero. reset_lr_schedule=true ignores checkpoint optimizer/scheduler state and starts a fresh cosine cycle from the trained weights. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Two bugs when using reset_lr_schedule=True: 1. epochs:100 + start_epoch=100 → range(100,100) empty, no training Fix: epochs:200 so range(100,200) = 100 new epochs 2. total_steps calculated from config.epochs (200) but only 100 epochs will run → cosine schedule only half-completed at end of run Fix: use remaining_epochs = config.epochs - start_epoch for total_steps Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
| tags: ['SZARY', 'GP', 'kronecker', 'lambda 0.1'] | ||
| comet_project: multiplex-image-model | ||
| comet_workspace: micha-zmys-owski |
There was a problem hiding this comment.
| tags: ['SZARY', 'GP', 'kronecker', 'lambda 0.1'] | |
| comet_project: multiplex-image-model | |
| comet_workspace: micha-zmys-owski | |
| tags: ... | |
| comet_project: ... | |
| comet_workspace: ... |
| comet_project: multiplex-image-model | ||
| comet_workspace: micha-zmys-owski # optional, can also be set via COMET_WORKSPACE env var |
There was a problem hiding this comment.
| comet_project: multiplex-image-model | |
| comet_workspace: micha-zmys-owski # optional, can also be set via COMET_WORKSPACE env var | |
| comet_project: ... | |
| comet_workspace: ... # optional, can also be set via COMET_WORKSPACE env var |
| if [ -z "$1" ]; then | ||
| echo "Usage: sbatch train.sh <config_file> [gp]" | ||
| echo " config_file: path to YAML config" | ||
| echo " gp: pass 'gp' as second arg to use GP training script" |
There was a problem hiding this comment.
That file is not needed in the repo
Summary
train.shSLURM batch script for submitting standard and GP training jobs on szarysetup_venv.shfor uv-based venv setup on remote serveradd_tagswhentags=[])val_standard_nllandval_gp_nlltolog_validation_metrics(required by GP training script)comet_project,comet_workspace)gp_lengthscale0.1→5.0,lambda_gp0.0→0.1,batch_size1→8,use_kronecker_gp=true,epochs10→100total_stepsin checkpoint and reconstruct scheduler with original boundaries on resume, preventing LR miscalculation when continuing training across multiple jobsTest plan
🤖 Generated with Claude Code