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:
875875 return Path (tempfile .gettempdir ()) / f"torch_tensorrt_{ username } "
876876
877877
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+ )
880884
881885
882886def download_and_get_plugin_lib_path () -> Optional [str ]:
@@ -889,13 +893,14 @@ def download_and_get_plugin_lib_path() -> Optional[str]:
889893 Returns:
890894 Optional[str]: Path to shared library or None if operation fails.
891895 """
896+ platform_system = platform .system ().lower ()
897+ platform_machine = platform .machine ().lower ()
892898 wheel_filename = (
893899 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"
895901 )
896- platform_system = platform .system ().lower ()
897902 wheel_path = _cache_root () / wheel_filename
898- extract_dir = _extracted_dir_trtllm (platform_system )
903+ extract_dir = _extracted_dir_trtllm (platform_system , platform_machine )
899904 # else will never be met though
900905 lib_filename = (
901906 "libnvinfer_plugin_tensorrt_llm.so"
You can’t perform that action at this time.
0 commit comments