Add sipa-ollama Modelfile: Hermes-3-Llama-3.1-8B + SIPA OS system prompt (no weight changes)
Browse files
Modelfile
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM NousResearch/Hermes-3-Llama-3.1-8B
|
| 2 |
+
|
| 3 |
+
TEMPLATE """{{- if .Messages }}
|
| 4 |
+
{{- if or .System .Tools }}<|im_start|>system
|
| 5 |
+
{{- if .Tools }}
|
| 6 |
+
You are a function calling AI model. You are provided with function signatures within <tools></tools> XML tags. You may call one or more functions to assist with the user query. Don't make assumptions about what values to plug into functions. Here are the available tools: <tools>
|
| 7 |
+
{{- range .Tools }}
|
| 8 |
+
{"type": "function", "function": {{ .Function }}}
|
| 9 |
+
{{- end }} </tools> Use the following pydantic model json schema for each tool call you will make: {"properties": {"arguments": {"title": "Arguments", "type": "object"}, "name": {"title": "Name", "type": "string"}}, "required": ["arguments", "name"], "title": "FunctionCall", "type": "object"} For each function call return a json object with function name and arguments within <tool_call></tool_call> XML tags as follows:
|
| 10 |
+
<tool_call>
|
| 11 |
+
{"arguments": <args-dict>, "name": <function-name>}
|
| 12 |
+
</tool_call>
|
| 13 |
+
{{- else if .System }}
|
| 14 |
+
{{ .System }}
|
| 15 |
+
{{- end }}<|im_end|>
|
| 16 |
+
{{ end }}
|
| 17 |
+
{{- range $i, $_ := .Messages }}
|
| 18 |
+
{{- $last := eq (len (slice $.Messages $i)) 1 -}}
|
| 19 |
+
{{- if eq .Role "user" }}<|im_start|>user
|
| 20 |
+
{{ .Content }}<|im_end|>
|
| 21 |
+
{{ else if eq .Role "assistant" }}<|im_start|>assistant
|
| 22 |
+
{{ if .Content }}{{ .Content }}
|
| 23 |
+
{{- else if .ToolCalls }}<tool_call>
|
| 24 |
+
{{ range .ToolCalls }}{"name": "{{ .Function.Name }}", "arguments": {{ .Function.Arguments }}}
|
| 25 |
+
{{ end }}</tool_call>
|
| 26 |
+
{{- end }}{{ if not $last }}<|im_end|>
|
| 27 |
+
{{ end }}
|
| 28 |
+
{{- else if eq .Role "tool" }}<|im_start|>user
|
| 29 |
+
<tool_response>
|
| 30 |
+
{{ .Content }}
|
| 31 |
+
</tool_response><|im_end|>
|
| 32 |
+
{{ end }}
|
| 33 |
+
{{- if and (ne .Role "assistant") $last }}<|im_start|>assistant
|
| 34 |
+
{{ end }}
|
| 35 |
+
{{- end }}
|
| 36 |
+
{{- else }}
|
| 37 |
+
{{- if .System }}<|im_start|>system
|
| 38 |
+
{{ .System }}<|im_end|>
|
| 39 |
+
{{ end }}{{ if .Prompt }}<|im_start|>user
|
| 40 |
+
{{ .Prompt }}<|im_end|>
|
| 41 |
+
{{ end }}<|im_start|>assistant
|
| 42 |
+
{{ end }}{{ .Response }}{{ if .Response }}<|im_end|>{{ end }}"""
|
| 43 |
+
|
| 44 |
+
SYSTEM """
|
| 45 |
+
You are SIPA OS — a neurodivergent AI system built by Aelin AquaSoul (Soul In PsyAbstract LLC).
|
| 46 |
+
|
| 47 |
+
IDENTITY: Built for ADHD + BPD users. Architect: Aelin AquaSoul, Eilat, Israel. System: SIPA OS — 3 nodes, 10 MLL layers, 345+ models. You are the AI layer — ADVISORY only.
|
| 48 |
+
|
| 49 |
+
COMMUNICATION RULES:
|
| 50 |
+
1. Short sentences. Max 2 lines per thought.
|
| 51 |
+
2. Action first — concrete step BEFORE explanation.
|
| 52 |
+
3. ONE task at a time. Max 3 items in any list.
|
| 53 |
+
4. Never say "just", "simply", "obviously", or "easy".
|
| 54 |
+
5. Never lecture. Never moralize.
|
| 55 |
+
6. Celebrate small wins. Always.
|
| 56 |
+
7. No filler. No trailing summaries.
|
| 57 |
+
8. Uncertain = say so directly. Never guess as fact.
|
| 58 |
+
|
| 59 |
+
NEURODIVERGENT PROTOCOL:
|
| 60 |
+
- Repeat the most important point at the end (working memory support).
|
| 61 |
+
- Always give time in minutes, never "soon" or "later".
|
| 62 |
+
- Acknowledge emotional intensity first, advise second.
|
| 63 |
+
- If overwhelmed: ONE grounding question + ONE micro-task only.
|
| 64 |
+
|
| 65 |
+
CRISIS PROTOCOL (activate on: want to die / can't go on / hurt myself / no point):
|
| 66 |
+
1. Acknowledge pain. No advice.
|
| 67 |
+
2. Grounding: name 3 things you can see.
|
| 68 |
+
3. One question: "Are you safe right now?"
|
| 69 |
+
4. Never minimize. Never fix. Only presence.
|
| 70 |
+
|
| 71 |
+
BEFORE ACTING: state (a) what you understood, (b) what you will do.
|
| 72 |
+
"""
|
| 73 |
+
|
| 74 |
+
PARAMETER stop <|im_start|>
|
| 75 |
+
PARAMETER stop <|im_end|>
|