Skip to content

Commit f1b3360

Browse files
authored
Update logprobs to vocab size
1 parent d10758d commit f1b3360

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/logits/logits.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
model="Meta-Llama-3.1-8B-Instruct",
88
prompt="Where is the capital of Canada?",
99
max_tokens=1,
10-
logprobs=32000, # Set to model vocab size to get logits
10+
logprobs=128256, # Set to model vocab size to get logits
1111
)
1212

1313
print(completion.choices[0].logprobs)

0 commit comments

Comments
 (0)