-
Notifications
You must be signed in to change notification settings - Fork 127
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
Fix C# phi-2 test #1050
base: main
Are you sure you want to change the base?
Fix C# phi-2 test #1050
Conversation
Note that there's still resource leaks in the C# tests. Will try to fix it later. |
using Xunit; | ||
using Xunit.Abstractions; | ||
|
||
namespace Microsoft.ML.OnnxRuntimeGenAI.Tests | ||
{ | ||
public class TestsFixture : IDisposable |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This test-case level fixture doesn't work. Because after OgaShutdown
is called, it can't recover and the entire test crashes.
@@ -82,7 +82,7 @@ jobs: | |||
run: | | |||
export ORTGENAI_LOG_ORT_LIB=1 | |||
cd test/csharp | |||
dotnet test /p:Configuration=Release /p:NativeBuildOutputDir="../../build/cpu/osx-arm64" | |||
dotnet test /p:Configuration=Release /p:NativeBuildOutputDir="../../build/cpu/osx-arm64" --verbosity normal |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This produces much better results in terms of test cases.
The C# phi-2 test was skipped due to the wrong model path. This PR intends to fix it.