Magnus β SYNAXIM .symb Format (INT4)
Powered by SYNAXIM β Symbiotic Native Axim Inference Machine
Framework-Free LLM Inference | Attention β‘ Memory | O(1) State
β‘ v0.2.1 β Compartment Gate Release. CPU + GPU unified inference. 103.12 tok/s on NVIDIA CUDA, 18.35 tok/s on Apple M3 Metal. Symbiotic Compartment Gate: head-aware load balancer with dynamic Ξ± and Ξt.
π₯ Verified Benchmarks β TinyLlama 1.1B (INT4, 30 tokens)
| Device | Backend | tok/s | Avg Latency | Speedup |
|---|---|---|---|---|
| NVIDIA CUDA | PyTorch GPU + Compartment Gate | 103.12 | 9.7 ms | 6.4Γ |
| Apple M3 MPS | PyTorch Metal | 18.35 | 54.5 ms | 1.1Γ |
| CPU (GPU box) | NumPy + BLAS | 16.05 | 62.3 ms | 1Γ |
| Apple M3 CPU | NumPy + Accelerate | 12.49 | 80.0 ms | baseline |
| SYNAXIM Γ AXIM | AXIM NEON + BLAS | 12.88 | 77.6 ms | baseline |
Model: TinyLlama-1.1B-Chat-v1.0 converted to
.symbINT4 (584 MB).
NVIDIA GPU: marimo cloud (9 GB VRAM). Apple M3: 16 GB MacBook Pro.
All results with Symbiotic Compartment Gate (head-aware load balancer).
Single-token autoregressive generation (not batch/prefill).
About Magnus
Magnus is a custom fine-tuned Mistral-7B-Instruct-v0.3 with axim-alignment β stripped to text-only for maximum inference speed through SYNAXIM's O(1) Symbiotic State Engine.
- No KV-Cache β O(1) fixed-size memory matrix (DualFluidM)
- No PyTorch required β pure NumPy core (+ PyTorch for GPU acceleration)
- Proprietary
.symbformat β INT4 bitpacked, 3.8Γ compression - Dual Engine β same code runs on CPU, CUDA, and MPS
- Compartment Gate β head-aware load balancer, dynamic Ξ± and Ξt
- Multimodal β text + image understanding (vision encoder + M-projector)
Quick Start
Option 1: TinyLlama (small, fast, test anywhere)
pip install git+https://github.com/GRRN-MAKER/SYNAXIM.git
pip install torch transformers safetensors
from grrn_inference import SymbioticConverter
# Convert TinyLlama to .symb INT4 (downloads from HuggingFace)
SymbioticConverter().convert(
source="TinyLlama/TinyLlama-1.1B-Chat-v1.0",
output_dir="./tinyllama-symb",
quantize="int4", group_size=128)
# Run on GPU (auto-detects CUDA or MPS)
from grrn_inference.dual_engine import DualEngine
engine = DualEngine("./tinyllama-symb", device="auto")
logits = engine.forward(1) # β 97 tok/s on CUDA, 18 tok/s on MPS
Option 2: Magnus 7B (full model)
pip install git+https://github.com/GRRN-MAKER/SYNAXIM.git
huggingface-cli download GRRNMAKE/Magnus-SYMB --local-dir ./magnus-symb
from grrn_inference import GRRNModel
model = GRRNModel.from_pretrained("./magnus-symb", device="cuda") # or "cpu", "mps", "dual"
result = model.generate("The meaning of life is", max_tokens=50, temperature=0.7)
print(result.text)
Option 3: Benchmark in the browser (Marimo)
pip install marimo
git clone https://github.com/GRRN-MAKER/SYNAXIM.git && cd SYNAXIM
marimo run marimo_cuda_bench.py
The marimo notebook clones the repo, converts the model, and benchmarks CPU vs GPU β all in the browser.
Benchmark CLI
# Auto-detect best device
python3 bench_synaxim.py ./tinyllama-symb --device dual
# Force specific device
python3 bench_synaxim.py ./tinyllama-symb --device cpu
python3 bench_synaxim.py ./tinyllama-symb --device cuda
python3 bench_synaxim.py ./tinyllama-symb --device mps
Model Details
| Property | Value |
|---|---|
| Name | Magnus |
| Modality | Text + Vision (v0.2.1) |
| Base Model | mistralai/Mistral-7B-Instruct-v0.3 |
| Parameters | ~7.24B |
| Hidden Size | 4096 |
| Layers | 32 |
| Attention | 32Q / 8KV (GQA 4:1) |
| Vocabulary | 32,768 |
| RoPE ΞΈ | 1,000,000 |
| Format | .symb INT4 (group_size=128) |
| Size | ~3.85 GB |
| Adapter | 32-layer Symbiotic Gate (knowledge distillation) |
Device Selection β Dual Engine
Same .symb files work on all backends:
# High-level API
model = GRRNModel.from_pretrained("./magnus-symb", device="cpu") # CPU (NumPy + BLAS)
model = GRRNModel.from_pretrained("./magnus-symb", device="cuda") # NVIDIA GPU
model = GRRNModel.from_pretrained("./magnus-symb", device="mps") # Apple Metal GPU
model = GRRNModel.from_pretrained("./magnus-symb", device="dual") # Auto-detect best
# Direct Dual Engine
from grrn_inference.dual_engine import DualEngine
engine = DualEngine("./model-symb", device="auto")
| Backend | Speed | Hardware |
|---|---|---|
cuda |
π₯ 103+ tok/s | NVIDIA GPU (PyTorch CUDA) |
mps |
β‘ 18+ tok/s | Apple Silicon (PyTorch Metal) |
cpu |
β‘ 12-16 tok/s | Any CPU (NumPy + BLAS) |
dual |
Auto-detect | Best available (multi-GPU if present) |
parallel |
Multi-GPU | 2-8 NVIDIA GPUs |
Architecture
[Token ID] β [Embedding] β [22-32 Layer Pipeline] β [Logits] β [Next Token]
β
Per Layer: RMSNorm β Attn β RMSNorm β MLP β Residual
β
Attention:
QKV + RoPE + DualFluidM update
output = q @ (U @ V^T)
O(DΓr) state, r=256, fixed memory
DualFluidM:
Structured track (phase-rotated, anti-saturation)
+ Unstructured track (Euler adaptive, anti-stiffness)
Dual retrieval: Y = QΒ·(M_struct + Ξ±Β·M_unstruct)
Roadmap
| Feature | Status |
|---|---|
| Text generation / chat / streaming | β Done |
.symb INT4 format |
β Done |
| CPU engine (NumPy + Numba) | β Done |
| GPU engine (Triton fused kernels) | β Done |
| Dual Engine (CPU + CUDA + MPS) | β Done (v0.2) |
| DualFluidM (structured + unstructured M) | β Done (v0.2) |
| 103.12 tok/s on NVIDIA CUDA (Compartment Gate) | β Verified |
| 18.35 tok/s on Apple M3 MPS (Compartment Gate) | β Verified |
| AXIM runtime integration | β Done |
| Symbiotic Gate adapter training | β Done |
| Magnus as default model | β Done |
| OpenAI-compatible API server | β Done |
| Marimo cloud GPU notebooks | β Done |
| Native FP16/FP32 (no INT4 required) | β Done (v0.2.1) |
| Vision / image support | β Done (v0.2.1) |
| Multi-GPU tensor parallelism | β Done (v0.2.1) |
Links
- Engine: github.com/GRRN-MAKER/SYNAXIM
- AXIM Runtime: github.com/GRRN-MAKER/Aximcomp
- Model (original): GRRNMAKE/Magnus
- Model (.symb): GRRNMAKE/Magnus-SYMB
- Author: GRRNMAKER
SYNAXIM β Because inference should be a machine, not a framework.
Built by GRRNMAKER
Model tree for GRRNMAKE/SYNAXIM
Base model
mistralai/Mistral-7B-v0.3