hugohrban commited on
Commit
db72bbf
·
verified ·
1 Parent(s): 522d0fc

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -35,5 +35,5 @@ logits = model(input_ids).logits
35
  next_token_logits = logits[-1, :]
36
  next_token_probs = F.softmax(next_token_logits, dim=-1)
37
  for i in range(tokenizer.get_vocab_size(with_added_tokens=False)):
38
- print(f"{tokenizer.id_to_token(i)}: {round(100 * next_token_probs[i].item(), 2):.2f} %")
39
  ```
 
35
  next_token_logits = logits[-1, :]
36
  next_token_probs = F.softmax(next_token_logits, dim=-1)
37
  for i in range(tokenizer.get_vocab_size(with_added_tokens=False)):
38
+ print(f"{tokenizer.id_to_token(i)}: {100 * next_token_probs[i].item():.2f} %")
39
  ```