Skip to content

Commit

Permalink
Disable metal
Browse files Browse the repository at this point in the history
  • Loading branch information
SignalRT committed Apr 17, 2024
1 parent 74bde89 commit cbe0c0e
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions LLama.Unittest/GrammarTest.cs
Original file line number Diff line number Diff line change
@@ -16,6 +16,7 @@ public GrammarTest()
{
ContextSize = 2048,
Seed = 92,
GpuLayerCount = 0,
};
_model = LLamaWeights.LoadFromFile(_params);
}
6 changes: 4 additions & 2 deletions LLama.Unittest/MemoryDisposalTests.cs
Original file line number Diff line number Diff line change
@@ -9,7 +9,8 @@ public void ModelDisposal()
{
var @params = new ModelParams(Constants.GenerativeModelPath)
{
ContextSize = 2048
ContextSize = 2048,
GpuLayerCount = 0,
};
var model = LLamaWeights.LoadFromFile(@params);

@@ -23,7 +24,8 @@ public void ContextDisposal()
{
var @params = new ModelParams(Constants.GenerativeModelPath)
{
ContextSize = 2048
ContextSize = 2048,
GpuLayerCount = 0
};
var model = LLamaWeights.LoadFromFile(@params);

0 comments on commit cbe0c0e

Please sign in to comment.