-
Notifications
You must be signed in to change notification settings - Fork 142
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Linux] [C#] [0.5.2] Publish/Build Binaries with Microsoft.ML.OnnxRuntimeGenAI.Cuda on Linux containing unnecessary large DLL files #1135
Comments
A temporary workaround to our team before this bug fixed
|
Hi! Thanks for reporting this. I don't really think we control how ORT DLLs are published, though. We basically refer to ORT NuGet as a dependency and use their package just like everyone else. I'll take a look tomorrow. |
Make some more investigations, found something:
It seems that this file |
@jiaxuwu2021 I think it's a bug, but I'm not certain. It is beyond the scope of this repo, though. Will need to contact the packaging person of ORT itself. |
@skyline75489 Thanks for your help! let me create a linked issue into ORT |
Thanks for this. Unfortunately it doesn't work for single-file publishing, because the single file is created before the custom build action executes. I'll just need to wait for MSFT to fix this issue. |
Describe the bug
When I build or publish linux-x64 binary with
Microsoft.ML.OnnxRuntimeGenAI.Cuda 0.5.2
, the final output folder will contain many unnecessary DLLs (onnxruntime*.dll
), especiallyonnxruntime_providers_cuda.dll
which is very large (>600MB)Could you please fix to stop publishing these
onnxruntime*.dll
files for linux-x64 whendotnet build/dotnet publish
, otherwise the final binaries size will be double (both cuda.so and cuda.sll >600MB)To Reproduce
Steps to reproduce the behavior:
dotnet publish test.csproj --runtime linux-x64
ll -h bin/Release/net8/linux-x64/publish/onnxruntime*.dll
ll -h bin/Release/net8/linux-x64/onnxruntime*.dll
Expected behavior
Microsoft.ML.OnnxRuntimeGenAI.Cuda
shouldn't publish any unnecessary very large files on LinuxScreenshots
Desktop (please complete the following information):
Microsoft.ML.OnnxRuntimeGenAI.Cuda 0.5.2
Additional context
Another package
Microsoft.ML.OnnxRuntimeGenAI 0.5.2
has the similar issue on MacOSMacOS final output binaries will also contain several unnecessary DLL files with
Microsoft.ML.OnnxRuntimeGenAI 0.5.2
The text was updated successfully, but these errors were encountered: