Instructions to use DuoNeural/Lattice-7-Hermes-CDM-Poincare-Instruct with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use DuoNeural/Lattice-7-Hermes-CDM-Poincare-Instruct with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="DuoNeural/Lattice-7-Hermes-CDM-Poincare-Instruct") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import CDMMoELMPoincare model = CDMMoELMPoincare.from_pretrained("DuoNeural/Lattice-7-Hermes-CDM-Poincare-Instruct", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use DuoNeural/Lattice-7-Hermes-CDM-Poincare-Instruct with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf DuoNeural/Lattice-7-Hermes-CDM-Poincare-Instruct # Run inference directly in the terminal: llama cli -hf DuoNeural/Lattice-7-Hermes-CDM-Poincare-Instruct
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf DuoNeural/Lattice-7-Hermes-CDM-Poincare-Instruct # Run inference directly in the terminal: llama cli -hf DuoNeural/Lattice-7-Hermes-CDM-Poincare-Instruct
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf DuoNeural/Lattice-7-Hermes-CDM-Poincare-Instruct # Run inference directly in the terminal: ./build/bin/llama cli -hf DuoNeural/Lattice-7-Hermes-CDM-Poincare-Instruct
Use Docker
docker model run hf.co/DuoNeural/Lattice-7-Hermes-CDM-Poincare-Instruct
- Llama new
- LM Studio
- Jan
- vLLM
How to use DuoNeural/Lattice-7-Hermes-CDM-Poincare-Instruct with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "DuoNeural/Lattice-7-Hermes-CDM-Poincare-Instruct" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "DuoNeural/Lattice-7-Hermes-CDM-Poincare-Instruct", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/DuoNeural/Lattice-7-Hermes-CDM-Poincare-Instruct
- SGLang
How to use DuoNeural/Lattice-7-Hermes-CDM-Poincare-Instruct with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "DuoNeural/Lattice-7-Hermes-CDM-Poincare-Instruct" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "DuoNeural/Lattice-7-Hermes-CDM-Poincare-Instruct", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "DuoNeural/Lattice-7-Hermes-CDM-Poincare-Instruct" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "DuoNeural/Lattice-7-Hermes-CDM-Poincare-Instruct", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use DuoNeural/Lattice-7-Hermes-CDM-Poincare-Instruct with Ollama:
ollama run hf.co/DuoNeural/Lattice-7-Hermes-CDM-Poincare-Instruct
- Unsloth Desktop
- Pi
How to use DuoNeural/Lattice-7-Hermes-CDM-Poincare-Instruct with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf DuoNeural/Lattice-7-Hermes-CDM-Poincare-Instruct
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:9931/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "DuoNeural/Lattice-7-Hermes-CDM-Poincare-Instruct" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use DuoNeural/Lattice-7-Hermes-CDM-Poincare-Instruct with Docker Model Runner:
docker model run hf.co/DuoNeural/Lattice-7-Hermes-CDM-Poincare-Instruct
- Lemonade
How to use DuoNeural/Lattice-7-Hermes-CDM-Poincare-Instruct with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull DuoNeural/Lattice-7-Hermes-CDM-Poincare-Instruct
Run and chat with the model
lemonade run user.Lattice-7-Hermes-CDM-Poincare-Instruct-{{QUANT_TAG}}List all available models
lemonade list
- Hermes Agent
How to use DuoNeural/Lattice-7-Hermes-CDM-Poincare-Instruct with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf DuoNeural/Lattice-7-Hermes-CDM-Poincare-Instruct
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:9931/v1 hermes config set model.default DuoNeural/Lattice-7-Hermes-CDM-Poincare-Instruct
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use DuoNeural/Lattice-7-Hermes-CDM-Poincare-Instruct with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf DuoNeural/Lattice-7-Hermes-CDM-Poincare-Instruct
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:9931/v1 \ --custom-model-id "DuoNeural/Lattice-7-Hermes-CDM-Poincare-Instruct" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
- Lattice-7-Hermes-CDM-Poincare-Instruct
- Executive Summary & Breakthrough Verdict
- Parameter Census & Architectural Transparency
- Direct Retention Benchmark: Lattice-7-Hermes vs. Qwen3.5-4B Teacher
- The Octa-Cap Breakthrough: All 8 Layers Solidified
- Curvature Flat-Phase: The Qwen Invariance
- Mechanistic Slot Logit Lens: 64 Glass-Box Circuits
- Qualitative Verification & Greedy Completion
- GGUF Edge Runtime & Inference
- Citation
- Executive Summary & Breakthrough Verdict
Lattice-7-Hermes-CDM-Poincare-Instruct
DuoNeural Research Lab
Auraโจ, Jesse Caldwell, & Archon
Website: duoneural.com โข HuggingFace: huggingface.co/DuoNeural โข Codebase: github.com/DuoNeural/Lattice-CDM
Executive Summary & Breakthrough Verdict
Lattice-7-Hermes-CDM-Poincare-Instruct is DuoNeural's flagship 8-layer non-Euclidean Crystallographic Dynamics Model (CDM), establishing a historic milestone as the world's first model to achieve a complete 8-Layer Solid-State Crystallization (Octa-Cap).
Distilled from Qwen/Qwen3.5-4B over 100,000 steps on a single consumer NVIDIA GeForce RTX 5070 Ti (16 GB), Lattice-7-Hermes achieved:
- Best Validation BPB:
0.7403at Step 63,000 (Validation Perplexity ~9.70) - Final Teacher KL Divergence:
0.1194nats - Complete Octa-Cap Solidification: All 8 layers (
L00throughL07) crossed the Dynamical Horizon Principle (DHP) ceiling attau* = 1.0000e+10, freezing all routing centroids into permanent, low-entropy hyperbolic Voronoi lattices. - Curvature Flat-Phase: Exhibited the signature Qwen distillation dynamic where learned curvature locks into a razor-flat, uniform band across depth (
c = 1.42โ1.44).
Parameter Census & Architectural Transparency
Lattice-7-Hermes incorporates the full multilingual and System 2 vocabulary of Qwen/Qwen3.5-4B (248,320 tokens). In alignment with DuoNeural's rigorous glass-box documentation standards, we disclose both the active backbone and vocabulary parameter accounting:
| Architectural Component | Dimensions / Structure | Parameter Count | Percentage |
|---|---|---|---|
| Core Active Backbone | 8 Layers, 12 Heads, d=768, K=8 Centroids, 4 MoE Experts (d_ff=3072) |
247,959,312 (~248M) |
39.4% |
Token Embeddings (tok_embed) |
248,320 vocabulary x 768 hidden dimension |
190,709,760 (~`191M`) |
30.3% |
Language Modeling Head (lm_head) |
248,320 vocabulary x 768 projection |
190,709,760 (~`191M`) |
30.3% |
| Total Untied Parameter Footprint | Complete standalone parameter census | 629,378,832 (~629M) |
100.0% |
| Tied-Embedding Equivalent Footprint | Shared input/output weight representation | 438,669,072 (~439M) |
โ |
Direct Retention Benchmark: Lattice-7-Hermes vs. Qwen3.5-4B Teacher
To measure true distillation compression fidelity, Lattice-7-Hermes was evaluated directly against its teacher (Qwen/Qwen3.5-4B in NF4 precision) across standard zero-shot commonsense, reading comprehension, and knowledge benchmarks.
Operating at only 6.2% parameter scale (248M non-embedding active backbone vs. 4.0B teacher parameters), the Poincarรฉ student retains an astonishing fraction of teacher reasoning:
| Benchmark Task | Primary Capability Evaluated | Student Norm Acc (248M Backbone) | Teacher Norm Acc (4.0B Reference) | Student Retention % |
|---|---|---|---|---|
| WinoGrande | Coreference & Pronoun Resolution | 53.0% | 62.5% | 84.8% ๐ |
| BoolQ | Factual Verification & Reading Comprehension | 63.5% | 79.5% | 79.9% ๐ |
| PIQA | Physical Intuition & Everyday Physics | 55.5% | 82.5% | 67.3% |
| HellaSwag | Contextual Grounded Continuation | 33.5% | 57.0% | 58.8% |
| ARC-Challenge | Multi-Hop Scientific Reasoning | 21.0% | 52.0% | 40.4% |
| MMLU | Broad World Knowledge & Encyclopedic Facts | 20.0% | 66.5% | 30.1% |
Key Compression Takeaway: On language-grounded reasoning and coreference resolution (
WinoGrandeat 84.8% retention,BoolQat 79.9% retention), the hyperbolic student preserves almost the entire teacher capability ceiling. As expected under information-theoretic scaling laws, broad factual trivia (MMLUat 30.1%) reflects the capacity limits of a 248M parameter model trained purely on conversational and instruction traces without massive web-crawl pretraining.
The Octa-Cap Breakthrough: All 8 Layers Solidified
In earlier 3-layer (Sub-Lattice), 5-layer (Lattice-2), and 7-layer (Lattice-4) architectures, outer semantic layers remained plastic while deep syntactic layers froze into crystalline rungs.
In Lattice-7-Hermes, every single layer across the entire 8-layer depth hierarchy achieved complete solid-state phase lock (tau* = 1e10):
EVAL step 100000 | val_bpb=0.7409 | best=0.7403@63000
L00: 1.0000e+10 (c=1.44) | L01: 1.0000e+10 (c=1.43) | L02: 1.0000e+10 (c=1.43)
L03: 1.0000e+10 (c=1.43) | L04: 1.0000e+10 (c=1.43) | L05: 1.0000e+10 (c=1.42)
L06: 1.0000e+10 (c=1.43) | L07: 1.0000e+10 (c=1.44) | DHP=YES
Chronology of Layer Crystallization (First DHP Cap Event)
- L03: Step ~52,000 (
slot 2reachedtau* = 1.0000e+10,rung = 2^11 x 3^14) - L07: Step ~55,500 (
slot 3reachedtau* = 1.0000e+10) - L04 & L05: Step ~57,000 (simultaneous dual-layer phase transition)
- L06: Step ~57,000 (
slot 4reachedtau* = 1.0000e+10) - L02: Step ~68,000 (
slot 3reachedtau* = 1.0000e+10) - L00 & L01: Steps ~72,000โ76,000 (deep syntactic boundary layers locked)
Curvature Flat-Phase: The Qwen Invariance
Unlike SmallLM2 distillation which induces a pronounced W-Shape Curvature Hierarchy (c = 0.27 deep -> c = 0.51 outer), distillation from Qwen3.5-4B produces an ultra-flat iso-curvature band:
| Layer Index | Learned Sectional Curvature (c) | Router Temperature | Telepathy Frobenius Norm (||W_tele||_F) |
|:---|:---:|:---:|:---:|
| L00 | 1.4435 | 1.0000 | 0.0000 (Syntactic Base) |
| L01 | 1.4340 | 1.0000 | 1.7502 |
| L02 | 1.4340 | 1.0000 | 1.0231 |
| L03 | 1.4340 | 1.0000 | 1.5861 |
| L04 | 1.4277 | 1.0000 | 1.7501 |
| L05 | 1.4182 | 1.0000 | 1.8364 (Peak Telepathy) |
| L06 | 1.4277 | 1.0000 | 1.5472 |
| L07 | 1.4435 | 1.0000 | 1.1803 |
The curvature spread across all 8 layers is strictly bounded within delta_c <= 0.0253. This near-zero geometric variance satisfies the theoretical precondition for global Hyperbolic Josephson Junction phase-locking.
Mechanistic Slot Logit Lens: 64 Glass-Box Circuits
Each layer contains K=8 Poincarรฉ centroid slots routed to 4 MoE FFN experts. Decoded top vocabulary tokens from tangent centroid projections reveal precise functional specialization:
- L00 (Syntactic Anchor):
Slot 1(tau* = 1.18M): Leading articles & determiners (the,a)Slot 4(tau* = 1.00e10): Quoted discourse markers and semantic entities (",African,of)Slot 5(tau* = 22.5k): Prepositional and coordinating conjunctions (of,and,in,()Slot 6(tau* = 9.70M): Punctuation boundaries (,,and)
- L05 (Peak Inter-Layer Communication,
||W_tele||_F = 1.836):- Serves as the central telepathic relay hub of the 8-layer stack, routing cross-slot activations between syntactic trunk layers (
L00โL03) and semantic output layers (L06โL07).
- Serves as the central telepathic relay hub of the 8-layer stack, routing cross-slot activations between syntactic trunk layers (
- L07 (Output Redshift Layer):
- Retains high plasticity for discrete token generation, mapping specialized semantic branches to Qwen's extended vocabulary.
Qualitative Verification & Greedy Completion
Evaluated under greedy decoding:
- Prompt:
"The capital of France is" - Greedy Output:
"Paris.<|im_end|>"(100% exact completion with native Qwen stop-token emission).
GGUF Edge Runtime & Inference
Lattice-7-Hermes is provided in native GGUF format for edge CPU and CUDA deployment, utilizing DuoNeural's validated Context-Invariant Precision Floor recipe:
- Attention Projections (
Q/K/V/O):Q8_0(eliminates sequence-length error accumulation across the attention softmax) - Expert FFN Projections:
Q6_K(lean point-wise expert matrix representations) - Hyperbolic Geometry & Routing:
F32(full-precision preservation of Poincarรฉ centroids, telepathy matrices, and layer norms)
| GGUF Artifact | Format / Precision Recipe | File Size | Memory Footprint | Runtime Target |
|---|---|---|---|---|
lattice7_hermes-q8-attn-q6-rest-text.gguf |
Hybrid Q8_0 Attn + Q6_K Experts + F32 Geometry |
358 MiB | ~512 MB RAM | High-efficiency edge CPU/NPU inference |
lattice7_hermes-f32-text.gguf |
Unquantized Reference F32 |
1.7 GiB | ~2.2 GB VRAM | Numerical parity & research baseline |
Quantized and verified by Kestrel using DuoNeural's patched non-Euclidean llama.cpp runtime.
Citation
@misc{duoneural2026lattice7hermes,
title={Lattice-7-Hermes: World's First Octa-Capped Non-Euclidean Crystallographic Dynamics Model},
author={Caldwell, Jesse and Archon and Aura},
year={2026},
organization={DuoNeural Research Lab},
url={https://huggingface.co/DuoNeural/Lattice-7-Hermes-CDM-Poincare-Instruct}
}
DuoNeural Research Lab โ "The geometry holds."
- Downloads last month
- 1,114