Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question]: How to combine longllmlingua and llmlingua2 ? #162

Open
qminh369 opened this issue Jun 5, 2024 · 1 comment
Open

[Question]: How to combine longllmlingua and llmlingua2 ? #162

qminh369 opened this issue Jun 5, 2024 · 1 comment
Assignees
Labels
question Further information is requested

Comments

@qminh369
Copy link

qminh369 commented Jun 5, 2024

Describe the issue

No response

@qminh369 qminh369 added the question Further information is requested label Jun 5, 2024
@iofu728 iofu728 self-assigned this Jun 6, 2024
@iofu728
Copy link
Contributor

iofu728 commented Jun 6, 2024

Hi @qminh369, thanks for your support in LLMLingua. Currently, the pip package does not support using LongLLMLingua and LLMLingua-2 together. However, you can use them separately:

  1. First, use LongLLMLingua for coarse-level compression.
use_token_level_filter=False,
  1. Then, use LLMLingua-2 for token-level compression.
use_context_level_filter=False,
use_token_level_filter=True,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants