#232·LLMLingua

[Bug]: XLMRobertaForTokenClassification.forward() got an unexpected keyword argument 'past_key_values'

Author: TJU-LSRCreated Dec 25, 2025Updated Jan 27, 2026
Labelsbug

Describe the bug

When I strictly followed the instructions in the README and attempted to execute SecurityLingu using the weights you provided on huggingface, I encountered the following two errors successively. To solve the first error, I deleted "use_slingua", and then encountered the second error. I think there is some bug in this.

TypeError: PromptCompressor.init() got an unexpected keyword argument 'use_slingua' XLMRobertaForTokenClassification.forward() got an unexpected keyword argument 'past_key_values'

Steps to reproduce

No response

Expected Behavior

No response

Logs

No response

Additional Information

No response