LLMLingua
LLMLingua copied to clipboard
LLMLingua doesn't work on CPU as device_map
Hi. I've been trying to use LLM Lingua on CPU Linux Machine. When I start by python file. it just stops like the attached screenshot
The code I'm using is as simple as following:
PromptCompressor(device_map="cpu")
Hi @MrTBH, it looks like out of memory. You might want to try using a smaller model like lgaalves/gpt2-dolly or a quantized version of the model.