Skip to content

Commit

Permalink
change logger error to raise error
Browse files Browse the repository at this point in the history
Signed-off-by: shaochangxu.scx <[email protected]>
  • Loading branch information
shaochangxu.scx committed Jan 10, 2025
1 parent ebbbd25 commit 390ce05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vllm/model_executor/layers/fused_moe/fused_moe.py
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,7 @@ def fused_experts_impl(hidden_states: torch.Tensor,
elif hidden_states.dtype == torch.float32:
compute_type = tl.float32
else:
logger.error(f"Unsupported compute_type for fused_experts_impl: {hidden_states.dtype} !")
raise ValueError(f"Unsupported compute_type: {hidden_states.dtype}")

if inplace:
out_hidden_states = hidden_states
Expand Down

0 comments on commit 390ce05

Please sign in to comment.