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
| # 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. | |