File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1555,7 +1555,7 @@ def logit_bias_processor(
15551555 )
15561556 token_offset = len (prompt_tokens ) + returned_tokens
15571557 logits = self ._scores [token_offset - 1 , :]
1558- current_logprobs = Llama .logits_to_logprobs (logits )
1558+ current_logprobs = Llama .logits_to_logprobs (logits ). tolist ()
15591559 sorted_logprobs = list (
15601560 sorted (
15611561 zip (current_logprobs , range (len (current_logprobs ))),
@@ -1674,7 +1674,7 @@ def logit_bias_processor(
16741674 )
16751675 token_offset = len (prompt_tokens ) + returned_tokens - 1
16761676 logits = self ._scores [token_offset , :]
1677- current_logprobs = Llama .logits_to_logprobs (logits )
1677+ current_logprobs = Llama .logits_to_logprobs (logits ). tolist ()
16781678 sorted_logprobs = list (
16791679 sorted (
16801680 zip (current_logprobs , range (len (current_logprobs ))),
You can’t perform that action at this time.
0 commit comments