tahamajs/RR / Docs
67.2 GB
208,150 files
Updated about 1 month ago
Name
Size
Attention_Visualization_Dashboard
Mapping_Apply_the_Attention_Style_Interactive_Dashboard_to_ALL_Transformer_Components
assets
blog
content
module_metadata
presentation
reports
results
scripts
visualizer
.DS_Store10.2 kB
xet
A1_Vertical_Template_Electronics.pptx2.44 MB
xet
A1_Vertical_Template_Electronics_Updated.pptx3.22 MB
xet
A1_Vertical_Template_Electronics_backup.pptx1.7 MB
xet
Attention_Mechanisms_For_Paper.md21.3 kB
xet
COMPLETE_RESEARCH_GUIDE.md7.6 kB
xet
DEPLOYMENT.md1.74 kB
xet
Kaggle_Deployment_Guide.md2.51 kB
xet
MODULE_EXECUTION_STATUS.md25.6 kB
xet
PHASE1_RESULTS_VALIDATION.md3.39 kB
xet
README.md9.65 kB
xet
START_HERE.md2.59 kB
xet
all_canonical_modules.txt3.05 kB
xet
all_modules.txt3.02 kB
xet
app59 Bytes
xet
app.js81.7 kB
xet
attention_verification.md1.34 kB
xet
broken_modules.txt468 Bytes
xet
canonical_modules.txt3.05 kB
xet
catalog.json55.2 kB
xet
compression_verification.md1.34 kB
xet
core_verification.md1.2 kB
xet
double_check_audit_report.json128 kB
xet
example.txt459 kB
xet
exmple.js51 kB
xet
files_with_bullets.txt31.9 kB
xet
forward_pass_verification.md11.3 kB
xet
generate_poster.py2.49 kB
xet
index.html17.9 kB
xet
inspect_poster.py285 Bytes
xet
methodology.md1.98 kB
xet
neuralops_cover.jpg858 kB
xet
not_run_modules.txt7.73 kB
xet
sig_0.png21.7 kB
xet
sig_ccw.png22.5 kB
xet
sig_cw.png22.5 kB
xet
signature_clean.png17 kB
xet
signature_pure.png15 kB
xet
style.css48.5 kB
xet
training_verification.md1.37 kB
xet
update_poster_champion.py2.5 kB
xet
~$A1_Vertical_Template_Electronics.pptx165 Bytes
xet
~$A1_Vertical_Template_Electronics_Updated.pptx165 Bytes
xet
~$A1_Vertical_Template_Electronics_backup.pptx165 Bytes
xet
~$فرم آمادگی روز پروژه_تکمیل_شده.xlsx165 Bytes
xet
فرم آمادگی روز پروژه (1).xlsx45.9 kB
xet
فرم آمادگی روز پروژه_تکمیل_شده.xlsx46.1 kB
xet
README.md

📚 NeuralOps Documentation & Research Hub

Python 3.10+ PyTorch 2.2+ License: MIT Attention Modules Compression Engines Masterclass Blog

Welcome to the NeuralOps Research Documentation Hub. This repository provides the technical specifications, mathematical derivations, empirical validation protocols, and interactive visualization guides for 236 Attention Architectures and 107 Post-Training Compression Engines.


🧭 Documentation Map & Navigation

Section Location Description
Quick Start START_HERE.md Entry guide for new researchers and framework adopters.
Attention Registry content/attentions/ 236 mathematical specifications and zero-shot HuggingFace drop-in guides.
Compression Registry content/compressions/ 107 post-training compression specifications (SVD, Quantization, Pruning, KV Cache).
Masterclass Blog Series blog/README.md 5-part long-form research blog covering theory, proofs, and hardware execution.
Benchmark Execution Guide content/benchmark_execution_guide.md Comprehensive runner instructions for GLUE, LongBench, and GPU clusters.
Validation Protocol content/empirical_validation_protocol.md Calibration procedures, statistical reporting standards, and numerical invariant tests.
Diagnostic Audit Report content/comprehensive_model_audit_and_fix_report.md Root-cause analysis of historical failure modes and mathematical remediations.
Machine Catalog catalog.json Structured metadata index of all registered modules, parameters, and paths.

