MODEL FAMILY & BENCHMARK REPORT · NOVEMBER 2026

The GRT-30M Model Family & Benchmarks

The released 30M Geometric Rotation Transformer model family (MatterWaveAI/grt-30m causal language model and MatterWaveAI/grt-30m-embedding circular sentence encoder) with 9.74M non-embedding backbone parameters (29.31M total stored parameters with the 151,669-token Qwen 3 polar vocabulary), trained across 10.79B tokens and verified token-for-token across PyTorch ROCm, llama.cpp CPU, Vulkan, and HIP.

BACKBONE PARAMS
9.74M
29.31M total stored (55.68M dense-equiv)
QWEN 3 DISTILLATION
10.79B
tokens at 123.9k tok/s (eight A100 GPUs)
IN-DOMAIN VAL PPL
88.02
27.2% top-1 accuracy (151k Qwen3 vocab)
STRIX HALO SPEED
5,760
tok/s BF16 HIP prefill · 87.4 tok/s CPU decode

1. Architecture & Parameter Budget

GRT replaces every nn.Linear weight matrix in attention (Q, K, V, O) and feed-forward (expand, contract) with cascades of learned 2×2 Givens rotations interleaved with fixed butterfly permutations and modulated by 4-component Clifford bivector features. Because GRT-30M pairs a compact d_model = 256 backbone with the 151,669-token Qwen3 vocabulary, 66.8% of the stored parameters live in the tied polar embedding table, leaving 9.74M stored parameters across all 12 rotational transformer blocks.

Component Configuration Stored Params Share
Tied Polar Embedding & Cosine Head 151,669 tokens (128 phase angles + 1 log-magnitude per token) + learned output scale 19,565,302 66.76%
12 Rotational Transformer Blocks d_model=256, n_heads=4, d_ff=1024, stages 11 / 1 / 21 (1,044 stages total) 9,740,196 33.24%
Total (GRT-30M) max_position_embeddings = 2048 (55,680,446 dense-equivalent parameters) 29,305,498 100.00%

2. Qwen 3 Distillation & Training Summary

Distilled from Qwen 3 (grt30m_kd, sharing the 151,669-token Qwen 3 BPE vocabulary) across 10.79B tokens on a 5-corpus educational mix using PairAdam (factored second moments for 2D Clifford coupling matrices plus angular step clamping) and fused CUDA Givens kernels:

Metric Value
Teacher & Student Config Distilled from Qwen 3 into grt30m_kd (151,669-token Qwen 3 BPE vocabulary, tied polar cosine head)
Training Corpus Mix fineweb-edu (45%), cosmopedia-v2 (20%), wikipedia (15%), finemath (12%), stack-edu (8%)
Hardware & Precision Eight NVIDIA A100-SXM4-80GB GPUs (DDP, bfloat16 mixed precision, fused CUDA Givens kernels)
Tokens & Steps Trained 10,789,404,672 tokens (20,580 optimizer steps in 86,969s; exported at checkpoint-20000)
Sustained Throughput 123,900 tokens/sec (~15,490 tokens/sec per GPU, zero NaNs or gradient spikes)
Validation Loss & Perplexity val_loss = 4.4776 · val_ppl = 88.02 · top-1 token accuracy = 27.20% (151,669 vocab)
Held-Out WikiText-2 Test loss = 5.0305 · ppl = 153.01 · top-1 token accuracy = 25.71% (297,984 tokens, T = 1024)

3. 4-Way Exact Greedy Parity

The published model.safetensors (transformers) and grt-30m-f32.gguf (llama.cpp) produce identical token-for-token greedy continuations (temperature = 0, 16 new tokens) across all four execution paths on AMD Strix Halo (gfx1151): PyTorch ROCm (fused HIP kernels), llama.cpp CPU (AVX2), llama.cpp Vulkan (RADV), and llama.cpp ROCm (HIP).

