Persival123's picture
Upload 4 files
c7f577e verified
raw
history blame
1.11 kB
# Modelfile generated by "ollama show"
# To build a new Modelfile based on this one, replace the FROM line with:
# FROM mistral:latest
##Chat template is chat_template to {{ bos_token }}{% for message in messages %}{% if (message['role'] == 'user') != (loop.index0 % 2 == 0) %}{{ raise_exception('Conversation roles must alternate user/assistant/user/assistant/...') }}{% endif %}{% if message['role'] == 'user' %}{{ '[INST] ' + message['content'] + ' [/INST]' }}{% elif message['role'] == 'assistant' %}{{ message['content'] + eos_token + ' ' }}{% else %}{{ raise_exception('Only user and assistant roles are supported!') }}{% endif %}{% endfor %}
FROM /workspace/local/mistral7b/mistral-sticksecure-identify-controls-v12/merge3000/mistral-sticksecure-identify-controls-v10-q8_0.gguf
TEMPLATE """[INST] {{ .System }} {{ .Prompt }} [/INST]"""
#TEMPLATE """[INST] { .Prompt } [/INST]"""
#PARAMETER num_ctx 32768
PARAMETER num_ctx 4096
PARAMETER temperature 0.4
PARAMETER num_predict 512
PARAMETER stop "</s>"
PARAMETER stop "[INST]"
PARAMETER stop "[/INST]"
PARAMETER stop "<<SYS>>"
PARAMETER stop "<</SYS>>"