ollama modelfile
Closed this issue · 1 comments
swuecho commented
hwu@hwu-5950:~$ ollama show --modelfile mistral
# Modelfile generated by "ollama show"
# To build a new Modelfile based on this one, replace the FROM line with:
# FROM mistral:latest
FROM /home/hwu/.ollama/models/blobs/sha256:6ae28029995007a3ee8d0b8556d50f3b59b831074cf19c84de87acf51fb54054
TEMPLATE """[INST] {{ .System }} {{ .Prompt }} [/INST]
"""
PARAMETER stop "[INST]"
PARAMETER stop "[/INST]"
PARAMETER stop "<<SYS>>"
PARAMETER stop "<</SYS>>"
hwu@hwu-5950:~$ ollama show --modelfile neural-chat
# Modelfile generated by "ollama show"
# To build a new Modelfile based on this one, replace the FROM line with:
# FROM neural-chat:latest
FROM /home/hwu/.ollama/models/blobs/sha256:b8dab32419772a5edabf4d72fc41d7c815a54524ae8d17644cadaf532422a40f
TEMPLATE """### System:
{{ .System }}
### User:
{{ .Prompt }}
### Assistant:
"""
PARAMETER num_ctx 4096
PARAMETER stop "<|im_start|>"
PARAMETER stop "<|im_end|>"
hwu@hwu-5950:~$ ollama show --modelfile mistral
# Modelfile generated by "ollama show"
# To build a new Modelfile based on this one, replace the FROM line with:
# FROM mistral:latest
FROM /home/hwu/.ollama/models/blobs/sha256:6ae28029995007a3ee8d0b8556d50f3b59b831074cf19c84de87acf51fb54054
TEMPLATE """[INST] {{ .System }} {{ .Prompt }} [/INST]
"""
PARAMETER stop "[INST]"
PARAMETER stop "[/INST]"
PARAMETER stop "<<SYS>>"
PARAMETER stop "<</SYS>>"
hwu@hwu-5950:~$
swuecho commented
hwu@hwu-5950:~/llamefile$ cat openhermes_neural_chat
FROM ./openhermes-2.5-neural-chat-7b-v3-2-7b.Q4_K_M.gguf
hwu@hwu-5950:~/llamefile$ ollama create openhermes-neural-chat -f openhermes_neural_chat
transferring model data
creating model layer
using already created layer sha256:688dcf846cc877ed37dc495b6939a6c6c6231231f8844eef9a0482268b09bac0
using already created layer sha256:c2725435191511135dfa35cb2b3cbe281ec162df1324671ce9a410a4c065bfe5
writing manifest
success