Skip to content

Commit

Permalink
sync ollama modelfile
Browse files Browse the repository at this point in the history
- set temp 0.2
- remove assistant stop
  • Loading branch information
ymcui committed May 8, 2024
1 parent 5b1f62c commit 0ca21bd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/ollama/Modelfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ TEMPLATE """{{ if .System }}<|start_header_id|>system<|end_header_id|>

{{ .Response }}<|eot_id|>"""
SYSTEM """You are a helpful assistant. 你是一个乐于助人的助手。"""
PARAMETER temperature 0.2
PARAMETER num_keep 24
PARAMETER stop <|start_header_id|>
PARAMETER stop <|end_header_id|>
PARAMETER stop <|eot_id|>
PARAMETER stop assistant
2 changes: 2 additions & 0 deletions scripts/ollama/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
## Ollama

### ⚠️ 请务必使用v0.1.33以上版本,否则会出现无限生成等异常问题。

本目录提供的Modelfile仅为示例,更详细的解码参数设置请参阅:https://github.com/ollama/ollama/blob/main/docs/modelfile.md

0 comments on commit 0ca21bd

Please sign in to comment.