Commit
·
8f67839
1
Parent(s):
880ed7e
Initial commit
Browse files
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
|
| 68 |
-
print(f"Sampling scores: {gen_out
|
| 69 |
-
print(f"Model log probabilities: {gen_out
|
| 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
|