Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
LittleLittleCloud committed Jul 18, 2024
1 parent b316f19 commit fe88a76
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<ProjectReference Include="..\..\src\Microsoft.ML.GenAI.Core\Microsoft.ML.GenAI.Core.csproj" />
<ProjectReference Include="..\..\src\Microsoft.ML.Tokenizers\Microsoft.ML.Tokenizers.csproj" />
<ProjectReference Include="..\..\src\Microsoft.ML.GenAI.Phi\Microsoft.ML.GenAI.Phi.csproj" />
<ProjectReference Include="..\Microsoft.ML.TestFramework\Microsoft.ML.TestFramework.csproj" />
</ItemGroup>

<ItemGroup>
Expand Down Expand Up @@ -38,4 +39,11 @@
<PackageReference Include="libtorch-cpu-osx-x64" Version="$(LibTorchVersion)" Condition="$([MSBuild]::IsOSPlatform('OSX')) AND '$(TargetArchitecture)' == 'x64'" />
</ItemGroup>


<ItemGroup>
<NativeAssemblyReference Include="MklProxyNative" />
<NativeAssemblyReference Include="MklImports" />
<NativeAssemblyReference Condition="'$(OS)' == 'Windows_NT'" Include="libiomp5md" />
</ItemGroup>

</Project>
7 changes: 5 additions & 2 deletions test/Microsoft.ML.GenAI.Phi.Tests/Phi2Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,18 @@
using ApprovalTests.Reporters;
using FluentAssertions;
using Microsoft.ML.GenAI.Core.Extension;
using Microsoft.ML.TestFramework;
using Microsoft.ML.Tokenizers;
using TorchSharp;
using Xunit;
using Xunit.Abstractions;
namespace Microsoft.ML.GenAI.Phi.Tests;

[Collection("NoParallelization")]
public class Phi2Tests
public class Phi2Tests : BaseTestClass
{
public Phi2Tests()
public Phi2Tests(ITestOutputHelper output)
: base(output)
{
torch.set_default_device("meta");
}
Expand Down
7 changes: 5 additions & 2 deletions test/Microsoft.ML.GenAI.Phi.Tests/Phi3Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,18 @@
using ApprovalTests.Reporters;
using FluentAssertions;
using Microsoft.ML.GenAI.Core.Extension;
using Microsoft.ML.TestFramework;
using TorchSharp;
using Xunit;
using Xunit.Abstractions;

namespace Microsoft.ML.GenAI.Phi.Tests;

[Collection("NoParallelization")]
public class Phi3Tests
public class Phi3Tests : BaseTestClass
{
public Phi3Tests()
public Phi3Tests(ITestOutputHelper output)
: base(output)
{
torch.set_default_device("meta");
}
Expand Down

0 comments on commit fe88a76

Please sign in to comment.