LLMLingua icon indicating copy to clipboard operation
LLMLingua copied to clipboard

[Question]: When I changed the target token, the code reported an error

Open macheng6 opened this issue 1 year ago • 1 comments

Describe the issue

In the LLMLingua project, I attempted to use the qwen model instead of modelname and oai_tokenzier in the code, when the targte token is 150, the code runs normally. But when I changed this parameter, the code reported an error: The expanded size of the tensor (270) must match the existing size (298) at non-singleton dimension 0. Target sizes: [270]. Tensor sizes: [298] I tried to change the target token parameter, but still reported an error.

macheng6 avatar Apr 17 '24 03:04 macheng6

Hi @macheng6, thanks for your support.

We'll address this issue. Could you provide more details, such as the specific prompt and compressor model you used? This information will help us to reproduce and resolve the issue more effectively.

iofu728 avatar Apr 18 '24 07:04 iofu728