File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -202,8 +202,7 @@ def remove_lora(self, lora_id: int) -> bool:
202
202
raise ValueError (f"{ type (self )} does not support LoRA" )
203
203
204
204
def pin_lora (self , lora_id : int ) -> bool :
205
- return ValueError (
206
- f"{ type (self )} does not support LoRA" ) # type: ignore
205
+ raise ValueError (f"{ type (self )} does not support LoRA" )
207
206
208
207
def list_loras (self ) -> Set [int ]:
209
208
raise ValueError (f"{ type (self )} does not support LoRA" )
@@ -398,7 +397,7 @@ def execute_model(
398
397
399
398
model_input , worker_input , kwargs = inputs
400
399
num_steps = worker_input .num_steps
401
- if ( execute_model_req is not None and execute_model_req .spec_step_idx ) :
400
+ if execute_model_req is not None and execute_model_req .spec_step_idx :
402
401
kwargs ["spec_step_idx" ] = execute_model_req .spec_step_idx
403
402
404
403
self .execute_worker (worker_input )
You can’t perform that action at this time.
0 commit comments