OptionalchunkList of tokens that indicate the end of a chunk. The context will be split into chunks at these tokens.
Optional AlphadropIf true, drop consecutive tokens that are forced. This is useful to avoid keeping too many forced tokens in a row.
OptionalforceIf true, reserve a digit for forced tokens.
OptionalforceList of tokens that must be kept in the compressed prompt. These tokens will not be removed regardless of their probability.
Float value between 0 and 1 indicating the rate of compression. 0.1 means 10% of the original tokens will be kept
OptionaltargetTarget number of tokens to keep after compression.
If set, this will override the rate option.
OptionaltokenHow to convert token probabilities to word probabilities. "mean" will average the probabilities of tokens in a word, "first" will take the probability of the first token in a word.
Options for compressing prompts.