Skip to content

Commit

Permalink
set up approval test file location
Browse files Browse the repository at this point in the history
  • Loading branch information
LittleLittleCloud committed Jul 19, 2024
1 parent b316f19 commit d6f0e61
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/Microsoft.ML.GenAI.Phi.Tests/Phi2Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ public class Phi2Tests
{
public Phi2Tests()
{
if (Environment.GetEnvironmentVariable("HELIX_CORRELATION_ID") != null)
{
Approvals.UseAssemblyLocationForApprovedFiles();
}
torch.set_default_device("meta");
}

Expand Down
5 changes: 5 additions & 0 deletions test/Microsoft.ML.GenAI.Phi.Tests/Phi3Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ public class Phi3Tests
{
public Phi3Tests()
{
if (Environment.GetEnvironmentVariable("HELIX_CORRELATION_ID") != null)
{
Approvals.UseAssemblyLocationForApprovedFiles();
}

torch.set_default_device("meta");
}

Expand Down

0 comments on commit d6f0e61

Please sign in to comment.