nip.utils.hugging_face#
Utility functions for Hugging Face libraries.
Functions
|
Count the number of tokens in the rollouts. |
|
Check if a model is a PEFT model by looking for the PEFT config file. |
Classes
|
Dataclass to hold token count information. |