2024-09-25 23:30:50 -07:00
|
|
|
FROM Arch-Function-Calling-1.5B-Q4_K_M.gguf
|
|
|
|
|
|
|
|
|
|
# Set parameters for response generation
|
|
|
|
|
PARAMETER num_predict 1024
|
|
|
|
|
PARAMETER temperature 0.001
|
|
|
|
|
PARAMETER top_p 1.0
|
2024-09-27 13:34:10 -07:00
|
|
|
PARAMETER top_k 50
|
2024-09-25 23:30:50 -07:00
|
|
|
PARAMETER repeat_penalty 1.0
|
2024-09-27 13:34:10 -07:00
|
|
|
PARAMETER stop "<|im_start|>"
|
2024-09-25 23:30:50 -07:00
|
|
|
PARAMETER stop "<|im_end|>"
|
|
|
|
|
|
|
|
|
|
# Set the random number seed to use for generation
|
|
|
|
|
PARAMETER seed 42
|
|
|
|
|
|
|
|
|
|
# Set the prompt template to be passed into the model
|
|
|
|
|
TEMPLATE """
|
|
|
|
|
{{- if .System }}<|im_start|>system
|
|
|
|
|
{{ .System }}<|im_end|>
|
2024-09-27 13:34:10 -07:00
|
|
|
{{ end }}{{ if .Prompt }}
|
|
|
|
|
<|im_start|>user
|
2024-09-25 23:30:50 -07:00
|
|
|
{{ .Prompt }}<|im_end|>
|
|
|
|
|
{{ end }}<|im_start|>assistant
|
|
|
|
|
{{ .Response }}<|im_end|>"""
|