Browse Source

Fixed number type

tags/v0.10.0
Martin Evans 1 year ago
parent
commit
765c697f77
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      LLama/LLamaInstructExecutor.cs

+ 1
- 1
LLama/LLamaInstructExecutor.cs View File

@@ -200,7 +200,7 @@ namespace LLama


if (_embed_inps.Count <= _consumedTokensCount && !args.WaitForInput) if (_embed_inps.Count <= _consumedTokensCount && !args.WaitForInput)
{ {
var repeat_last_n = inferenceParams.RepeatLastTokensCount < 0 ? Context.ContextSize : inferenceParams.RepeatLastTokensCount;
var repeat_last_n = inferenceParams.RepeatLastTokensCount < 0 ? (int)Context.ContextSize : inferenceParams.RepeatLastTokensCount;


// optionally save the session on first sample (for faster prompt loading next time) // optionally save the session on first sample (for faster prompt loading next time)
if (!string.IsNullOrEmpty(_pathSession) && args.NeedToSaveSession) if (!string.IsNullOrEmpty(_pathSession) && args.NeedToSaveSession)


Loading…
Cancel
Save