File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -875,8 +875,12 @@ def _cache_root() -> Path:
875
875
return Path (tempfile .gettempdir ()) / f"torch_tensorrt_{ username } "
876
876
877
877
878
- def _extracted_dir_trtllm (platform : str ) -> Path :
879
- return _cache_root () / "trtllm" / f"{ __tensorrt_llm_version__ } _{ platform } "
878
+ def _extracted_dir_trtllm (platform_system : str , platform_machine : str ) -> Path :
879
+ return (
880
+ _cache_root ()
881
+ / "trtllm"
882
+ / f"{ __tensorrt_llm_version__ } _{ platform_system } _{ platform_machine } "
883
+ )
880
884
881
885
882
886
def download_and_get_plugin_lib_path () -> Optional [str ]:
@@ -889,13 +893,14 @@ def download_and_get_plugin_lib_path() -> Optional[str]:
889
893
Returns:
890
894
Optional[str]: Path to shared library or None if operation fails.
891
895
"""
896
+ platform_system = platform .system ().lower ()
897
+ platform_machine = platform .machine ().lower ()
892
898
wheel_filename = (
893
899
f"tensorrt_llm-{ __tensorrt_llm_version__ } -{ _WHL_CPYTHON_VERSION } -"
894
- f"{ _WHL_CPYTHON_VERSION } -{ platform } .whl"
900
+ f"{ _WHL_CPYTHON_VERSION } -{ platform_system } _ { platform_machine } .whl"
895
901
)
896
- platform_system = platform .system ().lower ()
897
902
wheel_path = _cache_root () / wheel_filename
898
- extract_dir = _extracted_dir_trtllm (platform_system )
903
+ extract_dir = _extracted_dir_trtllm (platform_system , platform_machine )
899
904
# else will never be met though
900
905
lib_filename = (
901
906
"libnvinfer_plugin_tensorrt_llm.so"
You can’t perform that action at this time.
0 commit comments