fastchat.utils
Module Contents
Classes
Fake file-like stream object that redirects writes to a logger instance. |
Functions
Disable the redundant torch default initialization to accelerate model creation. |
|
|
Check whether the text violates OpenAI moderation API. |
- class fastchat.utils.StreamToLogger(logger, log_level=logging.INFO)[source]
Fake file-like stream object that redirects writes to a logger instance.