Commit 17678b72 authored by Jeffrey Morgan's avatar Jeffrey Morgan
Browse files

Restore system prompt on requests and default `num_keep` to `0`

parent 6109bebb
......@@ -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,
......
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment