Skip to content

What is the right way to access prompt/model generation (was .text in 0.0.63)? #616

Answered by Harsha-Nori
dchichkov asked this question in Q&A
Discussion options

You must be logged in to vote

@dchichkov , you can access the fully built up state of any LM object just by calling str(lm). For example:

Is this what you're looking for? The output of str(lm) is just a standard Python string, so you can manipulate it however you like.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@dchichkov
Comment options

@Harsha-Nori
Comment options

Answer selected by dchichkov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants