lmdeploy icon indicating copy to clipboard operation
lmdeploy copied to clipboard

[Bug] internvl 4B awq推理 Engine loop failed with error: module 'triton.language' has no attribute 'inline_asm_elementwise'

Open Mrgengli opened this issue 1 year ago • 3 comments

Checklist

  • [X] 1. I have searched related issues but cannot get the expected help.
  • [X] 2. The bug has not been fixed in the latest version.
  • [X] 3. Please note that if the bug-related issue you submitted lacks corresponding environment info and a minimal reproducible demo, it will be challenging for us to reproduce and resolve the issue, reducing the likelihood of receiving feedback.

Describe the bug

i have install triton-2.3.1,lmdeploy==0.6.1,but got the error below: image

Reproduction

1

Environment

1

Error traceback

No response

Mrgengli avatar Oct 09 '24 07:10 Mrgengli

Pls share the information after executing lmdeploy check_env

lvhan028 avatar Oct 09 '24 09:10 lvhan028

thanks for your reply! this is the env below: image

Mrgengli avatar Oct 09 '24 09:10 Mrgengli

You were still using triton2.1.0. Please make sure the correct triton version was installed.

AllentDan avatar Oct 10 '24 02:10 AllentDan

@AllentDan which is the right version please?i have tried deferent version,but other problem is happend. image

Mrgengli avatar Oct 22 '24 12:10 Mrgengli

As lmdeploy check_env shows, you were using triton 2.1. Please install triton 2.3.0 correctly.

Or, you can use docker env. https://hub.docker.com/r/openmmlab/lmdeploy/tags

AllentDan avatar Oct 23 '24 02:10 AllentDan

@AllentDan I have correctly installed triton 2.3.0,but another error comes. image

Mrgengli avatar Oct 23 '24 12:10 Mrgengli

Gcc 4.8.5 is not compatible with your triton environment.

We run a simple add kernel as the environment check before launching our engine.

https://github.com/InternLM/lmdeploy/blob/main/lmdeploy/pytorch/check_env/triton_custom_add.py

Please make sure that custom_add can be used in your environment.

grimoire avatar Oct 24 '24 02:10 grimoire

@grimoire I have successfully run triton_custom_add.py,but still got the same error. image

Mrgengli avatar Oct 24 '24 02:10 Mrgengli

This Error comes from custom_add

https://github.com/InternLM/lmdeploy/blob/4492df812363d112aed9151a3ff7e26a654d36ea/lmdeploy/pytorch/check_env/init.py#L77-L81

Please double check custom_add and make sure the code above can be used.

grimoire avatar Oct 24 '24 02:10 grimoire

@grimoire I have run custom_add and got the error below.could you tell me how to solve it please? image

Mrgengli avatar Oct 24 '24 03:10 Mrgengli

Gcc 4.8.5 is not compatible with your triton environment.

grimoire avatar Oct 24 '24 03:10 grimoire

@AllentDan hello,why I can not successfully pull the docker? image

Mrgengli avatar Oct 24 '24 12:10 Mrgengli

@grimoire @AllentDan I have successfully run the awq model since I change the right version of gcc.Thanks for all your reply.

Mrgengli avatar Oct 24 '24 12:10 Mrgengli