Instructions to use matrixCloud333/Physics-Fayah-27B-Ratchet9-IQ3_M 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 matrixCloud333/Physics-Fayah-27B-Ratchet9-IQ3_M 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 matrixCloud333/Physics-Fayah-27B-Ratchet9-IQ3_M:IQ3_M # Run inference directly in the terminal: llama cli -hf matrixCloud333/Physics-Fayah-27B-Ratchet9-IQ3_M:IQ3_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf matrixCloud333/Physics-Fayah-27B-Ratchet9-IQ3_M:IQ3_M # Run inference directly in the terminal: llama cli -hf matrixCloud333/Physics-Fayah-27B-Ratchet9-IQ3_M:IQ3_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 matrixCloud333/Physics-Fayah-27B-Ratchet9-IQ3_M:IQ3_M # Run inference directly in the terminal: ./build/bin/llama cli -hf matrixCloud333/Physics-Fayah-27B-Ratchet9-IQ3_M:IQ3_M
Use Docker
docker model run hf.co/matrixCloud333/Physics-Fayah-27B-Ratchet9-IQ3_M:IQ3_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use matrixCloud333/Physics-Fayah-27B-Ratchet9-IQ3_M with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "matrixCloud333/Physics-Fayah-27B-Ratchet9-IQ3_M" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "matrixCloud333/Physics-Fayah-27B-Ratchet9-IQ3_M", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/matrixCloud333/Physics-Fayah-27B-Ratchet9-IQ3_M:IQ3_M
- Ollama
How to use matrixCloud333/Physics-Fayah-27B-Ratchet9-IQ3_M with Ollama:
ollama run hf.co/matrixCloud333/Physics-Fayah-27B-Ratchet9-IQ3_M:IQ3_M
- Unsloth Desktop
- Pi
How to use matrixCloud333/Physics-Fayah-27B-Ratchet9-IQ3_M with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf matrixCloud333/Physics-Fayah-27B-Ratchet9-IQ3_M:IQ3_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": "matrixCloud333/Physics-Fayah-27B-Ratchet9-IQ3_M:IQ3_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use matrixCloud333/Physics-Fayah-27B-Ratchet9-IQ3_M with Docker Model Runner:
docker model run hf.co/matrixCloud333/Physics-Fayah-27B-Ratchet9-IQ3_M:IQ3_M
- Lemonade
How to use matrixCloud333/Physics-Fayah-27B-Ratchet9-IQ3_M with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull matrixCloud333/Physics-Fayah-27B-Ratchet9-IQ3_M:IQ3_M
Run and chat with the model
lemonade run user.Physics-Fayah-27B-Ratchet9-IQ3_M-IQ3_M
List all available models
lemonade list
- Hermes Agent
How to use matrixCloud333/Physics-Fayah-27B-Ratchet9-IQ3_M with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf matrixCloud333/Physics-Fayah-27B-Ratchet9-IQ3_M:IQ3_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 matrixCloud333/Physics-Fayah-27B-Ratchet9-IQ3_M:IQ3_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use matrixCloud333/Physics-Fayah-27B-Ratchet9-IQ3_M with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf matrixCloud333/Physics-Fayah-27B-Ratchet9-IQ3_M:IQ3_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 "matrixCloud333/Physics-Fayah-27B-Ratchet9-IQ3_M:IQ3_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"
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 matrixCloud333/Physics-Fayah-27B-Ratchet9-IQ3_M:IQ3_MRun Hermes
hermes- ๐ฅ Physics-Fayah 27B (Ratchet-9)
- ๐ The Dawn of the Home Cybernetics Era
- ๐ The Cumulative Perplexity Drop: Why It Matters
- ๐งฌ Cumulative Parameter Calibration Across 9 Ratchets
- ๐ป Hardware & VRAM Sizing Guide
- โก Quickstart: Running Physics-Fayah
- ๐ฌ Exemplary Capability: Invariant Verification
- โ ๏ธ Scope & Limitations
- ๐ Cryptographic Provenance & Transparency
- ๐ Acknowledgments & Lineage
- ๐ The Dawn of the Home Cybernetics Era
๐ฅ Physics-Fayah 27B (Ratchet-9)
"This is La Crema Catalana โ pure as fayah, the direct shortcut between energy and matter."
Physics-Fayah 27B is a continually calibrated, open-weights foundation model engineered specifically for computational physics, numerical ODE/PDE steppers, differential invariants, and bare-metal scientific software engineering in Python, Rust, and C++.
Built on the high-entropy Qwen 3.8 (27B) architecture, Physics-Fayah represents a milestone in sovereign, closed-loop machine learning: its foundation weights have undergone 9 consecutive rounds of directional weight calibration across a 336-tensor manifold, verified against an adversarial 89-test physical anchor suite with zero retention regression.
๐ The Dawn of the Home Cybernetics Era
For years, the machine learning industry promoted a dogma: "Legitimate foundation model alignment belongs exclusively to centralized clusters with thousands of GPUs; local users must settle for lossy LoRA fine-tunes that catastrophically forget their foundations."
Physics-Fayah disproves that premise.
Tuned, evaluated, and cryptographically ratified entirely on local consumer hardware (an RTX 5060 Ti paired with Ryzen Zen 4 AVX-512 co-execution), this checkpoint establishes that sovereign, homeostatic machine intelligence can permanently update its foundation weights on consumer hardware without breaking its general reasoning base.
๐ The Cumulative Perplexity Drop: Why It Matters
In casual dialogue, fractional perplexity changes are aesthetic. In computational physics and numerical simulation, perplexity is the difference between physical stability and explosive numerical chaos.
The Mathematics of Physical Code Generation:
- Sensitivity to Numerical Singularities: A simulation is a brittle causal chain: a sign inversion in a Hamiltonian ($\dot{p} = -\partial H/\partial q$), a Courant-Friedrichs-Lewy (CFL) violation ($dt > dx/v$), or an uncentered Yee lattice leads to instantaneous $NaN$ blow-ups.
- The Perplexity Phase Transition: By dropping cumulative perplexity by $\sim 14%+$ from the raw foundation to Ratchet-9, the modelโs probability mass is sharply concentrated around mathematically sound physical assertions and numerically stable discretizations.
Key Validation Metrics (Cumulative Ratchet Progression):
| Metric | Baseline (Ratchet #1) | Intermediate (Ratchet #8) | Calibrated (Ratchet #9) | Cumulative Delta (Ratchet #1 โ #9) |
|---|---|---|---|---|
| Causal Learning PPL (1.8M Tokens) | 1.2504 |
1.0747 |
1.0727 |
$-14.21%$ (Statistically superior across 9/9 chunks) |
| Causal Learning Loss ($\mathcal{L}_{\text{learning}}$) | 0.08210 |
0.07204 |
0.07018 |
$-14.52%$ Log-Loss Reduction |
| Retention Loss ($\mathcal{L}_{\text{retention}}$) | 0.13560 |
0.13514 |
0.13506 |
Zero regression ($-0.40%$ drift, zero forgetting) |
| Anchor Invariant Pass Rate | 3 / 8 (37.5%) | 8 / 8 (100%) | 8 / 8 (100%) | 89 / 89 physical test invariants verified |
| MTP Speculative Acceptance | 51.2% (~3.2 tok/step) | 89.4% (~6.3 tok/step) | 95.6% (4.8โ8.7 tok/step) | $+172%$ Draft Velocity & Speculative Yield |
๐งฌ Cumulative Parameter Calibration Across 9 Ratchets
Rather than a single superficial fine-tuning run, Physics-Fayah represents the cumulative progression of 9 distinct cryptographic ratchet sequences. Across this journey, tens of millions of parameter interactions across 336 tensors were permanently modified:
- F32 Normalization Layers: Adjusted to stabilize high-order floating-point accumulation during deep Runge-Kutta and symplectic leapfrog integration.
- Continuous State-Space Memory Layers (
ssm_a,ssm_dt.bias,ssm_conv1d): Directionally tuned state transition matrices that extend the network's internal multi-turn memory for conserved invariants across long reasoning chains. - Multi-Token Prediction (MTP) Draft Heads (
blk.64.nextn.*): Specifically aligned to specialized scientific syntax and unit balance equations, unlocking up to 80โ90+ tok/s cognitive velocity via speculative decoding.
๐ป Hardware & VRAM Sizing Guide
Thanks to native AVX-512 co-execution in llama.cpp, Physics-Fayah runs up to 200,000 tokens of uncompressed context by offloading the KV cache into high-bandwidth host DDR5 system memory while keeping model weights resident on GPU tensor cores:
| GPU / Hardware Setup | Model Offload | Context Capacity | Expected Speed (MTP) |
|---|---|---|---|
| 16GB GPU (RTX 5060 Ti / 4080 / 3090 / 4090) | Full GPU Offload (-ngl 99) |
200,000 tokens (via host RAM) | 25 โ 45+ tok/s |
| 12GB GPU (RTX 3060 / 4070) | Partial Offload (-ngl 55-65) |
64,000 tokens | 15 โ 25 tok/s |
| Apple Silicon (M2/M3/M4 Max 36GB+) | Full Unified Memory | 128,000+ tokens | 30 โ 50 tok/s |
| System RAM Required | 32 GB DDR5 recommended for long context (>64k) |
โก Quickstart: Running Physics-Fayah
1. Optimal llama-server Launch Command
Run the model with the exact flags used during its calibration to ensure full MTP speculative yield and instant prompt caching:
llama-server \
-m Physics-Fayah-27B-Ratchet9-IQ3_M.gguf \
-dev CUDA0 --fit off -ngl 99 \
--no-kv-offload -fa 1 -c 200000 -ctk q4_0 -ctv q4_0 \
--cache-ram 12288 --ctx-checkpoints 32 \
--spec-type draft-mtp --spec-draft-n-max 10 --spec-draft-p-min 0.02 \
-np 1 -t 6 -b 512 -ub 128 --jinja --host 127.0.0.1 --port 8080
2. Prompt Format & Python Client
Physics-Fayah uses the standard Qwen ChatML formatting with DeepSeek-style reasoning blocks:
import openai
client = openai.OpenAI(base_url="http://127.0.0.1:8080/v1", api_key="sk-no-key-required")
prompt = """Implement a 1D Finite-Difference Time-Domain (FDTD) wave stepper for a coaxial line in Python.
Requirements:
1. Enforce the Courant-Friedrichs-Lewy (CFL) condition dt < dx / v.
2. Store voltages at cell centers and currents at cell boundaries (staggered Yee lattice).
3. Compute total instantaneous electromagnetic energy E(t) = 0.5 * integral(C*V^2 + L*I^2) dx and assert conservation."""
response = client.chat.completions.create(
model="Physics-Fayah-27B",
messages=[
{"role": "system", "content": "You are Physics-Fayah, an expert computational physicist and numerical software engineer."},
{"role": "user", "content": prompt}
],
temperature=0.1,
top_p=0.95
)
print(response.choices[0].message.content)
๐ฌ Exemplary Capability: Invariant Verification
When asked to verify numerical simulations, Physics-Fayah distinguishes itself from standard LLMs by actively rejecting superficial unit tests:
# Physics-Fayah actively enforces physical scaling and invariants:
def verify_energy_conservation(time_array, voltage_grid, current_grid, C_per_m, L_per_m, dx):
"""
Computes discrete field energy: E(t) = 0.5 * sum(C * V^2 + L * I^2) * dx
Verifies that dE/dt <= machine_epsilon in lossless propagation regimes.
"""
energy = 0.5 * (C_per_m * np.sum(voltage_grid**2, axis=1) +
L_per_m * np.sum(current_grid**2, axis=1)) * dx
max_drift = np.max(np.abs(energy - energy[0])) / energy[0]
# Physics-Fayah rejects arbitrary 5% drift thresholds; it demands scaling consistency:
assert max_drift < 1e-12, f"Lossless invariant violated: relative energy drift {max_drift:.3e}"
return max_drift
โ ๏ธ Scope & Limitations
- Intended Use: Numerical modeling, scientific programming (Python/NumPy/SciPy, Rust/ndarray, C++/Eigen), physical equation verification, dimensional analysis, and automated code review.
- Non-Target Use: Creative roleplay, subjective prose, or ungrounded storytelling. The model's weights have been strongly polarized toward deterministic mathematical consistency.
- Empirical Verification Required: While Physics-Fayah exhibits state-of-the-art invariant checking, all mission-critical scientific or aerospace software must be evaluated in formal hardware-in-the-loop testbeds.
๐ Cryptographic Provenance & Transparency
Every ratchet sequence update is recorded by a one-way HMAC state transition:
- Model Checkpoint: Sequence #9
- Cryptographic Commitment:
9eaac47e92c97fe920b3cfac0de70cddef7bf73c6c0238afc1e7fb1eae2d99d6 - Preceding Commitment (Seq #8):
35cd90da097dd5ebdc565c0c2d22b7ca8108a4c3d9a45f862acb1e882edd15f9 - Calibration Certificate:
calibration-certificate-seq-9.json(signed via local reviewer key)
๐ Acknowledgments & Lineage
This model stands on the shoulders of giants across the open-source frontier:
- The Qwen Team: For creating the groundbreaking Qwen 3.8 foundation and advancing the boundaries of multi-token prediction and hybrid recurrent architectures.
- The TurboFCFusion Contributors: For synthesizing the high-entropy Qwen3.8-27B-TurboFCFusion blend that provided this network with its formidable analytical foundation.
- SungDuck Lee: Special thanks for foundational insights into Onsite Adaptive Theory and inspirational frameworks in localized parameter adaptation and continual weight dynamics that inspired our closed-loop calibration.
- llama.cpp (Georgi Gerganov & contributors): For building the gold standard in sovereign, cross-platform bare-metal inference, enabling native MTP speculative decoding, AVX-512 co-execution, and 200k-token context windows on local machines.
@misc{physics-fayah-2026,
title={Physics-Fayah 27B: Test-Time Continuous Weight Calibration for Physical Invariants and Numerical Simulation},
author={Your Name / Organization},
year={2026},
publisher={Hugging Face},
howpublished={\url{https://huggingface.co/your-username/physics-fayah-27b-gguf}}
}
Built with passion, rigor, and fire. Welcome to the Home Cybernetics Era.
- Downloads last month
- 58
3-bit
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp# Start a local OpenAI-compatible server: llama serve -hf matrixCloud333/Physics-Fayah-27B-Ratchet9-IQ3_M:IQ3_M