tahamajs/RR / Codes /tests
67.2 GB
208,150 files
Updated about 1 month ago
Name
Size
__pycache__
._FINDINGS.md163 Bytes
xet
._README.md163 Bytes
xet
.___init__.py163 Bytes
xet
._benchmark_svd_audit.py163 Bytes
xet
._conftest.py163 Bytes
xet
._fast_svd_audit.py163 Bytes
xet
._run_end_to_end_test.py163 Bytes
xet
._run_svd_audit.py163 Bytes
xet
._test_adaptive_svd_verification.py163 Bytes
xet
._test_advanced_statistics.py163 Bytes
xet
._test_agent2_refactor.py163 Bytes
xet
._test_agent3_refactoring.py163 Bytes
xet
._test_all_200_modules_exhaustive.py163 Bytes
xet
._test_all_203_models_comprehensive.py163 Bytes
xet
._test_all_compression_engines.py163 Bytes
xet
._test_all_svd_lowrank_specialist.py163 Bytes
xet
._test_async_telemetry_callbacks.py163 Bytes
xet
._test_attention_canvas.py163 Bytes
xet
._test_attention_injection.py163 Bytes
xet
._test_attention_modules.py163 Bytes
xet
._test_attentions.py163 Bytes
xet
._test_benchmark_datasets.py163 Bytes
xet
._test_compressors.py163 Bytes
xet
._test_computation_studios.py163 Bytes
xet
._test_datasets.py163 Bytes
xet
._test_decay_linear_attention.py163 Bytes
xet
._test_extended_loaders.py163 Bytes
xet
._test_factorization_tensor_compressors.py163 Bytes
xet
._test_forward_pass_all_models.py163 Bytes
xet
._test_full_framework_end_to_end.py163 Bytes
xet
._test_fused_svd_kernel.py163 Bytes
xet
._test_gpu_execution.py163 Bytes
xet
._test_interpretability_suite.py163 Bytes
xet
._test_kernel_quantization_comprehensive.py163 Bytes
xet
._test_master_suite_all_203_models.py163 Bytes
xet
._test_models_and_datasets_matrix.py163 Bytes
xet
._test_moe_hybrid_comprehensive.py163 Bytes
xet
._test_moe_hybrid_lead_specialist.py163 Bytes
xet
._test_multi_mode.py163 Bytes
xet
._test_optimization_studios.py163 Bytes
xet
._test_parquet_and_storage.py163 Bytes
xet
._test_production_dataset_shapes.py163 Bytes
xet
._test_quantization_and_kv_cache_compression.py163 Bytes
xet
._test_recurrent_ssm_attentions.py163 Bytes
xet
._test_representation_studios.py163 Bytes
xet
._test_results_saver.py163 Bytes
xet
._test_security_safe_loading.py163 Bytes
xet
._test_sota_compression.py163 Bytes
xet
._test_sota_manifold.py163 Bytes
xet
._test_sota_universal_compatibility.py163 Bytes
xet
._test_ssm_spectral_comprehensive.py163 Bytes
xet
._test_structural_pruning_and_layer_shedding.py163 Bytes
xet
._test_svd_audit_suite.py163 Bytes
xet
._test_svd_lowrank_comprehensive.py163 Bytes
xet
._test_svd_specialist.py163 Bytes
xet
._test_svd_spectral_compressors.py163 Bytes
xet
._test_threadsafe_rank_logging.py163 Bytes
xet
._test_track2_spectral_ssm_audit.py163 Bytes
xet
._test_visualizations.py163 Bytes
xet
._verify_all_24_compressors.py163 Bytes
xet
FINDINGS.md2.5 kB
xet
README.md2.65 kB
xet
__init__.py347 Bytes
xet
benchmark_svd_audit.py5.96 kB
xet
conftest.py5.49 kB
xet
fast_svd_audit.py13.1 kB
xet
run_end_to_end_test.py258 Bytes
xet
run_svd_audit.py9.37 kB
xet
test_adaptive_svd_verification.py10.5 kB
xet
test_advanced_statistics.py1.56 kB
xet
test_agent2_refactor.py11.6 kB
xet
test_agent3_refactoring.py13.6 kB
xet
test_all_200_modules_exhaustive.py13.7 kB
xet
test_all_203_models_comprehensive.py9.1 kB
xet
test_all_compression_engines.py5.33 kB
xet
test_all_svd_lowrank_specialist.py6.91 kB
xet
test_async_telemetry_callbacks.py4.08 kB
xet
test_attention_canvas.py9.4 kB
xet
test_attention_injection.py2.24 kB
xet
test_attention_modules.py8.78 kB
xet
test_attentions.py2.86 kB
xet
test_benchmark_datasets.py2.35 kB
xet
test_compressors.py7.09 kB
xet
test_computation_studios.py13.1 kB
xet
test_datasets.py2.23 kB
xet
test_decay_linear_attention.py19 kB
xet
test_extended_loaders.py1.28 kB
xet
test_factorization_tensor_compressors.py12.3 kB
xet
test_forward_pass_all_models.py3.51 kB
xet
test_full_framework_end_to_end.py14.8 kB
xet
test_fused_svd_kernel.py12.4 kB
xet
test_gpu_execution.py7.29 kB
xet
test_interpretability_suite.py8.54 kB
xet
test_kernel_quantization_comprehensive.py2.28 kB
xet
test_master_suite_all_203_models.py372 Bytes
xet
test_models_and_datasets_matrix.py14.9 kB
xet
test_moe_hybrid_comprehensive.py1.65 kB
xet
test_moe_hybrid_lead_specialist.py18.2 kB
xet
test_multi_mode.py1.58 kB
xet
README.md

