Skip to content

Commit 1b594aa

Browse files
committed
refactor: exceptions
1 parent 5b67b13 commit 1b594aa

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

vllm/model_executor/models/jina_embeddings_v4.py

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -340,11 +340,6 @@ def pooler(
340340

341341
def load_weights(self, weights: Iterable[tuple[str, torch.Tensor]]):
342342
"""Load weights with validation and error handling."""
343-
try:
344-
loader = AutoWeightsLoader(self)
345-
loaded_weights = loader.load_weights(weights, mapper=self.weight_mapper)
346-
logger.info(f"Successfully loaded {len(loaded_weights)} weight tensors")
347-
return loaded_weights
348-
except Exception as e:
349-
logger.error(f"Error loading weights: {e}")
350-
raise
343+
loader = AutoWeightsLoader(self)
344+
loaded_weights = loader.load_weights(weights, mapper=self.weight_mapper)
345+
return loaded_weights

0 commit comments

Comments
 (0)