diff --git a/LLama.Examples/NewVersion/ChatSessionStripRoleName.cs b/LLama.Examples/NewVersion/ChatSessionStripRoleName.cs index 230118e5..46c0505e 100644 --- a/LLama.Examples/NewVersion/ChatSessionStripRoleName.cs +++ b/LLama.Examples/NewVersion/ChatSessionStripRoleName.cs @@ -13,7 +13,7 @@ namespace LLama.Examples.NewVersion var parameters = new ModelParams(modelPath, contextSize: 1024, seed: 1337, gpuLayerCount: 5); using var model = LLamaWeights.LoadFromFile(parameters); - using var context = model.CreateContext(parameters, Encoding.UTF8); + using var context = model.CreateContext(parameters); var executor = new InteractiveExecutor(context); var session = new ChatSession(executor).WithOutputTransform(new LLamaTransforms.KeywordTextOutputStreamTransform(new string[] { "User:", "Bob:" }, redundancyLength: 8)); diff --git a/LLama.Examples/NewVersion/ChatSessionWithRoleName.cs b/LLama.Examples/NewVersion/ChatSessionWithRoleName.cs index a3609388..5e155252 100644 --- a/LLama.Examples/NewVersion/ChatSessionWithRoleName.cs +++ b/LLama.Examples/NewVersion/ChatSessionWithRoleName.cs @@ -13,7 +13,7 @@ namespace LLama.Examples.NewVersion var parameters = new ModelParams(modelPath, contextSize: 1024, seed: 1337, gpuLayerCount: 5); using var model = LLamaWeights.LoadFromFile(parameters); - using var context = model.CreateContext(parameters, Encoding.UTF8); + using var context = model.CreateContext(parameters); var executor = new InteractiveExecutor(context); var session = new ChatSession(executor); diff --git a/LLama.Examples/NewVersion/InstructModeExecute.cs b/LLama.Examples/NewVersion/InstructModeExecute.cs index 0a384062..d5b31416 100644 --- a/LLama.Examples/NewVersion/InstructModeExecute.cs +++ b/LLama.Examples/NewVersion/InstructModeExecute.cs @@ -13,7 +13,7 @@ namespace LLama.Examples.NewVersion var parameters = new ModelParams(modelPath, contextSize: 1024, seed: 1337, gpuLayerCount: 5); using var model = LLamaWeights.LoadFromFile(parameters); - using var context = model.CreateContext(parameters, Encoding.UTF8); + using var context = model.CreateContext(parameters); var executor = new InstructExecutor(context); Console.ForegroundColor = ConsoleColor.Yellow; diff --git a/LLama.Examples/NewVersion/InteractiveModeExecute.cs b/LLama.Examples/NewVersion/InteractiveModeExecute.cs index 9fee007f..cc7c2891 100644 --- a/LLama.Examples/NewVersion/InteractiveModeExecute.cs +++ b/LLama.Examples/NewVersion/InteractiveModeExecute.cs @@ -13,7 +13,7 @@ namespace LLama.Examples.NewVersion var parameters = new ModelParams(modelPath, contextSize: 1024, seed: 1337, gpuLayerCount: 5); using var model = LLamaWeights.LoadFromFile(parameters); - using var context = model.CreateContext(parameters, Encoding.UTF8); + using var context = model.CreateContext(parameters); var ex = new InteractiveExecutor(context); Console.ForegroundColor = ConsoleColor.Yellow; diff --git a/LLama.Examples/NewVersion/LoadAndSaveSession.cs b/LLama.Examples/NewVersion/LoadAndSaveSession.cs index 5e5c4252..9ca07de0 100644 --- a/LLama.Examples/NewVersion/LoadAndSaveSession.cs +++ b/LLama.Examples/NewVersion/LoadAndSaveSession.cs @@ -13,7 +13,7 @@ namespace LLama.Examples.NewVersion var parameters = new ModelParams(modelPath, contextSize: 1024, seed: 1337, gpuLayerCount: 5); using var model = LLamaWeights.LoadFromFile(parameters); - using var context = model.CreateContext(parameters, Encoding.UTF8); + using var context = model.CreateContext(parameters); var ex = new InteractiveExecutor(context); var session = new ChatSession(ex); diff --git a/LLama.Examples/NewVersion/LoadAndSaveState.cs b/LLama.Examples/NewVersion/LoadAndSaveState.cs index 1a1c0d88..d72fade8 100644 --- a/LLama.Examples/NewVersion/LoadAndSaveState.cs +++ b/LLama.Examples/NewVersion/LoadAndSaveState.cs @@ -13,7 +13,7 @@ namespace LLama.Examples.NewVersion var parameters = new ModelParams(modelPath, contextSize: 1024, seed: 1337, gpuLayerCount: 5); using var model = LLamaWeights.LoadFromFile(parameters); - using var context = model.CreateContext(parameters, Encoding.UTF8); + using var context = model.CreateContext(parameters); var ex = new InteractiveExecutor(context); Console.ForegroundColor = ConsoleColor.Yellow;