Skip to content

Commit

Permalink
Restore system prompt on requests and default num_keep to 0
Browse files Browse the repository at this point in the history
  • Loading branch information
jmorganca committed Nov 3, 2023
1 parent 6109beb commit 17678b7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion api/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ func DefaultOptions() Options {
return Options{
// options set on request to runner
NumPredict: -1,
NumKeep: 4,
NumKeep: 0,
Temperature: 0.8,
TopK: 40,
TopP: 0.9,
Expand Down
2 changes: 2 additions & 0 deletions llm/llama.go
Original file line number Diff line number Diff line change
Expand Up @@ -529,6 +529,8 @@ func (llm *llama) Predict(ctx context.Context, prevContext []int, prompt string,
"stop": llm.Stop,
}

fmt.Println(request)

// Handling JSON marshaling with special characters unescaped.
buffer := &bytes.Buffer{}
enc := json.NewEncoder(buffer)
Expand Down

0 comments on commit 17678b7

Please sign in to comment.