Prompt Greedy Continuation (16 tokens, identical across PyTorch ROCm, CPU, Vulkan, and HIP)
The capital of France is The capital of France is the first to be the first to be the first to be the first to be
Once upon a time Once upon a time, you might be wondering what exactly is the way to do with the right point
In the beginning In the beginning of the world, the world is the most common form of the world. The

4. Zero-Shot Multiple-Choice Benchmarks

Evaluated zero-shot (no task fine-tuning) via teacher-forced length-normalized log-likelihood scoring on checkpoint-20000. With 9.74M non-embedding parameters trained for 10.8B tokens, GRT-30M exceeds random chance on 6 of 7 multiple-choice benchmarks, matching dense models (Pythia-14M / Pythia-31M) of comparable backbone size:

Benchmark Split (n) GRT-30M Random Baseline Delta vs. Random
ARC-Easy (allenai/ai2_arc) test (2,376) 29.50% 25.00% +4.50%
HellaSwag (Rowan/hellaswag) val (1,000) 29.20% 25.00% +4.20%
OpenBookQA (allenai/openbookqa) test (500) 28.40% 25.00% +3.40%
CommonsenseQA (tau/commonsense_qa) val (1,221) 21.70% 20.00% +1.70%
BoolQ (google/boolq) val (3,270) 51.53% 50.00% +1.53%
QNLI (nyu-mll/glue) val (1,000) 51.50% 50.00% +1.50%
ARC-Challenge (allenai/ai2_arc) test (1,172) 21.08% 25.00% -3.92%

5. Edge Inference & Kernel Speed (AMD Strix Halo gfx1151)

Measured on local Strix Halo nodes (AMD Ryzen AI Max+ 395 w/ Radeon 8060S Graphics) across PyTorch ROCm (with all five fused GRT HIP kernels registered: coupled_rotate, plain_rotate, mixer_stage, pearl_norm, radial_gelu) and llama.cpp (grt-30m-f32.gguf):

Runtime / Backend Precision Prefill Throughput Decode / Training Throughput
PyTorch ROCm + 5 Fused GRT HIP Kernels BF16 5,759.6 tok/s (B=4, T=512) 1,156.0 tok/s (Fwd+Bwd)
llama.cpp Vulkan (-ngl 99) FP32 3,790.1 tok/s (pp512) 49.9 tok/s (tg64)
llama.cpp CPU (-t 16, AVX2) FP32 905.4 tok/s (pp512) 87.4 tok/s (tg64)
llama.cpp ROCm (-ngl 99) FP32 195.0 tok/s (pp512) 37.5 tok/s (tg64)

6. GRT-30M-Embedding: Planar-Pair Circular Sentence Encoder

We also release MatterWaveAI/grt-30m-embedding (GRTModel + SentenceTransformer), adapted from GRT-30M using planar-pair circular pooling (pooling_mode="circular", averaging unit phase directions and pair radii separately across 128 planar (x, y) pairs). During adaptation on an Intel Arc 140T GPU (xpu:0, fused oneAPI SYCL kernels), the 151,669 lexical phase_angles (19.41M params) are frozen to preserve the pretrained Qwen 3 polar vocabulary geometry while training the 9,891,865 rotational backbone and log_magnitude parameters with PairAdam in two stages:

Training Stage Dataset & Steps Objective & Optimizer
Stage 1: AllNLI Contrastive Alignment sentence-transformers/all-nli (150 steps, 4,800 triplets, <1% of corpus) MultipleNegativesRankingLoss + explicit hard negatives (τ = 0.05, B = 32, PairAdam lr = 1.5e-4)
Stage 2: STS-B Rank & Metric Calibration sentence-transformers/stsb (2 epochs, 358 steps over 5,749 pairs) CoSENT (τ = 20.0) + 2.0 × CosineMSE (B = 32, PairAdam lr = 8e-5)
STS-B Split Metric Base GRT-30M GRT-30M-Embedding (PairAdam) AdamW Ablation¹ Delta (PairAdam vs. Base)
STS-B Validation (n=1,500) Spearman ρ 0.4551 0.7179 0.7289 +0.2628
STS-B Test (n=1,379) Spearman ρ 0.2849 0.6242 0.6317 +0.3393
STS-B Test (n=1,379) Pearson r 0.2981 0.6330 0.6372 +0.3349

¹ Footnote: Under the identical 508-step schedule and seed (42), standard AdamW (coupling_lr_mult=1.0, full diagonal second moments) reaches 0.7289 Val / 0.6317 Test Spearman vs. 0.7179 / 0.6242 for PairAdam (coupling_lr_mult=3.0, factored second moments), indicating PairAdam's higher coupling LR multiplier is primarily beneficial for large-batch pretraining rather than short small-batch (B=32) fine-tuning.

7. Emergent Phase Coherence & GGUF Quantization Profile

In an isotropic 256-dimensional vector space, summing N = 8 uncorrelated token vectors grows the Euclidean norm ratio ||Σ x_i|| / mean(||x_i||) by sqrt(8) = 2.83. Probing the trained GRT-30M hidden states across its 128 planar Givens pairs (tools/measure_angular_concentration.py) reveals strong emergent phase-locking: the constructive interference norm ratio reaches 7.19 (out of a theoretical ceiling of 8.00 for perfectly phase-aligned waves), with a mean circular concentration of R = 0.7275 (reaching R = 0.9983 on the most phase-locked pairs).

Evaluating per-tensor-group llama.cpp block quantization round-trips (F16, Q8_0, Q5_0, Q4_0, Q2_K) on greedy decoding (tools/grt_quant_accuracy.py, 3 prompts × 8 tokens = 24 tokens) uncovers a sharp structural separation between orthogonal phase parameters and multiplicative radial scales:

Tensor Group Params (Share) F16 Q8_0 Q5_0 Q4_0 Physical / Cascade Behavior
phase_angles (polar vocab) 19.41M (66.2%) 24 / 24 24 / 24 21 / 24 16 / 24 100% lossless greedy tokens at Q8_0 (max phase error 0.73°); Q4_0 (19.7°) benefits from periodic [-π, π] QAT
attn_coupling (Clifford Cl(2,0)) 8.65M (29.5%) 24 / 24 21 / 24 21 / 24 20 / 24 Resilient down to 4-bit (20 / 24 tokens at Q4_0) thanks to bounded tanh angular modulation
attn_angles & ffn_angles 325.6K (1.1%) 24 / 24 21 / 24 15–21 / 24 16–17 / 24 Norm-preserving (det R(θ) = 1); keeping angles in F16/Q8_0 prevents phase drift across 11/21 stages
mixer_angles & norms 11.0K (0.04%) 24 / 24 24 / 24 20–21 / 24 9–18 / 24 Exact at Q8_0; kept in F32/F16 in GGUF at negligible (<44 KB) cost
ffn_scales (21-stage radial) 516.1K (1.8%) 21 / 24 21 / 24 7 / 24 7 / 24 Primary precision bottleneck: 252 sequential multiplicative stages (12 × 21) amplify radial scale rounding; keep in F16/F32
Whole Model (205 tensors) 29.31M (100%) 21 / 24 21 / 24 2 / 24 7 / 24 Q8_0 matches F16 token-for-token; sub-8-bit (Q5_0/Q4_0) uses mixed-precision ffn_scales + QAT

8. Quickstart

import torch
from transformers import AutoTokenizer, GRTForCausalLM

model_id = "MatterWaveAI/grt-30m"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = GRTForCausalLM.from_pretrained(model_id, dtype=torch.float32).eval()

ids = tokenizer("The history of the city", return_tensors="pt").input_ids
with torch.no_grad():
    out = model.generate(ids, max_new_tokens=32, do_sample=False)
print(tokenizer.decode(out[0], skip_special_tokens=True))
↑ TOP