Skip to content

Strange error messages after installation on clean Windows 11 #1062

Closed

Description

@gleberof

System Info

  • CPU i513600k
  • GPU RTX49090
  • TensorRT-LLM v0.7.1
  • OS Windows 11 Home

Who can help?

@byshiue @juney-nvidia

Information

  • The official example scripts
  • My own modified scripts

Tasks

  • An officially supported task in the examples folder (such as GLUE/SQuAD, ...)
  • My own task or dataset (give details below)

Reproduction

Having clean windows 11 home and following the instructions:
https://github.com/NVIDIA/TensorRT-LLM/blob/main/windows/README.md

python convert_checkpoint.py --model_dir .\model\Llama-2-13b-chat-hf --output_dir .\tllm_checkpoint_1gpu_fp16 --dtype float16

Getting wierd messages:
image

image

image

image

What I'm doing wrong?

Expected behavior

All shoud work without wierd erros

actual behavior

Dropping the errors, not convering models

additional notes

Python output after crash

Traceback (most recent call last):
  File "C:\Users\erofm\projects\TensorRT-LLM\examples\llama\convert_checkpoint.py", line 27, in <module>
    from tensorrt_llm.models.llama.weight import (load_from_fp8_llama,
ImportError: cannot import name 'load_from_fp8_llama' from 'tensorrt_llm.models.llama.weight' (C:\Program Files\Python310\lib\site-packages\tensorrt_llm\models\llama\weight.py)

Activity

  1. added
    bug
    on Feb 7, 2024
  2. changed the title [-]Strang error messages after installation on clean Windows 11[/-] [+]Strange error messages after installation on clean Windows 11[/+] on Feb 8, 2024
  3. gleberof commented on Feb 8, 2024

    @gleberof
    Author

    I manually replaced the files in C:\Program Files\Python310\Lib\site-packages\nvidia\cudnn from version 8 (installed automatically with tensorrt-llm wheel) by newer version from tar file https://developer.nvidia.com/cudnn-downloads?target_os=Windows&target_arch=x86_64&target_version=Agnostic&cuda_version=12

    v9

    the error messages are gone.

    But the export error still remain - trying to setup docker and build package from scratch

  4. gleberof commented on Feb 9, 2024

    @gleberof
    Author

    After some struggle manage to build the docker.

    main brunch are not buildable

    trying to build from rel branch

  5. self-assigned this
    on Feb 20, 2024
  6. tp5uiuc commented on Feb 20, 2024

    @tp5uiuc
    Collaborator

    This maybe because torch and tensorrt are shipped with their own cuDNN libraries, and there are symbol clashes. Clicking OK makes them go away, but a more saner fix is the following

    python -m pip install --upgrade pip
    python -m pip install nvidia-cudnn-cu11==8.9.4.25 --no-cache-dir
    python -m pip install --pre --extra-index-url https://pypi.nvidia.com/ tensorrt==9.2.0.post12.dev5 --no-cache-dir
    python -m pip uninstall -y nvidia-cudnn-cu11
    

    Can you try executing this before doing pip install tensorrt_llm --extra-index-url https://pypi.nvidia.com/ --extra-index-url https://pypi.nvidia.com/ --extra-index-url https://download.pytorch.org/whl/cu121?

  7. ryomo commented on Feb 21, 2024

    @ryomo

    I had the same issue which has been fixed by your commands.
    Thank you !

  8. tp5uiuc commented on Feb 27, 2024

    @tp5uiuc
    Collaborator

    Marking this as closed, please re-open if you re-encounter the bug :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions