Skip to content

[WIP] SSM LRU Baseline — First State Space Model Submission - #220

Draft
timothywangdev wants to merge 1 commit into
openai:mainfrom
timothywangdev:ssm-lru-baseline
Draft

timothywangdev wants to merge 1 commit into
openai:mainfrom
timothywangdev:ssm-lru-baseline

Conversation

@timothywangdev

Copy link
Copy Markdown

Summary

  • First non-transformer submission to parameter golf — uses a Linear Recurrent Unit (LRU) state space model
  • SSM blocks are 36% smaller than attention blocks at equivalent dimension, enabling 12-15 layers where transformers fit 9-10 in 16MB
  • Complex diagonal recurrence with parallel scan (cumsum trick), gated projection, ReLU^2 MLP
  • MuonAdamW optimizer with SSM-aware parameter groups

Status: WIP

Applying for compute credits to validate on H100. Current results on RTX 3090 (5 min budget):

  • val_bpb: 1.848 (bottlenecked by pure PyTorch scan speed, 2.8% MFU)
  • With mamba_ssm CUDA kernels on H100, expect 10-50x speedup → competitive results

Why SSMs Could Win

  • Parameter efficiency: SSM-specific params are <0.2% of total; projections dominate
  • No KV cache: Native sliding window eval without recomputation
  • Linear complexity: More tokens processed in fixed time budget
  • Compressibility: Research shows 50% of SSM weights can be pruned with zero accuracy loss (SparseSSM)

Research Backing

  • 6 deep-dive research documents (LinOSS, Mamba-3, SSM taxonomy, compression frontiers)
  • Autonomous experiment loop with brainstorming, arxiv paper reading, self-reflection
  • Concrete 16MB configs identified from parameter analysis

Test plan

  • Validate on H100 with mamba_ssm CUDA kernels
  • Establish competitive val_bpb baseline
  • Optimize architecture (depth, width, d_state) for 16MB budget
  • Add int8+zlib quantization pipeline
  • Statistical significance testing (3+ seeds, p < 0.01)

First non-transformer submission to parameter golf. Uses Linear Recurrent
Unit (LRU) with complex diagonal recurrence and parallel scan. SSM blocks
are 36% smaller than attention — can fit 12-15 layers in 16MB vs 9-10
for transformers. WIP pending H100 compute validation.
@MatoTeziTanka

MatoTeziTanka commented Apr 11, 2026 •

Copy link
Copy Markdown

Community Review — [WIP] SSM LRU Baseline — First State Space Model Submission

Compliance: NEEDS AUTHOR ACTION — train_gpt.py fails to import on CT2038 (Python 3.10 / torch 2.10.0+cpu)

What I found: The CPU smoke test on CT2038 (proteus-engine, 128 GB RAM, Triton 3.6.0, flash_attn stub, cutlass_evt_fusion stub) failed at the import step with:

ModuleNotFoundError: No module named 'prepare'

A few of the common patterns I've seen for this class of error in the 2026-04-11 sweep:

Recommendation: Could you run python3 -c "import py_compile; py_compile.compile('train_gpt.py')" on your records-folder train_gpt.py under Python 3.10 specifically? The eval image is Python 3.10 per Issue #17 / the README, so any parse error on 3.10 blocks the submission at import time before any of the scored-eval logic runs.

Once the parse/import issue is fixed, I'll re-run the compliance audit through the normal pipeline. No other flags identified yet because the audit halts at the import step.


Reviewed by @MatoTeziTanka — The Agora. CPU smoke test (CT2038 proteus-engine, 2026-04-11): IMPORT_FAIL — ModuleNotFoundError: No module named 'prepare'. Classification via classify_prs.py AST-based classifier; full compliance audit deferred until the import issue is resolved. Auto-drafted from a template and spot-checked before posting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants