Skip to content
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

Removed ContextSize from most examples #663

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion LLama.Examples/Examples/ChatChineseGB2312.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ public static async Task Run()

var parameters = new ModelParams(modelPath)
{
ContextSize = 1024,
Seed = 1337,
GpuLayerCount = 5,
Encoding = Encoding.UTF8
Expand Down
1 change: 0 additions & 1 deletion LLama.Examples/Examples/ChatSessionStripRoleName.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ public static async Task Run()

var parameters = new ModelParams(modelPath)
{
ContextSize = 1024,
Seed = 1337,
GpuLayerCount = 5
};
Expand Down
1 change: 0 additions & 1 deletion LLama.Examples/Examples/ChatSessionWithHistory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ public static async Task Run()

var parameters = new ModelParams(modelPath)
{
ContextSize = 1024,
Seed = 1337,
GpuLayerCount = 5
};
Expand Down
1 change: 0 additions & 1 deletion LLama.Examples/Examples/ChatSessionWithRestart.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ public static async Task Run()

var parameters = new ModelParams(modelPath)
{
ContextSize = 1024,
Seed = 1337,
GpuLayerCount = 5
};
Expand Down
1 change: 0 additions & 1 deletion LLama.Examples/Examples/ChatSessionWithRoleName.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ public static async Task Run()

var parameters = new ModelParams(modelPath)
{
ContextSize = 1024,
Seed = 1337,
GpuLayerCount = 5
};
Expand Down
1 change: 0 additions & 1 deletion LLama.Examples/Examples/GrammarJsonResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ public static async Task Run()

var parameters = new ModelParams(modelPath)
{
ContextSize = 1024,
Seed = 1337,
GpuLayerCount = 5
};
Expand Down
1 change: 0 additions & 1 deletion LLama.Examples/Examples/InstructModeExecute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ public static async Task Run()

var parameters = new ModelParams(modelPath)
{
ContextSize = 1024,
Seed = 1337,
GpuLayerCount = 5
};
Expand Down
1 change: 0 additions & 1 deletion LLama.Examples/Examples/InteractiveModeExecute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ public static async Task Run()

var parameters = new ModelParams(modelPath)
{
ContextSize = 1024,
Seed = 1337,
GpuLayerCount = 5
};
Expand Down
1 change: 0 additions & 1 deletion LLama.Examples/Examples/LoadAndSaveSession.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ public static async Task Run()

var parameters = new ModelParams(modelPath)
{
ContextSize = 1024,
Seed = 1337,
GpuLayerCount = 5
};
Expand Down
1 change: 0 additions & 1 deletion LLama.Examples/Examples/LoadAndSaveState.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ public static async Task Run()

var parameters = new ModelParams(modelPath)
{
ContextSize = 1024,
Seed = 1337,
GpuLayerCount = 5
};
Expand Down
2 changes: 1 addition & 1 deletion LLama.Examples/Examples/SpeechChat.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class LlamaSession_SpeechListener : ISpeechListener, IDisposable

public LlamaSession_SpeechListener(SpeechRecognitionServer server)
{
var parameters = new ModelParams(UserSettings.GetModelPath()) { ContextSize = 1024, Seed = 1337, GpuLayerCount = 99 };
var parameters = new ModelParams(UserSettings.GetModelPath()) { Seed = 1337, GpuLayerCount = 99 };
model = LLamaWeights.LoadFromFile(parameters);
context = model.CreateContext(parameters);
executor = new InteractiveExecutor(context);
Expand Down
1 change: 0 additions & 1 deletion LLama.Examples/Examples/StatelessModeExecute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ public static async Task Run()

var parameters = new ModelParams(modelPath)
{
ContextSize = 1024,
Seed = 1337,
GpuLayerCount = 5
};
Expand Down
2 changes: 1 addition & 1 deletion LLama.Examples/Examples/TalkToYourself.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public static async Task Run()
var bob = new InteractiveExecutor(bobCtx);

// Initial alice prompt
var alicePrompt = "Transcript of a dialog, where the Alice interacts a person named Bob. Alice is friendly, kind, honest and good at writing.\nAlice: Hello";
var alicePrompt = "Transcript of a dialog, where the Alice interacts with a person named Bob. Alice is friendly, kind, honest and good at writing.\nAlice: Hello";
var aliceResponse = await Prompt(alice, ConsoleColor.Green, alicePrompt, false, false);

// Initial bob prompt
Expand Down
Loading