Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
Back to tool/Back to issues
#229·LLMLingua

[Question]: How to obtain the masked and kept tokens?

Author: jamesnulliuCreated Sep 9, 2025Updated Jul 5, 2026
Labelsquestion

Describe the issue

I noticed that in PromptCompressor.get_compressed_input, there is a variable called need_idx. Is that all I need?

Source: microsoft/LLMLingua

View original on GitHubView discussion on GitHub