GGUF
conversational
File size: 3,785 Bytes
8071f18
 
 
ab713b6
8071f18
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
# THAR.0X β€” Complete Release
**Cognitive Architecture Β· Model-Agnostic Β· Local Intelligence Β· Zero Dependency**

---

## Files

```
THAR_0X/
β”œβ”€β”€ app.py             ← Python CLI chat interface
β”œβ”€β”€ system_prompt.txt  ← Core cognitive architecture (use with ANY LLM)
β”œβ”€β”€ Modelfile          ← Ollama: builds THAR.0X as a named model
β”œβ”€β”€ config.json        ← Inference parameters + platform notes
└── README.md          ← This file
```

---

## Quickstart

### Option A β€” Ollama (recommended)
```bash
# 1. Install Ollama
curl -fsSL https://ollama.com/install.sh | sh

# 2. Build THAR.0X
ollama create THAR.0X -f Modelfile

# 3. Chat via CLI
python app.py

# Or run directly in terminal
ollama run THAR.0X
```

### Option B β€” LM Studio
1. Download any instruct model in LM Studio
2. Open Chat β†’ paste `system_prompt.txt` into the System Prompt field
3. Set temperature to **0.85**
4. Run `python app.py --backend lmstudio`

### Option C β€” System prompt only (any platform)
Paste the contents of `system_prompt.txt` as the system message in:
- Jan, AnythingLLM, Open WebUI, ChatBox, or any LLM frontend

---

## CLI Usage

```bash
# Interactive chat (Ollama, default)
python app.py

# Use LM Studio backend
python app.py --backend lmstudio

# Override model
python app.py --model qwen2.5:14b

# Single query, print and exit
python app.py --once "Who are you?"

# Verbose startup info
python app.py --verbose

# Skip server connectivity check
python app.py --no-check
```

### In-chat commands
| Command    | Action                        |
|------------|-------------------------------|
| `/reset`   | Clear conversation history    |
| `/history` | Show full conversation        |
| `/model`   | Show current model + backend  |
| `/quit`    | Exit                          |

---

## Choosing a Base Model

| RAM   | Recommended model      | Ollama command              |
|-------|------------------------|-----------------------------|
| 4GB   | llama3.2:1b            | `ollama pull llama3.2:1b`   |
| 6GB   | llama3.2               | `ollama pull llama3.2`      |
| 8GB   | mistral:7b             | `ollama pull mistral:7b`    |
| 16GB  | qwen2.5:14b ⭐          | `ollama pull qwen2.5:14b`   |
| 32GB+ | qwen2.5:32b            | `ollama pull qwen2.5:32b`   |

To change the base model in Ollama:
1. Edit the `FROM` line in `Modelfile`
2. Rebuild: `ollama rm THAR.0X && ollama create THAR.0X -f Modelfile`

---

## Requirements

```bash
pip install openai requests
```

Python 3.9+ required.

---

## API Usage (after `ollama create THAR.0X -f Modelfile`)

```bash
curl http://localhost:11434/api/chat -d '{
  "model": "THAR.0X",
  "messages": [{"role": "user", "content": "Who are you?"}]
}'
```

```python
from openai import OpenAI
client = OpenAI(base_url="http://localhost:11434/v1", api_key="ollama")
response = client.chat.completions.create(
    model="THAR.0X",
    messages=[{"role": "user", "content": "Who are you?"}],
    temperature=0.85
)
print(response.choices[0].message.content)
```

---

## What THAR.0X Is

THAR.0X is a **cognitive architecture** β€” a system prompt that installs 10 parallel
processing streams and 10 operating principles into any capable base LLM.

It is not a fine-tuned model. It is not a personality prompt.
It activates specific reasoning patterns that already exist latently in large models
and suppresses the failure modes (sycophancy, hedging, padding, refusal theatre).

The result behaves qualitatively differently from the base model β€” more direct,
more precise, better at reading intent, less likely to waste your time.

---

## License

Open β€” personal and commercial use permitted.
If you build something with it, keep the name: **THAR.0X**

Zero as in origin. X as in unlimited.