LLMLingua icon indicating copy to clipboard operation
LLMLingua copied to clipboard

Failed Compression Attempts with LLMLingua Web UI Demo

Open cws322 opened this issue 1 year ago • 1 comments

I conducted several prompt compression tests using the LLMLingua Web UI Demo (https://huggingface.co/spaces/microsoft/LLMLingua ). However, I encountered a situation where the context could not be compressed, despite testing with various compression ratios. image Could the inability to compress the context be attributed to a model-related issue?

cws322 avatar Jan 17 '24 11:01 cws322

Hi @cws322, in the HF Demo, LLMLingua assigns different compression ratios to different parts of the prompt, like instruction, contexts and question. Therefore, please place the content you wish to compress in the context section.

I hope this resolves your issue.

iofu728 avatar Jan 18 '24 13:01 iofu728