jbilcke-hf HF Staff commited on
Commit
7bce2a2
·
1 Parent(s): f5aa730

fix error regarding progress

Browse files
vms/ui/app_ui.py CHANGED
@@ -399,7 +399,9 @@ class AppUI:
399
  outputs=[
400
  self.project_tabs["train_tab"].components["status_box"],
401
  self.project_tabs["train_tab"].components["log_box"],
402
- self.project_tabs["train_tab"].components["current_task_box"] if "current_task_box" in self.project_tabs["train_tab"].components else None
 
 
403
  ]
404
  )
405
 
 
399
  outputs=[
400
  self.project_tabs["train_tab"].components["status_box"],
401
  self.project_tabs["train_tab"].components["log_box"],
402
+ self.project_tabs["train_tab"].components["current_task_box"] if "current_task_box" in self.project_tabs["train_tab"].components else None,
403
+ self.project_tabs["manage_tab"].components["download_model_btn"],
404
+ self.project_tabs["manage_tab"].components["download_checkpoint_btn"]
405
  ]
406
  )
407
 
vms/ui/models/tabs/training_tab.py CHANGED
@@ -88,9 +88,8 @@ class TrainingTab(BaseTab):
88
  gr.Markdown(model.model_display_name or "Unknown")
89
 
90
  with gr.Column(scale=2, min_width=20):
91
- progress_text = f"Step {model.current_step}/{model.total_steps}"
92
  gr.Markdown(progress_text)
93
- gr.Progress(value=model.training_progress/100)
94
 
95
  with gr.Column(scale=2, min_width=20):
96
  with gr.Row():
 
88
  gr.Markdown(model.model_display_name or "Unknown")
89
 
90
  with gr.Column(scale=2, min_width=20):
91
+ progress_text = f"Step {model.current_step}/{model.total_steps} ({model.training_progress:.1f}%)"
92
  gr.Markdown(progress_text)
 
93
 
94
  with gr.Column(scale=2, min_width=20):
95
  with gr.Row():
vms/ui/project/tabs/train_tab.py CHANGED
@@ -1201,7 +1201,12 @@ Full finetune mode trains all parameters of the model, requiring more VRAM but p
1201
  if hasattr(self.app, 'log_parser') and self.app.log_parser is not None:
1202
  current_task = self.app.log_parser.get_current_task_display()
1203
 
1204
- return message, logs, current_task
 
 
 
 
 
1205
 
1206
  def get_button_updates(self):
1207
  """Get button updates (with variant property)"""
 
1201
  if hasattr(self.app, 'log_parser') and self.app.log_parser is not None:
1202
  current_task = self.app.log_parser.get_current_task_display()
1203
 
1204
+ # Update download button texts
1205
+ manage_tab = self.app.tabs["manage_tab"]
1206
+ download_btn_text = gr.update(value=manage_tab.get_download_button_text())
1207
+ checkpoint_btn_text = gr.update(value=manage_tab.get_checkpoint_button_text())
1208
+
1209
+ return message, logs, current_task, download_btn_text, checkpoint_btn_text
1210
 
1211
  def get_button_updates(self):
1212
  """Get button updates (with variant property)"""