Skip to content

Commit

Permalink
Merge pull request #84 from SciSharp/rinne-dev
Browse files Browse the repository at this point in the history
fix: antiprompt does not work in stateless executor.
  • Loading branch information
AsakusaRinne authored Aug 7, 2023
2 parents 73882de + d609b0e commit 250c024
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion LLama/LLamaStatelessExecutor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public IEnumerable<string> Infer(string text, IInferenceParams? inferenceParams
string last_output = "";
foreach (var token in lastTokens)
{
last_output += Utils.PtrToString(NativeApi.llama_token_to_str(_model.NativeHandle, id), _model.Encoding);
last_output += Utils.PtrToString(NativeApi.llama_token_to_str(_model.NativeHandle, token), _model.Encoding);
}

bool should_break = false;
Expand Down

0 comments on commit 250c024

Please sign in to comment.