Skip to content

ModuleNotFoundError: No module named 'tensorrt_llm.bindings' #1194

@hellostronger

Description

@hellostronger

System Info

a container from FROM nvidia/cuda:11.7.1-cudnn8-devel-ubuntu22.04

Who can help?

No response

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

https://github.com/NVIDIA/TensorRT-LLM/blob/main/tensorrt_llm/executor.py line 11
import tensorrt_llm.bindings as tllm I do not understand tensorrt_llm.bindings
how can i fix the problem ModuleNotFoundError: No module named 'tensorrt_llm.bindings'

Expected behavior

ModuleNotFoundError: No module named 'tensorrt_llm.bindings' the problem not allert

actual behavior

ModuleNotFoundError: No module named 'tensorrt_llm.bindings'

additional notes

I con from annother resposity optimum-nvidia which use TensorRT-LLM, then i clone the main branch , then create a new python file just add
'''
from optimum.nvidia.pipelines import pipeline

then  it run and  the error  just like this
![image](https://github.com/NVIDIA/TensorRT-LLM/assets/48884346/0db237cc-d9a4-4cfc-b6d8-a14f951b2b94)

i  want to solve the proplem

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions