Spaces:
Runtime error
Runtime error
Julian Bilcke commited on
Commit ·
0567ba0
1
Parent(s): 9000726
fix typo
Browse files1145 unmodified lines1146114711481149115011511152115311541155115611571158115911601145 unmodified linesauto_recover = True # Always auto-recover on startupif auto_recover:# Rest of the auto-recovery code remains unchangedtry:# Use the internal model_type for the actual training# But keep model_type_display for the UIresult = self.start_training(model_type=model_type_internal,lora_rank=params.get('lora_rank', DEFAULT_LORA_RANK_STR),lora_alpha=params.get('lora_alpha', DEFAULT_LORA_ALPHA_STR),train_size=params.get('train_steps', DEFAULT_NB_TRAINING_STEPS),batch_size=params.get('batch_size', DEFAULT_BATCH_SIZE),learning_rate=params.get('learning_rate', DEFAULT_LEARNING_RATE),save_iterations=params.get('save_iterations', DEFAULT_SAVE_CHECKPOINT_EVERY_N_STEPS),1145 unmodified lines1146114711481149115011511152115311541155115611571145 unmodified linesauto_recover = True # Always auto-recover on startupif auto_recover:try:result = self.start_training(model_type=model_type_internal,lora_rank=params.get('lora_rank', DEFAULT_LORA_RANK_STR),lora_alpha=params.get('lora_alpha', DEFAULT_LORA_ALPHA_STR),train_steps=params.get('train_steps', DEFAULT_NB_TRAINING_STEPS),batch_size=params.get('batch_size', DEFAULT_BATCH_SIZE),learning_rate=params.get('learning_rate', DEFAULT_LEARNING_RATE),save_iterations=params.get('save_iterations', DEFAULT_SAVE_CHECKPOINT_EVERY_N_STEPS),
vms/ui/project/services/training.py+1-4