File tree Expand file tree Collapse file tree 1 file changed +3
-12
lines changed
Expand file tree Collapse file tree 1 file changed +3
-12
lines changed Original file line number Diff line number Diff line change @@ -503,14 +503,8 @@ def ipm(seconds: float) -> float:
503503
504504 def refresh_checkpoints (self ):
505505 try :
506- model_response = self .session .post (
507- self .full_url ('refresh-checkpoints' ),
508- json = {}
509- )
510- lora_response = self .session .post (
511- self .full_url ('refresh-loras' ),
512- json = {}
513- )
506+ model_response = self .session .post (self .full_url ('refresh-checkpoints' ))
507+ lora_response = self .session .post (self .full_url ('refresh-loras' ))
514508
515509 if model_response .status_code != 200 :
516510 logger .error (f"Failed to refresh models for worker '{ self .label } '\n Code <{ model_response .status_code } >" )
@@ -522,10 +516,7 @@ def refresh_checkpoints(self):
522516
523517 def interrupt (self ):
524518 try :
525- response = self .session .post (
526- self .full_url ('interrupt' ),
527- json = {}
528- )
519+ response = self .session .post (self .full_url ('interrupt' ))
529520
530521 if response .status_code == 200 :
531522 self .state = State .INTERRUPTED
You can’t perform that action at this time.
0 commit comments