Skip to content

No module named 'tensorrt_llm.bindings #4458

Open
@Shegun93

Description

@Shegun93

System info
OS -- Linux
Python version -- 3.10
CUDA -- 12.4

I have tried the following steps to install/set up tensorrt_llm. All steps have been taken through official documentation

  1. Installing via pip install
    sudo apt-get -y install libopenmpi-dev && pip3 install --upgrade pip setuptools && pip3 install tensorrt_llm
    The installation was successful with no error message, but when checked for tensorrt_llm throughthe import function, the error below was produced

`Python 3.10.0 | packaged by conda-forge | (default, Nov 20 2021, 02:24:10) [GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.

import tensorrt
import tensorrt_llm
Invalid MIT-MAGIC-COOKIE-1 keyTraceback (most recent call last):
File "", line 1, in
File "/home/shegun93/TensorRT-LLM/tensorrt_llm/init.py", line 32, in
import tensorrt_llm.functional as functional
File "/home/shegun93/TensorRT-LLM/tensorrt_llm/functional.py", line 28, in
from . import graph_rewriting as gw
File "/home/shegun93/TensorRT-LLM/tensorrt_llm/graph_rewriting.py", line 11, in
from ._utils import trt_gte
File "/home/shegun93/TensorRT-LLM/tensorrt_llm/_utils.py", line 42, in
from tensorrt_llm.bindings import DataType, GptJsonConfig
ModuleNotFoundError: No module named 'tensorrt_llm.bindings'`

Suffix to say I have tried both conda and Python environments for this installation

  1. Building from source
    Successfull followed up to Option 2: Build TensorRT-LLM Step-by-Step in the official documentation (Building from source)
    At the point of building the whl pip install ./build/tensorrt_llm*.whl I couldn't progress past 96%

I have equally tried other methods, including suggestions from online sources and picking from the related issues that have been raised on here. no luck yet

Metadata

Metadata

Assignees

Labels

InstallationSetting up and building TRTLLM: compilation, pip install, dependencies, env config, CMake.InvestigatingtriagedIssue has been triaged by maintainers

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions