Skip to content

Commit

Permalink
Update logprobs to vocab size
Browse files Browse the repository at this point in the history
  • Loading branch information
XkunW authored Sep 4, 2024
1 parent d10758d commit f1b3360
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/logits/logits.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
model="Meta-Llama-3.1-8B-Instruct",
prompt="Where is the capital of Canada?",
max_tokens=1,
logprobs=32000, # Set to model vocab size to get logits
logprobs=128256, # Set to model vocab size to get logits
)

print(completion.choices[0].logprobs)

0 comments on commit f1b3360

Please sign in to comment.