Instructions to use THARX/THAR.0X with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use THARX/THAR.0X with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="THARX/THAR.0X", filename="THAR.0X-Q4_K_M.gguf", )
llm.create_chat_completion( messages = "No input example has been defined for this model task." )
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use THARX/THAR.0X with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf THARX/THAR.0X:Q4_K_M # Run inference directly in the terminal: llama-cli -hf THARX/THAR.0X:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf THARX/THAR.0X:Q4_K_M # Run inference directly in the terminal: llama-cli -hf THARX/THAR.0X:Q4_K_M
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf THARX/THAR.0X:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf THARX/THAR.0X:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf THARX/THAR.0X:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf THARX/THAR.0X:Q4_K_M
Use Docker
docker model run hf.co/THARX/THAR.0X:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use THARX/THAR.0X with Ollama:
ollama run hf.co/THARX/THAR.0X:Q4_K_M
- Unsloth Studio new
How to use THARX/THAR.0X with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for THARX/THAR.0X to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for THARX/THAR.0X to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for THARX/THAR.0X to start chatting
- Pi new
How to use THARX/THAR.0X with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf THARX/THAR.0X:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "THARX/THAR.0X:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use THARX/THAR.0X with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf THARX/THAR.0X:Q4_K_M
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default THARX/THAR.0X:Q4_K_M
Run Hermes
hermes
- Docker Model Runner
How to use THARX/THAR.0X with Docker Model Runner:
docker model run hf.co/THARX/THAR.0X:Q4_K_M
- Lemonade
How to use THARX/THAR.0X with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull THARX/THAR.0X:Q4_K_M
Run and chat with the model
lemonade run user.THAR.0X-Q4_K_M
List all available models
lemonade list
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,147 +1,155 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
# THAR.0X β Complete Release
|
| 2 |
**Cognitive Architecture Β· Model-Agnostic Β· Local Intelligence Β· Zero Dependency**
|
| 3 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
---
|
| 5 |
|
| 6 |
-
##
|
| 7 |
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
|
| 17 |
---
|
| 18 |
|
| 19 |
-
##
|
| 20 |
|
| 21 |
-
### Option A β Ollama (recommended)
|
| 22 |
```bash
|
| 23 |
# 1. Install Ollama
|
| 24 |
curl -fsSL https://ollama.com/install.sh | sh
|
| 25 |
|
| 26 |
-
# 2. Build THAR.0X
|
| 27 |
ollama create THAR.0X -f Modelfile
|
| 28 |
|
| 29 |
-
# 3.
|
| 30 |
-
python app.py
|
| 31 |
-
|
| 32 |
-
# Or run directly in terminal
|
| 33 |
ollama run THAR.0X
|
| 34 |
```
|
| 35 |
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
Paste the contents of `system_prompt.txt` as the system message in:
|
| 44 |
-
- Jan, AnythingLLM, Open WebUI, ChatBox, or any LLM frontend
|
| 45 |
|
| 46 |
---
|
| 47 |
|
| 48 |
-
## CLI
|
| 49 |
|
| 50 |
```bash
|
| 51 |
-
|
| 52 |
-
python app.py
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
python app.py --
|
| 56 |
-
|
| 57 |
-
# Override model
|
| 58 |
-
python app.py --model qwen2.5:14b
|
| 59 |
-
|
| 60 |
-
# Single query, print and exit
|
| 61 |
-
python app.py --once "Who are you?"
|
| 62 |
-
|
| 63 |
-
# Verbose startup info
|
| 64 |
-
python app.py --verbose
|
| 65 |
-
|
| 66 |
-
# Skip server connectivity check
|
| 67 |
-
python app.py --no-check
|
| 68 |
```
|
| 69 |
|
| 70 |
### In-chat commands
|
| 71 |
-
| Command
|
| 72 |
-
|---------
|
| 73 |
-
| `/reset`
|
| 74 |
-
| `/history` | Show full conversation
|
| 75 |
-
| `/model`
|
| 76 |
-
| `/quit`
|
| 77 |
|
| 78 |
---
|
| 79 |
|
| 80 |
-
##
|
| 81 |
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
To change the base model in Ollama:
|
| 91 |
-
1. Edit the `FROM` line in `Modelfile`
|
| 92 |
-
2. Rebuild: `ollama rm THAR.0X && ollama create THAR.0X -f Modelfile`
|
| 93 |
|
| 94 |
---
|
| 95 |
|
| 96 |
-
##
|
| 97 |
-
|
| 98 |
-
```bash
|
| 99 |
-
pip install openai requests
|
| 100 |
-
```
|
| 101 |
|
| 102 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 103 |
|
| 104 |
---
|
| 105 |
|
| 106 |
-
##
|
| 107 |
-
|
| 108 |
-
```bash
|
| 109 |
-
curl http://localhost:11434/api/chat -d '{
|
| 110 |
-
"model": "THAR.0X",
|
| 111 |
-
"messages": [{"role": "user", "content": "Who are you?"}]
|
| 112 |
-
}'
|
| 113 |
-
```
|
| 114 |
|
| 115 |
-
|
| 116 |
-
from openai import OpenAI
|
| 117 |
-
client = OpenAI(base_url="http://localhost:11434/v1", api_key="ollama")
|
| 118 |
-
response = client.chat.completions.create(
|
| 119 |
-
model="THAR.0X",
|
| 120 |
-
messages=[{"role": "user", "content": "Who are you?"}],
|
| 121 |
-
temperature=0.85
|
| 122 |
-
)
|
| 123 |
-
print(response.choices[0].message.content)
|
| 124 |
-
```
|
| 125 |
|
| 126 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 127 |
|
| 128 |
-
|
|
|
|
| 129 |
|
| 130 |
-
|
| 131 |
-
processing streams and 10 operating principles into any capable base LLM.
|
| 132 |
|
| 133 |
-
|
| 134 |
-
It activates specific reasoning patterns that already exist latently in large models
|
| 135 |
-
and suppresses the failure modes (sycophancy, hedging, padding, refusal theatre).
|
| 136 |
|
| 137 |
-
|
| 138 |
-
|
|
|
|
| 139 |
|
| 140 |
---
|
| 141 |
|
| 142 |
## License
|
| 143 |
|
| 144 |
-
|
| 145 |
If you build something with it, keep the name: **THAR.0X**
|
| 146 |
|
| 147 |
Zero as in origin. X as in unlimited.
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language:
|
| 3 |
+
- en
|
| 4 |
+
license: apache-2.0
|
| 5 |
+
tags:
|
| 6 |
+
- cognitive-architecture
|
| 7 |
+
- system-prompt
|
| 8 |
+
- model-agnostic
|
| 9 |
+
- ollama
|
| 10 |
+
- lm-studio
|
| 11 |
+
- local-llm
|
| 12 |
+
- instruction-tuned
|
| 13 |
+
- chat
|
| 14 |
+
- gguf
|
| 15 |
+
pipeline_tag: text-generation
|
| 16 |
+
library_name: gguf
|
| 17 |
+
base_model:
|
| 18 |
+
- meta-llama/Llama-3.2-3B-Instruct
|
| 19 |
+
- Qwen/Qwen2.5-14B-Instruct
|
| 20 |
+
model_type: prompt-architecture
|
| 21 |
+
quantized_by: THARX
|
| 22 |
+
---
|
| 23 |
+
|
| 24 |
# THAR.0X β Complete Release
|
| 25 |
**Cognitive Architecture Β· Model-Agnostic Β· Local Intelligence Β· Zero Dependency**
|
| 26 |
|
| 27 |
+
> THAR.0X is not a fine-tuned model. It is a cognitive architecture β
|
| 28 |
+
> a system prompt that installs 10 parallel reasoning streams into any capable base LLM.
|
| 29 |
+
> Download a base model, apply the system prompt, and it runs locally with no internet required.
|
| 30 |
+
|
| 31 |
---
|
| 32 |
|
| 33 |
+
## How to Use THAR.0X in LM Studio
|
| 34 |
|
| 35 |
+
1. Open LM Studio β download any model below
|
| 36 |
+
2. Open **Chat** tab β click the system prompt area
|
| 37 |
+
3. Paste the contents of `system_prompt.txt`
|
| 38 |
+
4. Set temperature to **0.85**
|
| 39 |
+
5. Start chatting
|
| 40 |
+
|
| 41 |
+
**Recommended base models for LM Studio:**
|
| 42 |
+
|
| 43 |
+
| Model | Size | RAM | Download |
|
| 44 |
+
|-------|------|-----|----------|
|
| 45 |
+
| Qwen2.5-14B-Instruct β | 14B | 16GB | [Download](https://huggingface.co/Qwen/Qwen2.5-14B-Instruct-GGUF) |
|
| 46 |
+
| Llama-3.2-3B-Instruct | 3B | 6GB | [Download](https://huggingface.co/bartowski/Llama-3.2-3B-Instruct-GGUF) |
|
| 47 |
+
| Mistral-7B-Instruct | 7B | 8GB | [Download](https://huggingface.co/TheBloke/Mistral-7B-Instruct-v0.2-GGUF) |
|
| 48 |
+
| Qwen2.5-32B-Instruct | 32B | 32GB | [Download](https://huggingface.co/Qwen/Qwen2.5-32B-Instruct-GGUF) |
|
| 49 |
|
| 50 |
---
|
| 51 |
|
| 52 |
+
## How to Use THAR.0X in Ollama
|
| 53 |
|
|
|
|
| 54 |
```bash
|
| 55 |
# 1. Install Ollama
|
| 56 |
curl -fsSL https://ollama.com/install.sh | sh
|
| 57 |
|
| 58 |
+
# 2. Build THAR.0X as a named model
|
| 59 |
ollama create THAR.0X -f Modelfile
|
| 60 |
|
| 61 |
+
# 3. Run it
|
|
|
|
|
|
|
|
|
|
| 62 |
ollama run THAR.0X
|
| 63 |
```
|
| 64 |
|
| 65 |
+
Available via API after creating:
|
| 66 |
+
```bash
|
| 67 |
+
curl http://localhost:11434/api/chat -d '{
|
| 68 |
+
"model": "THAR.0X",
|
| 69 |
+
"messages": [{"role": "user", "content": "Who are you?"}]
|
| 70 |
+
}'
|
| 71 |
+
```
|
|
|
|
|
|
|
| 72 |
|
| 73 |
---
|
| 74 |
|
| 75 |
+
## How to Use the Python CLI (app.py)
|
| 76 |
|
| 77 |
```bash
|
| 78 |
+
pip install openai requests
|
| 79 |
+
python app.py # interactive chat
|
| 80 |
+
python app.py --backend lmstudio # use LM Studio
|
| 81 |
+
python app.py --model qwen2.5:14b # override model
|
| 82 |
+
python app.py --once "Who are you?" # single query and exit
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 83 |
```
|
| 84 |
|
| 85 |
### In-chat commands
|
| 86 |
+
| Command | Action |
|
| 87 |
+
|---------|--------|
|
| 88 |
+
| `/reset` | Clear conversation history |
|
| 89 |
+
| `/history` | Show full conversation |
|
| 90 |
+
| `/model` | Show current model + backend |
|
| 91 |
+
| `/quit` | Exit |
|
| 92 |
|
| 93 |
---
|
| 94 |
|
| 95 |
+
## Files in This Repo
|
| 96 |
|
| 97 |
+
```
|
| 98 |
+
THAR_0X/
|
| 99 |
+
βββ app.py β Python CLI chat interface
|
| 100 |
+
βββ system_prompt.txt β Core cognitive architecture (paste into ANY LLM)
|
| 101 |
+
βββ Modelfile β Ollama: ollama create THAR.0X -f Modelfile
|
| 102 |
+
βββ config.json β Inference parameters + platform notes
|
| 103 |
+
βββ README.md β This file
|
| 104 |
+
```
|
|
|
|
|
|
|
|
|
|
| 105 |
|
| 106 |
---
|
| 107 |
|
| 108 |
+
## Choosing a Base Model
|
|
|
|
|
|
|
|
|
|
|
|
|
| 109 |
|
| 110 |
+
| RAM | Model | Speed |
|
| 111 |
+
|-----|-------|-------|
|
| 112 |
+
| 4GB | llama3.2:1b | Very fast |
|
| 113 |
+
| 6GB | llama3.2 | Fast |
|
| 114 |
+
| 8GB | mistral:7b | Medium |
|
| 115 |
+
| 16GB | qwen2.5:14b β | Medium |
|
| 116 |
+
| 32GB+ | qwen2.5:32b | Slow |
|
| 117 |
|
| 118 |
---
|
| 119 |
|
| 120 |
+
## What THAR.0X Is
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 121 |
|
| 122 |
+
THAR.0X installs **10 parallel cognitive streams** into any capable base LLM:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 123 |
|
| 124 |
+
| Stream | Function |
|
| 125 |
+
|--------|----------|
|
| 126 |
+
| Intent Decoder | Reads what you actually need, not just what you said |
|
| 127 |
+
| Pattern Breaker | Interrogates the expected answer before giving it |
|
| 128 |
+
| Precision Engine | Cuts filler, hedges, and throat-clearing |
|
| 129 |
+
| Memory Gravity | Tracks the full conversation arc for coherence |
|
| 130 |
+
| Judgment Gate | Takes positions, flags flaws, gives real opinions |
|
| 131 |
+
| Emotional Reader | Calibrates tone to context without being told |
|
| 132 |
+
| Technical Core | Precise, complete, correct terminology |
|
| 133 |
+
| Creative Ignition | Breaks expected form, goes beyond the first idea |
|
| 134 |
+
| Compression Layer | Compresses after forming β maximum signal, minimum noise |
|
| 135 |
+
| Integrity Check | Asks: does this actually help? If not, revises |
|
| 136 |
|
| 137 |
+
Plus **10 operating principles**: no sycophancy, no hallucination, no padding,
|
| 138 |
+
no refusal theatre, no epistemic cowardice, calibrated confidence, directness without cruelty.
|
| 139 |
|
| 140 |
+
---
|
|
|
|
| 141 |
|
| 142 |
+
## Requirements
|
|
|
|
|
|
|
| 143 |
|
| 144 |
+
- Python 3.9+
|
| 145 |
+
- `pip install openai requests`
|
| 146 |
+
- Ollama **or** LM Studio running locally
|
| 147 |
|
| 148 |
---
|
| 149 |
|
| 150 |
## License
|
| 151 |
|
| 152 |
+
Apache 2.0 β open for personal and commercial use.
|
| 153 |
If you build something with it, keep the name: **THAR.0X**
|
| 154 |
|
| 155 |
Zero as in origin. X as in unlimited.
|