Skip to content

Commit 4241579

Browse files
authored
Output all token text (#61)
output all token text
1 parent cd2ee1e commit 4241579

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

run_interactive.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,8 @@ def main(argv):
156156

157157
print("---- All output tokens.")
158158
print(sampled_tokens_list)
159+
print("---- All output text.")
160+
print(vocab.tokenizer.decode(sampled_tokens_list))
159161

160162
if _PROFILING_OUTPUT.value:
161163
jax.profiler.stop_trace()

0 commit comments

Comments
 (0)