Julian Bilcke commited on
Commit ·
50faf96
1
Parent(s): e4af62c
fix
Browse filesFiles changed (3)
233 unmodified lines234235236237238239240233 unmodified linesself.project_tabs["train_tab"].components["num_gpus"],self.project_tabs["train_tab"].components["precomputation_items"],self.project_tabs["train_tab"].components["lr_warmup_steps"],self.project_tabs["train_tab"].components["auto_resume_checkbox"]])233 unmodified lines234235236237238239240233 unmodified linesself.project_tabs["train_tab"].components["num_gpus"],self.project_tabs["train_tab"].components["precomputation_items"],self.project_tabs["train_tab"].components["lr_warmup_steps"],self.project_tabs["train_tab"].components["auto_resume"]])
1077 unmodified lines107810791080108110821083108465 unmodified lines11501151115211531154115511561077 unmodified lines"learning_rate": ui_state.get("learning_rate", DEFAULT_LEARNING_RATE),"save_iterations": ui_state.get("save_iterations", DEFAULT_SAVE_CHECKPOINT_EVERY_N_STEPS),"preset_name": ui_state.get("training_preset", list(TRAINING_PRESETS.keys())[0]),"repo_id": "" # Default empty repo ID}}logger.info("Created default session from UI state for recovery")65 unmodified lines"learning_rate": params.get('learning_rate', DEFAULT_LEARNING_RATE),"save_iterations": params.get('save_iterations', DEFAULT_SAVE_CHECKPOINT_EVERY_N_STEPS),"training_preset": params.get('preset_name', list(TRAINING_PRESETS.keys())[0]),"auto_resume_checkbox": params.get("auto_resume", DEFAULT_AUTO_RESUME)})# Check if we should auto-recover (immediate restart)1077 unmodified lines1078107910801081108210831084108565 unmodified lines11511152115311541155115611571077 unmodified lines"learning_rate": ui_state.get("learning_rate", DEFAULT_LEARNING_RATE),"save_iterations": ui_state.get("save_iterations", DEFAULT_SAVE_CHECKPOINT_EVERY_N_STEPS),"preset_name": ui_state.get("training_preset", list(TRAINING_PRESETS.keys())[0]),"repo_id": "" # Default empty repo ID,"auto_resume": ui_state.get("auto_resume", DEFAULT_AUTO_RESUME)}}logger.info("Created default session from UI state for recovery")65 unmodified lines"learning_rate": params.get('learning_rate', DEFAULT_LEARNING_RATE),"save_iterations": params.get('save_iterations', DEFAULT_SAVE_CHECKPOINT_EVERY_N_STEPS),"training_preset": params.get('preset_name', list(TRAINING_PRESETS.keys())[0]),"auto_resume": params.get("auto_resume", DEFAULT_AUTO_RESUME)})# Check if we should auto-recover (immediate restart)
232 unmodified lines233234235236237238239149 unmodified lines389390391392393394395396397232 unmodified lines)with gr.Row():self.components["auto_resume_checkbox"] = gr.Checkbox(label="Automatically continue training in case of server reboot.",value=DEFAULT_AUTO_RESUME,info="When enabled, training will automatically resume from the latest checkpoint after app restart"149 unmodified lines])self.components["auto_resume_checkbox"].change(fn=lambda v: self.app.update_ui_state(auto_resume=v),inputs=[self.components["auto_resume_checkbox"]],outputs=[])232 unmodified lines233234235236237238239149 unmodified lines389390391392393394395396397232 unmodified lines)with gr.Row():self.components["auto_resume"] = gr.Checkbox(label="Automatically continue training in case of server reboot.",value=DEFAULT_AUTO_RESUME,info="When enabled, training will automatically resume from the latest checkpoint after app restart"149 unmodified lines])self.components["auto_resume"].change(fn=lambda v: self.app.update_ui_state(auto_resume=v),inputs=[self.components["auto_resume"]],outputs=[])
vms/ui/app_ui.py+1-1
vms/ui/project/services/training.py+3-2
vms/ui/project/tabs/train_tab.py+3-3