-
|
Hi all, developer on a project that uses Whisper We are trying to use node to monitor the python output from the cli and are unable to get the real time output from python. ie, the only data packets are sent via stdout at the end of the execution. As someone without much python experience, is this a limitation of our implementation or something that requires a custom implementation of whisper with ipc messaging bolted on? Really excited to see where this project goes! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
|
To print out the tokens as they are being decode, you can add a line after and before this line: prev_token_len = tokens.shape[-1] #add this
# expand the tokens tensor with the selected next tokens
tokens, completed = self.decoder.update(tokens, logits, sum_logprobs)
print(self.tokenizer.decode(tokens[0, prev_token_len:])) #add thisThis does not print the timestamps, you'll need additional lines to decode the timestamps tokens separately. |
Beta Was this translation helpful? Give feedback.
-
|
Would this be a good verbose option to monitor in stdout? Seems very useful, even if just to help educate the users about internal operation. |
Beta Was this translation helpful? Give feedback.
To print out the tokens as they are being decode, you can add a line after and before this line:
This does not print the timestamps, you'll need additional lines to decode the timestamps tokens separately.