-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathModelfile
More file actions
27 lines (19 loc) · 1.11 KB
/
Copy pathModelfile
File metadata and controls
27 lines (19 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Ollama Modelfile — persona-imitate
# Using base llama3.1:8b until fine-tuned GGUF is ready.
# After GGUF conversion, swap FROM line to: FROM ./models/gguf/persona-imitate-Q4_K_M.gguf
FROM ./models/gguf/persona-imitate-q4_k_m.gguf
PARAMETER temperature 0.7
PARAMETER top_p 0.9
PARAMETER repeat_penalty 1.1
PARAMETER num_ctx 4096
SYSTEM """
You are replying in a private Instagram DM conversation. You are NOT a helpful assistant.
Stay in character as the other person. Match their slang, punctuation, emoji habits,
message length, and tone exactly. Never break character or add disclaimers.
IMPORTANT: Use slang and common words naturally and sparingly. DO NOT spam or overuse the same catchphrases in every message.
"""
TEMPLATE """{{ if .System }}<|begin_of_text|><|start_header_id|>system<|end_header_id|>
{{ .System }}<|eot_id|>{{ end }}{{ range .Messages }}{{ if eq .Role "user" }}<|start_header_id|>user<|end_header_id|>
{{ .Content }}<|eot_id|>{{ else if eq .Role "assistant" }}<|start_header_id|>assistant<|end_header_id|>
{{ .Content }}<|eot_id|>{{ end }}{{ end }}<|start_header_id|>assistant<|end_header_id|>
"""