tahamajs/RR / Codes
67.2 GB
208,150 files
Updated about 1 month ago
Name
Size
.pytest_cache
__pycache__
data_cache
django_api
experimental
framework
frontend
neuralops-agent
results
runners
tests
web
.DS_Store14.3 kB
xet
._framework163 Bytes
xet
._tests163 Bytes
xet
README.md5.85 kB
xet
framework_code.tar.gz1.64 MB
xet
main.py9.32 kB
xet
run.py8.17 kB
xet
run_all.py8.85 kB
xet
README.md

🧠 NeuralOps & SVD Linear Attention Framework

Python 3.10+ PyTorch 2.2+ License: MIT Attentions Compressors FastAPI & Django React 18 & Vite

A unified, modular research ecosystem for Linear Attention Architectures, Hardware-Aware Model Compression (SVD, Quantization, Pruning), and Full-Stack Experiment Orchestration.


📑 Table of Contents

  1. Overview & Key Features
  2. Repository Structure
  3. Quickstart & Installation
  4. Framework Core Architecture & 5 Tracks
  5. Automated Dataset Engine & GPU Server Execution
  6. Attention Mechanisms Registry (236 Modules)
  7. Model Compression Engines (107 Algorithms)
  8. Django REST & WebSocket API Gateway
  9. Frontend Research Dashboard
  10. Empirical Benchmark Results

🌟 Overview & Key Features

The NeuralOps & SVD Linear Attention Framework is designed to evaluate, compress, and train large transformer models with high efficiency:

  • 236 Custom Attention Modules: Plug-and-play implementations ranging from Truncated SVD Attention ($O(N)$), FlashAttention-3 (FP8), and Multi-Head Latent Attention (MLA) to State-Space Hybrids (Mamba-SVD-Flash, AEGIS v1–v6).
  • 107 Model Compression Engines: Post-training compression algorithms including Activation-Aware SVD (AASVD), Error-Controlled SVD (erc_svd), Rotational SliceGPT INT4, SparseGPT with damped Hessian inversions, DeltaKV differential caching, AWQ, and structured pruning (ARMOR/AST).
  • Zero-Shot Architecture Injection: Automatically swaps standard Multi-Head Attention in HuggingFace models (BERT, RoBERTa, T5, LLaMA, Mistral, DistilBERT, GPT-2) with custom attention mechanisms via inject_attention.
  • Full-Stack Research Workspace: Includes an asynchronous Django REST/WebSocket backend with real-time GPU telemetry, Bayesian sweep orchestration, and an Overleaf-style collaborative LaTeX studio.
  • Interactive React UI: React 18 + Vite SPA featuring live attention heatmaps, 3D manifold visualizers, and a masterclass documentation explorer.

📁 Repository Structure

Codes/
├── framework/                # Core PyTorch Research Framework
│   ├── attentions/           # 236 Custom Attention Architectures
│   ├── compression_engine/   # 107 Model Compression & Pruning Engines
│   ├── core/                 # Registries, Base Classes & Model Wrappers
│   ├── data/                 # prepare_datasets.py & Benchmark DataLoader Streamer
│   ├── trainer/              # Distributed Trainers (HF, Custom Loop, FSDP)
│   ├── visualization/        # Heatmaps, Pareto Frontiers & Dashboards
│   ├── analysis/             # Hessian & Outlier Spectral Analyzers
│   ├── results_saver/        # SQLite, Parquet & JSON Exporters
│   ├── launch_gpu_server.py  # GPU Server hardware profiler & DDP launcher
│   ├── run_on_gpu_server.sh  # Single-command shell runner (--mode fast/comprehensive)
│   └── parallel_track_checker.py # 5-process parallel multi-track validator
│
├── django_api/               # Enterprise REST & WebSocket Backend
│   ├── api/                  # Core REST Endpoints & Serializers
│   ├── experiment/           # Experiment Tracking & Metrics Streaming
│   ├── sweeps/               # Optuna Bayesian Sweep Orchestrator
│   ├── jobscheduler/         # Async Worker Queues & Slurm Hooks
│   ├── paper/                # LaTeX Studio & Real-time PDF Compilation
│   └── health_monitor/       # Real-time NVML GPU & Node Telemetry
│
├── frontend/                 # React 18 + Vite Research Dashboard
│   ├── src/features/         # Experiment Monitors, Model Studios & Canvas
│   ├── src/router.tsx        # Dynamic Routing & Lazy-Loaded Pages
│   └── public/Docs/          # Synchronized Documentation & Catalog
│
├── run.py                    # Universal Single Experiment CLI
├── run_all.py                # Multi-Model Benchmark Suite
└── main.py                   # Master Entrypoint & Server Orchestration

⚡ Quickstart & Installation

# Setup virtual environment
python3 -m venv .venv
source .venv/bin/activate

# Install core framework in editable mode
pip install -e Codes/framework/
pip install -r Codes/django_api/requirements.txt

Run Multi-Process Track Verification

PYTHONPATH=Codes python3 Codes/framework/parallel_track_checker.py \
  --workers 5 \
  --models bert,roberta,t5 \
  --datasets sst2,mrpc \
  --rank 16

Pre-Cache Benchmark Datasets & Run on GPU Server

# Pre-cache datasets
bash Codes/framework/run_on_gpu_server.sh --mode prepare-data

# Run fast BF16 sweep on GPU
bash Codes/framework/run_on_gpu_server.sh --mode fast
Total size
67.2 GB
Files
208,150
Last updated
Sep 27
Pre-warmed CDN
US EU US EU

Contributors