NVIDIA / ChatRTX

A developer reference project for creating Retrieval Augmented Generation (RAG) chatbots on Windows using TensorRT-LLM
Other
2.74k stars 330 forks source link

already passed the verify_install.py but cant pass the app.py "ImportError: DLL load failed while importing tensorrt: 找不到指定的模块。" #63

Open beeinwind opened 5 months ago

beeinwind commented 5 months ago

(ChatRTX) E:\chat1\trt-llm-rag-windows>python app.py E:\chat1\ChatRTX\lib\site-packages\transformers\utils\generic.py:441: UserWarning: torch.utils._pytree._register_pytree_node is deprecated. Please use torch.utils._pytree.register_pytree_node instead. _torch_pytree._register_pytree_node( Traceback (most recent call last): File "E:\chat1\trt-llm-rag-windows\app.py", line 31, in from trt_llama_api import TrtLlmAPI File "E:\chat1\trt-llm-rag-windows\trt_llama_api.py", line 42, in from utils import (DEFAULT_HF_MODEL_DIRS, DEFAULT_PROMPT_TEMPLATES, File "E:\chat1\trt-llm-rag-windows\utils.py", line 22, in from tensorrt_llm.builder import get_engine_version File "E:\chat1\ChatRTX\lib\site-packages\tensorrt_llm__init.py", line 32, in import tensorrt_llm.functional as functional File "E:\chat1\ChatRTX\lib\site-packages\tensorrt_llm\functional.py", line 26, in import tensorrt as trt File "E:\chat1\ChatRTX\lib\site-packages\tensorrt\init.py", line 18, in from tensorrt_bindings import * File "E:\chat1\ChatRTX\lib\site-packages\tensorrt_bindings\init__.py", line 71, in from .tensorrt import * ImportError: DLL load failed while importing tensorrt: 找不到指定的模块。

anujj commented 5 months ago

@beeinwind: can you please share the pip freeze output, i wanted to check if the trt-llm in installed correctly

anujj commented 5 months ago

@beeinwind Also did you install the Microsoft MIP as mentioned in the readme file ?