hugohrban commited on
Commit
efc953f
·
verified ·
1 Parent(s): a9d5d80

Update README.md

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