Test Suite Subsystem (Codes/framework/tests)

The tests subsystem provides a comprehensive pytest test harness verifying the mathematical correctness, numerical stability, zero-shot fidelity, gradient flow, and hardware performance of all framework components.


🏗 Test Organization

  • Attention Mechanism Tests (test_attention_modules.py, test_attentions.py): Validates shape correctness $, numerical finiteness (no NaN/Inf), gradient flow, padding mask compliance, multi-head reshaping, and zero-shot weight transfer across all registered attention variants.
  • Attention Injection Engine (test_attention_injection.py): Verifies universal layer replacement on real HuggingFace transformer architectures with both copy_weights=True and copy_weights=False.
  • Fused Kernel Verification (test_fused_svd_kernel.py): Analytical gradient checks (gradcheck), forward/backward numerical parity against un-fused references, and RMSNorm integration.
  • Compression & SVD Specialist Suites (test_compressors.py, test_all_compression_engines.py, test_svd_audit_suite.py): Verifies SVD truncation, rank selection algorithms, and weight reconstruction fidelity.
  • Dataset & Trainer Verification (test_datasets.py, test_results_saver.py, test_multi_mode.py): Checks data loaders, tokenizer collators, trainer factory resolution, and artifact serialization.

📦 Key Test Files

Test File Target Subsystem / Verification Scope
test_attention_injection.py Universal attention injection into DistilBERT, BERT, GPT-2 models.
test_attention_modules.py Exhaustive 7-point verification suite across all attention modules.
test_fused_svd_kernel.py Fused SVD linear forward/backward numerical stability and gradchecks.
test_all_compression_engines.py Verification of spectral, pruning, and low-rank compression algorithms.
test_results_saver.py Multi-backend serialization (JSON, Parquet, checkpoints).
test_datasets.py GLUE dataset loading, tokenization pipelines, and synthetic generator.
conftest.py Shared pytest fixtures (model configs, hidden states, attention masks).

🚀 Running the Test Suite

1. Run Fast Core Tests

pytest Codes/framework/tests/test_attention_injection.py Codes/framework/tests/test_results_saver.py Codes/framework/tests/test_fused_svd_kernel.py -v

2. Run Attention Mechanism Tests

pytest Codes/framework/tests/test_attention_modules.py -v -k "svd or linear or full"

3. Run All Integration Tests

pytest Codes/framework/tests/ -m "integration" -v
Total size
67.2 GB
Files
208,150
Last updated
Sep 27
Pre-warmed CDN
US EU US EU

Contributors