🔬 Architectural Overview

                      ┌──────────────────────────────────────┐
                      │    HuggingFace Pretrained Backbone   │
                      │  (BERT, RoBERTa, DistilBERT, T5, LLM)│
                      └──────────────────┬───────────────────┘
                                         │
                 ┌───────────────────────┴───────────────────────┐
                 ▼                                               ▼
   ┌───────────────────────────┐                   ┌───────────────────────────┐
   │    ATTENTION INJECTION    │                   │    COMPRESSION PIPELINE   │
   │ (`core/attention_utils`)  │                   │ (`core/compression_engine`)│
   ├───────────────────────────┤                   ├───────────────────────────┤
   │ • SVD & Low-Rank (r=32)   │                   │ • Activation-Aware SVD    │
   │ • State-Space & Recurrent │                   │ • SliceGPT & Orthogonal   │
   │ • Kernel & Random Features│                   │ • SparseGPT (Hessian OBS) │
   │ • Mixture of Experts (MoE)│                   │ • ASTRO INT4/FP4 Quant    │
   │ • Hardware-Tiled (FA-3)   │                   │ • Delta-KV Cache 2-4 bit  │
   └─────────────┬─────────────┘                   └─────────────┬─────────────┘
                 │                                               │
                 └───────────────────────┬───────────────────────┘
                                         ▼
                      ┌──────────────────────────────────────┐
                      │      Hardware-Aligned Execution      │
                      │  (NVIDIA Tensor Cores / Hopper TMA /  │
                      │   Triton Fused Kernels / Apple MPS)  │
                      └──────────────────────────────────────┘

🚀 Quick Usage Examples

1. Zero-Shot Attention Injection

import torch
from transformers import AutoModelForSequenceClassification
from framework.core.attention_utils import inject_attention

# 1. Load standard transformer
model = AutoModelForSequenceClassification.from_pretrained("bert-base-uncased")

# 2. Swap standard quadratic attention with SVD Linear Attention
model = inject_attention(model, attn_type="svd_linear_attention", rank=32)

# 3. Fast subquadratic forward pass
inputs = torch.randint(0, 1000, (2, 512))
outputs = model(inputs)
print("Logits shape:", outputs.logits.shape)

2. Post-Training Model Compression

from transformers import AutoModelForSequenceClassification
from framework.core.compression_engine import compress_model

model = AutoModelForSequenceClassification.from_pretrained("bert-base-uncased")

# Compress dense weights via Activation-Aware SVD (AASVD)
compressed_model = compress_model(
    model,
    config={
        "compressors": [
            {"method": "aa_svd_compressor", "rank": 32, "energy_threshold": 0.92}
        ]
    }
)

📊 Benchmark Execution & Verification

To reproduce benchmark results across GLUE and causal language modeling datasets:

# 1. Verify module installation and forward pass
python Codes/framework/check_framework_sync.py

# 2. Run GLUE evaluation on GPU
python Codes/framework/eval_all_models_datasets.py \
    --model bert-base-uncased \
    --dataset sst2 \
    --attn_type svd_linear_attention \
    --device cuda

# 3. Run validation quality scripts (F1, MCC, PPL, Fidelity)
python Codes/framework/run_validation_metrics.py

# 4. Launch comprehensive multi-track sweep on GPU cluster
bash run_on_gpu_server.sh --mode comprehensive --gpus 0,1,2,3

# 5. Monitor sweep with live interactive dashboard
python Codes/framework/web/live_monitor.py

For full benchmarking parameters and distributed options, see content/benchmark_execution_guide.md.


📖 Research Blog Series

The unified 5-part research blog series provides deep dives into the mathematical mechanics, error bounds, and GPU kernels:

  1. Track 1: SVD, Spectral & Low-Rank Factorizations: Truncated SVD, singular energy splitting, condition number stability ($\kappa(A) = \sqrt{\kappa(W)}$).
  2. Track 2: Linear, Kernel, Recurrent & SSM Dynamics: FAVOR+, Nyström landmarking, Cosformer, and continuous selective state-space scans.
  3. Track 3: Sparse, Multi-Scale, Latent & Paged Architectures: Mixture of Experts (MoE), block sparsity, sliding windows, and deep latent memory.
  4. Track 4: SVD, Low-Rank & Structural Compression Engines: Whitened covariance SVD, SliceGPT PCA coordinate rotations, and error budgeting.
  5. Track 5: Quantization, Pruning & Distillation Compressors: Second-order SparseGPT, ADMM structured pruning, and ASTRO outlier transformations.

🎨 Interactive Dashboards & Component Studios


📜 Citation & License

If you use the NeuralOps framework or any of its attention/compression modules in your academic research, please cite:

@software{neuralops2026,
  author = {Majs, Taha and NeuralOps Research Team},
  title = {NeuralOps: Unified Framework for Subquadratic Attention and Deep Model Compression},
  year = {2026},
  url = {https://github.com/tahamajs/SVD_linear_Attention}
}

Distributed under the MIT License.

Total size
67.2 GB
Files
208,150
Last updated
Sep 27
Pre-warmed CDN
US EU US EU

Contributors