You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ValueError: You are trying to save a non contiguous tensor: `transformer.layers.0.mlp.gate.weights_scaling_factor` which is not allowed. It either means you are trying to save tensors which are reference of each other in which case it's recommended to save only the full tensors, and reslice at load time, or simply call `.contiguous()` on your tensor to pack it before saving.
I can fix this error by following the modifications below:
RuntimeError: Encounter error 'The value updated is not the same shape as the original. Updated: (8192, 6144), original: (8192, 1536)'for parameter 'transformer.layers.0.attention.qkv.weight'
Activity
Hukongtao commentedon Mar 24, 2024
Do you test your code before releasing it?
byshiue commentedon Mar 25, 2024
Please fill the info to help reproduce the issue. We have tests before releasing.
Hukongtao commentedon Mar 25, 2024
I followed the official documentation:

https://github.com/NVIDIA/TensorRT-LLM/blob/main/examples/qwen/README.md#int4-gptq
I encountered the first error when converting the model weights:
I can fix this error by following the modifications below:

TensorRT-LLM/examples/qwen/convert_checkpoint.py
Lines 250 to 254 in 66ca337
Then, I try to build the engine:
Then I got:

I don't know how to fix it
Hukongtao commentedon Mar 25, 2024
One more point to add,
under commit 4bb65f2, it can run successfully.
Hukongtao commentedon Mar 26, 2024
Looking forward to your reply @byshiue
adamydwang commentedon Mar 27, 2024
I suffered this problem too.
qwen-72b-chat, tp=4, smoothquant
ZhangJinxin1 commentedon Apr 3, 2024
I suffered this problem too.
qwen-72b-chat, tp=8, smoothquant
HermitSun commentedon Apr 9, 2024
+1
qwen-72b-chat, tp=4, gptq
Hukongtao commentedon Apr 10, 2024
Is the error message you encountered the same as mine?
HermitSun commentedon Apr 10, 2024
Yes. And I used same cmds to build the engine under trt-llm 0.9.0.dev2024040200.
Hukongtao commentedon Apr 10, 2024
@byshiue @Tracin Do you have any plan to fix this bug?
Hukongtao commentedon Apr 10, 2024
If I modify the code like this, the code run successfully. But the inference result
(run.py)is weried.Tracin commentedon Apr 17, 2024
@Hukongtao Sure, I am working on this, I will keep you posted.
Tracin commentedon Apr 17, 2024
@Hukongtao @HermitSun
I will push a MR to fix this. If you want to fix it in advance, please try to replace this section to:
Tracin commentedon Apr 17, 2024
@adamydwang @ZhangJinxin1
As for SmoothQuant problem, do we have an issues on Github? Let's move to there.
HermitSun commentedon Apr 17, 2024
It works in my situation. Thank you for your effort!
Hukongtao commentedon Apr 17, 2024
Thank you for your work!