Remove unnecessary load_weights methods (#44589)
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
This commit is contained in:
@@ -254,5 +254,6 @@ class JinaEmbeddingsV5Model(Qwen3ForCausalLM, VllmModelForPooling):
|
||||
tensor = tensor + (lora_B @ lora_A) * scaling
|
||||
yield name, tensor
|
||||
|
||||
loaded = self.model.load_weights(_merge_weights(weights))
|
||||
return {f"model.{name}" for name in loaded}
|
||||
loader = AutoWeightsLoader(self.model, ignore_unexpected_prefixes=["lm_head."])
|
||||
weights = _merge_weights(weights)
|
||||
return loader.load_weights(weights, mapper=self.model.hf_to_vllm_mapper)
|
||||
|
||||
Reference in New Issue
Block a user