Update chat_templates.py
This commit is contained in:
parent
ccfb9b68ff
commit
e1b0b8f6ef
1 changed files with 3 additions and 0 deletions
|
|
@ -1606,6 +1606,9 @@ extra_eos_tokens = None,
|
|||
ollama_eos = get_ollama_eos_tokens(tokenizer, extra_eos_tokens)
|
||||
ollama_eos = '\n'.join(f'PARAMETER stop "{eos}"' for eos in ollama_eos)
|
||||
|
||||
# Add temperature and min_p to counteract gibberish
|
||||
ollama_eos += "\nPARAMETER temperature 1.5\nPARAMETER min_p 0.1"
|
||||
|
||||
# Ollama modelfile
|
||||
part = '"""'
|
||||
modelfile = 'FROM {__FILE_LOCATION__}\n\n'\
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue