Downloads · 30 days
0
Musouno-Enma99/WRAI-X-0.8B-Qwen3
WRAI-X-0.8B-Qwen3 is a text generation model from Musouno-Enma99. Use it when you need the model to write or continue text. It is set up for c-native. The card lists the license as apache-2.0.
⚠️ Research Disclaimer: This model is an Experimental Proof-of-Concept (PoC) designed to explore the feasibility of transplanting Transformer quadratic attention into Dual-State Recurrent Retention + Discrete Haar Wav…
Downloads · 30 days
0
Access
Public
Updated Sep 12, 2026
Repo size
3.1 GB
Likes
0
Public
Click a slice to open those files.
.pt1.7 GB · 54%
From the Hugging Face model README
⚠️ Research Disclaimer: This model is an Experimental Proof-of-Concept (PoC) designed to explore the feasibility of transplanting Transformer quadratic attention into Dual-State Recurrent Retention + Discrete Haar Wavelet Transform (DWT) without training from scratch. It is not a production-ready conversational agent, but rather an open research artifact intended for AI systems researchers, students, and low-power edge computing enthusiasts.
Qwen/Qwen3-0.6B (100% Frozen FFN, RMSNorm, and Embeddings)wrai_x_08b_int8.bin (1.35 GB) — INT8 symmetric row-wise quantized binary for zero-heap C enginewrai_x_08b_transplanted.pt (1.66 GB) — PyTorch checkpoint for research, inspection, and continued fine-tuningStandard Transformer architectures suffer from a fundamental memory scaling bottleneck: the Linear KV-Cache Growth ($O(T)$), which consumes gigabytes of VRAM/RAM as sequence lengths increase.
Rather than training a billion-parameter model from scratch at massive computational expense, the WRAI-X project explores Architectural Transmutation (Transplantation):
mmap) and 256-bit AVX SIMD execution.We strongly believe in academic integrity and radical transparency regarding model capabilities:
malloc = 0, realloc = 0) and flat physical RAM footprint (+0.00 MB delta) from token $T=1$ to long context sequences.<think> ... </think>) and basic greeting routines.The following metrics were captured directly via Windows NT Kernel Memory APIs (psapi.h) while running the compiled release binary wrai_x.exe on physical x86_64 CPU hardware:
| Kernel & Hardware Metric | Measured Value | Forensic Significance |
|---|---|---|
| Model Binary on Storage | 1,422,927,244 bytes (~1.35 GB) | Physical INT8 row-wise binary |
| Physical Working Set (RAM) | 912.90 MB | Actual hardware DDR memory paged in by OS |
| Hardware Page Faults (MMU) | 234,259 pages | Direct physical transfer of 4 KB blocks from SSD to RAM |
| SIMD AVX Computation | ~1.30 GFLOPs / token | Real quantized matrix dot-products in 256-bit CPU registers |
$$\text{Paging Calculation: } 234,259 \text{ pages} \times 4,096 \text{ bytes} \approx \mathbf{915 \text{ MB}} \quad (\text{Exact match to 912.90 MB Working Set})$$
Across the generation lifecycle from short prompt ($T=16$) to long context ($T=8,192$), WRAI-X retains contextual history in-place with zero dynamic heap reallocations:
| Empirical Audit Metric | Short Context ($T = 16$) | Long Context ($T = 8,192$) | Scalability Impact |
|---|---|---|---|
| WRAI-X Persistent Recurrent State | 29.42 MB | 29.42 MB | $\Delta\text{State} = \mathbf{0.0000\text{ MB}}$ (Strictly Constant) |
| Dynamic Heap Calls during Inference | 0 (malloc = 0) | 0 (realloc = 0) | Zero heap fragmentation or re-allocation |
| Equivalent Transformer KV-Cache (FP16)* | 7.00 MB | 3,584.00 MB (3.50 GB) | Linear $O(T)$ memory growth ($512\times$ explosion) |
| WRAI-X Memory Advantage vs. Transformer | Baseline | -3,554.58 MB (-99.2%) | Completely eliminates KV-cache blowout |
psapi.h)| Context Length ($T$) | Physical RAM (WRAI-X C Engine) | Measured RAM Delta | Equivalent Transformer (KV-Cache Only)* | WRAI-X Context Memory Status |
|---|---|---|---|---|
| $T = 1$ | 918.62 MB | +0.00 MB | 0.44 MB | $O(1)$ Persistent State |
| $T = 16$ | 918.62 MB | +0.00 MB | 7.00 MB | $O(1)$ Persistent State |
| $T = 64$ | 918.61 MB | -0.01 MB | 28.00 MB | $O(1)$ Persistent State |
| $T = 256$ | 918.61 MB | -0.01 MB | 112.00 MB | $O(1)$ Persistent State |
| $T = 1,024$ | 918.61 MB | -0.01 MB | 448.00 MB | $O(1)$ Persistent State |
| $T = 4,096$ | 918.61 MB | -0.01 MB | 1,792.00 MB (1.75 GB) | Zero Cache Overhead |
| $T = 8,192$ | 918.61 MB | -0.01 MB | 3,584.00 MB (3.50 GB) | Zero Cache Overhead |
| $T = 32,768$ (32K) | 918.61 MB | -0.01 MB | 14,336.00 MB (14.0 GB) | Eliminates OOM Risk |
* Equivalent Transformer Reference Configuration: Theoretical KV-Cache calculation assumes $L=28$ layers, $H_{kv}=16$ key-value heads, $d_k=128$ head dimension in standard FP16 ($2 \times 28 \times 16 \times 128 \times 2 = 229,376\text{ bytes/token} \approx 0.4375\text{ MB/token}$).
WRAI-X Mathematical Complexity: Memory is strictly $O(1)$ persistent state memory with respect to context length $T$. The recurrent state size is fixed at $S_t \in \mathbb{R}^{L \times H \times d_k \times d_k}$ (scaling purely with architectural dimensions $\mathcal{O}(L \cdot H \cdot d_k^2)$, independent of sequence length $T$). All historical context is retained inside fixed-dimension dual recurrent matrices $S_t \in \mathbb{R}^{128 \times 128}$ per head, requiring only 29.42 MB of total recurrent state buffers throughout the entire lifetime of the process.
git clone https://github.com/MusounoEnma/WRAI.git
cd WRAI/wrai-x
wrai_x_08b_int8.bin inside the qwen/ folder (or run python qwen/download_weights.py).run_wrai_x.bat (or execute .\engine\wrai_x.exe).The full transplant training script, verification suite, and Google Colab notebook are available in the GitHub repository under training/:
training/colab_train_wrai_x_08b_transplant.pytraining/WRAI_X_08B_COLAB.ipynbWRAI-X (0.8B-class) represents the Foundation Phase (v0.1.0) of this research. The architecture is actively designed for modular evolution:
This exploratory work stands on the shoulders of remarkable contributions from the global AI research community:
mmap) make LLMs accessible on everyday consumer hardware.This model card, the quantized weights, and the accompanying engine code are distributed under the Apache License 2.0.