manueldeprada HF Staff commited on
Commit
8f67839
·
1 Parent(s): 880ed7e

Initial commit

Browse files
Files changed (1) hide show
  1. README.md +3 -3
README.md CHANGED
@@ -64,9 +64,9 @@ gen_out = model.generate(
64
  return_dict_in_generate=True,
65
  trust_remote_code=True
66
  )
67
- print(f"Generated text: {tokenizer.batch_decode(gen_out.sequences, skip_special_tokens=True)}")
68
- print(f"Sampling scores: {gen_out.scores}")
69
- print(f"Model log probabilities: {gen_out.logps}")
70
  ```
71
 
72
  ## Algorithm
 
64
  return_dict_in_generate=True,
65
  trust_remote_code=True
66
  )
67
+ print(f"Generated text: {tokenizer.batch_decode(gen_out['sequences'], skip_special_tokens=True)}")
68
+ print(f"Sampling scores: {gen_out['scores']}")
69
+ print(f"Model log probabilities: {gen_out['logps']}")
70
  ```
71
 
72
  ## Algorithm