What is the right way to access prompt/model generation (was .text in 0.0.63)? #616
-
Hi. A question. I've migrated my code to 0.1 from 0.0.63. And .text variable that used to contain complete prompt is no longer available :-/ . What is the right way to access completed prompt / generation? (I'm validating these and then using validated prompts/generations to finetune the LLM.) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
@dchichkov , you can access the fully built up state of any LM object just by calling Is this what you're looking for? The output of |
Beta Was this translation helpful? Give feedback.
@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.