Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion examples/models/llama/runner/eager.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,11 @@ def main() -> None:
else runner.text_completion(
prompt=args.prompt,
temperature=args.temperature,
echo=True,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

out of curiousity, what does echo=True do?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When it is true, the returned token list will include prompt tokens as well.

)
)
if args.show_tokens:
print(f"Tokens: {generated_tokens}")
print(f"Generated {len(generated_tokens)} tokens: {generated_tokens}")


if __name__ == "__main__":
Expand Down
Loading