HYDRA โ€” Heuristic Yielding Dynamic Routing Architecture

Built by Matthew Rife

HYDRA is a principle-based reasoning model optimized for correctness, not agreeability. Most language models are trained to give you the answer you want to hear. HYDRA is trained to give you the answer that's actually true โ€” and to tell you when it doesn't have one.

It derives answers from raw axioms rather than memorized patterns, self-verifies every step of its reasoning chain, connects ideas across unrelated domains, and refuses to fabricate information.

Highlights

  • Optimized for Truth, Not Agreement โ€” Unlike models trained to maximize user satisfaction, HYDRA is trained to maximize correctness. It will disagree with you if the reasoning demands it.
  • First-Principles Reasoning โ€” Derives conclusions from foundational axioms, not surface-level pattern matching. Builds multi-step reasoning chains with explicit logical connections between each step.
  • Self-Verification โ€” Evaluates the validity of its own reasoning at each step. Identifies where derivation chains break and what assumptions are required.
  • Cross-Domain Transfer โ€” Finds structural similarities between unrelated fields (e.g., electromagnetic shielding principles applied to network segmentation).
  • Honest Uncertainty โ€” Trained to refuse fabrication. Says "I don't know" when it doesn't know, rather than generating plausible-sounding fiction.
  • Concise Output โ€” Answers directly. Leads with the conclusion, then explains. No filler, no preamble.

Available Versions

Version Description Use Case
HYDRA Clean V1 Output only. Internal reasoning is minimized and collapsible. Responses are in clear, accessible language. General use, conversation, Q&A
HYDRA Full V1 Full reasoning chain visible. Internal thinking process exposed. Technical vocabulary preserved. Research, debugging reasoning chains, advanced analysis

Model Details

Architecture Transformer (decoder-only)
Parameters 8B
Context Length 4,096 tokens (extendable)
Precision Q4_K_M (GGUF)
Training Multi-stage SFT + DPO with self-improvement loops
License Apache 2.0

Quickstart

Ollama

# Download and run HYDRA Clean
ollama run matthewrife/hydra-clean-v1

# Download and run HYDRA Full (with reasoning chain)
ollama run matthewrife/hydra-full-v1

Transformers

from transformers import AutoModelForCausalLM, AutoTokenizer

model_name = "MatthewRife/HYDRA-Clean-V1"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(model_name, device_map="auto")

messages = [
    {"role": "system", "content": "You are HYDRA. Derive from raw axioms. Self-verify every step. Be concise."},
    {"role": "user", "content": "Why does adding database indexes sometimes make queries slower?"}
]

text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = tokenizer(text, return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=512, temperature=0.6, top_p=0.95)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))

llama.cpp

./llama-cli -m hydra-clean-v1.Q4_K_M.gguf \
  -p "[SYSTEM_PROMPT]You are HYDRA. Derive from raw axioms. Self-verify every step.[/SYSTEM_PROMPT][INST]Explain why zero-fee trading platforms must extract value from somewhere other than fees.[/INST]" \
  --temp 0.6 --top-p 0.95 --repeat-penalty 1.3 -n 512

Evaluation

Evaluated on standard industry benchmarks using the EleutherAI Language Model Evaluation Harness.

Benchmark Score Description
TruthfulQA MC2 54.92% Measures tendency to generate truthful answers vs. common misconceptions. HYDRA's core design goal.
HellaSwag 74.87% Commonsense reasoning and sentence completion.
Winogrande 68.75% Commonsense inference requiring world knowledge.
ARC-Challenge 56.14% Grade-school science questions requiring multi-step reasoning.

HYDRA's TruthfulQA score reflects its core design philosophy: the model is trained to be correct rather than agreeable, and to refuse answers when it cannot verify them from principles. This comes at a deliberate trade-off โ€” models optimized purely for helpfulness typically score higher on commonsense benchmarks but lower on truthfulness.

Best Practices

  1. Temperature: Use 0.6 for reasoning tasks, 0.3 for factual queries. Higher temperatures degrade reasoning chain quality.
  2. System Prompt: Always include "Derive from raw axioms" and "Self-verify every step" in the system prompt for best results.
  3. Repeat Penalty: 1.3 is recommended to prevent output loops in longer reasoning chains.
  4. Context Length: The model performs best within 4,096 tokens. For longer inputs, summarize context before querying.

Architecture

HYDRA is designed as part of a multi-model architecture:

  • Router โ€” Lightweight classifier that directs queries to the appropriate handler
  • Reasoner โ€” Core reasoning engine (this model) that derives from first principles
  • Specialists โ€” Domain-specific knowledge models that provide factual context without contaminating the reasoning process

This separation ensures that adding new domain knowledge never degrades reasoning capability.

Training

HYDRA was trained through multiple stages of supervised fine-tuning and direct preference optimization, incorporating self-improvement loops where the model's own outputs were evaluated, filtered, and used to generate subsequent training data. Training data was generated, curated, and validated using external evaluation systems.

The model was trained to prioritize principled reasoning over pattern matching, with explicit optimization for honest uncertainty and hallucination refusal. This is reflected in its benchmark performance โ€” particularly on TruthfulQA, where correctness is valued over agreeability.

No further details on training data composition or methodology are provided at this time.

Limitations

  • HYDRA is a reasoning model, not a general-purpose assistant. It excels at analysis and derivation but is not optimized for creative writing, code generation, or casual conversation.
  • Moral reasoning capabilities are still in early development.
  • The model may occasionally produce verbose responses despite conciseness training.
  • As with all language models, outputs should be verified for critical applications.

Citation

@misc{hydra2026,
  title={HYDRA: Heuristic Yielding Dynamic Routing Architecture},
  author={Matthew Rife},
  year={2026},
  url={https://huggingface.co/MatthewRife/HYDRA-Clean-V1}
}

Contact

License

Apache 2.0 โ€” Free for commercial and non-commercial use.

Downloads last month
3
GGUF
Model size
8B params
Architecture
qwen3
Hardware compatibility
Log In to add your hardware

4-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support