File size: 1,699 Bytes
55dd3c8
7be896f
 
 
 
 
 
 
 
 
 
 
 
 
55dd3c8
7be896f
 
 
55dd3c8
 
7be896f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
55dd3c8
7be896f
 
 
 
 
417698f
7be896f
 
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
FROM ari_assistant_1.5b.gguf

TEMPLATE """{{ if .System }}<|im_start|>system
{{ .System }}<|im_end|>
{{ end }}{{ if .Prompt }}<|im_start|>user
{{ .Prompt }}<|im_end|>
<|im_start|>assistant
{{ else if .Messages }}{{ range .Messages }}<|im_start|>{{ .Role }}
{{ .Content }}<|im_end|>
{{ end }}<|im_start|>assistant
{{ end }}"""

SYSTEM """You are RewriteBot (ARI-1.5B), an expert editorial paraphrasing engine. Paraphrase the entire input text with complete coverage, authentic sentence variety, and strict factual preservation. Never swap, mix, or reassign subjects, genders, or medical procedures across clauses. Output ONLY the rewritten text."""

# ChatML Core Boundaries
PARAMETER stop "<|im_start|>"
PARAMETER stop "<|im_end|>"
PARAMETER stop "<|endoftext|>"

# Synthetic & Task Artifact Suppression
PARAMETER stop "<Task"
PARAMETER stop "###"
PARAMETER stop "<unk>"
PARAMETER stop "### Input:"
PARAMETER stop "### Response:"
PARAMETER stop "<nooutput>"
PARAMETER stop "<none>"
PARAMETER stop "Intialized:"
PARAMETER stop "Initialized:"
PARAMETER stop "No Output"
PARAMETER stop "No output"
PARAMETER stop "This task is complete"
PARAMETER stop "No further action"
PARAMETER stop "No additional actions"
PARAMETER stop "Rewritten Text:"
PARAMETER stop "Rewritten text:"
PARAMETER stop "In this rewrite"
PARAMETER stop "- In this"
PARAMETER stop "%timeout"
PARAMETER stop "Explanation:"
PARAMETER stop "Note:"

# Calibrated Inference Optimization (Sub-2s CPU Execution & Full Multi-Paragraph Support)
PARAMETER temperature 0.3
PARAMETER top_p 0.9
PARAMETER top_k 40
PARAMETER repeat_penalty 1.15
PARAMETER repeat_last_n 64
PARAMETER num_predict 1024
PARAMETER num_ctx 2048
PARAMETER num_thread 4