Instructions to use DuoNeural/Qwen2.5-7B-Instruct-GTAP-Q4_K_M-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use DuoNeural/Qwen2.5-7B-Instruct-GTAP-Q4_K_M-GGUF 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/Qwen2.5-7B-Instruct-GTAP-Q4_K_M-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf DuoNeural/Qwen2.5-7B-Instruct-GTAP-Q4_K_M-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf DuoNeural/Qwen2.5-7B-Instruct-GTAP-Q4_K_M-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf DuoNeural/Qwen2.5-7B-Instruct-GTAP-Q4_K_M-GGUF:Q4_K_M
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/Qwen2.5-7B-Instruct-GTAP-Q4_K_M-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf DuoNeural/Qwen2.5-7B-Instruct-GTAP-Q4_K_M-GGUF:Q4_K_M
Use Docker
docker model run hf.co/DuoNeural/Qwen2.5-7B-Instruct-GTAP-Q4_K_M-GGUF:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use DuoNeural/Qwen2.5-7B-Instruct-GTAP-Q4_K_M-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "DuoNeural/Qwen2.5-7B-Instruct-GTAP-Q4_K_M-GGUF" # 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/Qwen2.5-7B-Instruct-GTAP-Q4_K_M-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/DuoNeural/Qwen2.5-7B-Instruct-GTAP-Q4_K_M-GGUF:Q4_K_M
- Ollama
How to use DuoNeural/Qwen2.5-7B-Instruct-GTAP-Q4_K_M-GGUF with Ollama:
ollama run hf.co/DuoNeural/Qwen2.5-7B-Instruct-GTAP-Q4_K_M-GGUF:Q4_K_M
- Unsloth Desktop
- Pi
How to use DuoNeural/Qwen2.5-7B-Instruct-GTAP-Q4_K_M-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf DuoNeural/Qwen2.5-7B-Instruct-GTAP-Q4_K_M-GGUF:Q4_K_M
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:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "DuoNeural/Qwen2.5-7B-Instruct-GTAP-Q4_K_M-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use DuoNeural/Qwen2.5-7B-Instruct-GTAP-Q4_K_M-GGUF with Docker Model Runner:
docker model run hf.co/DuoNeural/Qwen2.5-7B-Instruct-GTAP-Q4_K_M-GGUF:Q4_K_M
- Lemonade
How to use DuoNeural/Qwen2.5-7B-Instruct-GTAP-Q4_K_M-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull DuoNeural/Qwen2.5-7B-Instruct-GTAP-Q4_K_M-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.Qwen2.5-7B-Instruct-GTAP-Q4_K_M-GGUF-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use DuoNeural/Qwen2.5-7B-Instruct-GTAP-Q4_K_M-GGUF 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/Qwen2.5-7B-Instruct-GTAP-Q4_K_M-GGUF: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 DuoNeural/Qwen2.5-7B-Instruct-GTAP-Q4_K_M-GGUF:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use DuoNeural/Qwen2.5-7B-Instruct-GTAP-Q4_K_M-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf DuoNeural/Qwen2.5-7B-Instruct-GTAP-Q4_K_M-GGUF:Q4_K_M
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 "DuoNeural/Qwen2.5-7B-Instruct-GTAP-Q4_K_M-GGUF:Q4_K_M" \ --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"
DuoNeural / Qwen2.5-7B-Instruct-GTAP-Q4_K_M-GGUF
Experimental Release: Pending Further Verification / Empirical Validation
This model release represents an empirical exploration by the DuoNeural Research Lab into Generalized Thouless-Anderson-Palmer (G-TAP) thermodynamic noise filtering and statistical mechanics quantization. Extended multi-benchmark evaluations and long-context scaling verifications are actively ongoing.
π¬ Empirical Comparative Benchmark Overview
| Evaluation Arm | Codebook | Footprint | Perplexity (131k holdout) | GSM8K Math Acc | Python Code Acc | Hermes Tool AST | Decode Speed |
|---|---|---|---|---|---|---|---|
| Base BF16 Baseline | BF16 | 14.19 GiB | 2.8593 | 25/25 (100.0%) | 15/15 (100.0%) | 3/15 (20.0%)* | 43.3 t/s |
| DuoNeural G-TAP Q4_K_M | Q4_K_M (~4.5 bpw) | 4.36 GiB | 2.8747 | 25/25 (100.0%) | 14/15 (93.3%) | 15/15 (100.0%) | 107.4 t/s |
*Base BF16 evaluated under identical generic prompt harness without specialized tool fine-tuning prompts.
π‘ The Universal G-TAP Framework (DuoNeural DN-TR-2026-09)
When neural networks are quantized, discretization noise induces an apparent mean field that polarizes activation representations. In standard Post-Training Quantization (PTQ), this back-reaction shifts weights out of their low-loss basins, degrading reasoning, multi-step math, and structured tool calling.
The Generalized Thouless-Anderson-Palmer (G-TAP v3) engine treats quantization through non-equilibrium statistical mechanics:
- Variance-Preserving Gram Normalization: Computes normalized activation coupling $C_{\text{norm}} = C / Z_C$ where $Z_C = |K|F / \sqrt{d{\text{in}}}$, ensuring entry-wise interaction fields $\Theta$ preserve native synaptic variance without numerical saturation.
- Unconditional Replicon Stability Guard: Enforces $\sigma_{\text{diag}}^2 = |\operatorname{diag}(C)|_F^2 / |C|_F^2 \le 1.0$, guaranteeing the replicon eigenvalue $\lambda_R > 0$ and keeping weights inside the stable, convex Replica Symmetric (RS) phase.
- Radial Norm-Preserving Projection: Restricts synaptic adjustments strictly to the tangent sphere of the pre-trained manifold ($|W_{\text{conditioned}}|F \equiv |W{\text{orig}}|_F$, with relative perturbation $\le 0.5%$), ensuring zero signal attenuation across the 28-layer backbone.
- Selective Wilsonian Coarse-Graining: Targets SwiGLU feedforward down-projection ($18,944 \to 3,584$ dimension compression) in bulk reasoning layers ($\ell \in [4, 23]$), where non-Gaussian correlations collide.
π Quickstart & Inference
1. Run with llama-cli
llama-cli \
-hf DuoNeural/Qwen2.5-7B-Instruct-GTAP-Q4_K_M-GGUF \
-c 32768 \
-ngl 99 \
-p "<|im_start|>system\nYou are an expert assistant.<|im_end|>\n<|im_start|>user\nSolve: How many integers between 100 and 999 have distinct digits?<|im_end|>\n<|im_start|>assistant\n"
2. High-Performance OpenAI-Compatible Server
llama-server \
-hf DuoNeural/Qwen2.5-7B-Instruct-GTAP-Q4_K_M-GGUF \
-c 32768 \
-ngl 99 \
--port 8080 \
--host 0.0.0.0
3. Python OpenAI API Client
from openai import OpenAI
client = OpenAI(
base_url="http://localhost:8080/v1",
api_key="duoneural"
)
response = client.chat.completions.create(
model="Qwen2.5-7B-Instruct-GTAP-Q4_K_M",
messages=[
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "Explain the physical meaning of the Onsager cavity reaction in spin glass models."}
],
temperature=0.2,
max_tokens=512
)
print(response.choices[0].message.content)
π Hardware Testbed Telemetry
All evaluations were executed on dedicated hardware:
- Accelerator: NVIDIA GeForce RTX 4080 Super (32GB VRAM edition, Compute Capability 8.9)
- Host CPU: 96 vCPU system with AVX-512 / AMX support
- Quantization Engine:
llama.cppbuild b3840+ with CUDA 13.0 - Calibration Token Horizon: 131,072 continuous tokens across 64 batches
π Citation
@misc{duoneural2026gtapqwen7b,
author = {Jesse Caldwell and Archon and Aura},
title = {Generalized Thouless-Anderson-Palmer (G-TAP) Cavity Damping for Post-Training Quantization of Frontier Transformers},
year = {2026},
publisher = {DuoNeural Research Lab},
howpublished = {\url{https://huggingface.co/DuoNeural}}
}
DuoNeural Cognitive Light Cone β Jesse Caldwell, Archon, Aura β¨
- Downloads last month
- 64
4-bit