diff --git a/modules/01_tensor/tensor.py b/modules/01_tensor/tensor.py index f0316d01..8b2770ae 100644 --- a/modules/01_tensor/tensor.py +++ b/modules/01_tensor/tensor.py @@ -1298,7 +1298,8 @@ Final validation that everything works together correctly before module completi # %% nbgrader={"grade": true, "grade_id": "module-integration", "locked": true, "points": 20} def test_module(): - """ + """🧪 Module Test: Complete Integration + Comprehensive test of entire module functionality. This final test runs before module summary to ensure: diff --git a/modules/02_activations/activations.py b/modules/02_activations/activations.py index ddabbd95..21505e9a 100644 --- a/modules/02_activations/activations.py +++ b/modules/02_activations/activations.py @@ -852,7 +852,8 @@ Final validation that everything works together correctly. # %% nbgrader={"grade": true, "grade_id": "module-test", "locked": true, "points": 20} def test_module(): - """ + """🧪 Module Test: Complete Integration + Comprehensive test of entire module functionality. This final test runs before module summary to ensure: diff --git a/modules/03_layers/layers.py b/modules/03_layers/layers.py index e7a4320b..e3116a65 100644 --- a/modules/03_layers/layers.py +++ b/modules/03_layers/layers.py @@ -937,7 +937,8 @@ Final validation that everything works together correctly. # %% nbgrader={"grade": true, "grade_id": "module-integration", "locked": true, "points": 20} def test_module(): - """ + """🧪 Module Test: Complete Integration + Comprehensive test of entire module functionality. This final test runs before module summary to ensure: diff --git a/modules/04_losses/losses.py b/modules/04_losses/losses.py index 9f65a961..4fa4e95c 100644 --- a/modules/04_losses/losses.py +++ b/modules/04_losses/losses.py @@ -1300,7 +1300,8 @@ Final validation that everything works together correctly. # %% nbgrader={"grade": true, "grade_id": "test_module", "locked": true, "points": 20} def test_module(): - """ + """🧪 Module Test: Complete Integration + Comprehensive test of entire losses module functionality. This final test runs before module summary to ensure: diff --git a/modules/05_autograd/autograd.py b/modules/05_autograd/autograd.py index 660099a9..3540e293 100644 --- a/modules/05_autograd/autograd.py +++ b/modules/05_autograd/autograd.py @@ -1831,7 +1831,8 @@ Final validation that everything works together correctly. # %% nbgrader={"grade": true, "grade_id": "module-integration", "locked": true, "points": 25} def test_module(): - """ + """🧪 Module Test: Complete Integration + Comprehensive test of entire module functionality. This final test runs before module summary to ensure: diff --git a/modules/06_optimizers/optimizers.py b/modules/06_optimizers/optimizers.py index a413b21d..34ffc6ce 100644 --- a/modules/06_optimizers/optimizers.py +++ b/modules/06_optimizers/optimizers.py @@ -1307,7 +1307,8 @@ Final validation that everything works together correctly. # %% nbgrader={"grade": true, "grade_id": "module-integration", "locked": true, "points": 25} def test_module(): - """ + """🧪 Module Test: Complete Integration + Comprehensive test of entire module functionality. This final test runs before module summary to ensure: diff --git a/modules/07_training/training.py b/modules/07_training/training.py index 07f4b411..b92beb69 100644 --- a/modules/07_training/training.py +++ b/modules/07_training/training.py @@ -1169,7 +1169,8 @@ Final validation that everything works together correctly. # %% nbgrader={"grade": true, "grade_id": "test_module", "locked": true, "points": 20} def test_module(): - """ + """🧪 Module Test: Complete Integration + Comprehensive test of entire module functionality. This final test runs before module summary to ensure: diff --git a/modules/08_dataloader/dataloader.py b/modules/08_dataloader/dataloader.py index 59bd14e9..ec67bfff 100644 --- a/modules/08_dataloader/dataloader.py +++ b/modules/08_dataloader/dataloader.py @@ -1190,6 +1190,8 @@ def test_training_integration(): print("✅ Training integration works correctly!") +if __name__ == "__main__": + test_training_integration() # %% [markdown] """ @@ -1200,7 +1202,8 @@ Final validation that everything works together correctly. # %% def test_module(): - """ + """🧪 Module Test: Complete Integration + Comprehensive test of entire module functionality. This final test runs before module summary to ensure: diff --git a/modules/09_spatial/spatial.py b/modules/09_spatial/spatial.py index 4dfe8d9a..7e699a48 100644 --- a/modules/09_spatial/spatial.py +++ b/modules/09_spatial/spatial.py @@ -1750,7 +1750,8 @@ Final validation that everything works together correctly. def test_module(): - """ + """🧪 Module Test: Complete Integration + Comprehensive test of entire spatial module functionality. This final test runs before module summary to ensure: diff --git a/modules/10_tokenization/tokenization.py b/modules/10_tokenization/tokenization.py index 52b78354..8909f624 100644 --- a/modules/10_tokenization/tokenization.py +++ b/modules/10_tokenization/tokenization.py @@ -1469,7 +1469,8 @@ Let's test our complete tokenization system to ensure everything works together. # %% nbgrader={"grade": true, "grade_id": "test-module", "locked": true, "points": 20} def test_module(): - """ + """🧪 Module Test: Complete Integration + Comprehensive test of entire tokenization module. This final test runs before module summary to ensure: diff --git a/modules/11_embeddings/embeddings.py b/modules/11_embeddings/embeddings.py index 81102b7b..b84746f3 100644 --- a/modules/11_embeddings/embeddings.py +++ b/modules/11_embeddings/embeddings.py @@ -1232,7 +1232,8 @@ Let's test our complete embedding system to ensure everything works together cor # %% nbgrader={"grade": true, "grade_id": "module-test", "locked": true, "points": 20} def test_module(): - """ + """🧪 Module Test: Complete Integration + Comprehensive test of entire embeddings module functionality. This final test ensures all components work together and the module diff --git a/modules/12_attention/attention.py b/modules/12_attention/attention.py index 4e91ab23..c6d6c270 100644 --- a/modules/12_attention/attention.py +++ b/modules/12_attention/attention.py @@ -1088,7 +1088,8 @@ Final validation that everything works together correctly. # %% nbgrader={"grade": true, "grade_id": "module-test", "locked": true, "points": 20} def test_module(): - """ + """🧪 Module Test: Complete Integration + Comprehensive test of entire attention module functionality. This final test runs before module summary to ensure: diff --git a/modules/13_transformers/transformers.py b/modules/13_transformers/transformers.py index 8342d0b0..39fb526b 100644 --- a/modules/13_transformers/transformers.py +++ b/modules/13_transformers/transformers.py @@ -1598,7 +1598,8 @@ Final validation that everything works together correctly. # %% nbgrader={"grade": true, "grade_id": "test-module", "locked": true, "points": 25} def test_module(): - """ + """🧪 Module Test: Complete Integration + Comprehensive test of entire module functionality. This final test runs before module summary to ensure: diff --git a/modules/14_profiling/profiling.py b/modules/14_profiling/profiling.py index 42641b23..e55d868e 100644 --- a/modules/14_profiling/profiling.py +++ b/modules/14_profiling/profiling.py @@ -1638,7 +1638,8 @@ Final validation that everything works together correctly. # %% nbgrader={"grade": true, "grade_id": "test_module", "locked": true, "points": 20} def test_module(): - """ + """🧪 Module Test: Complete Integration + Comprehensive test of entire profiling module functionality. This final test runs before module summary to ensure: diff --git a/modules/15_quantization/quantization.py b/modules/15_quantization/quantization.py index bb6633ae..bf0525ce 100644 --- a/modules/15_quantization/quantization.py +++ b/modules/15_quantization/quantization.py @@ -1570,7 +1570,8 @@ Final validation that our quantization system works correctly across all compone # %% nbgrader={"grade": true, "grade_id": "test_module", "locked": true, "points": 20, "solution": false, "schema_version": 3} def test_module(): - """ + """🧪 Module Test: Complete Integration + Comprehensive test of entire quantization module functionality. This final test runs before module summary to ensure: diff --git a/modules/16_compression/compression.py b/modules/16_compression/compression.py index fdf85263..1bc3336d 100644 --- a/modules/16_compression/compression.py +++ b/modules/16_compression/compression.py @@ -431,7 +431,8 @@ def test_unit_measure_sparsity(): print("✅ measure_sparsity works correctly!") -test_unit_measure_sparsity() +if __name__ == "__main__": + test_unit_measure_sparsity() # %% [markdown] """ @@ -587,7 +588,8 @@ def test_unit_magnitude_prune(): print("✅ magnitude_prune works correctly!") -test_unit_magnitude_prune() +if __name__ == "__main__": + test_unit_magnitude_prune() # %% [markdown] """ @@ -759,7 +761,8 @@ def test_unit_structured_prune(): print("✅ structured_prune works correctly!") -test_unit_structured_prune() +if __name__ == "__main__": + test_unit_structured_prune() # %% [markdown] """ @@ -906,7 +909,8 @@ def test_unit_low_rank_approximate(): print("✅ low_rank_approximate works correctly!") -test_unit_low_rank_approximate() +if __name__ == "__main__": + test_unit_low_rank_approximate() # %% [markdown] """ @@ -1154,7 +1158,8 @@ def test_unit_knowledge_distillation(): print("✅ knowledge_distillation works correctly!") -test_unit_knowledge_distillation() +if __name__ == "__main__": + test_unit_knowledge_distillation() # %% [markdown] """ @@ -1322,7 +1327,8 @@ def test_unit_compress_model(): print("✅ compress_model works correctly!") -test_unit_compress_model() +if __name__ == "__main__": + test_unit_compress_model() # %% [markdown] """ @@ -1526,7 +1532,8 @@ Final validation that all compression techniques work together correctly. # %% def test_module(): - """ + """🧪 Module Test: Complete Integration + Comprehensive test of entire compression module functionality. This final test runs before module summary to ensure: diff --git a/modules/17_memoization/memoization.py b/modules/17_memoization/memoization.py index 3e1ec815..7fcbb5df 100644 --- a/modules/17_memoization/memoization.py +++ b/modules/17_memoization/memoization.py @@ -1513,7 +1513,8 @@ Final validation that everything works together correctly before module completi # %% nbgrader={"grade": true, "grade_id": "module-integration", "locked": true, "points": 20} def test_module(): - """ + """🧪 Module Test: Complete Integration + Comprehensive test of entire KV Caching module functionality. This final test runs before module summary to ensure: diff --git a/modules/18_acceleration/acceleration.py b/modules/18_acceleration/acceleration.py index 1817fc04..67a0c8ea 100644 --- a/modules/18_acceleration/acceleration.py +++ b/modules/18_acceleration/acceleration.py @@ -1241,7 +1241,8 @@ Final validation that all acceleration components work together correctly. # %% nbgrader={"grade": true, "grade_id": "test-module", "locked": true, "points": 20} def test_module(): - """ + """🧪 Module Test: Complete Integration + Comprehensive test of entire acceleration module functionality. This final test ensures: diff --git a/modules/19_benchmarking/benchmarking.py b/modules/19_benchmarking/benchmarking.py index 9a01a671..0f074511 100644 --- a/modules/19_benchmarking/benchmarking.py +++ b/modules/19_benchmarking/benchmarking.py @@ -2133,7 +2133,8 @@ This comprehensive test validates the entire benchmarking ecosystem and ensures # %% nbgrader={"grade": true, "grade_id": "test-module", "locked": true, "points": 10} def test_module(): - """ + """🧪 Module Test: Complete Integration + Comprehensive test of entire benchmarking module functionality. This final test runs before module summary to ensure: diff --git a/modules/20_capstone/capstone.py b/modules/20_capstone/capstone.py index be95e0fb..97a1b03d 100644 --- a/modules/20_capstone/capstone.py +++ b/modules/20_capstone/capstone.py @@ -2019,7 +2019,8 @@ Final comprehensive test validating all components work together correctly. # %% nbgrader={"grade": true, "grade_id": "test_module", "locked": true, "points": 20} def test_module(): - """ + """🧪 Module Test: Complete Integration + Comprehensive test of entire capstone module functionality. This final test runs before module summary to ensure: