Text Generation
MLX
Safetensors
English
qwen3
theorem-proving
lean4
conjecture-generation
apple-silicon
ravenx
conjecturebench
prediction-markets
trading
polymarket
formal-verification
conversational
4-bit precision
Instructions to use deadbydawn101/RavenX-Conjecture-Qwen3-8B-MLX with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use deadbydawn101/RavenX-Conjecture-Qwen3-8B-MLX with MLX:
# Make sure mlx-lm is installed # pip install --upgrade mlx-lm # Generate text with mlx-lm from mlx_lm import load, generate model, tokenizer = load("deadbydawn101/RavenX-Conjecture-Qwen3-8B-MLX") prompt = "Write a story about Einstein" messages = [{"role": "user", "content": prompt}] prompt = tokenizer.apply_chat_template( messages, add_generation_prompt=True ) text = generate(model, tokenizer, prompt=prompt, verbose=True) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Pi
How to use deadbydawn101/RavenX-Conjecture-Qwen3-8B-MLX with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "deadbydawn101/RavenX-Conjecture-Qwen3-8B-MLX"
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "mlx-lm": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "deadbydawn101/RavenX-Conjecture-Qwen3-8B-MLX" } ] } } }Run Pi
# Start Pi in your project directory: pi
- MLX LM
How to use deadbydawn101/RavenX-Conjecture-Qwen3-8B-MLX with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Interactive chat REPL mlx_lm.chat --model "deadbydawn101/RavenX-Conjecture-Qwen3-8B-MLX"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "deadbydawn101/RavenX-Conjecture-Qwen3-8B-MLX" # Calling the OpenAI-compatible server with curl curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "deadbydawn101/RavenX-Conjecture-Qwen3-8B-MLX", "messages": [ {"role": "user", "content": "Hello"} ] }' - Hermes Agent
How to use deadbydawn101/RavenX-Conjecture-Qwen3-8B-MLX with Hermes Agent:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "deadbydawn101/RavenX-Conjecture-Qwen3-8B-MLX"
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 deadbydawn101/RavenX-Conjecture-Qwen3-8B-MLX
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use deadbydawn101/RavenX-Conjecture-Qwen3-8B-MLX with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "deadbydawn101/RavenX-Conjecture-Qwen3-8B-MLX"
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "deadbydawn101/RavenX-Conjecture-Qwen3-8B-MLX" \ --custom-provider-id mlx-lm \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
File size: 7,013 Bytes
56a6f4e 075c603 56a6f4e 075c603 56a6f4e 075c603 58db1ea 075c603 56a6f4e 075c603 58db1ea 075c603 58db1ea 075c603 58db1ea 075c603 58db1ea 075c603 58db1ea 075c603 58db1ea 075c603 | 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 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 | ---
license: apache-2.0
language:
- en
library_name: mlx
tags:
- theorem-proving
- lean4
- conjecture-generation
- apple-silicon
- mlx
- ravenx
- conjecturebench
- prediction-markets
- trading
- polymarket
- formal-verification
base_model: Qwen/Qwen3-8B
datasets:
- AI-MO/NuminaMath-LEAN
pipeline_tag: text-generation
---
# RavenX-Conjecture-Qwen3-8B-MLX
**The first conjecture generation model fine-tuned on MLX for Apple Silicon.**
Built by a security AI company that doesn't do math. That's the point.
## The Story
On July 22, 2026 β first day back after two weeks sick β RavenX AI Labs:
1. Read the ConjectureBench paper (arXiv:2510.11986) β nobody had implemented it locally
2. Built the first MLX-native LEAN-FIRE pipeline on Apple Silicon
3. Fine-tuned the first conjecture generation model that exists
4. Verified Dmitry Rybin's breaking counterexample to the 30-year-old Dinitz-Garg-Goemans conjecture within hours
We don't do math. We do security AI and sovereign infrastructure. We built this cold.
---
## π₯ Universal Conjecture Engine β 3 Modes, 5 Domains
The core insight: **conjecture generation IS prediction.** Same pipeline whether you're breaking a 30-year-old math conjecture or sizing a Polymarket position.
| Mode | What It Does |
|------|-------------|
| **VALIDATE** | Prove a conjecture true β decompose, formalize, verify |
| **BREAK** | Find a counterexample β attack surfaces, exhaustive search |
| **PREDICT** | Generate predictions β trading, Polymarket, security, science |
### Mode 1: VALIDATE β Prove It True
```python
from mlx_lm import load, generate
model, tokenizer = load("deadbydawn101/RavenX-Conjecture-Qwen3-8B-MLX")
messages = [
{"role": "system", "content": """You are a formal verification expert. Your task is to PROVE a conjecture is true.
Process: 1) DECOMPOSE into atomic claims 2) FORMALIZE in Lean 4 3) EVIDENCE for each claim 4) SYNTHESIZE proof 5) CONFIDENCE rating (0-1).
Output: decomposition, formal statement, proof sketch, verdict (PROVED / LIKELY TRUE / INSUFFICIENT EVIDENCE), weakest link."""},
{"role": "user", "content": "Every even integer greater than 2 is the sum of two primes (Goldbach's conjecture)\n/no_think"}
]
prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
output = generate(model, tokenizer, prompt=prompt, max_tokens=1024)
print(output)
```
### Mode 2: BREAK β Find a Counterexample
This is how we verified the DGG counterexample. The system prompt that breaks conjectures:
```python
messages = [
{"role": "system", "content": """You are a counterexample hunter. Your task is to DISPROVE a conjecture.
Process: 1) FORMALIZE the claim precisely 2) BOUNDARIES β constraints and degrees of freedom 3) ATTACK SURFACE β where is it weakest? 4) CONSTRUCT a candidate 5) VERIFY exhaustively (integer arithmetic) 6) CERTIFY with explicit values.
Key: exhaustive verification, integer arithmetic, show all work. Beautiful constructions are often correct."""},
{"role": "user", "content": """For single-source unsplittable flow, every fractional flow can be rounded to unsplittable flow of no higher cost, with each arc's load exceeded by at most d_max.
Try: small planar graphs, 3 terminals, unequal demands, razor-thin margins.
/no_think"""}
]
```
### Mode 3: PREDICT β Trading, Polymarket, Security
**The killer app.** Conjecture = Prediction. Formalization = Resolution criteria. Counterexample = The trade.
```python
# Polymarket prediction
messages = [
{"role": "system", "content": """You are a prediction engine. A prediction IS a conjecture. Resolution criteria IS verification.
Process: 1) FORMALIZE the claim (precise, time-bounded, resolution source) 2) DECOMPOSE into sub-claims with individual probabilities 3) BASE RATE + evidence update 4) COMBINED estimate with confidence interval 5) IDENTIFY THE EDGE (your estimate vs market price).
Use Kelly criterion for position sizing. State max downside."""},
{"role": "user", "content": """**Claim:** BTC will close above $100,000 by September 30, 2026
**Current Market Price:** 0.35
**Implied Probability:** 35.0%
**Context:** Current price ~$68K. ETF inflows $200M/day. Halving April 2024. Fed cutting rates Q3 2026.
/no_think"""}
]
# Security conjecture
messages = [
{"role": "system", "content": """You are a security verification engine. Formalize vulnerabilities as formal claims, then prove or disprove.
Process: 1) FORMALIZE the vulnerability as a claim about system state 2) ATTACK MODEL β attacker capabilities 3) Check CVE/NVD/MITRE 4) Construct minimal PoC 5) Prove or disprove the claim 6) Responsible disclosure if confirmed."""},
{"role": "user", "content": """The Sovereignty Chain's gradient ledger encryption prevents extraction of fine-tuning data without the owner's private key.
Context: PGP-based encryption of gradient deltas. Attacker has full model weights but not the PGP key.
/no_think"""}
]
```
---
## Training
| Parameter | Value |
|-----------|-------|
| Base model | Qwen/Qwen3-8B |
| Method | MLX LoRA (rank 16, alpha 32) |
| Dataset | AI-MO/NuminaMath-LEAN (1,706 train / 190 valid) |
| Iterations | 1,500 |
| Val loss | 2.993 β 0.651 (78% reduction) |
| Time | ~75 min on Apple M4 Max 128GB |
| Tokens trained | 1,010,330 |
## Results
**Before:** model consumed all tokens in think blocks, no Lean 4 output.
**After:** correct Lean structures β existential statements, IsGreatest, Finset.range, Real.pi.
## DGG Conjecture β Verify Yourself
```bash
git clone https://github.com/DeadByDawn101/ravenx-conjecturebench
python formal_verification/verify_dgg.py
```
All 8 routings. Integer arithmetic. 60 > 58. 245-line Lean 4 formalization included.
## Formats
| Format | Size | Link |
|--------|------|------|
| **MLX (this repo)** | 4.3 GB | You're here |
| GGUF Q8_0 | 8.1 GB | [GGUF](https://huggingface.co/deadbydawn101/RavenX-Conjecture-Qwen3-8B-GGUF) |
## Full Pipeline + Universal Prompt Engine
[github.com/DeadByDawn101/ravenx-conjecturebench](https://github.com/DeadByDawn101/ravenx-conjecturebench)
Includes `prompts/universal_conjecture.py` β run predictions from the command line:
```bash
python prompts/universal_conjecture.py --mode predict --domain trading --claim "BTC > 100K by Sept" --market-price 0.35 --run
python prompts/universal_conjecture.py --mode break --claim "Your conjecture here" --run
python prompts/universal_conjecture.py --example dgg_break --run
```
## RavenX AI Labs
155K+ HF downloads | 22 models | 2 USPTO patents | Security AI
- [CyberAgent-35B](https://huggingface.co/deadbydawn101/RavenX-CyberAgent-Qwen3.6-35B-A3B-Opus-4.7-OpenMythos-Pentester-BugHunter-RATH-GGUF) β 20K+ downloads
- [Gemma-4-E4B](https://huggingface.co/deadbydawn101/gemma-4-E4B-Agentic-Opus-Reasoning-GeminiCLI-mlx-4bit) β 103K+ downloads
[@DeadByDawn101](https://github.com/DeadByDawn101) | [@RavenXllm](https://x.com/RavenXllm)
*"We don't do math. That's the point." β RavenX AI Labs*
|