File tree 1 file changed +8
-5
lines changed
1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -847,8 +847,13 @@ def download_plugin_lib_path(py_version: str, platform: str) -> str:
847
847
848
848
# Proceeding with the unzip of the wheel file
849
849
# This will exist if the filename was already downloaded
850
- if os .path .exists ("./tensorrt_llm/libs/libnvinfer_plugin_tensorrt_llm.so" ):
851
- plugin_lib_path = "./tensorrt_llm/libs/" + "libnvinfer_plugin_tensorrt_llm.so"
850
+ if "linux" in platform :
851
+ lib_filename = "libnvinfer_plugin_tensorrt_llm.so"
852
+ else :
853
+ lib_filename = "libnvinfer_plugin_tensorrt_llm.dll"
854
+ plugin_lib_path = os .path .join ("./tensorrt_llm/libs" , lib_filename )
855
+ if os .path .exists (plugin_lib_path ):
856
+ plugin_lib_path = "./tensorrt_llm/libs/" + plugin_lib_path
852
857
else :
853
858
try :
854
859
import zipfile
@@ -858,9 +863,7 @@ def download_plugin_lib_path(py_version: str, platform: str) -> str:
858
863
)
859
864
with zipfile .ZipFile (file_name , "r" ) as zip_ref :
860
865
zip_ref .extractall ("." ) # Extract to a folder named 'tensorrt_llm'
861
- plugin_lib_path = (
862
- "./tensorrt_llm/libs/" + "libnvinfer_plugin_tensorrt_llm.so"
863
- )
866
+ plugin_lib_path = "./tensorrt_llm/libs/" + plugin_lib_path
864
867
return plugin_lib_path
865
868
866
869
You can’t perform that action at this time.
0 commit comments