Skip to content

Commit

Permalink
style
Browse files Browse the repository at this point in the history
  • Loading branch information
Jackmin801 committed Feb 7, 2025
1 parent 64232cb commit 7c73a30
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion python/sglang/srt/managers/tokenizer_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -796,7 +796,10 @@ def _handle_batch_output(
}
)

if hasattr(recv_obj, "output_hidden_states") and len(recv_obj.output_hidden_states[i]) > 0:
if (
hasattr(recv_obj, "output_hidden_states")
and len(recv_obj.output_hidden_states[i]) > 0
):
meta_info["hidden_states"] = recv_obj.output_hidden_states[i]

if isinstance(recv_obj, BatchStrOut):
Expand Down

0 comments on commit 7c73a30

Please sign in to comment.