llmcompressor.transformers.sparsification
Objects, classes, and methods for applying sparsification algorithms to Hugging Face transformers flows
Modules:
Functions:
-
get_processor_name_from_model
–Get a processor/tokenizer source used for both student and teacher, assuming
get_processor_name_from_model
Get a processor/tokenizer source used for both student and teacher, assuming that they could be shared
Parameters:
-
student
Module
) –the student model
-
teacher
Optional[Module]
) –the teacher model
Returns:
-
str
–the source for the processor/tokenizer shared between teacher and model