Optionalllmlingua2Optional LLMLingua-2 configuration.
OptionalloggerOptional logger function.
OptionalmodelOptional model-specific options.
The tokenizer to use calculating the compression rate. It needs to return a collection that exposes length.
OptionaltokenizerOptional pretrained tokenizer options. This does not refer to the oaiTokenizer!
Configuration for Transformers.js.
Options for the LLMLingua-2 factory functions.