diff --git a/.gitattributes b/.gitattributes
index 03dd8163e520f0b612e2e37d98adb6b22cb78063..083dcbc8cef6ec92bd28aac81b6b7b94504fb958 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -1321,3 +1321,4 @@ pace_revision_2/.venv-pace/lib/python3.11/site-packages/triton/instrumentation/l
pace_revision_2/.venv-pace/lib/python3.11/site-packages/triton/language/__pycache__/core.cpython-311.pyc filter=lfs diff=lfs merge=lfs -text
pace_revision_2/.venv-pace/lib/python3.11/site-packages/yaml/_yaml.cpython-311-x86_64-linux-gnu.so filter=lfs diff=lfs merge=lfs -text
pace_revision_2/outputs/pace21_cuda_device_fix/source_identity_audit.sqlite filter=lfs diff=lfs merge=lfs -text
+pace_revision_2/vendor/helena/model.keras filter=lfs diff=lfs merge=lfs -text
diff --git a/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/reports/figures/spectra_A_ds300_fd100_snr10.pdf b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/reports/figures/spectra_A_ds300_fd100_snr10.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..5489f7aaae53b0640b11af9cbeab0201fc871ae0
Binary files /dev/null and b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/reports/figures/spectra_A_ds300_fd100_snr10.pdf differ
diff --git a/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/reports/figures/spectra_A_ds300_fd100_snr10.png b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/reports/figures/spectra_A_ds300_fd100_snr10.png
new file mode 100644
index 0000000000000000000000000000000000000000..cc212efb99f3c515ce25919b37b7f42cab04a15a
--- /dev/null
+++ b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/reports/figures/spectra_A_ds300_fd100_snr10.png
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:1d3bfeafb2a9fa416782e29012cccdaebcc5bb55bd7972cfa353dc6675a2cd29
+size 195501
diff --git a/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/reports/figures/spectra_A_ds300_fd100_snr10.svg b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/reports/figures/spectra_A_ds300_fd100_snr10.svg
new file mode 100644
index 0000000000000000000000000000000000000000..13fb777a4f20a610ce2fb8edf22e2f9951934e9c
--- /dev/null
+++ b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/reports/figures/spectra_A_ds300_fd100_snr10.svg
@@ -0,0 +1,752 @@
+
+
+
diff --git a/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/reports/figures/spectra_C_ds100_fd100_snr10.pdf b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/reports/figures/spectra_C_ds100_fd100_snr10.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..eeb11c8e19f9b2f4ebf9d5b54a053a3c4894cab4
Binary files /dev/null and b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/reports/figures/spectra_C_ds100_fd100_snr10.pdf differ
diff --git a/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/reports/figures/spectra_C_ds100_fd100_snr10.png b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/reports/figures/spectra_C_ds100_fd100_snr10.png
new file mode 100644
index 0000000000000000000000000000000000000000..e3cb15a7e29ab838f26d10d048cdc1c4b0425bb7
--- /dev/null
+++ b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/reports/figures/spectra_C_ds100_fd100_snr10.png
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:6d4fe702fe6998270ce6eb931104b6cdcf7dcdcdd87a60f86463863e9e729379
+size 197708
diff --git a/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/reports/figures/spectra_C_ds100_fd100_snr10.svg b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/reports/figures/spectra_C_ds100_fd100_snr10.svg
new file mode 100644
index 0000000000000000000000000000000000000000..6a170031c908ced450c18cc423e4f58cb578db9f
--- /dev/null
+++ b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/reports/figures/spectra_C_ds100_fd100_snr10.svg
@@ -0,0 +1,742 @@
+
+
+
diff --git a/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/reports/figures/spectra_C_ds100_fd10_snr10.pdf b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/reports/figures/spectra_C_ds100_fd10_snr10.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..927966fb07a174fd704acd8a9e5f162039e795ed
Binary files /dev/null and b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/reports/figures/spectra_C_ds100_fd10_snr10.pdf differ
diff --git a/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/reports/figures/spectra_C_ds100_fd10_snr10.png b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/reports/figures/spectra_C_ds100_fd10_snr10.png
new file mode 100644
index 0000000000000000000000000000000000000000..612dcf806cc7058c2fc107d49f0781827deb00fb
--- /dev/null
+++ b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/reports/figures/spectra_C_ds100_fd10_snr10.png
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:3dab405f3076cc98015204ecf1784a7abfdde81fd96b1695de8220aec0c1bc4b
+size 197245
diff --git a/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/reports/figures/spectra_C_ds100_fd10_snr10.svg b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/reports/figures/spectra_C_ds100_fd10_snr10.svg
new file mode 100644
index 0000000000000000000000000000000000000000..ece62c4751691569e6db041554cdadcc4c1a9640
--- /dev/null
+++ b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/reports/figures/spectra_C_ds100_fd10_snr10.svg
@@ -0,0 +1,742 @@
+
+
+
diff --git a/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/reports/figures/spectra_C_ds100_fd200_snr10.pdf b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/reports/figures/spectra_C_ds100_fd200_snr10.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..fa4ddfbfe2332c99b4881ab94639d70129a74a19
Binary files /dev/null and b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/reports/figures/spectra_C_ds100_fd200_snr10.pdf differ
diff --git a/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/reports/figures/spectra_C_ds100_fd200_snr10.png b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/reports/figures/spectra_C_ds100_fd200_snr10.png
new file mode 100644
index 0000000000000000000000000000000000000000..1bbda5de19100bbe65995295081c24529f4d37b0
--- /dev/null
+++ b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/reports/figures/spectra_C_ds100_fd200_snr10.png
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:a73a9897e75d6624d7aa1494584034af372d3843d7e997968c5a5a85d7902079
+size 195650
diff --git a/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/reports/figures/spectra_C_ds100_fd200_snr10.svg b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/reports/figures/spectra_C_ds100_fd200_snr10.svg
new file mode 100644
index 0000000000000000000000000000000000000000..199d24b6676b90a68bff230878666ff9b001bd02
--- /dev/null
+++ b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/reports/figures/spectra_C_ds100_fd200_snr10.svg
@@ -0,0 +1,752 @@
+
+
+
diff --git a/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/reports/figures/spectra_C_ds100_fd500_snr10.pdf b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/reports/figures/spectra_C_ds100_fd500_snr10.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..766603e032a92190eceda7fa2583ea7446e88bb4
Binary files /dev/null and b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/reports/figures/spectra_C_ds100_fd500_snr10.pdf differ
diff --git a/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/reports/figures/spectra_C_ds100_fd500_snr10.png b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/reports/figures/spectra_C_ds100_fd500_snr10.png
new file mode 100644
index 0000000000000000000000000000000000000000..674c10d0203d50bde47f2728379b53f59dd25a3e
--- /dev/null
+++ b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/reports/figures/spectra_C_ds100_fd500_snr10.png
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:05f71a538350a9f540322cb3eb6bf269c2c929b0666751c3a5e59a03e587636b
+size 188534
diff --git a/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/reports/figures/spectra_C_ds100_fd500_snr10.svg b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/reports/figures/spectra_C_ds100_fd500_snr10.svg
new file mode 100644
index 0000000000000000000000000000000000000000..6c79ab68f0b1d7f637588702b0ec76029135bf84
--- /dev/null
+++ b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/reports/figures/spectra_C_ds100_fd500_snr10.svg
@@ -0,0 +1,752 @@
+
+
+
diff --git a/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/reports/figures/spectra_C_ds300_fd10_snr10.pdf b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/reports/figures/spectra_C_ds300_fd10_snr10.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..c04d5afe780a348d8ee73d549411ab53d3b5ce37
Binary files /dev/null and b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/reports/figures/spectra_C_ds300_fd10_snr10.pdf differ
diff --git a/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/reports/figures/spectra_C_ds300_fd10_snr10.png b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/reports/figures/spectra_C_ds300_fd10_snr10.png
new file mode 100644
index 0000000000000000000000000000000000000000..51a89c04af6e0057825a35e6d06f81e40e614278
--- /dev/null
+++ b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/reports/figures/spectra_C_ds300_fd10_snr10.png
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:969fd7fc37060ada0a2a6d721f1cac5cc894e8e60ac0c769cbd493618a36a47a
+size 189538
diff --git a/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/reports/figures/spectra_C_ds300_fd10_snr10.svg b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/reports/figures/spectra_C_ds300_fd10_snr10.svg
new file mode 100644
index 0000000000000000000000000000000000000000..dde4484d116105e4fb4b45037399b96e9c003a70
--- /dev/null
+++ b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/reports/figures/spectra_C_ds300_fd10_snr10.svg
@@ -0,0 +1,752 @@
+
+
+
diff --git a/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/reports/mechanism_diagnostics.csv b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/reports/mechanism_diagnostics.csv
new file mode 100644
index 0000000000000000000000000000000000000000..5b73b8824be15546f87ecc1e0a1ab4e86ddd2e27
--- /dev/null
+++ b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/reports/mechanism_diagnostics.csv
@@ -0,0 +1,295 @@
+file,projection_fraction_pooled,anchor_nmse_pooled,correction_energy_normalized,required_learned_inner_normalized,cosine_mean_defined,cosine_undefined_count,max_abs_closure
+evaluation/E01_main_compact_D_base_s41001/DIAG/C_ds100_fd10_snr0/raw.npz,0.0006875906529715881,1.0,0.009283493396251553,0.00557955082155035,0.14630344410044946,0,9.094947017729282e-13
+evaluation/E01_main_compact_D_base_s41001/DIAG/C_ds100_fd10_snr5/raw.npz,0.0006875906529715881,1.0,0.009265727533905846,0.0055535868707636896,0.14663525481811998,0,4.547473508864641e-13
+evaluation/E01_main_compact_D_base_s41001/DIAG/C_ds100_fd10_snr10/raw.npz,0.0006875906529715881,1.0,0.00926486469834431,0.005527528619533386,0.14679673837999857,0,4.547473508864641e-13
+evaluation/E01_main_compact_D_base_s41001/DIAG/C_ds100_fd10_snr15/raw.npz,0.0006875906529715881,1.0,0.009272219595498928,0.005506889970493988,0.14689935109986005,0,2.2737367544323206e-13
+evaluation/E01_main_compact_D_base_s41001/DIAG/C_ds100_fd10_snr20/raw.npz,0.0006875906529715881,1.0,0.00928499230954309,0.005490727528429952,0.14699441180226316,0,4.547473508864641e-13
+evaluation/E01_main_compact_D_base_s41001/DIAG/C_ds100_fd10_snr25/raw.npz,0.0006875906529715881,1.0,0.009300809449665158,0.005478978419942372,0.1470966990447149,0,9.094947017729282e-13
+evaluation/E01_main_compact_D_base_s41001/DIAG/C_ds100_fd100_snr0/raw.npz,0.0008261512542778008,1.0,0.009993693834216968,-0.004332839244657244,0.06499549132801083,0,4.547473508864641e-13
+evaluation/E01_main_compact_D_base_s41001/DIAG/C_ds100_fd100_snr5/raw.npz,0.0008261512542778008,1.0,0.009974846992140438,-0.004353346770346638,0.06510816462573571,0,4.547473508864641e-13
+evaluation/E01_main_compact_D_base_s41001/DIAG/C_ds100_fd100_snr10/raw.npz,0.0008261512542778008,1.0,0.009975344966770784,-0.004383701458774711,0.0651995292847904,0,4.547473508864641e-13
+evaluation/E01_main_compact_D_base_s41001/DIAG/C_ds100_fd100_snr15/raw.npz,0.0008261512542778008,1.0,0.009986579033766136,-0.004409478413292437,0.06539814276360983,0,4.547473508864641e-13
+evaluation/E01_main_compact_D_base_s41001/DIAG/C_ds100_fd100_snr20/raw.npz,0.0008261512542778008,1.0,0.01000232489731087,-0.004431788567403627,0.06559628269340674,0,4.547473508864641e-13
+evaluation/E01_main_compact_D_base_s41001/DIAG/C_ds100_fd100_snr25/raw.npz,0.0008261512542778008,1.0,0.010021044479074658,-0.004451494946754061,0.06578303797855571,0,1.1368683772161603e-13
+evaluation/E01_main_compact_D_base_s41001/DIAG/C_ds100_fd200_snr0/raw.npz,0.0019593703772979756,1.0,0.00964171305344462,-0.014275841185574161,-0.04256699755944682,0,4.547473508864641e-13
+evaluation/E01_main_compact_D_base_s41001/DIAG/C_ds100_fd200_snr5/raw.npz,0.0019593703772979756,1.0,0.009624064018217667,-0.014291581063749987,-0.0426907525894322,0,4.547473508864641e-13
+evaluation/E01_main_compact_D_base_s41001/DIAG/C_ds100_fd200_snr10/raw.npz,0.0019593703772979756,1.0,0.009627292084178316,-0.01432285892731235,-0.04267006560538152,0,4.547473508864641e-13
+evaluation/E01_main_compact_D_base_s41001/DIAG/C_ds100_fd200_snr15/raw.npz,0.0019593703772979756,1.0,0.009640217219696852,-0.014354454777308548,-0.04248652416922282,0,4.547473508864641e-13
+evaluation/E01_main_compact_D_base_s41001/DIAG/C_ds100_fd200_snr20/raw.npz,0.0019593703772979756,1.0,0.009656679987123665,-0.014387540393036666,-0.04229023227633678,0,4.547473508864641e-13
+evaluation/E01_main_compact_D_base_s41001/DIAG/C_ds100_fd200_snr25/raw.npz,0.0019593703772979756,1.0,0.009675314642498425,-0.014419821899462145,-0.04207800178546104,0,4.547473508864641e-13
+evaluation/E01_main_compact_D_base_s41001/DIAG/C_ds100_fd500_snr0/raw.npz,0.04389855639818994,1.0,0.006914196124254842,-0.020813168100457465,-0.2139165326853383,0,4.547473508864641e-13
+evaluation/E01_main_compact_D_base_s41001/DIAG/C_ds100_fd500_snr5/raw.npz,0.04389855639818994,1.0,0.006901047115714661,-0.020835569653241463,-0.21437016204981493,0,9.094947017729282e-13
+evaluation/E01_main_compact_D_base_s41001/DIAG/C_ds100_fd500_snr10/raw.npz,0.04389855639818994,1.0,0.0069037892445859995,-0.020873701583129133,-0.214576152179355,0,9.094947017729282e-13
+evaluation/E01_main_compact_D_base_s41001/DIAG/C_ds100_fd500_snr15/raw.npz,0.04389855639818994,1.0,0.006913865240152836,-0.020917228882526416,-0.21465900700524096,0,9.094947017729282e-13
+evaluation/E01_main_compact_D_base_s41001/DIAG/C_ds100_fd500_snr20/raw.npz,0.04389855639818994,1.0,0.006926684927364131,-0.02095839537626654,-0.2146482869293098,0,9.094947017729282e-13
+evaluation/E01_main_compact_D_base_s41001/DIAG/C_ds100_fd500_snr25/raw.npz,0.04389855639818994,1.0,0.006941238672080159,-0.020997630228501932,-0.21457804605218547,0,9.094947017729282e-13
+evaluation/E01_main_compact_D_base_s41001/DIAG/A_ds100_fd10_snr0/raw.npz,0.0003311967844247724,1.0,0.009896800675751124,-0.009420781821005862,-0.08753520209666145,0,9.094947017729282e-13
+evaluation/E01_main_compact_D_base_s41001/DIAG/A_ds100_fd10_snr5/raw.npz,0.0003311967844247724,1.0,0.009862801590951972,-0.00939184427608123,-0.08734143470553506,0,9.094947017729282e-13
+evaluation/E01_main_compact_D_base_s41001/DIAG/A_ds100_fd10_snr10/raw.npz,0.0003311967844247724,1.0,0.009856020692508334,-0.00939375217683259,-0.08731893485456373,0,9.094947017729282e-13
+evaluation/E01_main_compact_D_base_s41001/DIAG/A_ds100_fd10_snr15/raw.npz,0.0003311967844247724,1.0,0.009860036576396542,-0.009409641222079775,-0.08736895575621144,0,4.547473508864641e-13
+evaluation/E01_main_compact_D_base_s41001/DIAG/A_ds100_fd10_snr20/raw.npz,0.0003311967844247724,1.0,0.009870008303990945,-0.009435133985195724,-0.08747054549166655,0,2.2737367544323206e-13
+evaluation/E01_main_compact_D_base_s41001/DIAG/A_ds100_fd10_snr25/raw.npz,0.0003311967844247724,1.0,0.009883770803734128,-0.009461712395541551,-0.08755615017792921,0,2.2737367544323206e-13
+evaluation/E01_main_compact_D_base_s41001/DIAG/C_ds300_fd10_snr0/raw.npz,0.04625639653331669,1.0,0.011393004769240139,-0.007844369531859048,-0.0028414512469230233,0,4.547473508864641e-13
+evaluation/E01_main_compact_D_base_s41001/DIAG/C_ds300_fd10_snr5/raw.npz,0.04625639653331669,1.0,0.01136838568681394,-0.007878246552102374,-0.003427222576611081,0,2.2737367544323206e-13
+evaluation/E01_main_compact_D_base_s41001/DIAG/C_ds300_fd10_snr10/raw.npz,0.04625639653331669,1.0,0.011369533063441475,-0.00789375926261813,-0.0037326663137458443,0,1.1368683772161603e-13
+evaluation/E01_main_compact_D_base_s41001/DIAG/C_ds300_fd10_snr15/raw.npz,0.04625639653331669,1.0,0.01138043597660482,-0.007896840273676107,-0.003763963401566118,0,1.1368683772161603e-13
+evaluation/E01_main_compact_D_base_s41001/DIAG/C_ds300_fd10_snr20/raw.npz,0.04625639653331669,1.0,0.011396804315361903,-0.007891900852500357,-0.0036723739439950276,0,4.547473508864641e-13
+evaluation/E01_main_compact_D_base_s41001/DIAG/C_ds300_fd10_snr25/raw.npz,0.04625639653331669,1.0,0.011417425414992528,-0.007883755292631954,-0.0035045609120742164,0,1.1368683772161603e-13
+evaluation/E01_main_compact_D_base_s41001/DIAG/A_ds300_fd100_snr0/raw.npz,0.012769628872475538,1.0,0.00526846375076703,-0.011412769307477042,-0.21926219200314634,0,9.094947017729282e-13
+evaluation/E01_main_compact_D_base_s41001/DIAG/A_ds300_fd100_snr5/raw.npz,0.012769628872475538,1.0,0.0052557309678365385,-0.011421105058155617,-0.21963312522491227,0,9.094947017729282e-13
+evaluation/E01_main_compact_D_base_s41001/DIAG/A_ds300_fd100_snr10/raw.npz,0.012769628872475538,1.0,0.005256074885675261,-0.011442193699764541,-0.21979048445401259,0,9.094947017729282e-13
+evaluation/E01_main_compact_D_base_s41001/DIAG/A_ds300_fd100_snr15/raw.npz,0.012769628872475538,1.0,0.0052617023825645955,-0.01146167404998023,-0.2197760889650806,0,9.094947017729282e-13
+evaluation/E01_main_compact_D_base_s41001/DIAG/A_ds300_fd100_snr20/raw.npz,0.012769628872475538,1.0,0.0052699971454423225,-0.01148175192376599,-0.21968612652964378,0,9.094947017729282e-13
+evaluation/E01_main_compact_D_base_s41001/DIAG/A_ds300_fd100_snr25/raw.npz,0.012769628872475538,1.0,0.005279405911617069,-0.01150131742006035,-0.2195742302921707,0,9.094947017729282e-13
+evaluation/E01_main_compact_A-raw_base_s41001/DIAG/C_ds100_fd10_snr0/raw.npz,0.0006875906529715881,0.04020140349055827,0.00913728722361521,-0.00044741420043966745,-0.016099816791432478,0,1.4210854715202004e-14
+evaluation/E01_main_compact_A-raw_base_s41001/DIAG/C_ds100_fd10_snr5/raw.npz,0.0006875906529715881,0.016348600689867793,0.00910721927172161,-0.00034059397710631864,-0.03639018661410933,0,7.105427357601002e-15
+evaluation/E01_main_compact_A-raw_base_s41001/DIAG/C_ds100_fd10_snr10/raw.npz,0.0006875906529715881,0.007234997155262508,0.009101694165285789,-0.0002310936549648729,-0.03863527362511004,0,7.105427357601002e-15
+evaluation/E01_main_compact_A-raw_base_s41001/DIAG/C_ds100_fd10_snr15/raw.npz,0.0006875906529715881,0.003434450180677795,0.009107530998640404,-0.00013641552682370643,-0.03314561379203224,0,3.552713678800501e-15
+evaluation/E01_main_compact_A-raw_base_s41001/DIAG/C_ds100_fd10_snr20/raw.npz,0.0006875906529715881,0.0017054090905254332,0.009119780704224418,-6.960889295732306e-05,-0.027745348779744796,0,1.7763568394002505e-15
+evaluation/E01_main_compact_A-raw_base_s41001/DIAG/C_ds100_fd10_snr25/raw.npz,0.0006875906529715881,0.0010304883021762556,0.009135968622384244,-2.7146199456757897e-05,-0.023240961266636228,0,1.7763568394002505e-15
+evaluation/E01_main_compact_A-raw_base_s41001/DIAG/C_ds100_fd100_snr0/raw.npz,0.0008261512542778008,0.0691370097670838,0.009843142984426798,-0.0004872946489111829,-0.019258820003669432,0,2.842170943040401e-14
+evaluation/E01_main_compact_A-raw_base_s41001/DIAG/C_ds100_fd100_snr5/raw.npz,0.0008261512542778008,0.03478877150996135,0.009810253587200578,-0.0003275658736568312,-0.02119359063366746,0,1.4210854715202004e-14
+evaluation/E01_main_compact_A-raw_base_s41001/DIAG/C_ds100_fd100_snr10/raw.npz,0.0008261512542778008,0.01482353249771282,0.009806597294964773,-0.0002246919694376483,-0.022332002418160565,0,7.105427357601002e-15
+evaluation/E01_main_compact_A-raw_base_s41001/DIAG/C_ds100_fd100_snr15/raw.npz,0.0008261512542778008,0.005312660221834791,0.009815860460895044,-0.00014492485402107196,-0.024932775349242434,0,7.105427357601002e-15
+evaluation/E01_main_compact_A-raw_base_s41001/DIAG/C_ds100_fd100_snr20/raw.npz,0.0008261512542778008,0.002136229148051499,0.00983104159580179,-8.60181386919562e-05,-0.025141579818460862,0,3.552713678800501e-15
+evaluation/E01_main_compact_A-raw_base_s41001/DIAG/C_ds100_fd100_snr25/raw.npz,0.0008261512542778008,0.0012190697916404534,0.009849622578688585,-4.550078367338433e-05,-0.022277911865142812,0,3.552713678800501e-15
+evaluation/E01_main_compact_A-raw_base_s41001/DIAG/C_ds100_fd200_snr0/raw.npz,0.0019593703772979756,0.1394597842778802,0.00950314637795229,-0.0006651869586287324,-0.018645747058283275,0,2.842170943040401e-14
+evaluation/E01_main_compact_A-raw_base_s41001/DIAG/C_ds100_fd200_snr5/raw.npz,0.0019593703772979756,0.0821221956884967,0.009471688272340005,-0.0004558996672288991,-0.019932443319641786,0,2.842170943040401e-14
+evaluation/E01_main_compact_A-raw_base_s41001/DIAG/C_ds100_fd200_snr10/raw.npz,0.0019593703772979756,0.03421909727840558,0.009470529439269034,-0.0003616436707806759,-0.028011534292627344,0,1.4210854715202004e-14
+evaluation/E01_main_compact_A-raw_base_s41001/DIAG/C_ds100_fd200_snr15/raw.npz,0.0019593703772979756,0.010161325795423224,0.009481754903417901,-0.0002977757473764412,-0.04021917286925767,0,7.105427357601002e-15
+evaluation/E01_main_compact_A-raw_base_s41001/DIAG/C_ds100_fd200_snr20/raw.npz,0.0019593703772979756,0.0037289524130341093,0.009497540967455906,-0.00024899913234666056,-0.04839956118119554,0,3.552713678800501e-15
+evaluation/E01_main_compact_A-raw_base_s41001/DIAG/C_ds100_fd200_snr25/raw.npz,0.0019593703772979756,0.002438946116584481,0.009516213734550175,-0.0002134728537545901,-0.04829988721104498,0,3.552713678800501e-15
+evaluation/E01_main_compact_A-raw_base_s41001/DIAG/C_ds100_fd500_snr0/raw.npz,0.04389855639818994,0.32284186964810624,0.006820350336972667,-0.002486770839647291,-0.06142024562094065,0,4.547473508864641e-13
+evaluation/E01_main_compact_A-raw_base_s41001/DIAG/C_ds100_fd500_snr5/raw.npz,0.04389855639818994,0.21791014717508184,0.006797791276366848,-0.002213171307154256,-0.06762669890042183,0,1.1368683772161603e-13
+evaluation/E01_main_compact_A-raw_base_s41001/DIAG/C_ds100_fd500_snr10/raw.npz,0.04389855639818994,0.11087659170916153,0.006796588424438907,-0.0020858166100769624,-0.07951932598670976,0,5.684341886080802e-14
+evaluation/E01_main_compact_A-raw_base_s41001/DIAG/C_ds100_fd500_snr15/raw.npz,0.04389855639818994,0.0596238534084144,0.006805444551290547,-0.0020119339016859946,-0.09227651553557435,0,2.842170943040401e-14
+evaluation/E01_main_compact_A-raw_base_s41001/DIAG/C_ds100_fd500_snr20/raw.npz,0.04389855639818994,0.04972155595167968,0.006818044211167815,-0.00196629362808612,-0.09684632816538274,0,5.684341886080802e-14
+evaluation/E01_main_compact_A-raw_base_s41001/DIAG/C_ds100_fd500_snr25/raw.npz,0.04389855639818994,0.04918081566792843,0.006832671172556122,-0.0019385650079309091,-0.09766581739907537,0,1.4210854715202004e-14
+evaluation/E01_main_compact_A-raw_base_s41001/DIAG/A_ds100_fd10_snr0/raw.npz,0.0003311967844247724,0.03778741483226194,0.009753906050270144,0.0017213171056122566,0.1025318453716384,0,2.842170943040401e-14
+evaluation/E01_main_compact_A-raw_base_s41001/DIAG/A_ds100_fd10_snr5/raw.npz,0.0003311967844247724,0.016397099447168547,0.009707771216944423,0.0009355190857711947,0.07831081613844364,0,7.105427357601002e-15
+evaluation/E01_main_compact_A-raw_base_s41001/DIAG/A_ds100_fd10_snr10/raw.npz,0.0003311967844247724,0.007335689783721937,0.009695798021856664,0.0004998180781357607,0.05788218651091761,0,3.552713678800501e-15
+evaluation/E01_main_compact_A-raw_base_s41001/DIAG/A_ds100_fd10_snr15/raw.npz,0.0003311967844247724,0.003318906417025761,0.009698355546286582,0.00027438617193299795,0.0429701649649342,0,3.552713678800501e-15
+evaluation/E01_main_compact_A-raw_base_s41001/DIAG/A_ds100_fd10_snr20/raw.npz,0.0003311967844247724,0.0014514677464451428,0.00970844879806563,0.00015784462375354255,0.03417790815414253,0,3.552713678800501e-15
+evaluation/E01_main_compact_A-raw_base_s41001/DIAG/A_ds100_fd10_snr25/raw.npz,0.0003311967844247724,0.0007111596706473284,0.00972401566069371,9.631609666323235e-05,0.027063900997620873,0,1.7763568394002505e-15
+evaluation/E01_main_compact_A-raw_base_s41001/DIAG/C_ds300_fd10_snr0/raw.npz,0.04625639653331669,0.13736059034479176,0.011193546764566749,-0.0011914590551640994,-0.011351477349125907,0,2.842170943040401e-14
+evaluation/E01_main_compact_A-raw_base_s41001/DIAG/C_ds300_fd10_snr5/raw.npz,0.04625639653331669,0.08316057263999066,0.011151225468162142,-0.0008574137299442172,-0.01472133450772474,0,5.684341886080802e-14
+evaluation/E01_main_compact_A-raw_base_s41001/DIAG/C_ds300_fd10_snr10/raw.npz,0.04625639653331669,0.05937569100153513,0.011145012007738575,-0.0006842942355339967,-0.02202092551442682,0,5.684341886080802e-14
+evaluation/E01_main_compact_A-raw_base_s41001/DIAG/C_ds300_fd10_snr15/raw.npz,0.04625639653331669,0.05034803904558316,0.01115276534909746,-0.0005779031471248559,-0.024166927748668493,0,2.842170943040401e-14
+evaluation/E01_main_compact_A-raw_base_s41001/DIAG/C_ds300_fd10_snr20/raw.npz,0.04625639653331669,0.04750373940352022,0.011168549796578638,-0.0005067932135052991,-0.022369044815303375,0,2.842170943040401e-14
+evaluation/E01_main_compact_A-raw_base_s41001/DIAG/C_ds300_fd10_snr25/raw.npz,0.04625639653331669,0.046647959704074475,0.011189851566468602,-0.0004611909026160978,-0.020369998621441315,0,2.842170943040401e-14
+evaluation/E01_main_compact_A-raw_base_s41001/DIAG/A_ds300_fd100_snr0/raw.npz,0.012769628872475538,0.09681389654071092,0.0051949762288360695,0.0015527180698366521,0.059062201881069025,0,5.684341886080802e-14
+evaluation/E01_main_compact_A-raw_base_s41001/DIAG/A_ds300_fd100_snr5/raw.npz,0.012769628872475538,0.049825291709415485,0.005174312707031872,0.0008554551570526134,0.0542679875045377,0,2.842170943040401e-14
+evaluation/E01_main_compact_A-raw_base_s41001/DIAG/A_ds300_fd100_snr10/raw.npz,0.012769628872475538,0.025557756231031153,0.005170510878403766,0.0004642466846812473,0.051406533843923456,0,1.4210854715202004e-14
+evaluation/E01_main_compact_A-raw_base_s41001/DIAG/A_ds300_fd100_snr15/raw.npz,0.012769628872475538,0.016005269051824242,0.005173585244738299,0.00024032064746667598,0.046123566372825366,0,2.842170943040401e-14
+evaluation/E01_main_compact_A-raw_base_s41001/DIAG/A_ds300_fd100_snr20/raw.npz,0.012769628872475538,0.013534123062042663,0.005180345218911007,0.00010752496150558462,0.0315850597742078,0,7.105427357601002e-15
+evaluation/E01_main_compact_A-raw_base_s41001/DIAG/A_ds300_fd100_snr25/raw.npz,0.012769628872475538,0.01298139540285142,0.00518905717570952,2.832281237096339e-05,0.015553934892549004,0,1.4210854715202004e-14
+evaluation/E01_main_compact_A-res_base_s41001/DIAG/C_ds100_fd10_snr0/raw.npz,0.0006875906529715881,0.04020140349055827,0.009079727059668056,-0.00047855599984505546,-0.018375377532349316,0,1.4210854715202004e-14
+evaluation/E01_main_compact_A-res_base_s41001/DIAG/C_ds100_fd10_snr5/raw.npz,0.0006875906529715881,0.016348600689867793,0.009051597101993054,-0.0003655642316824314,-0.03887994292482693,0,7.105427357601002e-15
+evaluation/E01_main_compact_A-res_base_s41001/DIAG/C_ds100_fd10_snr10/raw.npz,0.0006875906529715881,0.007234997155262508,0.009047934978629983,-0.00024975980360368566,-0.041210027979919496,0,7.105427357601002e-15
+evaluation/E01_main_compact_A-res_base_s41001/DIAG/C_ds100_fd10_snr15/raw.npz,0.0006875906529715881,0.003434450180677795,0.009057060774383879,-0.00015058574392614476,-0.035854679882107186,0,3.552713678800501e-15
+evaluation/E01_main_compact_A-res_base_s41001/DIAG/C_ds100_fd10_snr20/raw.npz,0.0006875906529715881,0.0017054090905254332,0.009069475274648726,-8.125138603527009e-05,-0.030813018184196943,0,3.552713678800501e-15
+evaluation/E01_main_compact_A-res_base_s41001/DIAG/C_ds100_fd10_snr25/raw.npz,0.0006875906529715881,0.0010304883021762556,0.009083629121968823,-3.755280617843921e-05,-0.02663352483212263,0,1.7763568394002505e-15
+evaluation/E01_main_compact_A-res_base_s41001/DIAG/C_ds100_fd100_snr0/raw.npz,0.0008261512542778008,0.0691370097670838,0.009789323797080673,-0.0005350142946349594,-0.021534763013885308,0,2.842170943040401e-14
+evaluation/E01_main_compact_A-res_base_s41001/DIAG/C_ds100_fd100_snr5/raw.npz,0.0008261512542778008,0.03478877150996135,0.0097589318931147,-0.00035995267478734343,-0.02332358079051036,0,1.4210854715202004e-14
+evaluation/E01_main_compact_A-res_base_s41001/DIAG/C_ds100_fd100_snr10/raw.npz,0.0008261512542778008,0.01482353249771282,0.009754529665822813,-0.0002455633120248723,-0.024396467221276984,0,7.105427357601002e-15
+evaluation/E01_main_compact_A-res_base_s41001/DIAG/C_ds100_fd100_snr15/raw.npz,0.0008261512542778008,0.005312660221834791,0.009764212134996897,-0.0001598998166190926,-0.027368791614448145,0,3.552713678800501e-15
+evaluation/E01_main_compact_A-res_base_s41001/DIAG/C_ds100_fd100_snr20/raw.npz,0.0008261512542778008,0.002136229148051499,0.00977751802762947,-9.845078849894088e-05,-0.028227917404973518,0,3.552713678800501e-15
+evaluation/E01_main_compact_A-res_base_s41001/DIAG/C_ds100_fd100_snr25/raw.npz,0.0008261512542778008,0.0012190697916404534,0.009792794485368904,-5.678794954089703e-05,-0.025771789649513904,0,1.7763568394002505e-15
+evaluation/E01_main_compact_A-res_base_s41001/DIAG/C_ds100_fd200_snr0/raw.npz,0.0019593703772979756,0.1394597842778802,0.009458242225407117,-0.0007219826765587033,-0.020596214454665737,0,5.684341886080802e-14
+evaluation/E01_main_compact_A-res_base_s41001/DIAG/C_ds100_fd200_snr5/raw.npz,0.0019593703772979756,0.0821221956884967,0.009428026991760843,-0.0004868420698277433,-0.021432080555828625,0,5.684341886080802e-14
+evaluation/E01_main_compact_A-res_base_s41001/DIAG/C_ds100_fd200_snr10/raw.npz,0.0019593703772979756,0.03421909727840558,0.009422142123134608,-0.00037552614341640906,-0.0291590890457612,0,1.4210854715202004e-14
+evaluation/E01_main_compact_A-res_base_s41001/DIAG/C_ds100_fd200_snr15/raw.npz,0.0019593703772979756,0.010161325795423224,0.00943077001718741,-0.00030695907736528284,-0.04150735767279989,0,7.105427357601002e-15
+evaluation/E01_main_compact_A-res_base_s41001/DIAG/C_ds100_fd200_snr20/raw.npz,0.0019593703772979756,0.0037289524130341093,0.009443520364185816,-0.00025833951724161516,-0.050350087426505985,0,3.552713678800501e-15
+evaluation/E01_main_compact_A-res_base_s41001/DIAG/C_ds100_fd200_snr25/raw.npz,0.0019593703772979756,0.002438946116584481,0.009458322981737374,-0.00022285327427944276,-0.05059597037412408,0,3.552713678800501e-15
+evaluation/E01_main_compact_A-res_base_s41001/DIAG/C_ds100_fd500_snr0/raw.npz,0.04389855639818994,0.32284186964810624,0.006794707699310329,-0.0024923870642021297,-0.061978321067152266,0,5.684341886080802e-14
+evaluation/E01_main_compact_A-res_base_s41001/DIAG/C_ds100_fd500_snr5/raw.npz,0.04389855639818994,0.21791014717508184,0.006768071123145703,-0.0021944727786821685,-0.06753260589122595,0,1.1368683772161603e-13
+evaluation/E01_main_compact_A-res_base_s41001/DIAG/C_ds100_fd500_snr10/raw.npz,0.04389855639818994,0.11087659170916153,0.006759007716940302,-0.002058598814063727,-0.07900389297117714,0,5.684341886080802e-14
+evaluation/E01_main_compact_A-res_base_s41001/DIAG/C_ds100_fd500_snr15/raw.npz,0.04389855639818994,0.0596238534084144,0.00676297398465577,-0.001990205083650222,-0.09172595063575673,0,5.684341886080802e-14
+evaluation/E01_main_compact_A-res_base_s41001/DIAG/C_ds100_fd500_snr20/raw.npz,0.04389855639818994,0.04972155595167968,0.006772136793234314,-0.0019522556751272587,-0.09680590233260737,0,2.842170943040401e-14
+evaluation/E01_main_compact_A-res_base_s41001/DIAG/C_ds100_fd500_snr25/raw.npz,0.04389855639818994,0.04918081566792843,0.006782936541236833,-0.0019279470774184201,-0.09799011833183956,0,5.684341886080802e-14
+evaluation/E01_main_compact_A-res_base_s41001/DIAG/A_ds100_fd10_snr0/raw.npz,0.0003311967844247724,0.03778741483226194,0.009685935710735316,0.0017396842211205975,0.10453919989014615,0,2.1316282072803006e-14
+evaluation/E01_main_compact_A-res_base_s41001/DIAG/A_ds100_fd10_snr5/raw.npz,0.0003311967844247724,0.016397099447168547,0.009646757019438129,0.0009464282646444337,0.0797010610348647,0,1.4210854715202004e-14
+evaluation/E01_main_compact_A-res_base_s41001/DIAG/A_ds100_fd10_snr10/raw.npz,0.0003311967844247724,0.007335689783721937,0.009639235858398649,0.0005074353110333491,0.05904749931375065,0,3.552713678800501e-15
+evaluation/E01_main_compact_A-res_base_s41001/DIAG/A_ds100_fd10_snr15/raw.npz,0.0003311967844247724,0.003318906417025761,0.009646471125876318,0.00027866232881301316,0.04401230187678982,0,7.105427357601002e-15
+evaluation/E01_main_compact_A-res_base_s41001/DIAG/A_ds100_fd10_snr20/raw.npz,0.0003311967844247724,0.0014514677464451428,0.009657904850713321,0.0001584973326737165,0.03473903901933704,0,3.552713678800501e-15
+evaluation/E01_main_compact_A-res_base_s41001/DIAG/A_ds100_fd10_snr25/raw.npz,0.0003311967844247724,0.0007111596706473284,0.009671410509608735,9.400474894279492e-05,0.02678055896424171,0,3.552713678800501e-15
+evaluation/E01_main_compact_A-res_base_s41001/DIAG/C_ds300_fd10_snr0/raw.npz,0.04625639653331669,0.13736059034479176,0.011183020102674569,-0.0012531728647616864,-0.0125423655245337,0,5.684341886080802e-14
+evaluation/E01_main_compact_A-res_base_s41001/DIAG/C_ds300_fd10_snr5/raw.npz,0.04625639653331669,0.08316057263999066,0.011147714654657347,-0.0009190837188334878,-0.0164836085709533,0,2.842170943040401e-14
+evaluation/E01_main_compact_A-res_base_s41001/DIAG/C_ds300_fd10_snr10/raw.npz,0.04625639653331669,0.05937569100153513,0.011139767170885148,-0.0007433009408476868,-0.024260326505125107,0,5.684341886080802e-14
+evaluation/E01_main_compact_A-res_base_s41001/DIAG/C_ds300_fd10_snr15/raw.npz,0.04625639653331669,0.05034803904558316,0.011146547479532245,-0.0006361569083124254,-0.02664398988691445,0,2.842170943040401e-14
+evaluation/E01_main_compact_A-res_base_s41001/DIAG/C_ds300_fd10_snr20/raw.npz,0.04625639653331669,0.04750373940352022,0.011160983342161654,-0.0005666817576798117,-0.024984001860436093,0,1.4210854715202004e-14
+evaluation/E01_main_compact_A-res_base_s41001/DIAG/C_ds300_fd10_snr25/raw.npz,0.04625639653331669,0.046647959704074475,0.011178911328329079,-0.0005204740891116324,-0.022965695661660568,0,2.842170943040401e-14
+evaluation/E01_main_compact_A-res_base_s41001/DIAG/A_ds300_fd100_snr0/raw.npz,0.012769628872475538,0.09681389654071092,0.005133494282583969,0.0016276392035409783,0.06193525353658035,0,5.684341886080802e-14
+evaluation/E01_main_compact_A-res_base_s41001/DIAG/A_ds300_fd100_snr5/raw.npz,0.012769628872475538,0.049825291709415485,0.005111682445017083,0.0009058616325726926,0.05684968005183364,0,2.842170943040401e-14
+evaluation/E01_main_compact_A-res_base_s41001/DIAG/A_ds300_fd100_snr10/raw.npz,0.012769628872475538,0.025557756231031153,0.005106101220006644,0.0004894398420164296,0.05303908790333244,0,2.842170943040401e-14
+evaluation/E01_main_compact_A-res_base_s41001/DIAG/A_ds300_fd100_snr15/raw.npz,0.012769628872475538,0.016005269051824242,0.005107725918128842,0.0002485470211849704,0.04651793743800264,0,1.4210854715202004e-14
+evaluation/E01_main_compact_A-res_base_s41001/DIAG/A_ds300_fd100_snr20/raw.npz,0.012769628872475538,0.013534123062042663,0.005112785717056068,0.00010881167706750213,0.031238839692399625,0,1.4210854715202004e-14
+evaluation/E01_main_compact_A-res_base_s41001/DIAG/A_ds300_fd100_snr25/raw.npz,0.012769628872475538,0.01298139540285142,0.005120061697465039,2.8071501421457973e-05,0.015010631084259977,0,2.842170943040401e-14
+evaluation/E02_main_reesnet_D_base_s41001/DIAG/C_ds100_fd10_snr0/raw.npz,0.0006875906529715881,1.0,0.01159094509520486,0.010210730616251574,-0.066517137807576,0,6.821210263296962e-13
+evaluation/E02_main_reesnet_D_base_s41001/DIAG/C_ds100_fd10_snr5/raw.npz,0.0006875906529715881,1.0,0.010550946226628199,0.010040700018752756,-0.079583404786201,0,4.547473508864641e-13
+evaluation/E02_main_reesnet_D_base_s41001/DIAG/C_ds100_fd10_snr10/raw.npz,0.0006875906529715881,1.0,0.010217579435337519,0.0099437036032221,-0.08442511048155632,0,4.547473508864641e-13
+evaluation/E02_main_reesnet_D_base_s41001/DIAG/C_ds100_fd10_snr15/raw.npz,0.0006875906529715881,1.0,0.010107595526605949,0.00988573352851339,-0.0860244634223698,0,4.547473508864641e-13
+evaluation/E02_main_reesnet_D_base_s41001/DIAG/C_ds100_fd10_snr20/raw.npz,0.0006875906529715881,1.0,0.010069560596404481,0.009853078520201081,-0.08651610495894912,0,4.547473508864641e-13
+evaluation/E02_main_reesnet_D_base_s41001/DIAG/C_ds100_fd10_snr25/raw.npz,0.0006875906529715881,1.0,0.01005568978458733,0.009834010646182384,-0.08666235614611754,0,4.547473508864641e-13
+evaluation/E02_main_reesnet_D_base_s41001/DIAG/C_ds100_fd100_snr0/raw.npz,0.0008261512542778008,1.0,0.012863115223803703,0.02245215548589403,-0.018673625743105316,0,4.547473508864641e-13
+evaluation/E02_main_reesnet_D_base_s41001/DIAG/C_ds100_fd100_snr5/raw.npz,0.0008261512542778008,1.0,0.011756797269261562,0.02234604619055814,-0.02799171470363937,0,4.547473508864641e-13
+evaluation/E02_main_reesnet_D_base_s41001/DIAG/C_ds100_fd100_snr10/raw.npz,0.0008261512542778008,1.0,0.011403920419198193,0.022273116956998133,-0.03125735853417189,0,2.2737367544323206e-13
+evaluation/E02_main_reesnet_D_base_s41001/DIAG/C_ds100_fd100_snr15/raw.npz,0.0008261512542778008,1.0,0.01128858947580936,0.02222605201721281,-0.03220578725592183,0,4.547473508864641e-13
+evaluation/E02_main_reesnet_D_base_s41001/DIAG/C_ds100_fd100_snr20/raw.npz,0.0008261512542778008,1.0,0.011250314940231978,0.02219839055553894,-0.03242704509137992,0,2.2737367544323206e-13
+evaluation/E02_main_reesnet_D_base_s41001/DIAG/C_ds100_fd100_snr25/raw.npz,0.0008261512542778008,1.0,0.011236810587415968,0.022182620870855926,-0.032449185863706265,0,4.547473508864641e-13
+evaluation/E02_main_reesnet_D_base_s41001/DIAG/C_ds100_fd200_snr0/raw.npz,0.0019593703772979756,1.0,0.012891338673887228,0.03376568920273898,0.06926891703003213,0,2.2737367544323206e-13
+evaluation/E02_main_reesnet_D_base_s41001/DIAG/C_ds100_fd200_snr5/raw.npz,0.0019593703772979756,1.0,0.011840493372697563,0.03374837869489559,0.06670326030411343,0,4.547473508864641e-13
+evaluation/E02_main_reesnet_D_base_s41001/DIAG/C_ds100_fd200_snr10/raw.npz,0.0019593703772979756,1.0,0.011508137549034599,0.03372591084278464,0.06603454599430729,0,4.547473508864641e-13
+evaluation/E02_main_reesnet_D_base_s41001/DIAG/C_ds100_fd200_snr15/raw.npz,0.0019593703772979756,1.0,0.011401212077009979,0.03370735386907685,0.06605237795729085,0,9.094947017729282e-13
+evaluation/E02_main_reesnet_D_base_s41001/DIAG/C_ds100_fd200_snr20/raw.npz,0.0019593703772979756,1.0,0.01136602924428861,0.03369502295502543,0.06619153254701625,0,4.547473508864641e-13
+evaluation/E02_main_reesnet_D_base_s41001/DIAG/C_ds100_fd200_snr25/raw.npz,0.0019593703772979756,1.0,0.011354074490084356,0.03368789829464739,0.06631004381699589,0,4.547473508864641e-13
+evaluation/E02_main_reesnet_D_base_s41001/DIAG/C_ds100_fd500_snr0/raw.npz,0.04389855639818994,1.0,0.009924170217712027,0.039430031067056844,0.27062332456584076,0,4.547473508864641e-13
+evaluation/E02_main_reesnet_D_base_s41001/DIAG/C_ds100_fd500_snr5/raw.npz,0.04389855639818994,1.0,0.009183068238952194,0.03956071248857706,0.28105261561577916,0,4.547473508864641e-13
+evaluation/E02_main_reesnet_D_base_s41001/DIAG/C_ds100_fd500_snr10/raw.npz,0.04389855639818994,1.0,0.008951411916485857,0.03962627216757763,0.2851544505657185,0,4.547473508864641e-13
+evaluation/E02_main_reesnet_D_base_s41001/DIAG/C_ds100_fd500_snr15/raw.npz,0.04389855639818994,1.0,0.008879862414792031,0.03966390698863951,0.2868159204841675,0,9.094947017729282e-13
+evaluation/E02_main_reesnet_D_base_s41001/DIAG/C_ds100_fd500_snr20/raw.npz,0.04389855639818994,1.0,0.008858398174976582,0.039686093455935,0.2875364234958979,0,9.094947017729282e-13
+evaluation/E02_main_reesnet_D_base_s41001/DIAG/C_ds100_fd500_snr25/raw.npz,0.04389855639818994,1.0,0.008852089340062883,0.039698496712627776,0.2878684244992868,0,9.094947017729282e-13
+evaluation/E02_main_reesnet_D_base_s41001/DIAG/A_ds100_fd10_snr0/raw.npz,0.0003311967844247724,1.0,0.01238815066732886,0.029676253719441815,0.1973504781873833,0,4.547473508864641e-13
+evaluation/E02_main_reesnet_D_base_s41001/DIAG/A_ds100_fd10_snr5/raw.npz,0.0003311967844247724,1.0,0.011326588519211053,0.0294760825523961,0.20007097874948687,0,4.547473508864641e-13
+evaluation/E02_main_reesnet_D_base_s41001/DIAG/A_ds100_fd10_snr10/raw.npz,0.0003311967844247724,1.0,0.010978824935167176,0.02936818059102128,0.20079224219455097,0,9.094947017729282e-13
+evaluation/E02_main_reesnet_D_base_s41001/DIAG/A_ds100_fd10_snr15/raw.npz,0.0003311967844247724,1.0,0.010860977309369003,0.029305743651021045,0.20098757894344801,0,2.2737367544323206e-13
+evaluation/E02_main_reesnet_D_base_s41001/DIAG/A_ds100_fd10_snr20/raw.npz,0.0003311967844247724,1.0,0.010817813393615133,0.029269553565348282,0.20103961376550408,0,9.094947017729282e-13
+evaluation/E02_main_reesnet_D_base_s41001/DIAG/A_ds100_fd10_snr25/raw.npz,0.0003311967844247724,1.0,0.010800560621078231,0.02924853334012495,0.2010521478887717,0,4.547473508864641e-13
+evaluation/E02_main_reesnet_D_base_s41001/DIAG/C_ds300_fd10_snr0/raw.npz,0.04625639653331669,1.0,0.014390459210157872,0.012012563624511207,-0.03578189536602023,0,4.547473508864641e-13
+evaluation/E02_main_reesnet_D_base_s41001/DIAG/C_ds300_fd10_snr5/raw.npz,0.04625639653331669,1.0,0.013138810198223522,0.011899455060237901,-0.04267107778328457,0,4.547473508864641e-13
+evaluation/E02_main_reesnet_D_base_s41001/DIAG/C_ds300_fd10_snr10/raw.npz,0.04625639653331669,1.0,0.012744004864232215,0.011834631521872002,-0.04529752933766868,0,4.547473508864641e-13
+evaluation/E02_main_reesnet_D_base_s41001/DIAG/C_ds300_fd10_snr15/raw.npz,0.04625639653331669,1.0,0.012617452684978906,0.011792167647475805,-0.046230482793147364,0,2.2737367544323206e-13
+evaluation/E02_main_reesnet_D_base_s41001/DIAG/C_ds300_fd10_snr20/raw.npz,0.04625639653331669,1.0,0.012575508770332087,0.011767470969202628,-0.046551743489355646,0,4.547473508864641e-13
+evaluation/E02_main_reesnet_D_base_s41001/DIAG/C_ds300_fd10_snr25/raw.npz,0.04625639653331669,1.0,0.012561310705660973,0.01175343568845927,-0.04666560062330338,0,4.547473508864641e-13
+evaluation/E02_main_reesnet_D_base_s41001/DIAG/A_ds300_fd100_snr0/raw.npz,0.012769628872475538,1.0,0.007673559339072782,0.023919543541565273,0.265564225730552,0,9.094947017729282e-13
+evaluation/E02_main_reesnet_D_base_s41001/DIAG/A_ds300_fd100_snr5/raw.npz,0.012769628872475538,1.0,0.007070565758659964,0.02391046912346719,0.2747831280109076,0,9.094947017729282e-13
+evaluation/E02_main_reesnet_D_base_s41001/DIAG/A_ds300_fd100_snr10/raw.npz,0.012769628872475538,1.0,0.006870638975570875,0.023901990439390206,0.27835085047576813,0,9.094947017729282e-13
+evaluation/E02_main_reesnet_D_base_s41001/DIAG/A_ds300_fd100_snr15/raw.npz,0.012769628872475538,1.0,0.0068015028615204184,0.023894573294500013,0.2797571704177548,0,9.094947017729282e-13
+evaluation/E02_main_reesnet_D_base_s41001/DIAG/A_ds300_fd100_snr20/raw.npz,0.012769628872475538,1.0,0.006776145437562422,0.023889927799464087,0.2803547877278849,0,4.547473508864641e-13
+evaluation/E02_main_reesnet_D_base_s41001/DIAG/A_ds300_fd100_snr25/raw.npz,0.012769628872475538,1.0,0.006766003738241973,0.023887059421109972,0.2806312685605328,0,9.094947017729282e-13
+evaluation/E02_main_channelformer_D_base_s41001/DIAG/C_ds100_fd10_snr0/raw.npz,0.0006875906529715881,1.0,0.10532006402588093,0.00842617915098219,0.023327149886635406,0,4.547473508864641e-13
+evaluation/E02_main_channelformer_D_base_s41001/DIAG/C_ds100_fd10_snr5/raw.npz,0.0006875906529715881,1.0,0.10342779690147282,0.012253924567389463,0.03452794661509531,0,9.094947017729282e-13
+evaluation/E02_main_channelformer_D_base_s41001/DIAG/C_ds100_fd10_snr10/raw.npz,0.0006875906529715881,1.0,0.10139972824877849,0.016362822534343083,0.04738599510066175,0,4.547473508864641e-13
+evaluation/E02_main_channelformer_D_base_s41001/DIAG/C_ds100_fd10_snr15/raw.npz,0.0006875906529715881,1.0,0.1002887528492407,0.019479053186922345,0.05800457786897803,0,4.547473508864641e-13
+evaluation/E02_main_channelformer_D_base_s41001/DIAG/C_ds100_fd10_snr20/raw.npz,0.0006875906529715881,1.0,0.10024790439938203,0.02117546038210566,0.06433280013629016,0,9.094947017729282e-13
+evaluation/E02_main_channelformer_D_base_s41001/DIAG/C_ds100_fd10_snr25/raw.npz,0.0006875906529715881,1.0,0.10062606297521279,0.021899701829562072,0.06722158243512964,0,2.2737367544323206e-13
+evaluation/E02_main_channelformer_D_base_s41001/DIAG/C_ds100_fd100_snr0/raw.npz,0.0008261512542778008,1.0,0.11294419314755515,0.007262552116915575,0.01891677413268091,0,4.547473508864641e-13
+evaluation/E02_main_channelformer_D_base_s41001/DIAG/C_ds100_fd100_snr5/raw.npz,0.0008261512542778008,1.0,0.11041117150151727,0.010731722360758714,0.02849191088501736,0,4.547473508864641e-13
+evaluation/E02_main_channelformer_D_base_s41001/DIAG/C_ds100_fd100_snr10/raw.npz,0.0008261512542778008,1.0,0.1079740119950784,0.014246162753565307,0.03908033506722873,0,4.547473508864641e-13
+evaluation/E02_main_channelformer_D_base_s41001/DIAG/C_ds100_fd100_snr15/raw.npz,0.0008261512542778008,1.0,0.10737014693169246,0.01686454428269559,0.04777805879134111,0,4.547473508864641e-13
+evaluation/E02_main_channelformer_D_base_s41001/DIAG/C_ds100_fd100_snr20/raw.npz,0.0008261512542778008,1.0,0.1082526784265239,0.018296052919547622,0.05287892916620346,0,4.547473508864641e-13
+evaluation/E02_main_channelformer_D_base_s41001/DIAG/C_ds100_fd100_snr25/raw.npz,0.0008261512542778008,1.0,0.10928331106195681,0.018889270888210588,0.05508724229232389,0,4.547473508864641e-13
+evaluation/E02_main_channelformer_D_base_s41001/DIAG/C_ds100_fd200_snr0/raw.npz,0.0019593703772979756,1.0,0.10826152380082772,0.006001986997183478,0.015562988837802086,0,4.547473508864641e-13
+evaluation/E02_main_channelformer_D_base_s41001/DIAG/C_ds100_fd200_snr5/raw.npz,0.0019593703772979756,1.0,0.10597155947848406,0.00897730018748879,0.023703293711292334,0,4.547473508864641e-13
+evaluation/E02_main_channelformer_D_base_s41001/DIAG/C_ds100_fd200_snr10/raw.npz,0.0019593703772979756,1.0,0.10507217066458882,0.011720573145510222,0.03166752357793256,0,4.547473508864641e-13
+evaluation/E02_main_channelformer_D_base_s41001/DIAG/C_ds100_fd200_snr15/raw.npz,0.0019593703772979756,1.0,0.10619739375018056,0.013508743569558562,0.03717449417510283,0,4.547473508864641e-13
+evaluation/E02_main_channelformer_D_base_s41001/DIAG/C_ds100_fd200_snr20/raw.npz,0.0019593703772979756,1.0,0.10802787811597936,0.014277263884496953,0.039691946018732584,0,4.547473508864641e-13
+evaluation/E02_main_channelformer_D_base_s41001/DIAG/C_ds100_fd200_snr25/raw.npz,0.0019593703772979756,1.0,0.10936252639767415,0.014500059601357515,0.0405377710377492,0,4.547473508864641e-13
+evaluation/E02_main_channelformer_D_base_s41001/DIAG/C_ds100_fd500_snr0/raw.npz,0.04389855639818994,1.0,0.07811103424563356,0.00479804249876222,0.012251388997832798,0,9.094947017729282e-13
+evaluation/E02_main_channelformer_D_base_s41001/DIAG/C_ds100_fd500_snr5/raw.npz,0.04389855639818994,1.0,0.07707369942167665,0.0068533214350539,0.019155538725290047,0,2.2737367544323206e-13
+evaluation/E02_main_channelformer_D_base_s41001/DIAG/C_ds100_fd500_snr10/raw.npz,0.04389855639818994,1.0,0.07665566284291878,0.008507627587628033,0.025219217804427874,0,4.547473508864641e-13
+evaluation/E02_main_channelformer_D_base_s41001/DIAG/C_ds100_fd500_snr15/raw.npz,0.04389855639818994,1.0,0.07748644983162345,0.009381969369640959,0.029038069398683742,0,9.094947017729282e-13
+evaluation/E02_main_channelformer_D_base_s41001/DIAG/C_ds100_fd500_snr20/raw.npz,0.04389855639818994,1.0,0.07878732261171864,0.009727498871517663,0.031030444168410068,0,4.547473508864641e-13
+evaluation/E02_main_channelformer_D_base_s41001/DIAG/C_ds100_fd500_snr25/raw.npz,0.04389855639818994,1.0,0.07966766718072121,0.0098102633128346,0.03188292490676243,0,9.094947017729282e-13
+evaluation/E02_main_channelformer_D_base_s41001/DIAG/A_ds100_fd10_snr0/raw.npz,0.0003311967844247724,1.0,0.11219183097454612,0.0025764339956412495,0.006838969325383556,0,2.2737367544323206e-13
+evaluation/E02_main_channelformer_D_base_s41001/DIAG/A_ds100_fd10_snr5/raw.npz,0.0003311967844247724,1.0,0.1108519053606993,0.004906277305631165,0.014965507470401027,0,9.094947017729282e-13
+evaluation/E02_main_channelformer_D_base_s41001/DIAG/A_ds100_fd10_snr10/raw.npz,0.0003311967844247724,1.0,0.10888335675288686,0.007741461971389639,0.02565656340377785,0,9.094947017729282e-13
+evaluation/E02_main_channelformer_D_base_s41001/DIAG/A_ds100_fd10_snr15/raw.npz,0.0003311967844247724,1.0,0.10739285205196246,0.010153995580332835,0.03598224977522921,0,9.094947017729282e-13
+evaluation/E02_main_channelformer_D_base_s41001/DIAG/A_ds100_fd10_snr20/raw.npz,0.0003311967844247724,1.0,0.10722413553843246,0.011587454014403161,0.042999080669045536,0,2.2737367544323206e-13
+evaluation/E02_main_channelformer_D_base_s41001/DIAG/A_ds100_fd10_snr25/raw.npz,0.0003311967844247724,1.0,0.10772478501127669,0.012215277402376348,0.04650889411370765,0,9.094947017729282e-13
+evaluation/E02_main_channelformer_D_base_s41001/DIAG/C_ds300_fd10_snr0/raw.npz,0.04625639653331669,1.0,0.12861839897770855,0.005123018394952101,0.015395167410441125,0,4.547473508864641e-13
+evaluation/E02_main_channelformer_D_base_s41001/DIAG/C_ds300_fd10_snr5/raw.npz,0.04625639653331669,1.0,0.1283760005033212,0.007593682369517914,0.021638230362726957,0,4.547473508864641e-13
+evaluation/E02_main_channelformer_D_base_s41001/DIAG/C_ds300_fd10_snr10/raw.npz,0.04625639653331669,1.0,0.13044930364183083,0.00990722625011286,0.02765825198846543,0,4.547473508864641e-13
+evaluation/E02_main_channelformer_D_base_s41001/DIAG/C_ds300_fd10_snr15/raw.npz,0.04625639653331669,1.0,0.13417056231677427,0.011555190412881456,0.031723971015047425,0,2.2737367544323206e-13
+evaluation/E02_main_channelformer_D_base_s41001/DIAG/C_ds300_fd10_snr20/raw.npz,0.04625639653331669,1.0,0.1376034656076747,0.012465356667812585,0.03373236162377749,0,4.547473508864641e-13
+evaluation/E02_main_channelformer_D_base_s41001/DIAG/C_ds300_fd10_snr25/raw.npz,0.04625639653331669,1.0,0.13956000110950076,0.01289333329105272,0.03455861401176485,0,4.547473508864641e-13
+evaluation/E02_main_channelformer_D_base_s41001/DIAG/A_ds300_fd100_snr0/raw.npz,0.012769628872475538,1.0,0.05837774385857922,0.006153256751623871,0.023764241081284058,0,9.094947017729282e-13
+evaluation/E02_main_channelformer_D_base_s41001/DIAG/A_ds300_fd100_snr5/raw.npz,0.012769628872475538,1.0,0.05938327777458414,0.008329996102880089,0.032004497111433446,0,9.094947017729282e-13
+evaluation/E02_main_channelformer_D_base_s41001/DIAG/A_ds300_fd100_snr10/raw.npz,0.012769628872475538,1.0,0.06151827147062051,0.009851914222498462,0.037542451400020806,0,9.094947017729282e-13
+evaluation/E02_main_channelformer_D_base_s41001/DIAG/A_ds300_fd100_snr15/raw.npz,0.012769628872475538,1.0,0.06361987405872077,0.010589337111080897,0.04000403254870725,0,9.094947017729282e-13
+evaluation/E02_main_channelformer_D_base_s41001/DIAG/A_ds300_fd100_snr20/raw.npz,0.012769628872475538,1.0,0.06492996149329996,0.010834332905995675,0.04067000576253096,0,4.547473508864641e-13
+evaluation/E02_main_channelformer_D_base_s41001/DIAG/A_ds300_fd100_snr25/raw.npz,0.012769628872475538,1.0,0.06554518316799031,0.010887411052671903,0.04072886084883807,0,9.094947017729282e-13
+evaluation/E02_main_fortitran_D_base_s41001/DIAG/C_ds100_fd10_snr0/raw.npz,0.0006875906529715881,1.0,0.012972311691584863,-0.00688774824557479,-0.15833231346882434,0,4.547473508864641e-13
+evaluation/E02_main_fortitran_D_base_s41001/DIAG/C_ds100_fd10_snr5/raw.npz,0.0006875906529715881,1.0,0.013008037637815962,-0.006896403921022263,-0.15832182982561302,0,4.547473508864641e-13
+evaluation/E02_main_fortitran_D_base_s41001/DIAG/C_ds100_fd10_snr10/raw.npz,0.0006875906529715881,1.0,0.013020645932088489,-0.006899279700337151,-0.15831958496306806,0,4.547473508864641e-13
+evaluation/E02_main_fortitran_D_base_s41001/DIAG/C_ds100_fd10_snr15/raw.npz,0.0006875906529715881,1.0,0.013024878938265408,-0.0068999810232536225,-0.158320366547855,0,9.094947017729282e-13
+evaluation/E02_main_fortitran_D_base_s41001/DIAG/C_ds100_fd10_snr20/raw.npz,0.0006875906529715881,1.0,0.013026356346503511,-0.006900160160565807,-0.1583204834288252,0,4.547473508864641e-13
+evaluation/E02_main_fortitran_D_base_s41001/DIAG/C_ds100_fd10_snr25/raw.npz,0.0006875906529715881,1.0,0.01302688190031909,-0.006900144614701821,-0.15832063301521673,0,6.821210263296962e-13
+evaluation/E02_main_fortitran_D_base_s41001/DIAG/C_ds100_fd100_snr0/raw.npz,0.0008261512542778008,1.0,0.013988907702372533,0.007394134209924963,-0.06624840761328257,0,4.547473508864641e-13
+evaluation/E02_main_fortitran_D_base_s41001/DIAG/C_ds100_fd100_snr5/raw.npz,0.0008261512542778008,1.0,0.014027655263688122,0.00739858111166015,-0.06627263992138056,0,2.2737367544323206e-13
+evaluation/E02_main_fortitran_D_base_s41001/DIAG/C_ds100_fd100_snr10/raw.npz,0.0008261512542778008,1.0,0.014041367425134664,0.0073994105214299395,-0.06628136728583324,0,4.547473508864641e-13
+evaluation/E02_main_fortitran_D_base_s41001/DIAG/C_ds100_fd100_snr15/raw.npz,0.0008261512542778008,1.0,0.014045827670908492,0.007399592093358125,-0.066285544566246,0,2.2737367544323206e-13
+evaluation/E02_main_fortitran_D_base_s41001/DIAG/C_ds100_fd100_snr20/raw.npz,0.0008261512542778008,1.0,0.014047297154099287,0.007399714515719131,-0.06628566715884117,0,4.547473508864641e-13
+evaluation/E02_main_fortitran_D_base_s41001/DIAG/C_ds100_fd100_snr25/raw.npz,0.0008261512542778008,1.0,0.014047817812670704,0.007399848531033137,-0.0662855254414461,0,2.2737367544323206e-13
+evaluation/E02_main_fortitran_D_base_s41001/DIAG/C_ds100_fd200_snr0/raw.npz,0.0019593703772979756,1.0,0.013510848308088226,0.021528224924569874,0.05711942465350365,0,4.547473508864641e-13
+evaluation/E02_main_fortitran_D_base_s41001/DIAG/C_ds100_fd200_snr5/raw.npz,0.0019593703772979756,1.0,0.013547436367300006,0.02154753675011854,0.0570702819003214,0,4.547473508864641e-13
+evaluation/E02_main_fortitran_D_base_s41001/DIAG/C_ds100_fd200_snr10/raw.npz,0.0019593703772979756,1.0,0.01356026517940596,0.02155328067194022,0.05705623743192675,0,2.2737367544323206e-13
+evaluation/E02_main_fortitran_D_base_s41001/DIAG/C_ds100_fd200_snr15/raw.npz,0.0019593703772979756,1.0,0.013564535020438794,0.02155517609813236,0.057053075240615786,0,4.547473508864641e-13
+evaluation/E02_main_fortitran_D_base_s41001/DIAG/C_ds100_fd200_snr20/raw.npz,0.0019593703772979756,1.0,0.013565949299562396,0.021555593538550986,0.05705130744522527,0,4.547473508864641e-13
+evaluation/E02_main_fortitran_D_base_s41001/DIAG/C_ds100_fd200_snr25/raw.npz,0.0019593703772979756,1.0,0.013566435109240617,0.02155577763796137,0.057050493100892656,0,4.547473508864641e-13
+evaluation/E02_main_fortitran_D_base_s41001/DIAG/C_ds100_fd500_snr0/raw.npz,0.04389855639818994,1.0,0.009679817893973122,0.030069232480878113,0.25479940910259385,0,9.094947017729282e-13
+evaluation/E02_main_fortitran_D_base_s41001/DIAG/C_ds100_fd500_snr5/raw.npz,0.04389855639818994,1.0,0.0097053851869289,0.03010352825722597,0.25485519430983916,0,9.094947017729282e-13
+evaluation/E02_main_fortitran_D_base_s41001/DIAG/C_ds100_fd500_snr10/raw.npz,0.04389855639818994,1.0,0.009714488649139952,0.030115499587995614,0.25488592807843696,0,4.547473508864641e-13
+evaluation/E02_main_fortitran_D_base_s41001/DIAG/C_ds100_fd500_snr15/raw.npz,0.04389855639818994,1.0,0.00971755219571728,0.030119592060584816,0.25490044444558424,0,4.547473508864641e-13
+evaluation/E02_main_fortitran_D_base_s41001/DIAG/C_ds100_fd500_snr20/raw.npz,0.04389855639818994,1.0,0.009718571260673704,0.03012115677659918,0.2549077805855653,0,9.094947017729282e-13
+evaluation/E02_main_fortitran_D_base_s41001/DIAG/C_ds100_fd500_snr25/raw.npz,0.04389855639818994,1.0,0.009718938715726539,0.03012189728178794,0.25491206405190375,0,4.547473508864641e-13
+evaluation/E02_main_fortitran_D_base_s41001/DIAG/A_ds100_fd10_snr0/raw.npz,0.0003311967844247724,1.0,0.013816942278522603,0.015623314181337309,0.12106787755202524,0,4.547473508864641e-13
+evaluation/E02_main_fortitran_D_base_s41001/DIAG/A_ds100_fd10_snr5/raw.npz,0.0003311967844247724,1.0,0.013853162504226949,0.01563720441352074,0.12106744695003036,0,9.094947017729282e-13
+evaluation/E02_main_fortitran_D_base_s41001/DIAG/A_ds100_fd10_snr10/raw.npz,0.0003311967844247724,1.0,0.013866290226695636,0.01564334198469234,0.12107312529364507,0,9.094947017729282e-13
+evaluation/E02_main_fortitran_D_base_s41001/DIAG/A_ds100_fd10_snr15/raw.npz,0.0003311967844247724,1.0,0.013871020250558377,0.015646189321950013,0.12107727452840804,0,2.2737367544323206e-13
+evaluation/E02_main_fortitran_D_base_s41001/DIAG/A_ds100_fd10_snr20/raw.npz,0.0003311967844247724,1.0,0.013872715433500228,0.01564746910471549,0.12107973146839039,0,4.547473508864641e-13
+evaluation/E02_main_fortitran_D_base_s41001/DIAG/A_ds100_fd10_snr25/raw.npz,0.0003311967844247724,1.0,0.013873324803510712,0.015648076166271004,0.12108145450438763,0,9.094947017729282e-13
+evaluation/E02_main_fortitran_D_base_s41001/DIAG/C_ds300_fd10_snr0/raw.npz,0.04625639653331669,1.0,0.01597588467513107,0.008209443511738568,-0.014116266356099269,0,4.547473508864641e-13
+evaluation/E02_main_fortitran_D_base_s41001/DIAG/C_ds300_fd10_snr5/raw.npz,0.04625639653331669,1.0,0.016020514784914165,0.008209314125631114,-0.014134385816949688,0,4.547473508864641e-13
+evaluation/E02_main_fortitran_D_base_s41001/DIAG/C_ds300_fd10_snr10/raw.npz,0.04625639653331669,1.0,0.016036908577109363,0.008210836879646783,-0.01413161015045084,0,4.547473508864641e-13
+evaluation/E02_main_fortitran_D_base_s41001/DIAG/C_ds300_fd10_snr15/raw.npz,0.04625639653331669,1.0,0.016042611585071476,0.008212724189035587,-0.01412540438569726,0,1.1368683772161603e-13
+evaluation/E02_main_fortitran_D_base_s41001/DIAG/C_ds300_fd10_snr20/raw.npz,0.04625639653331669,1.0,0.016044568281268615,0.008214013130011773,-0.014120097127200087,0,4.547473508864641e-13
+evaluation/E02_main_fortitran_D_base_s41001/DIAG/C_ds300_fd10_snr25/raw.npz,0.04625639653331669,1.0,0.01604527597625028,0.00821476678159274,-0.014117410386193902,0,4.547473508864641e-13
+evaluation/E02_main_fortitran_D_base_s41001/DIAG/A_ds300_fd100_snr0/raw.npz,0.012769628872475538,1.0,0.007296755280539932,0.0149769259742822,0.24291185907912438,0,9.094947017729282e-13
+evaluation/E02_main_fortitran_D_base_s41001/DIAG/A_ds300_fd100_snr5/raw.npz,0.012769628872475538,1.0,0.0073141609099713805,0.014996741621616079,0.2429271586939704,0,9.094947017729282e-13
+evaluation/E02_main_fortitran_D_base_s41001/DIAG/A_ds300_fd100_snr10/raw.npz,0.012769628872475538,1.0,0.007320109602965021,0.015005797204282455,0.24294970058705134,0,1.8189894035458565e-12
+evaluation/E02_main_fortitran_D_base_s41001/DIAG/A_ds300_fd100_snr15/raw.npz,0.012769628872475538,1.0,0.007322114961911083,0.015009869576918697,0.24296788225773666,0,9.094947017729282e-13
+evaluation/E02_main_fortitran_D_base_s41001/DIAG/A_ds300_fd100_snr20/raw.npz,0.012769628872475538,1.0,0.0073227934028442234,0.015011575440356544,0.2429773543320561,0,4.547473508864641e-13
+evaluation/E02_main_fortitran_D_base_s41001/DIAG/A_ds300_fd100_snr25/raw.npz,0.012769628872475538,1.0,0.007323043693757583,0.01501235543631051,0.24298267119885422,0,9.094947017729282e-13
+evaluation/E02_main_helena_D_base_s41001/DIAG/C_ds100_fd10_snr0/raw.npz,0.0006875906529715881,1.0,0.22248539364295186,0.0753608057636227,0.14647928200840735,0,2.2737367544323206e-13
+evaluation/E02_main_helena_D_base_s41001/DIAG/C_ds100_fd10_snr5/raw.npz,0.0006875906529715881,1.0,0.16288884018350988,0.07749169653381804,0.17680302555667113,0,4.547473508864641e-13
+evaluation/E02_main_helena_D_base_s41001/DIAG/C_ds100_fd10_snr10/raw.npz,0.0006875906529715881,1.0,0.13877825056416138,0.07780971006902401,0.19524573578124724,0,4.547473508864641e-13
+evaluation/E02_main_helena_D_base_s41001/DIAG/C_ds100_fd10_snr15/raw.npz,0.0006875906529715881,1.0,0.13000949219399077,0.07744538238755955,0.20328374646331615,0,4.547473508864641e-13
+evaluation/E02_main_helena_D_base_s41001/DIAG/C_ds100_fd10_snr20/raw.npz,0.0006875906529715881,1.0,0.12711722048687504,0.07712527879466129,0.20577131086126463,0,4.547473508864641e-13
+evaluation/E02_main_helena_D_base_s41001/DIAG/C_ds100_fd10_snr25/raw.npz,0.0006875906529715881,1.0,0.1261794655755987,0.07696489728058539,0.2064174939075597,0,4.547473508864641e-13
+evaluation/E02_main_helena_D_base_s41001/DIAG/C_ds100_fd100_snr0/raw.npz,0.0008261512542778008,1.0,0.23797133226329892,0.0761536592393466,0.14028087392824076,0,4.547473508864641e-13
+evaluation/E02_main_helena_D_base_s41001/DIAG/C_ds100_fd100_snr5/raw.npz,0.0008261512542778008,1.0,0.1742343383556952,0.07891279203659018,0.17048160076103538,0,2.2737367544323206e-13
+evaluation/E02_main_helena_D_base_s41001/DIAG/C_ds100_fd100_snr10/raw.npz,0.0008261512542778008,1.0,0.1492630415889127,0.07947686109588355,0.187181025917268,0,2.2737367544323206e-13
+evaluation/E02_main_helena_D_base_s41001/DIAG/C_ds100_fd100_snr15/raw.npz,0.0008261512542778008,1.0,0.14042278077374978,0.07933919935010852,0.19465088602918498,0,4.547473508864641e-13
+evaluation/E02_main_helena_D_base_s41001/DIAG/C_ds100_fd100_snr20/raw.npz,0.0008261512542778008,1.0,0.1375121976403691,0.07920940230665435,0.19762196536443524,0,4.547473508864641e-13
+evaluation/E02_main_helena_D_base_s41001/DIAG/C_ds100_fd100_snr25/raw.npz,0.0008261512542778008,1.0,0.13660180724488685,0.07908322491544449,0.19836743155058448,0,4.547473508864641e-13
+evaluation/E02_main_helena_D_base_s41001/DIAG/C_ds100_fd200_snr0/raw.npz,0.0019593703772979756,1.0,0.23484343492323914,0.07555571339712323,0.13695449259125747,0,4.547473508864641e-13
+evaluation/E02_main_helena_D_base_s41001/DIAG/C_ds100_fd200_snr5/raw.npz,0.0019593703772979756,1.0,0.17429685730020655,0.07812143730299732,0.16570329479307386,0,4.547473508864641e-13
+evaluation/E02_main_helena_D_base_s41001/DIAG/C_ds100_fd200_snr10/raw.npz,0.0019593703772979756,1.0,0.1508835643805495,0.07878462153696632,0.18129241099452073,0,4.547473508864641e-13
+evaluation/E02_main_helena_D_base_s41001/DIAG/C_ds100_fd200_snr15/raw.npz,0.0019593703772979756,1.0,0.14272465435895978,0.07890374337882969,0.18850676103412542,0,4.547473508864641e-13
+evaluation/E02_main_helena_D_base_s41001/DIAG/C_ds100_fd200_snr20/raw.npz,0.0019593703772979756,1.0,0.14015535503029797,0.07889308800342337,0.19158211718307316,0,4.547473508864641e-13
+evaluation/E02_main_helena_D_base_s41001/DIAG/C_ds100_fd200_snr25/raw.npz,0.0019593703772979756,1.0,0.13934424669122758,0.07886612619520467,0.19259273611297748,0,4.547473508864641e-13
+evaluation/E02_main_helena_D_base_s41001/DIAG/C_ds100_fd500_snr0/raw.npz,0.04389855639818994,1.0,0.18902728138310337,0.07147236421698648,0.14610987769362058,0,9.094947017729282e-13
+evaluation/E02_main_helena_D_base_s41001/DIAG/C_ds100_fd500_snr5/raw.npz,0.04389855639818994,1.0,0.14757713516517118,0.07384831173735147,0.1736490077454659,0,4.547473508864641e-13
+evaluation/E02_main_helena_D_base_s41001/DIAG/C_ds100_fd500_snr10/raw.npz,0.04389855639818994,1.0,0.13208027373792222,0.07477357373848371,0.18862507008233972,0,9.094947017729282e-13
+evaluation/E02_main_helena_D_base_s41001/DIAG/C_ds100_fd500_snr15/raw.npz,0.04389855639818994,1.0,0.12656346590669507,0.07513036349561501,0.19601414642060222,0,9.094947017729282e-13
+evaluation/E02_main_helena_D_base_s41001/DIAG/C_ds100_fd500_snr20/raw.npz,0.04389855639818994,1.0,0.12475964435343743,0.07528781231991073,0.1988750564836891,0,9.094947017729282e-13
+evaluation/E02_main_helena_D_base_s41001/DIAG/C_ds100_fd500_snr25/raw.npz,0.04389855639818994,1.0,0.12421120145786713,0.07536666994691164,0.20000980404333168,0,9.094947017729282e-13
+evaluation/E02_main_helena_D_base_s41001/DIAG/A_ds100_fd10_snr0/raw.npz,0.0003311967844247724,1.0,0.22713670153606555,0.07460166381907461,0.12853628295631728,0,4.547473508864641e-13
+evaluation/E02_main_helena_D_base_s41001/DIAG/A_ds100_fd10_snr5/raw.npz,0.0003311967844247724,1.0,0.16241874488639502,0.0757963352555332,0.161279506086497,0,9.094947017729282e-13
+evaluation/E02_main_helena_D_base_s41001/DIAG/A_ds100_fd10_snr10/raw.npz,0.0003311967844247724,1.0,0.13590282489050043,0.07620777064475732,0.18470942443197738,0,9.094947017729282e-13
+evaluation/E02_main_helena_D_base_s41001/DIAG/A_ds100_fd10_snr15/raw.npz,0.0003311967844247724,1.0,0.1264254877556157,0.07615205269310293,0.1960261756884869,0,2.2737367544323206e-13
+evaluation/E02_main_helena_D_base_s41001/DIAG/A_ds100_fd10_snr20/raw.npz,0.0003311967844247724,1.0,0.12346208708878534,0.07600587788485552,0.19967223808272982,0,4.547473508864641e-13
+evaluation/E02_main_helena_D_base_s41001/DIAG/A_ds100_fd10_snr25/raw.npz,0.0003311967844247724,1.0,0.1225681400550103,0.07591026636830121,0.20061310180438632,0,2.2737367544323206e-13
+evaluation/E02_main_helena_D_base_s41001/DIAG/C_ds300_fd10_snr0/raw.npz,0.04625639653331669,1.0,0.2678814092029808,0.07021612140221933,0.11739503575351057,0,4.547473508864641e-13
+evaluation/E02_main_helena_D_base_s41001/DIAG/C_ds300_fd10_snr5/raw.npz,0.04625639653331669,1.0,0.19246473766102162,0.07231556519875461,0.14594668098636848,0,4.547473508864641e-13
+evaluation/E02_main_helena_D_base_s41001/DIAG/C_ds300_fd10_snr10/raw.npz,0.04625639653331669,1.0,0.16153546174853592,0.07298209953358192,0.16445769418813852,0,6.821210263296962e-13
+evaluation/E02_main_helena_D_base_s41001/DIAG/C_ds300_fd10_snr15/raw.npz,0.04625639653331669,1.0,0.1499526916408781,0.07312475989098785,0.1733850513588453,0,4.547473508864641e-13
+evaluation/E02_main_helena_D_base_s41001/DIAG/C_ds300_fd10_snr20/raw.npz,0.04625639653331669,1.0,0.14593511355563682,0.07323623430672939,0.17746802168532697,0,4.547473508864641e-13
+evaluation/E02_main_helena_D_base_s41001/DIAG/C_ds300_fd10_snr25/raw.npz,0.04625639653331669,1.0,0.14446697841093878,0.07333252602841149,0.17932619386168488,0,4.547473508864641e-13
+evaluation/E02_main_helena_D_base_s41001/DIAG/A_ds300_fd100_snr0/raw.npz,0.012769628872475538,1.0,0.15063210030655313,0.06796786202254378,0.16655817663309216,0,9.094947017729282e-13
+evaluation/E02_main_helena_D_base_s41001/DIAG/A_ds300_fd100_snr5/raw.npz,0.012769628872475538,1.0,0.12154863330781035,0.0694249970889357,0.18974044861986272,0,9.094947017729282e-13
+evaluation/E02_main_helena_D_base_s41001/DIAG/A_ds300_fd100_snr10/raw.npz,0.012769628872475538,1.0,0.1112432268667337,0.07004592833678329,0.2009836271077786,0,9.094947017729282e-13
+evaluation/E02_main_helena_D_base_s41001/DIAG/A_ds300_fd100_snr15/raw.npz,0.012769628872475538,1.0,0.10771358398351612,0.0701715408570375,0.20512687908043928,0,4.547473508864641e-13
+evaluation/E02_main_helena_D_base_s41001/DIAG/A_ds300_fd100_snr20/raw.npz,0.012769628872475538,1.0,0.10648298042707635,0.07010894879764429,0.20617194734798008,0,9.094947017729282e-13
+evaluation/E02_main_helena_D_base_s41001/DIAG/A_ds300_fd100_snr25/raw.npz,0.012769628872475538,1.0,0.10606743469740414,0.07005054013054549,0.2063256441478177,0,9.094947017729282e-13
diff --git a/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/reports/nmse_plot_data.csv b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/reports/nmse_plot_data.csv
new file mode 100644
index 0000000000000000000000000000000000000000..23abf49795c0d40f014c80d6e6f300a9d14bcdb3
--- /dev/null
+++ b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/reports/nmse_plot_data.csv
@@ -0,0 +1,121 @@
+fd,arch,arm,snr,nmse_db_pooled_seeds,seeds
+10,channelformer,D,0,0.36815548274716553,1
+10,channelformer,D,5,0.32989222687613057,1
+10,channelformer,D,10,0.28845277278200737,1
+10,channelformer,D,15,0.2585070489020308,1
+10,channelformer,D,20,0.24443378836171623,1
+10,channelformer,D,25,0.24003760177851574,1
+10,compact,A-raw,0,-12.990063962240137,1
+10,compact,A-raw,5,-15.827441306052066,1
+10,compact,A-raw,10,-17.747197076104243,1
+10,compact,A-raw,15,-18.92287752865171,1
+10,compact,A-raw,20,-19.600148287743234,1
+10,compact,A-raw,25,-19.90517263191476,1
+10,compact,A-res,0,-12.989655616319968,1
+10,compact,A-res,5,-15.82838547765623,1
+10,compact,A-res,10,-17.75144592979876,1
+10,compact,A-res,15,-18.930383806184366,1
+10,compact,A-res,20,-19.61086415425606,1
+10,compact,A-res,25,-19.918589311873568,1
+10,compact,D,0,-0.008153311719998668,1
+10,compact,D,5,-0.008004671617034324,1
+10,compact,D,10,-0.007781674848016629,1
+10,compact,D,15,-0.007570094282510709,1
+10,compact,D,20,-0.00737390064301361,1
+10,compact,D,25,-0.007202869430572834,1
+10,fortitran,D,0,0.11463784430331075,1
+10,fortitran,D,5,0.1148621760272364,1
+10,fortitran,D,10,0.11493982995159349,1
+10,fortitran,D,15,0.1149636659476537,1
+10,fortitran,D,20,0.11497142994199065,1
+10,fortitran,D,25,0.11497352125992565,1
+10,helena,D,0,0.3009907693500561,1
+10,helena,D,5,0.034197923060471015,1
+10,helena,D,10,-0.07376315732984302,1
+10,helena,D,15,-0.10942502738709756,1
+10,helena,D,20,-0.1194667826806246,1
+10,helena,D,25,-0.12222195135136475,1
+10,reesnet,D,0,-0.03852077489592013,1
+10,reesnet,D,5,-0.04158873104073753,1
+10,reesnet,D,10,-0.04219989168848679,1
+10,reesnet,D,15,-0.04217377156454854,1
+10,reesnet,D,20,-0.042054163119791536,1
+10,reesnet,D,25,-0.0419477577460587,1
+10,ls,classical,0,-1.2529196110143603,1
+10,ls,classical,5,-6.252418580973669,1
+10,ls,classical,10,-11.251271162485637,1
+10,ls,classical,15,-16.248420621950473,1
+10,ls,classical,20,-21.24079623907841,1
+10,ls,classical,25,-26.21921056423083,1
+10,bem,classical,0,-13.95758785899014,1
+10,bem,classical,5,-17.865194130085943,1
+10,bem,classical,10,-21.40561633593981,1
+10,bem,classical,15,-24.641427810924622,1
+10,bem,classical,20,-27.681714275599234,1
+10,bem,classical,25,-29.869569358995612,1
+10,lmmse,classical,0,-14.035145058605528,1
+10,lmmse,classical,5,-18.27808332224061,1
+10,lmmse,classical,10,-22.66240823508406,1
+10,lmmse,classical,15,-26.858111037995585,1
+10,lmmse,classical,20,-31.088823172543833,1
+10,lmmse,classical,25,-35.394635933546304,1
+100,channelformer,D,0,0.40768071695795915,1
+100,channelformer,D,5,0.3700703263375949,1
+100,channelformer,D,10,0.33215278884521227,1
+100,channelformer,D,15,0.30859111506884224,1
+100,channelformer,D,20,0.30057252899044484,1
+100,channelformer,D,25,0.29994108434106215,1
+100,compact,A-raw,0,-10.971557735089286,1
+100,compact,A-raw,5,-13.44341522277514,1
+100,compact,A-raw,10,-16.006808883257957,1
+100,compact,A-raw,15,-18.119615256167762,1
+100,compact,A-raw,20,-19.158061044833918,1
+100,compact,A-raw,25,-19.523477160616324,1
+100,compact,A-res,0,-10.969297621657056,1
+100,compact,A-res,5,-13.442124463697255,1
+100,compact,A-res,10,-16.008597191241677,1
+100,compact,A-res,15,-18.125731423156637,1
+100,compact,A-res,20,-19.168325916082345,1
+100,compact,A-res,25,-19.536827972220262,1
+100,compact,D,0,0.08028985330277633,1
+100,compact,D,5,0.08038436405366106,1
+100,compact,D,10,0.08064530150455364,1
+100,compact,D,15,0.08091296113987471,1
+100,compact,D,20,0.0811702812829774,1
+100,compact,D,25,0.0814180649650907,1
+100,fortitran,D,0,-0.003472967748505834,1
+100,fortitran,D,5,-0.003343212741314643,1
+100,fortitran,D,10,-0.003290825746088191,1
+100,fortitran,D,15,-0.0032730188070914873,1
+100,fortitran,D,20,-0.0032676962632845045,1
+100,fortitran,D,25,-0.0032665982883826237,1
+100,helena,D,0,0.3569544262312183,1
+100,helena,D,5,0.07068396953121418,1
+100,helena,D,10,-0.042291339625364285,1
+100,helena,D,15,-0.08001575253821505,1
+100,helena,D,20,-0.09175880064296295,1
+100,helena,D,25,-0.09467861723670623,1
+100,reesnet,D,0,-0.1414312561179125,1
+100,reesnet,D,5,-0.14544466934831757,1
+100,reesnet,D,10,-0.14637445786628867,1
+100,reesnet,D,15,-0.14646969014407768,1
+100,reesnet,D,20,-0.14639311095444096,1
+100,reesnet,D,25,-0.14631210142358086,1
+100,ls,classical,0,-0.9168521847117007,1
+100,ls,classical,5,-5.898547725634167,1
+100,ls,classical,10,-10.843567979388304,1
+100,ls,classical,15,-15.678260560186759,1
+100,ls,classical,20,-20.19997930376742,1
+100,ls,classical,25,-23.970998557951173,1
+100,bem,classical,0,-11.602894078833902,1
+100,bem,classical,5,-14.585609074044593,1
+100,bem,classical,10,-18.290482916882723,1
+100,bem,classical,15,-22.746879519408214,1
+100,bem,classical,20,-26.70352159380208,1
+100,bem,classical,25,-29.139714298830484,1
+100,lmmse,classical,0,-11.356353090300495,1
+100,lmmse,classical,5,-13.509926192461778,1
+100,lmmse,classical,10,-15.207607841577968,1
+100,lmmse,classical,15,-17.28835550697665,1
+100,lmmse,classical,20,-20.76168301686913,1
+100,lmmse,classical,25,-25.17856677231952,1
diff --git a/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/reports/paired_anchor_gain.csv b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/reports/paired_anchor_gain.csv
new file mode 100644
index 0000000000000000000000000000000000000000..490b2b88d270864af926a3cb4135c68d6f9cfef7
--- /dev/null
+++ b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/reports/paired_anchor_gain.csv
@@ -0,0 +1,13 @@
+seed,fd,snr,gain_db
+41001,10,0,12.981502304599971
+41001,10,5,15.820380806039198
+41001,10,10,17.74366425495074
+41001,10,15,18.92281371190186
+41001,10,20,19.603490253613046
+41001,10,25,19.911386442442996
+41001,100,0,11.049587474959832
+41001,100,5,13.522508827750915
+41001,100,10,16.08924249274623
+41001,100,15,18.20664438429651
+41001,100,20,19.249496197365325
+41001,100,25,19.61824603718535
diff --git a/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/reports/primary_endpoint.json b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/reports/primary_endpoint.json
new file mode 100644
index 0000000000000000000000000000000000000000..8e9cad6b9e5a7009926efe1ecdd93ded40ec4346
--- /dev/null
+++ b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/reports/primary_endpoint.json
@@ -0,0 +1,13 @@
+{
+ "n": 1,
+ "mean": -1.6544217622045103,
+ "low": null,
+ "high": null,
+ "p": null,
+ "sd": null,
+ "dz": null,
+ "endpoint": "G(fd100)-G(fd10) at 10dB",
+ "required_seeds": 20,
+ "complete": false,
+ "confirmatory_eligible": false
+}
diff --git a/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/reports/primary_seed_contrasts.csv b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/reports/primary_seed_contrasts.csv
new file mode 100644
index 0000000000000000000000000000000000000000..09572befefc7df2e246ecca7e90e656481ad2c8f
--- /dev/null
+++ b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/reports/primary_seed_contrasts.csv
@@ -0,0 +1,2 @@
+seed,delta_db
+41001,-1.6544217622045103
diff --git a/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/reports/report_status.json b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/reports/report_status.json
new file mode 100644
index 0000000000000000000000000000000000000000..e7d8241ce0afd0fb13675c03a259b8f76b687b6e
--- /dev/null
+++ b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/reports/report_status.json
@@ -0,0 +1,7 @@
+{
+ "seed_rows": 294,
+ "primary_seeds": 1,
+ "bootstrap_replicates": 100,
+ "source": "linear-domain raw records",
+ "incomplete": true
+}
diff --git a/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/reports/secondary_family.json b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/reports/secondary_family.json
new file mode 100644
index 0000000000000000000000000000000000000000..2691cd5471c497a8f0c318cfa81224bc01adbd00
--- /dev/null
+++ b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/reports/secondary_family.json
@@ -0,0 +1,138 @@
+{
+ "complete": false,
+ "hypotheses": [
+ {
+ "hypothesis": "anchor_gain_fd10_sign",
+ "required_n": 20,
+ "n": 1,
+ "mean": 17.74366425495074,
+ "low": null,
+ "high": null,
+ "p": null,
+ "sd": null,
+ "dz": null
+ },
+ {
+ "hypothesis": "anchor_gain_fd100_sign",
+ "required_n": 20,
+ "n": 1,
+ "mean": 16.08924249274623,
+ "low": null,
+ "high": null,
+ "p": null,
+ "sd": null,
+ "dz": null
+ },
+ {
+ "hypothesis": "A-raw_delta",
+ "required_n": 20,
+ "n": 1,
+ "mean": -1.6519612164937172,
+ "low": null,
+ "high": null,
+ "p": null,
+ "sd": null,
+ "dz": null
+ },
+ {
+ "hypothesis": "scalar_vs_D",
+ "required_n": 20,
+ "n": 1,
+ "mean": 15.835750380275828,
+ "low": null,
+ "high": null,
+ "p": null,
+ "sd": null,
+ "dz": null
+ },
+ {
+ "hypothesis": "resource_vs_D",
+ "required_n": 20,
+ "n": 1,
+ "mean": 12.885711478741044,
+ "low": null,
+ "high": null,
+ "p": null,
+ "sd": null,
+ "dz": null
+ },
+ {
+ "hypothesis": "resource_vs_A-res",
+ "required_n": 20,
+ "n": 1,
+ "mean": -3.2035310140051863,
+ "low": null,
+ "high": null,
+ "p": null,
+ "sd": null,
+ "dz": null
+ },
+ {
+ "hypothesis": "A-res_vs_ls",
+ "required_n": 20,
+ "n": 1,
+ "mean": 5.165029211853373,
+ "low": null,
+ "high": null,
+ "p": null,
+ "sd": null,
+ "dz": null
+ },
+ {
+ "hypothesis": "A-res_vs_lmmse",
+ "required_n": 20,
+ "n": 1,
+ "mean": 0.8009893496637098,
+ "low": null,
+ "high": null,
+ "p": null,
+ "sd": null,
+ "dz": null
+ },
+ {
+ "hypothesis": "A-res_vs_reesnet",
+ "required_n": 10,
+ "n": 1,
+ "mean": 15.862222733375388,
+ "low": null,
+ "high": null,
+ "p": null,
+ "sd": null,
+ "dz": null
+ },
+ {
+ "hypothesis": "A-res_vs_channelformer",
+ "required_n": 10,
+ "n": 1,
+ "mean": 16.34074998008689,
+ "low": null,
+ "high": null,
+ "p": null,
+ "sd": null,
+ "dz": null
+ },
+ {
+ "hypothesis": "A-res_vs_fortitran",
+ "required_n": 10,
+ "n": 1,
+ "mean": 16.00530636549559,
+ "low": null,
+ "high": null,
+ "p": null,
+ "sd": null,
+ "dz": null
+ },
+ {
+ "hypothesis": "A-res_vs_helena",
+ "required_n": 10,
+ "n": 1,
+ "mean": 15.966305851616314,
+ "low": null,
+ "high": null,
+ "p": null,
+ "sd": null,
+ "dz": null
+ }
+ ],
+ "intervals": "pointwise 95%; Holm p-values only after full family is available"
+}
diff --git a/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/reports/spectra/A_ds100_fd10_snr10/plot_data.npz b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/reports/spectra/A_ds100_fd10_snr10/plot_data.npz
new file mode 100644
index 0000000000000000000000000000000000000000..416b02959ab1a9086daf7e0a537ba3e984b2ebca
--- /dev/null
+++ b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/reports/spectra/A_ds100_fd10_snr10/plot_data.npz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:4359aa4b07037ba694b4f81cf856aac64645a038eb82e4cc044aaa0206053f3f
+size 26143
diff --git a/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/reports/spectra/A_ds300_fd100_snr10/plot_data.npz b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/reports/spectra/A_ds300_fd100_snr10/plot_data.npz
new file mode 100644
index 0000000000000000000000000000000000000000..6bf8de71c23735e451737dc48114a91f6e521e30
--- /dev/null
+++ b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/reports/spectra/A_ds300_fd100_snr10/plot_data.npz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:b09389d693efc1574256f7cb9b0000a3f42f74a3d5112bd7d697149d35e5dfff
+size 26113
diff --git a/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/reports/spectra/C_ds100_fd100_snr10/plot_data.npz b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/reports/spectra/C_ds100_fd100_snr10/plot_data.npz
new file mode 100644
index 0000000000000000000000000000000000000000..cd4ae4b332b755bdc8f7832101a2aa0895be11af
--- /dev/null
+++ b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/reports/spectra/C_ds100_fd100_snr10/plot_data.npz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:3970def0c49d32f0276b77a199b3b663745e7e76be4ae33462055c761467bae1
+size 26140
diff --git a/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/reports/spectra/C_ds100_fd10_snr10/plot_data.npz b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/reports/spectra/C_ds100_fd10_snr10/plot_data.npz
new file mode 100644
index 0000000000000000000000000000000000000000..67bb8ddde599a3b5f25406be6bc6e7ad61f6eb2f
--- /dev/null
+++ b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/reports/spectra/C_ds100_fd10_snr10/plot_data.npz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:0bce34f45870cafcee5832d052ca9fdd77a5e33b736f4f54d2b7ae92905db189
+size 26085
diff --git a/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/reports/spectra/C_ds100_fd200_snr10/plot_data.npz b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/reports/spectra/C_ds100_fd200_snr10/plot_data.npz
new file mode 100644
index 0000000000000000000000000000000000000000..5cfddebd7b3c232446d0053f2a8bd04806497b82
--- /dev/null
+++ b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/reports/spectra/C_ds100_fd200_snr10/plot_data.npz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:24fa9439ffcea6156a6a2dab0d197ed1837a68d9680259d63921b92fff70ee37
+size 26055
diff --git a/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/reports/spectra/C_ds100_fd500_snr10/plot_data.npz b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/reports/spectra/C_ds100_fd500_snr10/plot_data.npz
new file mode 100644
index 0000000000000000000000000000000000000000..7c160af95403823e6332a4c5a6b195161eafb19f
--- /dev/null
+++ b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/reports/spectra/C_ds100_fd500_snr10/plot_data.npz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:0d527f97f54012d41043d03573c7cf8a124735593fd1256e4836d340130b0ee5
+size 26084
diff --git a/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/reports/spectra/C_ds300_fd10_snr10/plot_data.npz b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/reports/spectra/C_ds300_fd10_snr10/plot_data.npz
new file mode 100644
index 0000000000000000000000000000000000000000..2f8bf9de3936bf2e5a3548c3cd95f92b2ed03396
--- /dev/null
+++ b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/reports/spectra/C_ds300_fd10_snr10/plot_data.npz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:7d8f6dbf370de7f934d5e18eb2949728960f5c6d76797df44b26a2ad917a61c9
+size 26122
diff --git a/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/reports/supplemental_intervals.csv b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/reports/supplemental_intervals.csv
new file mode 100644
index 0000000000000000000000000000000000000000..d0f76ee7a28ad29c68d361f1e004a6b98c80f658
--- /dev/null
+++ b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/reports/supplemental_intervals.csv
@@ -0,0 +1,145 @@
+arc,recipe,method,snr,profile,ds_ns,fd,pooled_seed_sample_nmse_db,seed_db_n,seed_db_mean,seed_db_low,seed_db_high,seed_db_p,seed_db_sd,seed_db_dz
+adaptation,target,A-res_128_labels,0.0,C,100.0,100,-13.206217171409785,1,-13.206217171409785,,,,,
+adaptation,target,A-res_128_labels,5.0,C,100.0,100,-16.337659255051406,1,-16.337659255051406,,,,,
+adaptation,target,A-res_128_labels,10.0,C,100.0,100,-19.46389061238697,1,-19.46389061238697,,,,,
+adaptation,target,A-res_128_labels,15.0,C,100.0,100,-21.888182887075168,1,-21.888182887075168,,,,,
+adaptation,target,A-res_128_labels,20.0,C,100.0,100,-23.110015575345454,1,-23.110015575345454,,,,,
+adaptation,target,A-res_128_labels,25.0,C,100.0,100,-23.438007307679545,1,-23.438007307679545,,,,,
+gates,main,half,0.0,A,100.0,10,-5.544570498159217,1,-5.544570498159217,,,,,
+gates,main,half,0.0,A,300.0,100,-4.4484514468624905,1,-4.4484514468624905,,,,,
+gates,main,half,0.0,C,100.0,10,-5.697342137987071,1,-5.697342137987071,,,,,
+gates,main,half,0.0,C,100.0,100,-5.1659425844216775,1,-5.1659425844216775,,,,,
+gates,main,half,0.0,C,100.0,200,-4.241520006655115,1,-4.241520006655115,,,,,
+gates,main,half,0.0,C,100.0,500,-2.5853445943842983,1,-2.5853445943842983,,,,,
+gates,main,half,0.0,C,300.0,10,-4.232701766749651,1,-4.232701766749651,,,,,
+gates,main,half,5.0,A,100.0,10,-5.680968229913065,1,-5.680968229913065,,,,,
+gates,main,half,5.0,A,300.0,100,-4.947716804868098,1,-4.947716804868098,,,,,
+gates,main,half,5.0,C,100.0,10,-5.882516311551077,1,-5.882516311551077,,,,,
+gates,main,half,5.0,C,100.0,100,-5.420897217627133,1,-5.420897217627133,,,,,
+gates,main,half,5.0,C,100.0,200,-4.616908780499073,1,-4.616908780499073,,,,,
+gates,main,half,5.0,C,100.0,500,-3.0855320494161615,1,-3.0855320494161615,,,,,
+gates,main,half,5.0,C,300.0,10,-4.708373194465322,1,-4.708373194465322,,,,,
+gates,main,half,10.0,A,100.0,10,-5.720595223528976,1,-5.720595223528976,,,,,
+gates,main,half,10.0,A,300.0,100,-5.283389825034265,1,-5.283389825034265,,,,,
+gates,main,half,10.0,C,100.0,10,-5.948636175084015,1,-5.948636175084015,,,,,
+gates,main,half,10.0,C,100.0,100,-5.5958755605575385,1,-5.5958755605575385,,,,,
+gates,main,half,10.0,C,100.0,200,-5.02224201606873,1,-5.02224201606873,,,,,
+gates,main,half,10.0,C,100.0,500,-3.78893422945201,1,-3.78893422945201,,,,,
+gates,main,half,10.0,C,300.0,10,-4.983590280529839,1,-4.983590280529839,,,,,
+gates,main,half,15.0,A,100.0,10,-5.723424265400125,1,-5.723424265400125,,,,,
+gates,main,half,15.0,A,300.0,100,-5.466170186284012,1,-5.466170186284012,,,,,
+gates,main,half,15.0,C,100.0,10,-5.964747330549943,1,-5.964747330549943,,,,,
+gates,main,half,15.0,C,100.0,100,-5.700234240180264,1,-5.700234240180264,,,,,
+gates,main,half,15.0,C,100.0,200,-5.33115936531601,1,-5.33115936531601,,,,,
+gates,main,half,15.0,C,100.0,500,-4.392903695913068,1,-4.392903695913068,,,,,
+gates,main,half,15.0,C,300.0,10,-5.113413687819548,1,-5.113413687819548,,,,,
+gates,main,half,20.0,A,100.0,10,-5.716449638276483,1,-5.716449638276483,,,,,
+gates,main,half,20.0,A,300.0,100,-5.541053104008142,1,-5.541053104008142,,,,,
+gates,main,half,20.0,C,100.0,10,-5.964568605788986,1,-5.964568605788986,,,,,
+gates,main,half,20.0,C,100.0,100,-5.743079689315201,1,-5.743079689315201,,,,,
+gates,main,half,20.0,C,100.0,200,-5.477488135472837,1,-5.477488135472837,,,,,
+gates,main,half,20.0,C,100.0,500,-4.697477336789484,1,-4.697477336789484,,,,,
+gates,main,half,20.0,C,300.0,10,-5.160516230232411,1,-5.160516230232411,,,,,
+gates,main,half,25.0,A,100.0,10,-5.708571702567374,1,-5.708571702567374,,,,,
+gates,main,half,25.0,A,300.0,100,-5.565741933155293,1,-5.565741933155293,,,,,
+gates,main,half,25.0,C,100.0,10,-5.960308182878072,1,-5.960308182878072,,,,,
+gates,main,half,25.0,C,100.0,100,-5.75529547634374,1,-5.75529547634374,,,,,
+gates,main,half,25.0,C,100.0,200,-5.5291963207180475,1,-5.5291963207180475,,,,,
+gates,main,half,25.0,C,100.0,500,-4.810528613833086,1,-4.810528613833086,,,,,
+gates,main,half,25.0,C,300.0,10,-5.173163800701701,1,-5.173163800701701,,,,,
+gates,main,resource,0.0,A,100.0,10,-11.274197494051222,1,-11.274197494051222,,,,,
+gates,main,resource,0.0,A,300.0,100,-9.588932408227404,1,-9.588932408227404,,,,,
+gates,main,resource,0.0,C,100.0,10,-10.874665351126229,1,-10.874665351126229,,,,,
+gates,main,resource,0.0,C,100.0,100,-9.387748141680856,1,-9.387748141680856,,,,,
+gates,main,resource,0.0,C,100.0,200,-7.549249219649869,1,-7.549249219649869,,,,,
+gates,main,resource,0.0,C,100.0,500,-4.66058177713563,1,-4.66058177713563,,,,,
+gates,main,resource,0.0,C,300.0,10,-7.503511254974551,1,-7.503511254974551,,,,,
+gates,main,resource,5.0,A,100.0,10,-12.535286516366869,1,-12.535286516366869,,,,,
+gates,main,resource,5.0,A,300.0,100,-11.919136190226338,1,-11.919136190226338,,,,,
+gates,main,resource,5.0,C,100.0,10,-12.764457671850469,1,-12.764457671850469,,,,,
+gates,main,resource,5.0,C,100.0,100,-10.985791999914747,1,-10.985791999914747,,,,,
+gates,main,resource,5.0,C,100.0,200,-9.028668108630333,1,-9.028668108630333,,,,,
+gates,main,resource,5.0,C,100.0,500,-5.928809974526731,1,-5.928809974526731,,,,,
+gates,main,resource,5.0,C,300.0,10,-8.980220346599278,1,-8.980220346599278,,,,,
+gates,main,resource,10.0,A,100.0,10,-13.741447714535838,1,-13.741447714535838,,,,,
+gates,main,resource,10.0,A,300.0,100,-14.062248645557908,1,-14.062248645557908,,,,,
+gates,main,resource,10.0,C,100.0,10,-14.384649929314595,1,-14.384649929314595,,,,,
+gates,main,resource,10.0,C,100.0,100,-12.80506617723649,1,-12.80506617723649,,,,,
+gates,main,resource,10.0,C,100.0,200,-11.172008621836124,1,-11.172008621836124,,,,,
+gates,main,resource,10.0,C,100.0,500,-8.123705823219293,1,-8.123705823219293,,,,,
+gates,main,resource,10.0,C,300.0,10,-10.134027360424625,1,-10.134027360424625,,,,,
+gates,main,resource,15.0,A,100.0,10,-14.891648165233812,1,-14.891648165233812,,,,,
+gates,main,resource,15.0,A,300.0,100,-15.56827087608349,1,-15.56827087608349,,,,,
+gates,main,resource,15.0,C,100.0,10,-15.79163573005373,1,-15.79163573005373,,,,,
+gates,main,resource,15.0,C,100.0,100,-14.642269605060534,1,-14.642269605060534,,,,,
+gates,main,resource,15.0,C,100.0,200,-13.59169113163842,1,-13.59169113163842,,,,,
+gates,main,resource,15.0,C,100.0,500,-10.39303864307621,1,-10.39303864307621,,,,,
+gates,main,resource,15.0,C,300.0,10,-10.953822532187953,1,-10.953822532187953,,,,,
+gates,main,resource,20.0,A,100.0,10,-15.950350721451873,1,-15.950350721451873,,,,,
+gates,main,resource,20.0,A,300.0,100,-16.30708386312907,1,-16.30708386312907,,,,,
+gates,main,resource,20.0,C,100.0,10,-17.00457214179609,1,-17.00457214179609,,,,,
+gates,main,resource,20.0,C,100.0,100,-16.151535506460895,1,-16.151535506460895,,,,,
+gates,main,resource,20.0,C,100.0,200,-15.452684774764371,1,-15.452684774764371,,,,,
+gates,main,resource,20.0,C,100.0,500,-11.50523300364894,1,-11.50523300364894,,,,,
+gates,main,resource,20.0,C,300.0,10,-11.48959155999276,1,-11.48959155999276,,,,,
+gates,main,resource,25.0,A,100.0,10,-16.86615831028891,1,-16.86615831028891,,,,,
+gates,main,resource,25.0,A,300.0,100,-16.676703322138025,1,-16.676703322138025,,,,,
+gates,main,resource,25.0,C,100.0,10,-17.970053699631446,1,-17.970053699631446,,,,,
+gates,main,resource,25.0,C,100.0,100,-17.289083444786794,1,-17.289083444786794,,,,,
+gates,main,resource,25.0,C,100.0,200,-16.692287540830968,1,-16.692287540830968,,,,,
+gates,main,resource,25.0,C,100.0,500,-11.918160331968346,1,-11.918160331968346,,,,,
+gates,main,resource,25.0,C,300.0,10,-11.831523525487274,1,-11.831523525487274,,,,,
+gates,main,scalar,0.0,A,100.0,10,-13.596973264284104,1,-13.596973264284104,,,,,
+gates,main,scalar,0.0,A,300.0,100,-9.846460852227228,1,-9.846460852227228,,,,,
+gates,main,scalar,0.0,C,100.0,10,-13.099609533860301,1,-13.099609533860301,,,,,
+gates,main,scalar,0.0,C,100.0,100,-10.982498535251937,1,-10.982498535251937,,,,,
+gates,main,scalar,0.0,C,100.0,200,-8.18108507677916,1,-8.18108507677916,,,,,
+gates,main,scalar,0.0,C,100.0,500,-4.67689208625645,1,-4.67689208625645,,,,,
+gates,main,scalar,0.0,C,300.0,10,-8.150296489209222,1,-8.150296489209222,,,,,
+gates,main,scalar,5.0,A,100.0,10,-16.071385245041558,1,-16.071385245041558,,,,,
+gates,main,scalar,5.0,A,300.0,100,-12.408004680003037,1,-12.408004680003037,,,,,
+gates,main,scalar,5.0,C,100.0,10,-15.87957646493953,1,-15.87957646493953,,,,,
+gates,main,scalar,5.0,C,100.0,100,-13.350032089242136,1,-13.350032089242136,,,,,
+gates,main,scalar,5.0,C,100.0,200,-10.182169223862749,1,-10.182169223862749,,,,,
+gates,main,scalar,5.0,C,100.0,500,-6.237701149626597,1,-6.237701149626597,,,,,
+gates,main,scalar,5.0,C,300.0,10,-10.06413568530785,1,-10.06413568530785,,,,,
+gates,main,scalar,10.0,A,100.0,10,-17.689020494818127,1,-17.689020494818127,,,,,
+gates,main,scalar,10.0,A,300.0,100,-14.790449749207417,1,-14.790449749207417,,,,,
+gates,main,scalar,10.0,C,100.0,10,-17.719755673462167,1,-17.719755673462167,,,,,
+gates,main,scalar,10.0,C,100.0,100,-15.755105078771274,1,-15.755105078771274,,,,,
+gates,main,scalar,10.0,C,100.0,200,-13.139526056007714,1,-13.139526056007714,,,,,
+gates,main,scalar,10.0,C,100.0,500,-8.808506821753307,1,-8.808506821753307,,,,,
+gates,main,scalar,10.0,C,300.0,10,-11.304172385346739,1,-11.304172385346739,,,,,
+gates,main,scalar,15.0,A,100.0,10,-18.597414912780856,1,-18.597414912780856,,,,,
+gates,main,scalar,15.0,A,300.0,100,-16.3082440106487,1,-16.3082440106487,,,,,
+gates,main,scalar,15.0,C,100.0,10,-18.795817282173466,1,-18.795817282173466,,,,,
+gates,main,scalar,15.0,C,100.0,100,-17.69328016709103,1,-17.69328016709103,,,,,
+gates,main,scalar,15.0,C,100.0,200,-16.214492539772976,1,-16.214492539772976,,,,,
+gates,main,scalar,15.0,C,100.0,500,-11.07220848327309,1,-11.07220848327309,,,,,
+gates,main,scalar,15.0,C,300.0,10,-11.903796146256006,1,-11.903796146256006,,,,,
+gates,main,scalar,20.0,A,100.0,10,-19.059608359703365,1,-19.059608359703365,,,,,
+gates,main,scalar,20.0,A,300.0,100,-16.82375510173995,1,-16.82375510173995,,,,,
+gates,main,scalar,20.0,C,100.0,10,-19.38182788593182,1,-19.38182788593182,,,,,
+gates,main,scalar,20.0,C,100.0,100,-18.632534770181906,1,-18.632534770181906,,,,,
+gates,main,scalar,20.0,C,100.0,200,-17.760566587998426,1,-17.760566587998426,,,,,
+gates,main,scalar,20.0,C,100.0,500,-11.814341351254134,1,-11.814341351254134,,,,,
+gates,main,scalar,20.0,C,300.0,10,-12.118611487723001,1,-12.118611487723001,,,,,
+gates,main,scalar,25.0,A,100.0,10,-19.228356427997166,1,-19.228356427997166,,,,,
+gates,main,scalar,25.0,A,300.0,100,-16.942305056170962,1,-16.942305056170962,,,,,
+gates,main,scalar,25.0,C,100.0,10,-19.62961918444497,1,-19.62961918444497,,,,,
+gates,main,scalar,25.0,C,100.0,100,-18.957306299133695,1,-18.957306299133695,,,,,
+gates,main,scalar,25.0,C,100.0,200,-18.214770738641295,1,-18.214770738641295,,,,,
+gates,main,scalar,25.0,C,100.0,500,-11.927680941545525,1,-11.927680941545525,,,,,
+gates,main,scalar,25.0,C,300.0,10,-12.186672836343984,1,-12.186672836343984,,,,,
+oracle,main,target_cov_lmmse,0.0,C,100.0,100,-12.718622770679989,1,-12.718622770679989,,,,,
+oracle,main,target_cov_lmmse,5.0,C,100.0,100,-15.182637393906294,1,-15.182637393906294,,,,,
+oracle,main,target_cov_lmmse,10.0,C,100.0,100,-17.514755099534884,1,-17.514755099534884,,,,,
+oracle,main,target_cov_lmmse,15.0,C,100.0,100,-19.442446480320957,1,-19.442446480320957,,,,,
+oracle,main,target_cov_lmmse,20.0,C,100.0,100,-20.447306341638264,1,-20.447306341638264,,,,,
+oracle,main,target_cov_lmmse,25.0,C,100.0,100,-20.81570842580209,1,-20.81570842580209,,,,,
+oracle,main,target_recalibrated_bem,0.0,C,100.0,100,-12.876132513063299,1,-12.876132513063299,,,,,
+oracle,main,target_recalibrated_bem,5.0,C,100.0,100,-15.736313685649964,1,-15.736313685649964,,,,,
+oracle,main,target_recalibrated_bem,10.0,C,100.0,100,-19.202991779948107,1,-19.202991779948107,,,,,
+oracle,main,target_recalibrated_bem,15.0,C,100.0,100,-23.210550638279074,1,-23.210550638279074,,,,,
+oracle,main,target_recalibrated_bem,20.0,C,100.0,100,-26.47826266453873,1,-26.47826266453873,,,,,
+oracle,main,target_recalibrated_bem,25.0,C,100.0,100,-28.17585497296276,1,-28.17585497296276,,,,,
diff --git a/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/reports/supplemental_raw_summaries.csv b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/reports/supplemental_raw_summaries.csv
new file mode 100644
index 0000000000000000000000000000000000000000..a33eeafe54913e13ba0c7f9995c1d6a519c78641
--- /dev/null
+++ b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/reports/supplemental_raw_summaries.csv
@@ -0,0 +1,145 @@
+arc,recipe,method,seed,snr,profile,ds_ns,fd,n,error_sum,denominator_sum,nmse_db,projection_fraction,raw_file
+gates,main,scalar,41001,0.0,C,100.0,10,12,782.7167601220997,15979.58833086894,-13.099609533860301,0.0006875906529715881,gates/main/41001/evaluation/scalar/C_ds100_fd10_snr0/raw.npz
+gates,main,scalar,41001,5.0,C,100.0,10,12,412.67479123162786,15979.58833086894,-15.87957646493953,0.0006875906529715881,gates/main/41001/evaluation/scalar/C_ds100_fd10_snr5/raw.npz
+gates,main,scalar,41001,10.0,C,100.0,10,12,270.14069907248,15979.58833086894,-17.719755673462167,0.0006875906529715881,gates/main/41001/evaluation/scalar/C_ds100_fd10_snr10/raw.npz
+gates,main,scalar,41001,15.0,C,100.0,10,12,210.85497797761974,15979.58833086894,-18.795817282173466,0.0006875906529715881,gates/main/41001/evaluation/scalar/C_ds100_fd10_snr15/raw.npz
+gates,main,scalar,41001,20.0,C,100.0,10,12,184.23952197909142,15979.58833086894,-19.38182788593182,0.0006875906529715881,gates/main/41001/evaluation/scalar/C_ds100_fd10_snr20/raw.npz
+gates,main,scalar,41001,25.0,C,100.0,10,12,174.02180473643827,15979.58833086894,-19.62961918444497,0.0006875906529715881,gates/main/41001/evaluation/scalar/C_ds100_fd10_snr25/raw.npz
+gates,main,scalar,41001,0.0,C,100.0,100,12,1182.1007335300776,14821.91575030415,-10.982498535251937,0.0008261512542778008,gates/main/41001/evaluation/scalar/C_ds100_fd100_snr0/raw.npz
+gates,main,scalar,41001,5.0,C,100.0,100,12,685.332190556312,14821.91575030415,-13.350032089242136,0.0008261512542778008,gates/main/41001/evaluation/scalar/C_ds100_fd100_snr5/raw.npz
+gates,main,scalar,41001,10.0,C,100.0,100,12,393.9071214326002,14821.91575030415,-15.755105078771274,0.0008261512542778008,gates/main/41001/evaluation/scalar/C_ds100_fd100_snr10/raw.npz
+gates,main,scalar,41001,15.0,C,100.0,100,12,252.10201890366352,14821.91575030415,-17.69328016709103,0.0008261512542778008,gates/main/41001/evaluation/scalar/C_ds100_fd100_snr15/raw.npz
+gates,main,scalar,41001,20.0,C,100.0,100,12,203.0723821382696,14821.91575030415,-18.632534770181906,0.0008261512542778008,gates/main/41001/evaluation/scalar/C_ds100_fd100_snr20/raw.npz
+gates,main,scalar,41001,25.0,C,100.0,100,12,188.44026679257794,14821.91575030415,-18.957306299133695,0.0008261512542778008,gates/main/41001/evaluation/scalar/C_ds100_fd100_snr25/raw.npz
+gates,main,scalar,41001,0.0,C,100.0,200,12,2332.812427428046,15345.757390122058,-8.18108507677916,0.0019593703772979756,gates/main/41001/evaluation/scalar/C_ds100_fd200_snr0/raw.npz
+gates,main,scalar,41001,5.0,C,100.0,200,12,1471.5377425383228,15345.757390122058,-10.182169223862749,0.0019593703772979756,gates/main/41001/evaluation/scalar/C_ds100_fd200_snr5/raw.npz
+gates,main,scalar,41001,10.0,C,100.0,200,12,744.79323335091,15345.757390122058,-13.139526056007714,0.0019593703772979756,gates/main/41001/evaluation/scalar/C_ds100_fd200_snr10/raw.npz
+gates,main,scalar,41001,15.0,C,100.0,200,12,366.89270267867505,15345.757390122058,-16.214492539772976,0.0019593703772979756,gates/main/41001/evaluation/scalar/C_ds100_fd200_snr15/raw.npz
+gates,main,scalar,41001,20.0,C,100.0,200,12,256.99913944429716,15345.757390122058,-17.760566587998426,0.0019593703772979756,gates/main/41001/evaluation/scalar/C_ds100_fd200_snr20/raw.npz
+gates,main,scalar,41001,25.0,C,100.0,200,12,231.4788169257749,15345.757390122058,-18.214770738641295,0.0019593703772979756,gates/main/41001/evaluation/scalar/C_ds100_fd200_snr25/raw.npz
+gates,main,scalar,41001,0.0,C,100.0,500,12,7289.99527732111,21400.132168913726,-4.67689208625645,0.04389855639818994,gates/main/41001/evaluation/scalar/C_ds100_fd500_snr0/raw.npz
+gates,main,scalar,41001,5.0,C,100.0,500,12,5089.162760788486,21400.132168913726,-6.237701149626597,0.04389855639818994,gates/main/41001/evaluation/scalar/C_ds100_fd500_snr5/raw.npz
+gates,main,scalar,41001,10.0,C,100.0,500,12,2815.5663972640964,21400.132168913726,-8.808506821753307,0.04389855639818994,gates/main/41001/evaluation/scalar/C_ds100_fd500_snr10/raw.npz
+gates,main,scalar,41001,15.0,C,100.0,500,12,1671.8434470230775,21400.132168913726,-11.07220848327309,0.04389855639818994,gates/main/41001/evaluation/scalar/C_ds100_fd500_snr15/raw.npz
+gates,main,scalar,41001,20.0,C,100.0,500,12,1409.2314293817801,21400.132168913726,-11.814341351254134,0.04389855639818994,gates/main/41001/evaluation/scalar/C_ds100_fd500_snr20/raw.npz
+gates,main,scalar,41001,25.0,C,100.0,500,12,1372.9298941323066,21400.132168913726,-11.927680941545525,0.04389855639818994,gates/main/41001/evaluation/scalar/C_ds100_fd500_snr25/raw.npz
+gates,main,scalar,41001,0.0,A,100.0,10,12,655.775638963489,15012.485664548787,-13.596973264284104,0.0003311967844247724,gates/main/41001/evaluation/scalar/A_ds100_fd10_snr0/raw.npz
+gates,main,scalar,41001,5.0,A,100.0,10,12,370.9488945526695,15012.485664548787,-16.071385245041558,0.0003311967844247724,gates/main/41001/evaluation/scalar/A_ds100_fd10_snr5/raw.npz
+gates,main,scalar,41001,10.0,A,100.0,10,12,255.59394206551016,15012.485664548787,-17.689020494818127,0.0003311967844247724,gates/main/41001/evaluation/scalar/A_ds100_fd10_snr10/raw.npz
+gates,main,scalar,41001,15.0,A,100.0,10,12,207.35337779114337,15012.485664548787,-18.597414912780856,0.0003311967844247724,gates/main/41001/evaluation/scalar/A_ds100_fd10_snr15/raw.npz
+gates,main,scalar,41001,20.0,A,100.0,10,12,186.4196849724654,15012.485664548787,-19.059608359703365,0.0003311967844247724,gates/main/41001/evaluation/scalar/A_ds100_fd10_snr20/raw.npz
+gates,main,scalar,41001,25.0,A,100.0,10,12,179.31514135658492,15012.485664548787,-19.228356427997166,0.0003311967844247724,gates/main/41001/evaluation/scalar/A_ds100_fd10_snr25/raw.npz
+gates,main,scalar,41001,0.0,C,300.0,10,12,1987.6631717236128,12982.921761201113,-8.150296489209222,0.04625639653331669,gates/main/41001/evaluation/scalar/C_ds300_fd10_snr0/raw.npz
+gates,main,scalar,41001,5.0,C,300.0,10,12,1279.2601497649916,12982.921761201113,-10.06413568530785,0.04625639653331669,gates/main/41001/evaluation/scalar/C_ds300_fd10_snr5/raw.npz
+gates,main,scalar,41001,10.0,C,300.0,10,12,961.5130906714317,12982.921761201113,-11.304172385346739,0.04625639653331669,gates/main/41001/evaluation/scalar/C_ds300_fd10_snr10/raw.npz
+gates,main,scalar,41001,15.0,C,300.0,10,12,837.5154459475202,12982.921761201113,-11.903796146256006,0.04625639653331669,gates/main/41001/evaluation/scalar/C_ds300_fd10_snr15/raw.npz
+gates,main,scalar,41001,20.0,C,300.0,10,12,797.097213914674,12982.921761201113,-12.118611487723001,0.04625639653331669,gates/main/41001/evaluation/scalar/C_ds300_fd10_snr20/raw.npz
+gates,main,scalar,41001,25.0,C,300.0,10,12,784.702716905201,12982.921761201113,-12.186672836343984,0.04625639653331669,gates/main/41001/evaluation/scalar/C_ds300_fd10_snr25/raw.npz
+gates,main,scalar,41001,0.0,A,300.0,100,12,2937.9943929301007,28359.40062708738,-9.846460852227228,0.012769628872475538,gates/main/41001/evaluation/scalar/A_ds300_fd100_snr0/raw.npz
+gates,main,scalar,41001,5.0,A,300.0,100,12,1628.908088510006,28359.40062708738,-12.408004680003037,0.012769628872475538,gates/main/41001/evaluation/scalar/A_ds300_fd100_snr5/raw.npz
+gates,main,scalar,41001,10.0,A,300.0,100,12,941.1353210783359,28359.40062708738,-14.790449749207417,0.012769628872475538,gates/main/41001/evaluation/scalar/A_ds300_fd100_snr10/raw.npz
+gates,main,scalar,41001,15.0,A,300.0,100,12,663.5484618329704,28359.40062708738,-16.3082440106487,0.012769628872475538,gates/main/41001/evaluation/scalar/A_ds300_fd100_snr15/raw.npz
+gates,main,scalar,41001,20.0,A,300.0,100,12,589.2797776848698,28359.40062708738,-16.82375510173995,0.012769628872475538,gates/main/41001/evaluation/scalar/A_ds300_fd100_snr20/raw.npz
+gates,main,scalar,41001,25.0,A,300.0,100,12,573.4116895644664,28359.40062708738,-16.942305056170962,0.012769628872475538,gates/main/41001/evaluation/scalar/A_ds300_fd100_snr25/raw.npz
+gates,main,resource,41001,0.0,C,100.0,10,12,1306.4688267919125,15979.58833086894,-10.874665351126229,0.0006875906529715881,gates/main/41001/evaluation/resource/C_ds100_fd10_snr0/raw.npz
+gates,main,resource,41001,5.0,C,100.0,10,12,845.5120853180395,15979.58833086894,-12.764457671850469,0.0006875906529715881,gates/main/41001/evaluation/resource/C_ds100_fd10_snr5/raw.npz
+gates,main,resource,41001,10.0,C,100.0,10,12,582.2380635220187,15979.58833086894,-14.384649929314595,0.0006875906529715881,gates/main/41001/evaluation/resource/C_ds100_fd10_snr10/raw.npz
+gates,main,resource,41001,15.0,C,100.0,10,12,421.1162630682607,15979.58833086894,-15.79163573005373,0.0006875906529715881,gates/main/41001/evaluation/resource/C_ds100_fd10_snr15/raw.npz
+gates,main,resource,41001,20.0,C,100.0,10,12,318.49921961527184,15979.58833086894,-17.00457214179609,0.0006875906529715881,gates/main/41001/evaluation/resource/C_ds100_fd10_snr20/raw.npz
+gates,main,resource,41001,25.0,C,100.0,10,12,255.0117647983909,15979.58833086894,-17.970053699631446,0.0006875906529715881,gates/main/41001/evaluation/resource/C_ds100_fd10_snr25/raw.npz
+gates,main,resource,41001,0.0,C,100.0,100,12,1706.5912955315846,14821.91575030415,-9.387748141680856,0.0008261512542778008,gates/main/41001/evaluation/resource/C_ds100_fd100_snr0/raw.npz
+gates,main,resource,41001,5.0,C,100.0,100,12,1181.2046293137826,14821.91575030415,-10.985791999914747,0.0008261512542778008,gates/main/41001/evaluation/resource/C_ds100_fd100_snr5/raw.npz
+gates,main,resource,41001,10.0,C,100.0,100,12,776.9583217338271,14821.91575030415,-12.80506617723649,0.0008261512542778008,gates/main/41001/evaluation/resource/C_ds100_fd100_snr10/raw.npz
+gates,main,resource,41001,15.0,C,100.0,100,12,508.95264984382464,14821.91575030415,-14.642269605060534,0.0008261512542778008,gates/main/41001/evaluation/resource/C_ds100_fd100_snr15/raw.npz
+gates,main,resource,41001,20.0,C,100.0,100,12,359.54296016436876,14821.91575030415,-16.151535506460895,0.0008261512542778008,gates/main/41001/evaluation/resource/C_ds100_fd100_snr20/raw.npz
+gates,main,resource,41001,25.0,C,100.0,100,12,276.6916134759853,14821.91575030415,-17.289083444786794,0.0008261512542778008,gates/main/41001/evaluation/resource/C_ds100_fd100_snr25/raw.npz
+gates,main,resource,41001,0.0,C,100.0,200,12,2698.1333246273743,15345.757390122058,-7.549249219649869,0.0019593703772979756,gates/main/41001/evaluation/resource/C_ds100_fd200_snr0/raw.npz
+gates,main,resource,41001,5.0,C,100.0,200,12,1919.20566570055,15345.757390122058,-9.028668108630333,0.0019593703772979756,gates/main/41001/evaluation/resource/C_ds100_fd200_snr5/raw.npz
+gates,main,resource,41001,10.0,C,100.0,200,12,1171.6218589694906,15345.757390122058,-11.172008621836124,0.0019593703772979756,gates/main/41001/evaluation/resource/C_ds100_fd200_snr10/raw.npz
+gates,main,resource,41001,15.0,C,100.0,200,12,671.1494130973865,15345.757390122058,-13.59169113163842,0.0019593703772979756,gates/main/41001/evaluation/resource/C_ds100_fd200_snr15/raw.npz
+gates,main,resource,41001,20.0,C,100.0,200,12,437.23996456287534,15345.757390122058,-15.452684774764371,0.0019593703772979756,gates/main/41001/evaluation/resource/C_ds100_fd200_snr20/raw.npz
+gates,main,resource,41001,25.0,C,100.0,200,12,328.6696284287458,15345.757390122058,-16.692287540830968,0.0019593703772979756,gates/main/41001/evaluation/resource/C_ds100_fd200_snr25/raw.npz
+gates,main,resource,41001,0.0,C,100.0,500,12,7317.4249672597725,21400.132168913726,-4.66058177713563,0.04389855639818994,gates/main/41001/evaluation/resource/C_ds100_fd500_snr0/raw.npz
+gates,main,resource,41001,5.0,C,100.0,500,12,5464.3116164547855,21400.132168913726,-5.928809974526731,0.04389855639818994,gates/main/41001/evaluation/resource/C_ds100_fd500_snr5/raw.npz
+gates,main,resource,41001,10.0,C,100.0,500,12,3296.4452973888037,21400.132168913726,-8.123705823219293,0.04389855639818994,gates/main/41001/evaluation/resource/C_ds100_fd500_snr10/raw.npz
+gates,main,resource,41001,15.0,C,100.0,500,12,1954.8461859532829,21400.132168913726,-10.39303864307621,0.04389855639818994,gates/main/41001/evaluation/resource/C_ds100_fd500_snr15/raw.npz
+gates,main,resource,41001,20.0,C,100.0,500,12,1513.1889291469026,21400.132168913726,-11.50523300364894,0.04389855639818994,gates/main/41001/evaluation/resource/C_ds100_fd500_snr20/raw.npz
+gates,main,resource,41001,25.0,C,100.0,500,12,1375.9429343143224,21400.132168913726,-11.918160331968346,0.04389855639818994,gates/main/41001/evaluation/resource/C_ds100_fd500_snr25/raw.npz
+gates,main,resource,41001,0.0,A,100.0,10,12,1119.5225770953332,15012.485664548787,-11.274197494051222,0.0003311967844247724,gates/main/41001/evaluation/resource/A_ds100_fd10_snr0/raw.npz
+gates,main,resource,41001,5.0,A,100.0,10,12,837.3826417171381,15012.485664548787,-12.535286516366869,0.0003311967844247724,gates/main/41001/evaluation/resource/A_ds100_fd10_snr5/raw.npz
+gates,main,resource,41001,10.0,A,100.0,10,12,634.3191666042337,15012.485664548787,-13.741447714535838,0.0003311967844247724,gates/main/41001/evaluation/resource/A_ds100_fd10_snr10/raw.npz
+gates,main,resource,41001,15.0,A,100.0,10,12,486.7296346583333,15012.485664548787,-14.891648165233812,0.0003311967844247724,gates/main/41001/evaluation/resource/A_ds100_fd10_snr15/raw.npz
+gates,main,resource,41001,20.0,A,100.0,10,12,381.4323587369524,15012.485664548787,-15.950350721451873,0.0003311967844247724,gates/main/41001/evaluation/resource/A_ds100_fd10_snr20/raw.npz
+gates,main,resource,41001,25.0,A,100.0,10,12,308.9134193483877,15012.485664548787,-16.86615831028891,0.0003311967844247724,gates/main/41001/evaluation/resource/A_ds100_fd10_snr25/raw.npz
+gates,main,resource,41001,0.0,C,300.0,10,12,2306.8604026636053,12982.921761201113,-7.503511254974551,0.04625639653331669,gates/main/41001/evaluation/resource/C_ds300_fd10_snr0/raw.npz
+gates,main,resource,41001,5.0,C,300.0,10,12,1641.9139973989522,12982.921761201113,-8.980220346599278,0.04625639653331669,gates/main/41001/evaluation/resource/C_ds300_fd10_snr5/raw.npz
+gates,main,resource,41001,10.0,C,300.0,10,12,1258.8375929761453,12982.921761201113,-10.134027360424625,0.04625639653331669,gates/main/41001/evaluation/resource/C_ds300_fd10_snr10/raw.npz
+gates,main,resource,41001,15.0,C,300.0,10,12,1042.2938775012603,12982.921761201113,-10.953822532187953,0.04625639653331669,gates/main/41001/evaluation/resource/C_ds300_fd10_snr15/raw.npz
+gates,main,resource,41001,20.0,C,300.0,10,12,921.3259081629278,12982.921761201113,-11.48959155999276,0.04625639653331669,gates/main/41001/evaluation/resource/C_ds300_fd10_snr20/raw.npz
+gates,main,resource,41001,25.0,C,300.0,10,12,851.5694786524901,12982.921761201113,-11.831523525487274,0.04625639653331669,gates/main/41001/evaluation/resource/C_ds300_fd10_snr25/raw.npz
+gates,main,resource,41001,0.0,A,300.0,100,12,3117.4809406935856,28359.40062708738,-9.588932408227404,0.012769628872475538,gates/main/41001/evaluation/resource/A_ds300_fd100_snr0/raw.npz
+gates,main,resource,41001,5.0,A,300.0,100,12,1822.9864004691144,28359.40062708738,-11.919136190226338,0.012769628872475538,gates/main/41001/evaluation/resource/A_ds300_fd100_snr5/raw.npz
+gates,main,resource,41001,10.0,A,300.0,100,12,1112.9411062467755,28359.40062708738,-14.062248645557908,0.012769628872475538,gates/main/41001/evaluation/resource/A_ds300_fd100_snr10/raw.npz
+gates,main,resource,41001,15.0,A,300.0,100,12,786.8101617171715,28359.40062708738,-15.56827087608349,0.012769628872475538,gates/main/41001/evaluation/resource/A_ds300_fd100_snr15/raw.npz
+gates,main,resource,41001,20.0,A,300.0,100,12,663.7257417582485,28359.40062708738,-16.30708386312907,0.012769628872475538,gates/main/41001/evaluation/resource/A_ds300_fd100_snr20/raw.npz
+gates,main,resource,41001,25.0,A,300.0,100,12,609.5743940578532,28359.40062708738,-16.676703322138025,0.012769628872475538,gates/main/41001/evaluation/resource/A_ds300_fd100_snr25/raw.npz
+gates,main,half,41001,0.0,C,100.0,10,12,4303.594788707202,15979.58833086894,-5.697342137987071,0.0006875906529715881,gates/main/41001/evaluation/half/C_ds100_fd10_snr0/raw.npz
+gates,main,half,41001,5.0,C,100.0,10,12,4123.955360011044,15979.58833086894,-5.882516311551077,0.0006875906529715881,gates/main/41001/evaluation/half/C_ds100_fd10_snr5/raw.npz
+gates,main,half,41001,10.0,C,100.0,10,12,4061.6450669240758,15979.58833086894,-5.948636175084015,0.0006875906529715881,gates/main/41001/evaluation/half/C_ds100_fd10_snr10/raw.npz
+gates,main,half,41001,15.0,C,100.0,10,12,4046.6053716251445,15979.58833086894,-5.964747330549943,0.0006875906529715881,gates/main/41001/evaluation/half/C_ds100_fd10_snr15/raw.npz
+gates,main,half,41001,20.0,C,100.0,10,12,4046.7719045859694,15979.58833086894,-5.964568605788986,0.0006875906529715881,gates/main/41001/evaluation/half/C_ds100_fd10_snr20/raw.npz
+gates,main,half,41001,25.0,C,100.0,10,12,4050.7437301332075,15979.58833086894,-5.960308182878072,0.0006875906529715881,gates/main/41001/evaluation/half/C_ds100_fd10_snr25/raw.npz
+gates,main,half,41001,0.0,C,100.0,100,12,4511.386980886144,14821.91575030415,-5.1659425844216775,0.0008261512542778008,gates/main/41001/evaluation/half/C_ds100_fd100_snr0/raw.npz
+gates,main,half,41001,5.0,C,100.0,100,12,4254.167824636281,14821.91575030415,-5.420897217627133,0.0008261512542778008,gates/main/41001/evaluation/half/C_ds100_fd100_snr5/raw.npz
+gates,main,half,41001,10.0,C,100.0,100,12,4086.1733245268397,14821.91575030415,-5.5958755605575385,0.0008261512542778008,gates/main/41001/evaluation/half/C_ds100_fd100_snr10/raw.npz
+gates,main,half,41001,15.0,C,100.0,100,12,3989.155046231442,14821.91575030415,-5.700234240180264,0.0008261512542778008,gates/main/41001/evaluation/half/C_ds100_fd100_snr15/raw.npz
+gates,main,half,41001,20.0,C,100.0,100,12,3949.9934131944224,14821.91575030415,-5.743079689315201,0.0008261512542778008,gates/main/41001/evaluation/half/C_ds100_fd100_snr20/raw.npz
+gates,main,half,41001,25.0,C,100.0,100,12,3938.8985266248123,14821.91575030415,-5.75529547634374,0.0008261512542778008,gates/main/41001/evaluation/half/C_ds100_fd100_snr25/raw.npz
+gates,main,half,41001,0.0,C,100.0,200,12,5778.782211366588,15345.757390122058,-4.241520006655115,0.0019593703772979756,gates/main/41001/evaluation/half/C_ds100_fd200_snr0/raw.npz
+gates,main,half,41001,5.0,C,100.0,200,12,5300.263365556847,15345.757390122058,-4.616908780499073,0.0019593703772979756,gates/main/41001/evaluation/half/C_ds100_fd200_snr5/raw.npz
+gates,main,half,41001,10.0,C,100.0,200,12,4827.965147329368,15345.757390122058,-5.02224201606873,0.0019593703772979756,gates/main/41001/evaluation/half/C_ds100_fd200_snr10/raw.npz
+gates,main,half,41001,15.0,C,100.0,200,12,4496.477156216497,15345.757390122058,-5.33115936531601,0.0019593703772979756,gates/main/41001/evaluation/half/C_ds100_fd200_snr15/raw.npz
+gates,main,half,41001,20.0,C,100.0,200,12,4347.499236064259,15345.757390122058,-5.477488135472837,0.0019593703772979756,gates/main/41001/evaluation/half/C_ds100_fd200_snr20/raw.npz
+gates,main,half,41001,25.0,C,100.0,200,12,4296.043753557322,15345.757390122058,-5.5291963207180475,0.0019593703772979756,gates/main/41001/evaluation/half/C_ds100_fd200_snr25/raw.npz
+gates,main,half,41001,0.0,C,100.0,500,12,11799.999697051242,21400.132168913726,-2.5853445943842983,0.04389855639818994,gates/main/41001/evaluation/half/C_ds100_fd500_snr0/raw.npz
+gates,main,half,41001,5.0,C,100.0,500,12,10516.30687360291,21400.132168913726,-3.0855320494161615,0.04389855639818994,gates/main/41001/evaluation/half/C_ds100_fd500_snr5/raw.npz
+gates,main,half,41001,10.0,C,100.0,500,12,8943.819638960129,21400.132168913726,-3.78893422945201,0.04389855639818994,gates/main/41001/evaluation/half/C_ds100_fd500_snr10/raw.npz
+gates,main,half,41001,15.0,C,100.0,500,12,7782.624663229726,21400.132168913726,-4.392903695913068,0.04389855639818994,gates/main/41001/evaluation/half/C_ds100_fd500_snr15/raw.npz
+gates,main,half,41001,20.0,C,100.0,500,12,7255.52297922286,21400.132168913726,-4.697477336789484,0.04389855639818994,gates/main/41001/evaluation/half/C_ds100_fd500_snr20/raw.npz
+gates,main,half,41001,25.0,C,100.0,500,12,7069.091355921422,21400.132168913726,-4.810528613833086,0.04389855639818994,gates/main/41001/evaluation/half/C_ds100_fd500_snr25/raw.npz
+gates,main,half,41001,0.0,A,100.0,10,12,4187.892796465488,15012.485664548787,-5.544570498159217,0.0003311967844247724,gates/main/41001/evaluation/half/A_ds100_fd10_snr0/raw.npz
+gates,main,half,41001,5.0,A,100.0,10,12,4058.4087224738155,15012.485664548787,-5.680968229913065,0.0003311967844247724,gates/main/41001/evaluation/half/A_ds100_fd10_snr5/raw.npz
+gates,main,half,41001,10.0,A,100.0,10,12,4021.546394976321,15012.485664548787,-5.720595223528976,0.0003311967844247724,gates/main/41001/evaluation/half/A_ds100_fd10_snr10/raw.npz
+gates,main,half,41001,15.0,A,100.0,10,12,4018.927568621119,15012.485664548787,-5.723424265400125,0.0003311967844247724,gates/main/41001/evaluation/half/A_ds100_fd10_snr15/raw.npz
+gates,main,half,41001,20.0,A,100.0,10,12,4025.3870200994083,15012.485664548787,-5.716449638276483,0.0003311967844247724,gates/main/41001/evaluation/half/A_ds100_fd10_snr20/raw.npz
+gates,main,half,41001,25.0,A,100.0,10,12,4032.6955448013537,15012.485664548787,-5.708571702567374,0.0003311967844247724,gates/main/41001/evaluation/half/A_ds100_fd10_snr25/raw.npz
+gates,main,half,41001,0.0,C,300.0,10,12,4898.941610799135,12982.921761201113,-4.232701766749651,0.04625639653331669,gates/main/41001/evaluation/half/C_ds300_fd10_snr0/raw.npz
+gates,main,half,41001,5.0,C,300.0,10,12,4390.713709757165,12982.921761201113,-4.708373194465322,0.04625639653331669,gates/main/41001/evaluation/half/C_ds300_fd10_snr5/raw.npz
+gates,main,half,41001,10.0,C,300.0,10,12,4121.102456750808,12982.921761201113,-4.983590280529839,0.04625639653331669,gates/main/41001/evaluation/half/C_ds300_fd10_snr10/raw.npz
+gates,main,half,41001,15.0,C,300.0,10,12,3999.733644076348,12982.921761201113,-5.113413687819548,0.04625639653331669,gates/main/41001/evaluation/half/C_ds300_fd10_snr15/raw.npz
+gates,main,half,41001,20.0,C,300.0,10,12,3956.5878853437043,12982.921761201113,-5.160516230232411,0.04625639653331669,gates/main/41001/evaluation/half/C_ds300_fd10_snr20/raw.npz
+gates,main,half,41001,25.0,C,300.0,10,12,3945.0822292585262,12982.921761201113,-5.173163800701701,0.04625639653331669,gates/main/41001/evaluation/half/C_ds300_fd10_snr25/raw.npz
+gates,main,half,41001,0.0,A,300.0,100,12,10182.441019139033,28359.40062708738,-4.4484514468624905,0.012769628872475538,gates/main/41001/evaluation/half/A_ds300_fd100_snr0/raw.npz
+gates,main,half,41001,5.0,A,300.0,100,12,9076.645364223745,28359.40062708738,-4.947716804868098,0.012769628872475538,gates/main/41001/evaluation/half/A_ds300_fd100_snr5/raw.npz
+gates,main,half,41001,10.0,A,300.0,100,12,8401.523864476592,28359.40062708738,-5.283389825034265,0.012769628872475538,gates/main/41001/evaluation/half/A_ds300_fd100_snr10/raw.npz
+gates,main,half,41001,15.0,A,300.0,100,12,8055.268652376761,28359.40062708738,-5.466170186284012,0.012769628872475538,gates/main/41001/evaluation/half/A_ds300_fd100_snr15/raw.npz
+gates,main,half,41001,20.0,A,300.0,100,12,7917.566823074103,28359.40062708738,-5.541053104008142,0.012769628872475538,gates/main/41001/evaluation/half/A_ds300_fd100_snr20/raw.npz
+gates,main,half,41001,25.0,A,300.0,100,12,7872.6846306106945,28359.40062708738,-5.565741933155293,0.012769628872475538,gates/main/41001/evaluation/half/A_ds300_fd100_snr25/raw.npz
+adaptation,target,A-res_128_labels,41001,0.0,C,100.0,100,4,253.3755650036619,5301.349628730898,-13.206217171409785,0.0011522502358026932,adaptation/E01_main_compact_A-res_base_s41001/128/snr0.npz
+adaptation,target,A-res_128_labels,41001,5.0,C,100.0,100,4,123.2027840366021,5301.349628730898,-16.337659255051406,0.0011522502358026932,adaptation/E01_main_compact_A-res_base_s41001/128/snr5.npz
+adaptation,target,A-res_128_labels,41001,10.0,C,100.0,100,4,59.978746620499784,5301.349628730898,-19.46389061238697,0.0011522502358026932,adaptation/E01_main_compact_A-res_base_s41001/128/snr10.npz
+adaptation,target,A-res_128_labels,41001,15.0,C,100.0,100,4,34.321650027996114,5301.349628730898,-21.888182887075168,0.0011522502358026932,adaptation/E01_main_compact_A-res_base_s41001/128/snr15.npz
+adaptation,target,A-res_128_labels,41001,20.0,C,100.0,100,4,25.905077132815205,5301.349628730898,-23.110015575345454,0.0011522502358026932,adaptation/E01_main_compact_A-res_base_s41001/128/snr20.npz
+adaptation,target,A-res_128_labels,41001,25.0,C,100.0,100,4,24.02070316665261,5301.349628730898,-23.438007307679545,0.0011522502358026932,adaptation/E01_main_compact_A-res_base_s41001/128/snr25.npz
+oracle,main,target_cov_lmmse,0,0.0,C,100.0,100,4,283.48113976006664,5301.349628730898,-12.718622770679989,0.0011522502358026932,oracles/target_cov_lmmse/snr0.npz
+oracle,main,target_cov_lmmse,0,5.0,C,100.0,100,4,160.7395350947353,5301.349628730898,-15.182637393906294,0.0011522502358026932,oracles/target_cov_lmmse/snr5.npz
+oracle,main,target_cov_lmmse,0,10.0,C,100.0,100,4,93.95306171419234,5301.349628730898,-17.514755099534884,0.0011522502358026932,oracles/target_cov_lmmse/snr10.npz
+oracle,main,target_cov_lmmse,0,15.0,C,100.0,100,4,60.27563568123201,5301.349628730898,-19.442446480320957,0.0011522502358026932,oracles/target_cov_lmmse/snr15.npz
+oracle,main,target_cov_lmmse,0,20.0,C,100.0,100,4,47.825091886898775,5301.349628730898,-20.447306341638264,0.0011522502358026932,oracles/target_cov_lmmse/snr20.npz
+oracle,main,target_cov_lmmse,0,25.0,C,100.0,100,4,43.93550318909622,5301.349628730898,-20.81570842580209,0.0011522502358026932,oracles/target_cov_lmmse/snr25.npz
+oracle,main,target_recalibrated_bem,0,0.0,C,100.0,100,4,273.38406446074896,5301.349628730898,-12.876132513063299,0.001202691648806441,oracles/target_recalibrated_bem/snr0.npz
+oracle,main,target_recalibrated_bem,0,5.0,C,100.0,100,4,141.49955651771614,5301.349628730898,-15.736313685649964,0.001202691648806441,oracles/target_recalibrated_bem/snr5.npz
+oracle,main,target_recalibrated_bem,0,10.0,C,100.0,100,4,63.692349461115874,5301.349628730898,-19.202991779948107,0.001202691648806441,oracles/target_recalibrated_bem/snr10.npz
+oracle,main,target_recalibrated_bem,0,15.0,C,100.0,100,4,25.31228684935454,5301.349628730898,-23.210550638279074,0.001202691648806441,oracles/target_recalibrated_bem/snr15.npz
+oracle,main,target_recalibrated_bem,0,20.0,C,100.0,100,4,11.927795396194526,5301.349628730898,-26.47826266453873,0.001202691648806441,oracles/target_recalibrated_bem/snr20.npz
+oracle,main,target_recalibrated_bem,0,25.0,C,100.0,100,4,8.068651353115342,5301.349628730898,-28.17585497296276,0.001202691648806441,oracles/target_recalibrated_bem/snr25.npz
diff --git a/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/reports/waveform_ici_samples.csv b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/reports/waveform_ici_samples.csv
new file mode 100644
index 0000000000000000000000000000000000000000..8b137891791fe96927ad78e64b0aad7bded08bdc
--- /dev/null
+++ b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/reports/waveform_ici_samples.csv
@@ -0,0 +1 @@
+
diff --git a/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E01_main_compact_A-raw_base_s41001/best.pt b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E01_main_compact_A-raw_base_s41001/best.pt
new file mode 100644
index 0000000000000000000000000000000000000000..690d790e301c5389739c000e2c2a5b1c76ad1566
--- /dev/null
+++ b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E01_main_compact_A-raw_base_s41001/best.pt
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:060416930d9652b418db6ece033f23ceaf41ad77e28fd01afda42e8aa8c2533e
+size 2541330
diff --git a/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E01_main_compact_A-raw_base_s41001/complete.json b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E01_main_compact_A-raw_base_s41001/complete.json
new file mode 100644
index 0000000000000000000000000000000000000000..8fb07f601e7c8d7c92bf49ab08426ef9c1b1d146
--- /dev/null
+++ b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E01_main_compact_A-raw_base_s41001/complete.json
@@ -0,0 +1,21 @@
+{
+ "job": {
+ "experiment": "E01",
+ "arch": "compact",
+ "arm": "A-raw",
+ "seed": 41001,
+ "recipe": "main",
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "id": "E01_main_compact_A-raw_base_s41001"
+ },
+ "best_linear_nmse": 0.012374838047561905,
+ "epochs_completed": 1,
+ "seconds_this_invocation": 1.1930785080000135,
+ "parameters": 34858,
+ "checkpoint_sha256": "060416930d9652b418db6ece033f23ceaf41ad77e28fd01afda42e8aa8c2533e",
+ "initialization_sha256": "cdcd5cd0e20e13014ab240d83305ed05d810d9ade67bf16025a6fe3c3e8e505e",
+ "smoke_only": true
+}
diff --git a/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E01_main_compact_A-raw_base_s41001/history.json b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E01_main_compact_A-raw_base_s41001/history.json
new file mode 100644
index 0000000000000000000000000000000000000000..fe7c03fb29b55c7b959b23f27d1f94b5f2863b6d
--- /dev/null
+++ b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E01_main_compact_A-raw_base_s41001/history.json
@@ -0,0 +1,8 @@
+[
+ {
+ "epoch": 0,
+ "train_complex_mse": 0.32005828619003296,
+ "val_pooled_linear_nmse": 0.012374838047561905,
+ "lr": 0.001
+ }
+]
diff --git a/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E01_main_compact_A-raw_base_s41001/initial.pt b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E01_main_compact_A-raw_base_s41001/initial.pt
new file mode 100644
index 0000000000000000000000000000000000000000..1b65fa8a0a72f1d0f71d61094be5d7bd2d7257ae
--- /dev/null
+++ b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E01_main_compact_A-raw_base_s41001/initial.pt
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:cdcd5cd0e20e13014ab240d83305ed05d810d9ade67bf16025a6fe3c3e8e505e
+size 146997
diff --git a/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E01_main_compact_A-raw_base_s41001/last.pt b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E01_main_compact_A-raw_base_s41001/last.pt
new file mode 100644
index 0000000000000000000000000000000000000000..961a4a64707acfeb0d58a48bb03cc924ed2e9f37
--- /dev/null
+++ b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E01_main_compact_A-raw_base_s41001/last.pt
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:38cfc5b13708998f7da5995fe87fd2ee96d2b86659659ffc3c2291eb19a9fe57
+size 2848490
diff --git a/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E01_main_compact_A-raw_base_s41001/spec.json b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E01_main_compact_A-raw_base_s41001/spec.json
new file mode 100644
index 0000000000000000000000000000000000000000..4405edd70b576e59655b92b5e629df01e33a00f4
--- /dev/null
+++ b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E01_main_compact_A-raw_base_s41001/spec.json
@@ -0,0 +1,17 @@
+{
+ "job": {
+ "experiment": "E01",
+ "arch": "compact",
+ "arm": "A-raw",
+ "seed": 41001,
+ "recipe": "main",
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "id": "E01_main_compact_A-raw_base_s41001"
+ },
+ "lr": 0.001,
+ "epochs": 1,
+ "limit": 12
+}
diff --git a/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E01_main_compact_A-res_base_s41001/best.pt b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E01_main_compact_A-res_base_s41001/best.pt
new file mode 100644
index 0000000000000000000000000000000000000000..51d87c522ca42485f34a4b79110f817f1c09a723
--- /dev/null
+++ b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E01_main_compact_A-res_base_s41001/best.pt
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:31824af6fd829212de72e9f3e5402a4a4b65646f4ee0913b440593ea2cb9245f
+size 2541330
diff --git a/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E01_main_compact_A-res_base_s41001/complete.json b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E01_main_compact_A-res_base_s41001/complete.json
new file mode 100644
index 0000000000000000000000000000000000000000..98e8498dae186ec672571254ddc42e37c2883513
--- /dev/null
+++ b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E01_main_compact_A-res_base_s41001/complete.json
@@ -0,0 +1,21 @@
+{
+ "job": {
+ "experiment": "E01",
+ "arch": "compact",
+ "arm": "A-res",
+ "seed": 41001,
+ "recipe": "main",
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "id": "E01_main_compact_A-res_base_s41001"
+ },
+ "best_linear_nmse": 0.012350659973219899,
+ "epochs_completed": 1,
+ "seconds_this_invocation": 1.099073513999997,
+ "parameters": 34858,
+ "checkpoint_sha256": "31824af6fd829212de72e9f3e5402a4a4b65646f4ee0913b440593ea2cb9245f",
+ "initialization_sha256": "cdcd5cd0e20e13014ab240d83305ed05d810d9ade67bf16025a6fe3c3e8e505e",
+ "smoke_only": true
+}
diff --git a/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E01_main_compact_A-res_base_s41001/history.json b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E01_main_compact_A-res_base_s41001/history.json
new file mode 100644
index 0000000000000000000000000000000000000000..4816388449332c4d143a8ddac8d93c549711e4b1
--- /dev/null
+++ b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E01_main_compact_A-res_base_s41001/history.json
@@ -0,0 +1,8 @@
+[
+ {
+ "epoch": 0,
+ "train_complex_mse": 0.31805986166000366,
+ "val_pooled_linear_nmse": 0.012350659973219899,
+ "lr": 0.001
+ }
+]
diff --git a/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E01_main_compact_A-res_base_s41001/initial.pt b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E01_main_compact_A-res_base_s41001/initial.pt
new file mode 100644
index 0000000000000000000000000000000000000000..1b65fa8a0a72f1d0f71d61094be5d7bd2d7257ae
--- /dev/null
+++ b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E01_main_compact_A-res_base_s41001/initial.pt
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:cdcd5cd0e20e13014ab240d83305ed05d810d9ade67bf16025a6fe3c3e8e505e
+size 146997
diff --git a/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E01_main_compact_A-res_base_s41001/last.pt b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E01_main_compact_A-res_base_s41001/last.pt
new file mode 100644
index 0000000000000000000000000000000000000000..c960afdf44b9ca35ede80c1934eee24fd99f6485
--- /dev/null
+++ b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E01_main_compact_A-res_base_s41001/last.pt
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:987666ec8aede4d041a5292c6e4f28f96eface72af3bc7f561662688a36d7307
+size 2848490
diff --git a/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E01_main_compact_A-res_base_s41001/spec.json b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E01_main_compact_A-res_base_s41001/spec.json
new file mode 100644
index 0000000000000000000000000000000000000000..b112c0b1998dae2eaca6a8f7e3320b38a71f2d6f
--- /dev/null
+++ b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E01_main_compact_A-res_base_s41001/spec.json
@@ -0,0 +1,17 @@
+{
+ "job": {
+ "experiment": "E01",
+ "arch": "compact",
+ "arm": "A-res",
+ "seed": 41001,
+ "recipe": "main",
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "id": "E01_main_compact_A-res_base_s41001"
+ },
+ "lr": 0.001,
+ "epochs": 1,
+ "limit": 12
+}
diff --git a/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E01_main_compact_D_base_s41001/best.pt b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E01_main_compact_D_base_s41001/best.pt
new file mode 100644
index 0000000000000000000000000000000000000000..976bccb729c15c1bb7318abcfada63d6f79067e1
--- /dev/null
+++ b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E01_main_compact_D_base_s41001/best.pt
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:c9d91ec4266d90254c52659dd2d182cb2b4afee90c5d72d3929340fc05a594a0
+size 2541330
diff --git a/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E01_main_compact_D_base_s41001/complete.json b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E01_main_compact_D_base_s41001/complete.json
new file mode 100644
index 0000000000000000000000000000000000000000..b8b8cc8a9ab10f0cc8f4cead66eb823fe9581ad5
--- /dev/null
+++ b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E01_main_compact_D_base_s41001/complete.json
@@ -0,0 +1,21 @@
+{
+ "job": {
+ "experiment": "E01",
+ "arch": "compact",
+ "arm": "D",
+ "seed": 41001,
+ "recipe": "main",
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "id": "E01_main_compact_D_base_s41001"
+ },
+ "best_linear_nmse": 0.9935429582900781,
+ "epochs_completed": 1,
+ "seconds_this_invocation": 0.8139825639999856,
+ "parameters": 34858,
+ "checkpoint_sha256": "c9d91ec4266d90254c52659dd2d182cb2b4afee90c5d72d3929340fc05a594a0",
+ "initialization_sha256": "cdcd5cd0e20e13014ab240d83305ed05d810d9ade67bf16025a6fe3c3e8e505e",
+ "smoke_only": true
+}
diff --git a/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E01_main_compact_D_base_s41001/history.json b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E01_main_compact_D_base_s41001/history.json
new file mode 100644
index 0000000000000000000000000000000000000000..454cb174fe7c5215b1eab846c552e46f68b686cf
--- /dev/null
+++ b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E01_main_compact_D_base_s41001/history.json
@@ -0,0 +1,8 @@
+[
+ {
+ "epoch": 0,
+ "train_complex_mse": 1.2092393636703491,
+ "val_pooled_linear_nmse": 0.9935429582900781,
+ "lr": 0.001
+ }
+]
diff --git a/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E01_main_compact_D_base_s41001/initial.pt b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E01_main_compact_D_base_s41001/initial.pt
new file mode 100644
index 0000000000000000000000000000000000000000..1b65fa8a0a72f1d0f71d61094be5d7bd2d7257ae
--- /dev/null
+++ b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E01_main_compact_D_base_s41001/initial.pt
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:cdcd5cd0e20e13014ab240d83305ed05d810d9ade67bf16025a6fe3c3e8e505e
+size 146997
diff --git a/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E01_main_compact_D_base_s41001/last.pt b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E01_main_compact_D_base_s41001/last.pt
new file mode 100644
index 0000000000000000000000000000000000000000..598b604a590fadde86cded5f32f369ddff232fac
--- /dev/null
+++ b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E01_main_compact_D_base_s41001/last.pt
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:88497ff6c9c0d14d59ee6fb46d885612bcc14ada4e05dd765f023a5430251e55
+size 2848490
diff --git a/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E01_main_compact_D_base_s41001/spec.json b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E01_main_compact_D_base_s41001/spec.json
new file mode 100644
index 0000000000000000000000000000000000000000..7777e445ebfa3e065e9b2c5e5b361cd6f794a7b8
--- /dev/null
+++ b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E01_main_compact_D_base_s41001/spec.json
@@ -0,0 +1,17 @@
+{
+ "job": {
+ "experiment": "E01",
+ "arch": "compact",
+ "arm": "D",
+ "seed": 41001,
+ "recipe": "main",
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "id": "E01_main_compact_D_base_s41001"
+ },
+ "lr": 0.001,
+ "epochs": 1,
+ "limit": 12
+}
diff --git a/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E02_main_channelformer_D_base_s41001/best.pt b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E02_main_channelformer_D_base_s41001/best.pt
new file mode 100644
index 0000000000000000000000000000000000000000..e70dcf1283ce0cf435d4b9f7906cefe321b0d8c7
--- /dev/null
+++ b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E02_main_channelformer_D_base_s41001/best.pt
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:96c3ce198b37935c64b3bdd3473027eac053d0b730559b46df98c9f1bf600508
+size 3147493
diff --git a/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E02_main_channelformer_D_base_s41001/complete.json b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E02_main_channelformer_D_base_s41001/complete.json
new file mode 100644
index 0000000000000000000000000000000000000000..64df4e38332d991af7adaaeb3a377e4bce83c570
--- /dev/null
+++ b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E02_main_channelformer_D_base_s41001/complete.json
@@ -0,0 +1,21 @@
+{
+ "job": {
+ "experiment": "E02",
+ "arch": "channelformer",
+ "arm": "D",
+ "seed": 41001,
+ "recipe": "main",
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "id": "E02_main_channelformer_D_base_s41001"
+ },
+ "best_linear_nmse": 1.0523369438303898,
+ "epochs_completed": 1,
+ "seconds_this_invocation": 0.12434960199999523,
+ "parameters": 185181,
+ "checkpoint_sha256": "96c3ce198b37935c64b3bdd3473027eac053d0b730559b46df98c9f1bf600508",
+ "initialization_sha256": "5ac039fc7b5005b17fa2cfd1381313939acaa54c4d4ab0e97cfa2f7fe0891f38",
+ "smoke_only": true
+}
diff --git a/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E02_main_channelformer_D_base_s41001/history.json b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E02_main_channelformer_D_base_s41001/history.json
new file mode 100644
index 0000000000000000000000000000000000000000..f74a9796b1a48677facf2c5b30e862771ccd9028
--- /dev/null
+++ b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E02_main_channelformer_D_base_s41001/history.json
@@ -0,0 +1,8 @@
+[
+ {
+ "epoch": 0,
+ "train_complex_mse": 0.9193091988563538,
+ "val_pooled_linear_nmse": 1.0523369438303898,
+ "lr": 0.001
+ }
+]
diff --git a/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E02_main_channelformer_D_base_s41001/initial.pt b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E02_main_channelformer_D_base_s41001/initial.pt
new file mode 100644
index 0000000000000000000000000000000000000000..28f501eaf4fc8b261372ddc21fd0446fb9e28f99
--- /dev/null
+++ b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E02_main_channelformer_D_base_s41001/initial.pt
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:5ac039fc7b5005b17fa2cfd1381313939acaa54c4d4ab0e97cfa2f7fe0891f38
+size 751605
diff --git a/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E02_main_channelformer_D_base_s41001/last.pt b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E02_main_channelformer_D_base_s41001/last.pt
new file mode 100644
index 0000000000000000000000000000000000000000..09ad6bd66f68e2ae19b1efdc4fc305a3f7976136
--- /dev/null
+++ b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E02_main_channelformer_D_base_s41001/last.pt
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:4238d14715b994d27982023f19c4bfb747d801e2790456399635d2780d597b3b
+size 4672015
diff --git a/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E02_main_channelformer_D_base_s41001/spec.json b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E02_main_channelformer_D_base_s41001/spec.json
new file mode 100644
index 0000000000000000000000000000000000000000..51576d7e48366500ce2e30413f9e3ad7efff6a1d
--- /dev/null
+++ b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E02_main_channelformer_D_base_s41001/spec.json
@@ -0,0 +1,17 @@
+{
+ "job": {
+ "experiment": "E02",
+ "arch": "channelformer",
+ "arm": "D",
+ "seed": 41001,
+ "recipe": "main",
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "id": "E02_main_channelformer_D_base_s41001"
+ },
+ "lr": 0.001,
+ "epochs": 1,
+ "limit": 12
+}
diff --git a/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E02_main_fortitran_D_base_s41001/best.pt b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E02_main_fortitran_D_base_s41001/best.pt
new file mode 100644
index 0000000000000000000000000000000000000000..62a085519be689156277f2a6cf652f9b3d0135c1
--- /dev/null
+++ b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E02_main_fortitran_D_base_s41001/best.pt
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:f5ef9cb359cebc6b56973d535ebb295d6457d1771873106c1fa2df76f7f6835e
+size 3168032
diff --git a/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E02_main_fortitran_D_base_s41001/complete.json b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E02_main_fortitran_D_base_s41001/complete.json
new file mode 100644
index 0000000000000000000000000000000000000000..1830c3f9c6006caff1180a108b8b7d39649d2c94
--- /dev/null
+++ b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E02_main_fortitran_D_base_s41001/complete.json
@@ -0,0 +1,21 @@
+{
+ "job": {
+ "experiment": "E02",
+ "arch": "fortitran",
+ "arm": "D",
+ "seed": 41001,
+ "recipe": "main",
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "id": "E02_main_fortitran_D_base_s41001"
+ },
+ "best_linear_nmse": 1.0310584520780441,
+ "epochs_completed": 1,
+ "seconds_this_invocation": 0.08762514600002191,
+ "parameters": 188120,
+ "checkpoint_sha256": "f5ef9cb359cebc6b56973d535ebb295d6457d1771873106c1fa2df76f7f6835e",
+ "initialization_sha256": "8998b9717d1890e06c3007c7f6cb599564b0d6fcc6dd12bc22fd812905c07311",
+ "smoke_only": true
+}
diff --git a/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E02_main_fortitran_D_base_s41001/history.json b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E02_main_fortitran_D_base_s41001/history.json
new file mode 100644
index 0000000000000000000000000000000000000000..724def11096c8e1cdaa84e18c6469865edd2566d
--- /dev/null
+++ b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E02_main_fortitran_D_base_s41001/history.json
@@ -0,0 +1,8 @@
+[
+ {
+ "epoch": 0,
+ "train_complex_mse": 0.8272771239280701,
+ "val_pooled_linear_nmse": 1.0310584520780441,
+ "lr": 0.001
+ }
+]
diff --git a/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E02_main_fortitran_D_base_s41001/initial.pt b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E02_main_fortitran_D_base_s41001/initial.pt
new file mode 100644
index 0000000000000000000000000000000000000000..b42053015075276589429d7d798c0a7ab26952df
--- /dev/null
+++ b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E02_main_fortitran_D_base_s41001/initial.pt
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:8998b9717d1890e06c3007c7f6cb599564b0d6fcc6dd12bc22fd812905c07311
+size 770613
diff --git a/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E02_main_fortitran_D_base_s41001/last.pt b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E02_main_fortitran_D_base_s41001/last.pt
new file mode 100644
index 0000000000000000000000000000000000000000..4d4b9f9064269936872df21634e44c37b64250ef
--- /dev/null
+++ b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E02_main_fortitran_D_base_s41001/last.pt
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:ccaff23c827a1f01a3129878c0323921286e632adc10c4032f71ec07410d9fc3
+size 4735511
diff --git a/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E02_main_fortitran_D_base_s41001/spec.json b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E02_main_fortitran_D_base_s41001/spec.json
new file mode 100644
index 0000000000000000000000000000000000000000..cc9478697e1396c98acc114187e0847550bb10bd
--- /dev/null
+++ b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E02_main_fortitran_D_base_s41001/spec.json
@@ -0,0 +1,17 @@
+{
+ "job": {
+ "experiment": "E02",
+ "arch": "fortitran",
+ "arm": "D",
+ "seed": 41001,
+ "recipe": "main",
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "id": "E02_main_fortitran_D_base_s41001"
+ },
+ "lr": 0.001,
+ "epochs": 1,
+ "limit": 12
+}
diff --git a/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E02_main_helena_D_base_s41001/best.pt b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E02_main_helena_D_base_s41001/best.pt
new file mode 100644
index 0000000000000000000000000000000000000000..03c7e1b81362eac8ebd3adc6c576c8b5cd6befd3
--- /dev/null
+++ b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E02_main_helena_D_base_s41001/best.pt
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:4cea5e6b4659db3fe8ea1fd40fdd20f3cd517a84f6cf83b1b5892c555be7014a
+size 2866895
diff --git a/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E02_main_helena_D_base_s41001/complete.json b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E02_main_helena_D_base_s41001/complete.json
new file mode 100644
index 0000000000000000000000000000000000000000..b9370e53c97c9e07a0c3ccc98e2fe96a280ab968
--- /dev/null
+++ b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E02_main_helena_D_base_s41001/complete.json
@@ -0,0 +1,21 @@
+{
+ "job": {
+ "experiment": "E02",
+ "arch": "helena",
+ "arm": "D",
+ "seed": 41001,
+ "recipe": "main",
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "id": "E02_main_helena_D_base_s41001"
+ },
+ "best_linear_nmse": 0.99164470196917,
+ "epochs_completed": 1,
+ "seconds_this_invocation": 0.08804034299998875,
+ "parameters": 116290,
+ "checkpoint_sha256": "4cea5e6b4659db3fe8ea1fd40fdd20f3cd517a84f6cf83b1b5892c555be7014a",
+ "initialization_sha256": "5c41c566e96b64edbc807b9db8b90cb4b211b6e227eab2db51a6c93109f302d8",
+ "smoke_only": true
+}
diff --git a/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E02_main_helena_D_base_s41001/history.json b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E02_main_helena_D_base_s41001/history.json
new file mode 100644
index 0000000000000000000000000000000000000000..fdb0b50842025b6e3c97c689a689a4ffbe2a789b
--- /dev/null
+++ b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E02_main_helena_D_base_s41001/history.json
@@ -0,0 +1,8 @@
+[
+ {
+ "epoch": 0,
+ "train_complex_mse": 0.9067041873931885,
+ "val_pooled_linear_nmse": 0.99164470196917,
+ "lr": 0.001
+ }
+]
diff --git a/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E02_main_helena_D_base_s41001/initial.pt b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E02_main_helena_D_base_s41001/initial.pt
new file mode 100644
index 0000000000000000000000000000000000000000..fa8b4639af901fa0645e7bc92a8339479963db2e
--- /dev/null
+++ b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E02_main_helena_D_base_s41001/initial.pt
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:5c41c566e96b64edbc807b9db8b90cb4b211b6e227eab2db51a6c93109f302d8
+size 472309
diff --git a/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E02_main_helena_D_base_s41001/last.pt b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E02_main_helena_D_base_s41001/last.pt
new file mode 100644
index 0000000000000000000000000000000000000000..74f558def6675f29082764e4af1d026dbfdefe52
--- /dev/null
+++ b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E02_main_helena_D_base_s41001/last.pt
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:118a86c179ee9e6841d6a63091fffba86608864c7e0eac40acc0ecca72bfe3c8
+size 3829315
diff --git a/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E02_main_helena_D_base_s41001/spec.json b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E02_main_helena_D_base_s41001/spec.json
new file mode 100644
index 0000000000000000000000000000000000000000..8099912d6d95aa4e82d59a187c6b706427f2448a
--- /dev/null
+++ b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E02_main_helena_D_base_s41001/spec.json
@@ -0,0 +1,17 @@
+{
+ "job": {
+ "experiment": "E02",
+ "arch": "helena",
+ "arm": "D",
+ "seed": 41001,
+ "recipe": "main",
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "id": "E02_main_helena_D_base_s41001"
+ },
+ "lr": 0.001,
+ "epochs": 1,
+ "limit": 12
+}
diff --git a/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E02_main_reesnet_D_base_s41001/best.pt b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E02_main_reesnet_D_base_s41001/best.pt
new file mode 100644
index 0000000000000000000000000000000000000000..011d024420c543c8f7822efccc5c90c21ef636d5
--- /dev/null
+++ b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E02_main_reesnet_D_base_s41001/best.pt
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:71d8442397a153be12af19273c9c6909f3ce0cf728d38e926efbee07e97f1323
+size 2535049
diff --git a/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E02_main_reesnet_D_base_s41001/complete.json b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E02_main_reesnet_D_base_s41001/complete.json
new file mode 100644
index 0000000000000000000000000000000000000000..1bb7a8bca03cb7e1b0f5d854fedde84982aeec06
--- /dev/null
+++ b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E02_main_reesnet_D_base_s41001/complete.json
@@ -0,0 +1,21 @@
+{
+ "job": {
+ "experiment": "E02",
+ "arch": "reesnet",
+ "arm": "D",
+ "seed": 41001,
+ "recipe": "main",
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "id": "E02_main_reesnet_D_base_s41001"
+ },
+ "best_linear_nmse": 1.0086332749867362,
+ "epochs_completed": 1,
+ "seconds_this_invocation": 0.049535921999989796,
+ "parameters": 33010,
+ "checkpoint_sha256": "71d8442397a153be12af19273c9c6909f3ce0cf728d38e926efbee07e97f1323",
+ "initialization_sha256": "2ade6b45ab7095a6b53506de45ae3b3bd29be99e0b5068fccd2145e0d37a65cf",
+ "smoke_only": true
+}
diff --git a/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E02_main_reesnet_D_base_s41001/history.json b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E02_main_reesnet_D_base_s41001/history.json
new file mode 100644
index 0000000000000000000000000000000000000000..fece10c18adf9043a023469a8ace1fa4f7d11488
--- /dev/null
+++ b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E02_main_reesnet_D_base_s41001/history.json
@@ -0,0 +1,8 @@
+[
+ {
+ "epoch": 0,
+ "train_complex_mse": 0.819101870059967,
+ "val_pooled_linear_nmse": 1.0086332749867362,
+ "lr": 0.001
+ }
+]
diff --git a/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E02_main_reesnet_D_base_s41001/initial.pt b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E02_main_reesnet_D_base_s41001/initial.pt
new file mode 100644
index 0000000000000000000000000000000000000000..58c20ff175d4a57d3fd91a8e24cec40a98f4f9af
--- /dev/null
+++ b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E02_main_reesnet_D_base_s41001/initial.pt
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:2ade6b45ab7095a6b53506de45ae3b3bd29be99e0b5068fccd2145e0d37a65cf
+size 139957
diff --git a/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E02_main_reesnet_D_base_s41001/last.pt b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E02_main_reesnet_D_base_s41001/last.pt
new file mode 100644
index 0000000000000000000000000000000000000000..1b1ffd77157a7d2bf1df8da9caa52f548b4f5625
--- /dev/null
+++ b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E02_main_reesnet_D_base_s41001/last.pt
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:a60b2a0433045f85bc161f910c732a4f5d0f79fc10264aaa427d6a4adf1ca14e
+size 2833007
diff --git a/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E02_main_reesnet_D_base_s41001/spec.json b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E02_main_reesnet_D_base_s41001/spec.json
new file mode 100644
index 0000000000000000000000000000000000000000..42426ec42600fbc6e83d99a9a1bfd17bb248603a
--- /dev/null
+++ b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/runs/E02_main_reesnet_D_base_s41001/spec.json
@@ -0,0 +1,17 @@
+{
+ "job": {
+ "experiment": "E02",
+ "arch": "reesnet",
+ "arm": "D",
+ "seed": 41001,
+ "recipe": "main",
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "id": "E02_main_reesnet_D_base_s41001"
+ },
+ "lr": 0.001,
+ "epochs": 1,
+ "limit": 12
+}
diff --git a/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/selected_lr.json b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/selected_lr.json
new file mode 100644
index 0000000000000000000000000000000000000000..002cc14f7d9d5b53c40012bde061fd2274ff52c4
--- /dev/null
+++ b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/selected_lr.json
@@ -0,0 +1,9 @@
+{
+ "compact": 0.001,
+ "wide": 0.001,
+ "cnn16": 0.001,
+ "reesnet": 0.001,
+ "channelformer": 0.001,
+ "fortitran": 0.001,
+ "helena": 0.001
+}
diff --git a/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/study.json b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/study.json
new file mode 100644
index 0000000000000000000000000000000000000000..04f16c3b23561122923a65310e534bc624614973
--- /dev/null
+++ b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/study.json
@@ -0,0 +1,95 @@
+{
+ "protocol": "2.1/A01",
+ "implementation": "3.0.0",
+ "smoke_only": true,
+ "source_hashes": {
+ "__init__.py": "0403ceb3be6d13f6d7c1a22f1a2585d5ff2a51a5f5a5b8763b8da8194c87a1d3",
+ "auxiliary_reporting.py": "debc71e5e12e1054c5b6efb1df692948d6ced765aec0785d13b49f16c487a679",
+ "backup.py": "b5f7ac86fecc2fa595c39eea226137cef283346454b65ffec8538e6a6ef2ebd6",
+ "classical.py": "4d46573b7e8f34080880b4810f0e2832a2638b34a1186bc8350889b1417a6ac3",
+ "cli.py": "de3cfc5def95b16d9089fe49d97830bccc91bf7cd97ac1185ea3a81145af9e1f",
+ "complexity.py": "8de6f8a033d6336b3f6326fe4ad4b066a3772aa7bf35184bfc888d6d71715365",
+ "config.py": "43ca1e02eb3223ee89f8ed8c8beaa5b0c23caaede6e033a1885c38d53e02a20f",
+ "data.py": "d8764abe9abd20f9032f5d8db853769818d9421e2aec2952604ce9885e5478d2",
+ "diagnostics.py": "672d0bb016e8886247220b3fef3e33797355762e1348f97f26c9fb1001637160",
+ "evaluation.py": "23a60cd245ee7ad38408f71af1b79d37c1e8aa1914842ea668f8e051137170dd",
+ "experiments.py": "f24dffcdbb5d0c6f2a4028e8986f73bbea6c6a11734382ad4a83108be325c7b7",
+ "fidelity.py": "dded5443b3bc4daf226029a6a7e0b78f552baee61742880ba8cf2e21c76e016d",
+ "interventions.py": "15e350d903afa56f5dd3757b87fa8060a6554d92c02db3e7995d9d60ea55a9a0",
+ "io.py": "565712d802992766660bc1cddb36329b7cd16d4246c926165626be0abc1b439b",
+ "metrics.py": "d395ed82b0963e6a1d329b70e5a6c3037dc35ad1f561740f288751224f74cf2d",
+ "reporting.py": "0548cdf5e07c1c328002a8c1ca93a99951328470941bf422950f5074af6093ed",
+ "training.py": "b820d6753e2acb3ef064a43952db6d0606f9baa384066c9b4be3d8bebe620ec2",
+ "validation.py": "9a45069a380e9b18253d3721b6998941496771b1cb62c8559861b25ecc5d45b5",
+ "physics.py": "be98bf7dc78fd6819199e0f6514a395bd9435f6a231df54a2b6f34d3731fb336",
+ "receiver.py": "fc2e96d134c3cd72215027ee513cc62944870275b9278beb3da0adb8bb7a85c9",
+ "devices.py": "c53262df39385047d65f8fb8b3462e31f4dea6ad5213f78ba96f3399108e760f",
+ "models/__init__.py": "2734808475138dd8664c29b17f3495e020810e1c4f8b61f4906e823786e5eab0",
+ "models/base.py": "711a4ba831f92c48174f4eb6e16959f7cb487c5bd9d9cd7b3662c1dd3c0d4e9c",
+ "models/channelformer.py": "8fc70ea79fed4bdf5729bff648c68b010c3633244f7da16546c8bfdbeff81e77",
+ "models/compact.py": "5a0fb926b423af7192edb786f7c1b41c97372925e89525e91bef86ed258e9802",
+ "models/deterministic.py": "4ee252c2de338142e64f3619f5a3bde8e85502190ec26fcc9c69c72f654f19de",
+ "models/fortitran.py": "e0faa9ae0996ad288d515e40a77c92a66c3ec34649483527e0e83f0e7f65f892",
+ "models/helena.py": "a041355b38cd54e20010539b931245a79c0ce48e2e9603e95e9e78ed63326da8",
+ "models/hybrid_cnn_lstm.py": "475d44d58b4e3db6a0807c1746e75d3e8bb4bd9df4a85d10deb562ccb1c8e4dc",
+ "models/reesnet.py": "61f9c0aece4029fc0f82ba9f1f2f89d03e5f1d2c65fb383110c074b58f854712"
+ },
+ "protocol_hashes": {
+ "PACE_Phase1_References.bib": "87cd065dffa6cc846bc60fa8e8632c1f9b07749570dca6115281121b95e8c252",
+ "PACE_Phase2_1_Backbone_Assessment.md": "bdf5de52f1a42664be34794f162aeb9028eb94eb15f0a1171b81a8c6132e50f7",
+ "PACE_Phase2_1_Backbone_Lock.json": "1f8763771ff4aa5b1c6d8f15f8841b758c2bafd675dd7c707471b21b2cc0109c",
+ "PACE_Phase2_Experimental_Protocol.md": "b754df9fad1d2967aea20741926caaba0a99df248a9e0414d8ab345a06de6e72",
+ "PACE_Phase2_Protocol_Config.json": "f238850ca3d81b076f182f7737542df9147005abf6ec2e410f65f0b2091d912e",
+ "PACE_Phase2_Source_Lock.json": "47d108147d890c358de178ec5c312a7a9a5b084e55caef16aec31abb5238a865"
+ },
+ "vendor_hashes": {
+ "channelformer/LICENSE": "8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643",
+ "channelformer/SOURCE.json": "95f3602014c928c890023ee8d5bebabb964f224a74e4835d1ceca1f15825a86c",
+ "fortitran/LICENSE": "35cec147461b242377d5175ba3c63fedfbdb5f3a0055e3f39476f2ee969c1ea6",
+ "fortitran/SOURCE.json": "f2bda46b9630d690ae2410542aaaac76df9e9b5fb103a5dc0c4f3e865d1b1e9e",
+ "fortitran/src/__init__.py": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
+ "fortitran/src/evaluate.py": "d1309a912344896df81d9dd366c3047e0f376eebbb3c23326e83ef1c7711b3f5",
+ "fortitran/src/train.py": "13e6857fdf684014cdee73d94cbb773441dcbca2f623c22c145b4c6c38c869c6",
+ "fortitran/src/utils.py": "22157f9ea28d98d07fab9d6aad02a27639b2d32df7a2d863b1672f32792e8e49",
+ "fortitran/src/config/__init__.py": "0c22ab8b739c3e71b03f9c64adfd5da59144184cbc2209f678ae8ef72b58fb64",
+ "fortitran/src/config/config_loader.py": "9a29980b4ee2ff7c1f6268b81a1122062ee4ec401cca6053db92b5574732e47b",
+ "fortitran/src/config/schemas.py": "5fbc328a1ba8a4471f04c2f6b478062df2396f6ef92bb9ac4aae1a8276b2f950",
+ "fortitran/src/data/__init__.py": "d9c175ca8b71c43a64de63106145fe5c06eaf1bb69afd039d7977e21034cdac1",
+ "fortitran/src/data/dataset.py": "e274b798217a4e492e62caf64165aab7550d0088f0565e6fd33944b4935ef292",
+ "fortitran/src/main/__init__.py": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
+ "fortitran/src/main/parser.py": "3fb75a875ec1634fede9e91875653f28c562d775b8c6ac81ccd94e794fc1d768",
+ "fortitran/src/main/trainer.py": "a673cf0cf9a5a31ab6ce0c6c279ae7e8f4717bc451580b125b2d705dc3d9a84f",
+ "fortitran/src/models/__init__.py": "3ca822c63cf1301315d9cbce3f623926ee45823bf9a9f97ea9e6c813bcab71cd",
+ "fortitran/src/models/adafortitran.py": "e0b39460eef6a89b3698d195934e89f3b496c9713302a811fa8bb8a2cfe11a25",
+ "fortitran/src/models/fortitran.py": "4ba036715ec780712512dce0b3967e0e5a414bf1130286d4bcb3715cdb2eb5b4",
+ "fortitran/src/models/linear.py": "4edeada31590a0a9c816a1a2931281bc8808626278628329281cc1761670f880",
+ "fortitran/src/models/blocks/__init__.py": "c8dac935e2b368235d4d63fc3dbc0c4515f1b8cf1d9dedd313eddf9a775ebb22",
+ "fortitran/src/models/blocks/channel_adaptivity.py": "a9fd1e396b2218e3bd0ea8a6b42cb5d630b197eb2d5790a767c9629172e4559e",
+ "fortitran/src/models/blocks/encoders.py": "1712359450cedab9bfcb7cffaf5adb6e453839943c1a364727374fa363db878e",
+ "fortitran/src/models/blocks/enhancers.py": "821da89b8bd12ef392750b3b2c0f01622b73d8b28eabe7b203bf8c39a34d377a",
+ "fortitran/src/models/blocks/patch_processors.py": "8ca0cb8f2a0898f1cab8cb0e2b57ef90dc8b1d5e4ba1746d068a1f1d3307d6bb",
+ "fortitran/src/models/blocks/positional_encodings.py": "c77cda49254614239ec275d08d90a109678bc45b29fbf46514d10603256c0852",
+ "helena/LICENSE": "6b471b03549f0c3cea1be431f11d7960e0fc22069552d89c72a7ec9cd7d6d875",
+ "helena/SOURCE.json": "afca50e6594e10f22a842dbe9b8f51b8dc1acd036bf6e3e0b9f2230b5308fd5c",
+ "helena/dense_stress_fixture.npz": "6f1ce1308168c310a34c3bc1138f3f431067dd74fd4e4644451f513a1b775ca3",
+ "helena/model.keras": "7f432fd3a8521eaf0f5d5d894e39547f3712de8c0d72404b5b86456d4dda4408",
+ "helena/native_fixture.npz": "4c62921b12295bcae76b6247c952587bf7f23690222d0c80560c18b2d0550b58",
+ "sionna/LICENSE": "78d4571703b4ae47d96f32d678896a76749fbf0799db83c177f40be1c721375e"
+ },
+ "environment": {
+ "python": "3.11.11 (main, Mar 17 2025, 21:02:09) [Clang 20.1.0 ]",
+ "platform": "Linux-4.19.0-gvisor-x86_64-with-glibc2.41",
+ "versions": {
+ "torch": "2.9.1+cu128",
+ "sionna": "2.0.1",
+ "numpy": "2.2.6",
+ "scipy": "1.15.3",
+ "h5py": "3.15.1",
+ "matplotlib": "3.10.8",
+ "marimo": null
+ },
+ "cuda": "12.8",
+ "gpu": "NVIDIA RTX PRO 6000 Blackwell Server Edition",
+ "driver": "595.71.05"
+ }
+}
diff --git a/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/test_freeze.json b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/test_freeze.json
new file mode 100644
index 0000000000000000000000000000000000000000..a0901118daa9174eed6b84f0eb62d2708165ff40
--- /dev/null
+++ b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/test_freeze.json
@@ -0,0 +1,11 @@
+{
+ "source_selection_sha256": "dd9b899a938645cde088f8adc442ed444e0305965ea1087e2e1447a2bf52b31f",
+ "bank_manifests": {
+ "banks/main/DIAG/TRAIN/source/manifest.json": "92896a164fc321472e4ccf0ed36f457195140c1cb24952682efa93775357d5b3",
+ "banks/main/DIAG/TUNE/source/manifest.json": "aff15a6fc3efc1a4faed42a80c23ff09fcc257bee34191c7640ef2700e986222",
+ "banks/main/DIAG/VAL/source/manifest.json": "1318a44f168e45577379c1aeebbcfc38add8d7de96802b630817360ab05d641b",
+ "banks/main/DIAG/GATE_FIT/source/manifest.json": "c07f898ca308ace742ff848e51584d6c13b525c78dfbf994adc69ad499590cdd",
+ "banks/main/DIAG/GATE_VAL/source/manifest.json": "f00cde13a68e1fe7fabfc177bc840e1bd33bfa8c6dc153ac0e42e9a420887dfe"
+ },
+ "smoke_only": true
+}
diff --git a/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/tuning_jobs.json b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/tuning_jobs.json
new file mode 100644
index 0000000000000000000000000000000000000000..4f9bfdbd3553645ad787d1c41edf35bf1ae62da4
--- /dev/null
+++ b/pace_revision_2/outputs/pace21_cuda_device_fix_smoke/tuning_jobs.json
@@ -0,0 +1,1289 @@
+[
+ {
+ "id": "TUNE_compact_D_0.0003_s31001",
+ "experiment": "TUNE",
+ "recipe": "main",
+ "arch": "compact",
+ "arm": "D",
+ "seed": 31001,
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "lr": 0.0003
+ },
+ {
+ "id": "TUNE_compact_D_0.0003_s31002",
+ "experiment": "TUNE",
+ "recipe": "main",
+ "arch": "compact",
+ "arm": "D",
+ "seed": 31002,
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "lr": 0.0003
+ },
+ {
+ "id": "TUNE_compact_D_0.0003_s31003",
+ "experiment": "TUNE",
+ "recipe": "main",
+ "arch": "compact",
+ "arm": "D",
+ "seed": 31003,
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "lr": 0.0003
+ },
+ {
+ "id": "TUNE_compact_A-raw_0.0003_s31001",
+ "experiment": "TUNE",
+ "recipe": "main",
+ "arch": "compact",
+ "arm": "A-raw",
+ "seed": 31001,
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "lr": 0.0003
+ },
+ {
+ "id": "TUNE_compact_A-raw_0.0003_s31002",
+ "experiment": "TUNE",
+ "recipe": "main",
+ "arch": "compact",
+ "arm": "A-raw",
+ "seed": 31002,
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "lr": 0.0003
+ },
+ {
+ "id": "TUNE_compact_A-raw_0.0003_s31003",
+ "experiment": "TUNE",
+ "recipe": "main",
+ "arch": "compact",
+ "arm": "A-raw",
+ "seed": 31003,
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "lr": 0.0003
+ },
+ {
+ "id": "TUNE_compact_A-res_0.0003_s31001",
+ "experiment": "TUNE",
+ "recipe": "main",
+ "arch": "compact",
+ "arm": "A-res",
+ "seed": 31001,
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "lr": 0.0003
+ },
+ {
+ "id": "TUNE_compact_A-res_0.0003_s31002",
+ "experiment": "TUNE",
+ "recipe": "main",
+ "arch": "compact",
+ "arm": "A-res",
+ "seed": 31002,
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "lr": 0.0003
+ },
+ {
+ "id": "TUNE_compact_A-res_0.0003_s31003",
+ "experiment": "TUNE",
+ "recipe": "main",
+ "arch": "compact",
+ "arm": "A-res",
+ "seed": 31003,
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "lr": 0.0003
+ },
+ {
+ "id": "TUNE_compact_D_0.001_s31001",
+ "experiment": "TUNE",
+ "recipe": "main",
+ "arch": "compact",
+ "arm": "D",
+ "seed": 31001,
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "lr": 0.001
+ },
+ {
+ "id": "TUNE_compact_D_0.001_s31002",
+ "experiment": "TUNE",
+ "recipe": "main",
+ "arch": "compact",
+ "arm": "D",
+ "seed": 31002,
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "lr": 0.001
+ },
+ {
+ "id": "TUNE_compact_D_0.001_s31003",
+ "experiment": "TUNE",
+ "recipe": "main",
+ "arch": "compact",
+ "arm": "D",
+ "seed": 31003,
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "lr": 0.001
+ },
+ {
+ "id": "TUNE_compact_A-raw_0.001_s31001",
+ "experiment": "TUNE",
+ "recipe": "main",
+ "arch": "compact",
+ "arm": "A-raw",
+ "seed": 31001,
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "lr": 0.001
+ },
+ {
+ "id": "TUNE_compact_A-raw_0.001_s31002",
+ "experiment": "TUNE",
+ "recipe": "main",
+ "arch": "compact",
+ "arm": "A-raw",
+ "seed": 31002,
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "lr": 0.001
+ },
+ {
+ "id": "TUNE_compact_A-raw_0.001_s31003",
+ "experiment": "TUNE",
+ "recipe": "main",
+ "arch": "compact",
+ "arm": "A-raw",
+ "seed": 31003,
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "lr": 0.001
+ },
+ {
+ "id": "TUNE_compact_A-res_0.001_s31001",
+ "experiment": "TUNE",
+ "recipe": "main",
+ "arch": "compact",
+ "arm": "A-res",
+ "seed": 31001,
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "lr": 0.001
+ },
+ {
+ "id": "TUNE_compact_A-res_0.001_s31002",
+ "experiment": "TUNE",
+ "recipe": "main",
+ "arch": "compact",
+ "arm": "A-res",
+ "seed": 31002,
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "lr": 0.001
+ },
+ {
+ "id": "TUNE_compact_A-res_0.001_s31003",
+ "experiment": "TUNE",
+ "recipe": "main",
+ "arch": "compact",
+ "arm": "A-res",
+ "seed": 31003,
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "lr": 0.001
+ },
+ {
+ "id": "TUNE_compact_D_0.003_s31001",
+ "experiment": "TUNE",
+ "recipe": "main",
+ "arch": "compact",
+ "arm": "D",
+ "seed": 31001,
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "lr": 0.003
+ },
+ {
+ "id": "TUNE_compact_D_0.003_s31002",
+ "experiment": "TUNE",
+ "recipe": "main",
+ "arch": "compact",
+ "arm": "D",
+ "seed": 31002,
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "lr": 0.003
+ },
+ {
+ "id": "TUNE_compact_D_0.003_s31003",
+ "experiment": "TUNE",
+ "recipe": "main",
+ "arch": "compact",
+ "arm": "D",
+ "seed": 31003,
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "lr": 0.003
+ },
+ {
+ "id": "TUNE_compact_A-raw_0.003_s31001",
+ "experiment": "TUNE",
+ "recipe": "main",
+ "arch": "compact",
+ "arm": "A-raw",
+ "seed": 31001,
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "lr": 0.003
+ },
+ {
+ "id": "TUNE_compact_A-raw_0.003_s31002",
+ "experiment": "TUNE",
+ "recipe": "main",
+ "arch": "compact",
+ "arm": "A-raw",
+ "seed": 31002,
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "lr": 0.003
+ },
+ {
+ "id": "TUNE_compact_A-raw_0.003_s31003",
+ "experiment": "TUNE",
+ "recipe": "main",
+ "arch": "compact",
+ "arm": "A-raw",
+ "seed": 31003,
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "lr": 0.003
+ },
+ {
+ "id": "TUNE_compact_A-res_0.003_s31001",
+ "experiment": "TUNE",
+ "recipe": "main",
+ "arch": "compact",
+ "arm": "A-res",
+ "seed": 31001,
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "lr": 0.003
+ },
+ {
+ "id": "TUNE_compact_A-res_0.003_s31002",
+ "experiment": "TUNE",
+ "recipe": "main",
+ "arch": "compact",
+ "arm": "A-res",
+ "seed": 31002,
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "lr": 0.003
+ },
+ {
+ "id": "TUNE_compact_A-res_0.003_s31003",
+ "experiment": "TUNE",
+ "recipe": "main",
+ "arch": "compact",
+ "arm": "A-res",
+ "seed": 31003,
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "lr": 0.003
+ },
+ {
+ "id": "TUNE_cnn16_D_0.0003_s31001",
+ "experiment": "TUNE",
+ "recipe": "main",
+ "arch": "cnn16",
+ "arm": "D",
+ "seed": 31001,
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "lr": 0.0003
+ },
+ {
+ "id": "TUNE_cnn16_D_0.0003_s31002",
+ "experiment": "TUNE",
+ "recipe": "main",
+ "arch": "cnn16",
+ "arm": "D",
+ "seed": 31002,
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "lr": 0.0003
+ },
+ {
+ "id": "TUNE_cnn16_D_0.0003_s31003",
+ "experiment": "TUNE",
+ "recipe": "main",
+ "arch": "cnn16",
+ "arm": "D",
+ "seed": 31003,
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "lr": 0.0003
+ },
+ {
+ "id": "TUNE_cnn16_A-res_0.0003_s31001",
+ "experiment": "TUNE",
+ "recipe": "main",
+ "arch": "cnn16",
+ "arm": "A-res",
+ "seed": 31001,
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "lr": 0.0003
+ },
+ {
+ "id": "TUNE_cnn16_A-res_0.0003_s31002",
+ "experiment": "TUNE",
+ "recipe": "main",
+ "arch": "cnn16",
+ "arm": "A-res",
+ "seed": 31002,
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "lr": 0.0003
+ },
+ {
+ "id": "TUNE_cnn16_A-res_0.0003_s31003",
+ "experiment": "TUNE",
+ "recipe": "main",
+ "arch": "cnn16",
+ "arm": "A-res",
+ "seed": 31003,
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "lr": 0.0003
+ },
+ {
+ "id": "TUNE_cnn16_D_0.001_s31001",
+ "experiment": "TUNE",
+ "recipe": "main",
+ "arch": "cnn16",
+ "arm": "D",
+ "seed": 31001,
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "lr": 0.001
+ },
+ {
+ "id": "TUNE_cnn16_D_0.001_s31002",
+ "experiment": "TUNE",
+ "recipe": "main",
+ "arch": "cnn16",
+ "arm": "D",
+ "seed": 31002,
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "lr": 0.001
+ },
+ {
+ "id": "TUNE_cnn16_D_0.001_s31003",
+ "experiment": "TUNE",
+ "recipe": "main",
+ "arch": "cnn16",
+ "arm": "D",
+ "seed": 31003,
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "lr": 0.001
+ },
+ {
+ "id": "TUNE_cnn16_A-res_0.001_s31001",
+ "experiment": "TUNE",
+ "recipe": "main",
+ "arch": "cnn16",
+ "arm": "A-res",
+ "seed": 31001,
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "lr": 0.001
+ },
+ {
+ "id": "TUNE_cnn16_A-res_0.001_s31002",
+ "experiment": "TUNE",
+ "recipe": "main",
+ "arch": "cnn16",
+ "arm": "A-res",
+ "seed": 31002,
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "lr": 0.001
+ },
+ {
+ "id": "TUNE_cnn16_A-res_0.001_s31003",
+ "experiment": "TUNE",
+ "recipe": "main",
+ "arch": "cnn16",
+ "arm": "A-res",
+ "seed": 31003,
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "lr": 0.001
+ },
+ {
+ "id": "TUNE_cnn16_D_0.003_s31001",
+ "experiment": "TUNE",
+ "recipe": "main",
+ "arch": "cnn16",
+ "arm": "D",
+ "seed": 31001,
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "lr": 0.003
+ },
+ {
+ "id": "TUNE_cnn16_D_0.003_s31002",
+ "experiment": "TUNE",
+ "recipe": "main",
+ "arch": "cnn16",
+ "arm": "D",
+ "seed": 31002,
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "lr": 0.003
+ },
+ {
+ "id": "TUNE_cnn16_D_0.003_s31003",
+ "experiment": "TUNE",
+ "recipe": "main",
+ "arch": "cnn16",
+ "arm": "D",
+ "seed": 31003,
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "lr": 0.003
+ },
+ {
+ "id": "TUNE_cnn16_A-res_0.003_s31001",
+ "experiment": "TUNE",
+ "recipe": "main",
+ "arch": "cnn16",
+ "arm": "A-res",
+ "seed": 31001,
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "lr": 0.003
+ },
+ {
+ "id": "TUNE_cnn16_A-res_0.003_s31002",
+ "experiment": "TUNE",
+ "recipe": "main",
+ "arch": "cnn16",
+ "arm": "A-res",
+ "seed": 31002,
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "lr": 0.003
+ },
+ {
+ "id": "TUNE_cnn16_A-res_0.003_s31003",
+ "experiment": "TUNE",
+ "recipe": "main",
+ "arch": "cnn16",
+ "arm": "A-res",
+ "seed": 31003,
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "lr": 0.003
+ },
+ {
+ "id": "TUNE_wide_D_0.0003_s31001",
+ "experiment": "TUNE",
+ "recipe": "main",
+ "arch": "wide",
+ "arm": "D",
+ "seed": 31001,
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "lr": 0.0003
+ },
+ {
+ "id": "TUNE_wide_D_0.0003_s31002",
+ "experiment": "TUNE",
+ "recipe": "main",
+ "arch": "wide",
+ "arm": "D",
+ "seed": 31002,
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "lr": 0.0003
+ },
+ {
+ "id": "TUNE_wide_D_0.0003_s31003",
+ "experiment": "TUNE",
+ "recipe": "main",
+ "arch": "wide",
+ "arm": "D",
+ "seed": 31003,
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "lr": 0.0003
+ },
+ {
+ "id": "TUNE_wide_A-res_0.0003_s31001",
+ "experiment": "TUNE",
+ "recipe": "main",
+ "arch": "wide",
+ "arm": "A-res",
+ "seed": 31001,
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "lr": 0.0003
+ },
+ {
+ "id": "TUNE_wide_A-res_0.0003_s31002",
+ "experiment": "TUNE",
+ "recipe": "main",
+ "arch": "wide",
+ "arm": "A-res",
+ "seed": 31002,
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "lr": 0.0003
+ },
+ {
+ "id": "TUNE_wide_A-res_0.0003_s31003",
+ "experiment": "TUNE",
+ "recipe": "main",
+ "arch": "wide",
+ "arm": "A-res",
+ "seed": 31003,
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "lr": 0.0003
+ },
+ {
+ "id": "TUNE_wide_D_0.001_s31001",
+ "experiment": "TUNE",
+ "recipe": "main",
+ "arch": "wide",
+ "arm": "D",
+ "seed": 31001,
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "lr": 0.001
+ },
+ {
+ "id": "TUNE_wide_D_0.001_s31002",
+ "experiment": "TUNE",
+ "recipe": "main",
+ "arch": "wide",
+ "arm": "D",
+ "seed": 31002,
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "lr": 0.001
+ },
+ {
+ "id": "TUNE_wide_D_0.001_s31003",
+ "experiment": "TUNE",
+ "recipe": "main",
+ "arch": "wide",
+ "arm": "D",
+ "seed": 31003,
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "lr": 0.001
+ },
+ {
+ "id": "TUNE_wide_A-res_0.001_s31001",
+ "experiment": "TUNE",
+ "recipe": "main",
+ "arch": "wide",
+ "arm": "A-res",
+ "seed": 31001,
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "lr": 0.001
+ },
+ {
+ "id": "TUNE_wide_A-res_0.001_s31002",
+ "experiment": "TUNE",
+ "recipe": "main",
+ "arch": "wide",
+ "arm": "A-res",
+ "seed": 31002,
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "lr": 0.001
+ },
+ {
+ "id": "TUNE_wide_A-res_0.001_s31003",
+ "experiment": "TUNE",
+ "recipe": "main",
+ "arch": "wide",
+ "arm": "A-res",
+ "seed": 31003,
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "lr": 0.001
+ },
+ {
+ "id": "TUNE_wide_D_0.003_s31001",
+ "experiment": "TUNE",
+ "recipe": "main",
+ "arch": "wide",
+ "arm": "D",
+ "seed": 31001,
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "lr": 0.003
+ },
+ {
+ "id": "TUNE_wide_D_0.003_s31002",
+ "experiment": "TUNE",
+ "recipe": "main",
+ "arch": "wide",
+ "arm": "D",
+ "seed": 31002,
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "lr": 0.003
+ },
+ {
+ "id": "TUNE_wide_D_0.003_s31003",
+ "experiment": "TUNE",
+ "recipe": "main",
+ "arch": "wide",
+ "arm": "D",
+ "seed": 31003,
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "lr": 0.003
+ },
+ {
+ "id": "TUNE_wide_A-res_0.003_s31001",
+ "experiment": "TUNE",
+ "recipe": "main",
+ "arch": "wide",
+ "arm": "A-res",
+ "seed": 31001,
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "lr": 0.003
+ },
+ {
+ "id": "TUNE_wide_A-res_0.003_s31002",
+ "experiment": "TUNE",
+ "recipe": "main",
+ "arch": "wide",
+ "arm": "A-res",
+ "seed": 31002,
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "lr": 0.003
+ },
+ {
+ "id": "TUNE_wide_A-res_0.003_s31003",
+ "experiment": "TUNE",
+ "recipe": "main",
+ "arch": "wide",
+ "arm": "A-res",
+ "seed": 31003,
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "lr": 0.003
+ },
+ {
+ "id": "TUNE_reesnet_D_0.0003_s31001",
+ "experiment": "TUNE",
+ "recipe": "main",
+ "arch": "reesnet",
+ "arm": "D",
+ "seed": 31001,
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "lr": 0.0003
+ },
+ {
+ "id": "TUNE_reesnet_D_0.0003_s31002",
+ "experiment": "TUNE",
+ "recipe": "main",
+ "arch": "reesnet",
+ "arm": "D",
+ "seed": 31002,
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "lr": 0.0003
+ },
+ {
+ "id": "TUNE_reesnet_D_0.0003_s31003",
+ "experiment": "TUNE",
+ "recipe": "main",
+ "arch": "reesnet",
+ "arm": "D",
+ "seed": 31003,
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "lr": 0.0003
+ },
+ {
+ "id": "TUNE_reesnet_D_0.001_s31001",
+ "experiment": "TUNE",
+ "recipe": "main",
+ "arch": "reesnet",
+ "arm": "D",
+ "seed": 31001,
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "lr": 0.001
+ },
+ {
+ "id": "TUNE_reesnet_D_0.001_s31002",
+ "experiment": "TUNE",
+ "recipe": "main",
+ "arch": "reesnet",
+ "arm": "D",
+ "seed": 31002,
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "lr": 0.001
+ },
+ {
+ "id": "TUNE_reesnet_D_0.001_s31003",
+ "experiment": "TUNE",
+ "recipe": "main",
+ "arch": "reesnet",
+ "arm": "D",
+ "seed": 31003,
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "lr": 0.001
+ },
+ {
+ "id": "TUNE_reesnet_D_0.003_s31001",
+ "experiment": "TUNE",
+ "recipe": "main",
+ "arch": "reesnet",
+ "arm": "D",
+ "seed": 31001,
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "lr": 0.003
+ },
+ {
+ "id": "TUNE_reesnet_D_0.003_s31002",
+ "experiment": "TUNE",
+ "recipe": "main",
+ "arch": "reesnet",
+ "arm": "D",
+ "seed": 31002,
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "lr": 0.003
+ },
+ {
+ "id": "TUNE_reesnet_D_0.003_s31003",
+ "experiment": "TUNE",
+ "recipe": "main",
+ "arch": "reesnet",
+ "arm": "D",
+ "seed": 31003,
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "lr": 0.003
+ },
+ {
+ "id": "TUNE_channelformer_D_0.0003_s31001",
+ "experiment": "TUNE",
+ "recipe": "main",
+ "arch": "channelformer",
+ "arm": "D",
+ "seed": 31001,
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "lr": 0.0003
+ },
+ {
+ "id": "TUNE_channelformer_D_0.0003_s31002",
+ "experiment": "TUNE",
+ "recipe": "main",
+ "arch": "channelformer",
+ "arm": "D",
+ "seed": 31002,
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "lr": 0.0003
+ },
+ {
+ "id": "TUNE_channelformer_D_0.0003_s31003",
+ "experiment": "TUNE",
+ "recipe": "main",
+ "arch": "channelformer",
+ "arm": "D",
+ "seed": 31003,
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "lr": 0.0003
+ },
+ {
+ "id": "TUNE_channelformer_D_0.001_s31001",
+ "experiment": "TUNE",
+ "recipe": "main",
+ "arch": "channelformer",
+ "arm": "D",
+ "seed": 31001,
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "lr": 0.001
+ },
+ {
+ "id": "TUNE_channelformer_D_0.001_s31002",
+ "experiment": "TUNE",
+ "recipe": "main",
+ "arch": "channelformer",
+ "arm": "D",
+ "seed": 31002,
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "lr": 0.001
+ },
+ {
+ "id": "TUNE_channelformer_D_0.001_s31003",
+ "experiment": "TUNE",
+ "recipe": "main",
+ "arch": "channelformer",
+ "arm": "D",
+ "seed": 31003,
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "lr": 0.001
+ },
+ {
+ "id": "TUNE_channelformer_D_0.003_s31001",
+ "experiment": "TUNE",
+ "recipe": "main",
+ "arch": "channelformer",
+ "arm": "D",
+ "seed": 31001,
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "lr": 0.003
+ },
+ {
+ "id": "TUNE_channelformer_D_0.003_s31002",
+ "experiment": "TUNE",
+ "recipe": "main",
+ "arch": "channelformer",
+ "arm": "D",
+ "seed": 31002,
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "lr": 0.003
+ },
+ {
+ "id": "TUNE_channelformer_D_0.003_s31003",
+ "experiment": "TUNE",
+ "recipe": "main",
+ "arch": "channelformer",
+ "arm": "D",
+ "seed": 31003,
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "lr": 0.003
+ },
+ {
+ "id": "TUNE_fortitran_D_0.0003_s31001",
+ "experiment": "TUNE",
+ "recipe": "main",
+ "arch": "fortitran",
+ "arm": "D",
+ "seed": 31001,
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "lr": 0.0003
+ },
+ {
+ "id": "TUNE_fortitran_D_0.0003_s31002",
+ "experiment": "TUNE",
+ "recipe": "main",
+ "arch": "fortitran",
+ "arm": "D",
+ "seed": 31002,
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "lr": 0.0003
+ },
+ {
+ "id": "TUNE_fortitran_D_0.0003_s31003",
+ "experiment": "TUNE",
+ "recipe": "main",
+ "arch": "fortitran",
+ "arm": "D",
+ "seed": 31003,
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "lr": 0.0003
+ },
+ {
+ "id": "TUNE_fortitran_D_0.001_s31001",
+ "experiment": "TUNE",
+ "recipe": "main",
+ "arch": "fortitran",
+ "arm": "D",
+ "seed": 31001,
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "lr": 0.001
+ },
+ {
+ "id": "TUNE_fortitran_D_0.001_s31002",
+ "experiment": "TUNE",
+ "recipe": "main",
+ "arch": "fortitran",
+ "arm": "D",
+ "seed": 31002,
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "lr": 0.001
+ },
+ {
+ "id": "TUNE_fortitran_D_0.001_s31003",
+ "experiment": "TUNE",
+ "recipe": "main",
+ "arch": "fortitran",
+ "arm": "D",
+ "seed": 31003,
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "lr": 0.001
+ },
+ {
+ "id": "TUNE_fortitran_D_0.003_s31001",
+ "experiment": "TUNE",
+ "recipe": "main",
+ "arch": "fortitran",
+ "arm": "D",
+ "seed": 31001,
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "lr": 0.003
+ },
+ {
+ "id": "TUNE_fortitran_D_0.003_s31002",
+ "experiment": "TUNE",
+ "recipe": "main",
+ "arch": "fortitran",
+ "arm": "D",
+ "seed": 31002,
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "lr": 0.003
+ },
+ {
+ "id": "TUNE_fortitran_D_0.003_s31003",
+ "experiment": "TUNE",
+ "recipe": "main",
+ "arch": "fortitran",
+ "arm": "D",
+ "seed": 31003,
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "lr": 0.003
+ },
+ {
+ "id": "TUNE_helena_D_0.0003_s31001",
+ "experiment": "TUNE",
+ "recipe": "main",
+ "arch": "helena",
+ "arm": "D",
+ "seed": 31001,
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "lr": 0.0003
+ },
+ {
+ "id": "TUNE_helena_D_0.0003_s31002",
+ "experiment": "TUNE",
+ "recipe": "main",
+ "arch": "helena",
+ "arm": "D",
+ "seed": 31002,
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "lr": 0.0003
+ },
+ {
+ "id": "TUNE_helena_D_0.0003_s31003",
+ "experiment": "TUNE",
+ "recipe": "main",
+ "arch": "helena",
+ "arm": "D",
+ "seed": 31003,
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "lr": 0.0003
+ },
+ {
+ "id": "TUNE_helena_D_0.001_s31001",
+ "experiment": "TUNE",
+ "recipe": "main",
+ "arch": "helena",
+ "arm": "D",
+ "seed": 31001,
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "lr": 0.001
+ },
+ {
+ "id": "TUNE_helena_D_0.001_s31002",
+ "experiment": "TUNE",
+ "recipe": "main",
+ "arch": "helena",
+ "arm": "D",
+ "seed": 31002,
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "lr": 0.001
+ },
+ {
+ "id": "TUNE_helena_D_0.001_s31003",
+ "experiment": "TUNE",
+ "recipe": "main",
+ "arch": "helena",
+ "arm": "D",
+ "seed": 31003,
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "lr": 0.001
+ },
+ {
+ "id": "TUNE_helena_D_0.003_s31001",
+ "experiment": "TUNE",
+ "recipe": "main",
+ "arch": "helena",
+ "arm": "D",
+ "seed": 31001,
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "lr": 0.003
+ },
+ {
+ "id": "TUNE_helena_D_0.003_s31002",
+ "experiment": "TUNE",
+ "recipe": "main",
+ "arch": "helena",
+ "arm": "D",
+ "seed": 31002,
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "lr": 0.003
+ },
+ {
+ "id": "TUNE_helena_D_0.003_s31003",
+ "experiment": "TUNE",
+ "recipe": "main",
+ "arch": "helena",
+ "arm": "D",
+ "seed": 31003,
+ "anchor": "bem",
+ "info": false,
+ "scaled": false,
+ "labels_extra": false,
+ "lr": 0.003
+ }
+]
diff --git a/pace_revision_2/pace/__init__.py b/pace_revision_2/pace/__init__.py
new file mode 100644
index 0000000000000000000000000000000000000000..ec70dde6630d3cea07eeab0679d63136174dab05
--- /dev/null
+++ b/pace_revision_2/pace/__init__.py
@@ -0,0 +1,2 @@
+"""PACE terrestrial revision, protocol 2.1. No experiments run on import."""
+__version__ = '3.0.0'
diff --git a/pace_revision_2/pace/__pycache__/__init__.cpython-311.pyc b/pace_revision_2/pace/__pycache__/__init__.cpython-311.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..36b885c3b47a8f7b9b0d160ee9a90f16a5c6a20a
Binary files /dev/null and b/pace_revision_2/pace/__pycache__/__init__.cpython-311.pyc differ
diff --git a/pace_revision_2/pace/__pycache__/auxiliary_reporting.cpython-311.pyc b/pace_revision_2/pace/__pycache__/auxiliary_reporting.cpython-311.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..253b3de3589b815afc1560142900361417f99d44
Binary files /dev/null and b/pace_revision_2/pace/__pycache__/auxiliary_reporting.cpython-311.pyc differ
diff --git a/pace_revision_2/pace/__pycache__/classical.cpython-311.pyc b/pace_revision_2/pace/__pycache__/classical.cpython-311.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..fe09544ed45a58262409138fd9c410be4f9d857a
Binary files /dev/null and b/pace_revision_2/pace/__pycache__/classical.cpython-311.pyc differ
diff --git a/pace_revision_2/pace/__pycache__/cli.cpython-311.pyc b/pace_revision_2/pace/__pycache__/cli.cpython-311.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..57497472068d50012ab458b7edddc53fae96608f
Binary files /dev/null and b/pace_revision_2/pace/__pycache__/cli.cpython-311.pyc differ
diff --git a/pace_revision_2/pace/__pycache__/complexity.cpython-311.pyc b/pace_revision_2/pace/__pycache__/complexity.cpython-311.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..a23aec800cb604f4a0f3d1f36cc0b7c65f88549c
Binary files /dev/null and b/pace_revision_2/pace/__pycache__/complexity.cpython-311.pyc differ
diff --git a/pace_revision_2/pace/__pycache__/config.cpython-311.pyc b/pace_revision_2/pace/__pycache__/config.cpython-311.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..c3a2d048c2911903a3e9e6e12ebb10cfd9fa20b6
Binary files /dev/null and b/pace_revision_2/pace/__pycache__/config.cpython-311.pyc differ
diff --git a/pace_revision_2/pace/__pycache__/data.cpython-311.pyc b/pace_revision_2/pace/__pycache__/data.cpython-311.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..ac55affbbade4c9b05e52c0381b5e3c7b955485a
Binary files /dev/null and b/pace_revision_2/pace/__pycache__/data.cpython-311.pyc differ
diff --git a/pace_revision_2/pace/__pycache__/devices.cpython-311.pyc b/pace_revision_2/pace/__pycache__/devices.cpython-311.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..57d38aa6c4d81fa89a04698a4f9ebff045a864e3
Binary files /dev/null and b/pace_revision_2/pace/__pycache__/devices.cpython-311.pyc differ
diff --git a/pace_revision_2/pace/__pycache__/diagnostics.cpython-311.pyc b/pace_revision_2/pace/__pycache__/diagnostics.cpython-311.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..5196fa6e5830cd9406bfd388819f9f8f4cf1a969
Binary files /dev/null and b/pace_revision_2/pace/__pycache__/diagnostics.cpython-311.pyc differ
diff --git a/pace_revision_2/pace/__pycache__/evaluation.cpython-311.pyc b/pace_revision_2/pace/__pycache__/evaluation.cpython-311.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..2112ca8fe7d30ddb4f0388a2e6a27347d82623de
Binary files /dev/null and b/pace_revision_2/pace/__pycache__/evaluation.cpython-311.pyc differ
diff --git a/pace_revision_2/pace/__pycache__/experiments.cpython-311.pyc b/pace_revision_2/pace/__pycache__/experiments.cpython-311.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..3984ac4820db98c1e695f8426a0a8ab930ea65f1
Binary files /dev/null and b/pace_revision_2/pace/__pycache__/experiments.cpython-311.pyc differ
diff --git a/pace_revision_2/pace/__pycache__/fidelity.cpython-311.pyc b/pace_revision_2/pace/__pycache__/fidelity.cpython-311.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..f42724955c62e994b91598e30cbcf801fc2a3e57
Binary files /dev/null and b/pace_revision_2/pace/__pycache__/fidelity.cpython-311.pyc differ
diff --git a/pace_revision_2/pace/__pycache__/interventions.cpython-311.pyc b/pace_revision_2/pace/__pycache__/interventions.cpython-311.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..6a0f99311f1bb9efba093506666e80b486016307
Binary files /dev/null and b/pace_revision_2/pace/__pycache__/interventions.cpython-311.pyc differ
diff --git a/pace_revision_2/pace/__pycache__/io.cpython-311.pyc b/pace_revision_2/pace/__pycache__/io.cpython-311.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..a1db95fe5170a7e8c862baaf0828646f1d4bb5c1
Binary files /dev/null and b/pace_revision_2/pace/__pycache__/io.cpython-311.pyc differ
diff --git a/pace_revision_2/pace/__pycache__/metrics.cpython-311.pyc b/pace_revision_2/pace/__pycache__/metrics.cpython-311.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..d11701b43d434ed2e6adfba196fa4c966daa3250
Binary files /dev/null and b/pace_revision_2/pace/__pycache__/metrics.cpython-311.pyc differ
diff --git a/pace_revision_2/pace/__pycache__/physics.cpython-311.pyc b/pace_revision_2/pace/__pycache__/physics.cpython-311.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..54791c02247a6705ef7aa16ef5eb491c6d231b05
Binary files /dev/null and b/pace_revision_2/pace/__pycache__/physics.cpython-311.pyc differ
diff --git a/pace_revision_2/pace/__pycache__/receiver.cpython-311.pyc b/pace_revision_2/pace/__pycache__/receiver.cpython-311.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..9edef22749e12758baf50188b4b6873754363df6
Binary files /dev/null and b/pace_revision_2/pace/__pycache__/receiver.cpython-311.pyc differ
diff --git a/pace_revision_2/pace/__pycache__/reporting.cpython-311.pyc b/pace_revision_2/pace/__pycache__/reporting.cpython-311.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..5cedb686c458b29b57dffc4fb7f0431729e69dc6
Binary files /dev/null and b/pace_revision_2/pace/__pycache__/reporting.cpython-311.pyc differ
diff --git a/pace_revision_2/pace/__pycache__/training.cpython-311.pyc b/pace_revision_2/pace/__pycache__/training.cpython-311.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..3fd66e06ca9771aea123d719c697f8843e8aa0b8
Binary files /dev/null and b/pace_revision_2/pace/__pycache__/training.cpython-311.pyc differ
diff --git a/pace_revision_2/pace/__pycache__/validation.cpython-311.pyc b/pace_revision_2/pace/__pycache__/validation.cpython-311.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..08af21d1831e1dcb9b3e27c7f73a9b1841f1e232
Binary files /dev/null and b/pace_revision_2/pace/__pycache__/validation.cpython-311.pyc differ
diff --git a/pace_revision_2/pace/auxiliary_reporting.py b/pace_revision_2/pace/auxiliary_reporting.py
new file mode 100644
index 0000000000000000000000000000000000000000..3b873828a7c11aa836378d3544578bb6ce3170e9
--- /dev/null
+++ b/pace_revision_2/pace/auxiliary_reporting.py
@@ -0,0 +1,45 @@
+"""Supplement tables and figures, using only previously saved raw measurements."""
+from pathlib import Path
+import numpy as np
+import pandas as pd
+import matplotlib.pyplot as plt
+from .io import read_json
+from .metrics import paired_summary
+
+def supplemental(root,out,figdir):
+ from .reporting import raw,savefig
+ from .experiments import jobs
+ ledger={j['id']:j for j in jobs()};rows=[]
+ def append(p,**meta):
+ d=raw(p);den=d['denominator'].sum();rows.append(dict(meta,n=len(d['id']),error_sum=d['error'].sum(),denominator_sum=den,nmse_db=10*np.log10(d['error'].sum()/den),projection_fraction=d['projection_outside'].sum()/den,raw_file=str(p.relative_to(root))))
+ for p in (root/'gates').glob('**/summary.json'):
+ s=read_json(p);append(p.with_name('raw.npz'),arc='gates',recipe=s['recipe'],method=s['gate'],seed=s['seed'],snr=s['snr_db'],**s['condition'])
+ for p in (root/'adaptation').glob('*/*/snr*.npz'):
+ j=ledger[p.parent.parent.name];append(p,arc='adaptation',recipe='target',method=f"{j['arm']}_{p.parent.name}_labels",seed=j['seed'],snr=float(p.stem[3:]),profile='C',ds_ns=100,fd=100)
+ for p in (root/'oracles').glob('*/snr*.npz'):
+ append(p,arc='oracle',recipe='main',method=p.parent.name,seed=0,snr=float(p.stem[3:]),profile='C',ds_ns=100,fd=100)
+ for p in (root/'sensitivity').glob('*/*_snr*.npz'):
+ cond,snr=p.stem.split('_snr');profile,ds,fd=cond.split('_');append(p,arc='sensitivity',recipe='main',method=p.parent.name,seed=0,snr=float(snr),profile=profile,ds_ns=float(ds[2:]),fd=float(fd[2:]))
+ frame=pd.DataFrame(rows);frame.to_csv(out/'supplemental_raw_summaries.csv',index=False)
+ if len(frame):
+ keys=['arc','recipe','method','snr','profile','ds_ns','fd'];aggregate=[]
+ for key,v in frame.groupby(keys):
+ aggregate.append(dict(zip(keys,key),pooled_seed_sample_nmse_db=10*np.log10(v.error_sum.sum()/v.denominator_sum.sum()),**{f'seed_db_{k}':x for k,x in paired_summary(v.nmse_db).items()}))
+ agg=pd.DataFrame(aggregate);agg.to_csv(out/'supplemental_intervals.csv',index=False)
+ for (arc,recipe,fd),v in agg[(agg.profile=='C')&(agg.ds_ns==100)&agg.fd.isin([10,100])].groupby(['arc','recipe','fd']):
+ panels=[('',v)] if arc!='sensitivity' else list(v.groupby(v.method.str.split('_').str[0]))
+ for label,group in panels:
+ fig,ax=plt.subplots(figsize=(6,3.7))
+ for method,q in group.groupby('method'):
+ q=q.sort_values('snr');ax.plot(q.snr,q.pooled_seed_sample_nmse_db,'-o',ms=3,label=method)
+ ax.set(xlabel='Transmitted active-RE $E_s/N_0$ (dB)',ylabel='Pooled seed/sample NMSE (dB)',title=f'{arc}: {recipe}, C/100 ns, {fd:g} Hz')
+ ax.legend(loc='upper left',bbox_to_anchor=(1.02,1),fontsize=8);savefig(fig,figdir/f'{arc}_{recipe}_{label}_fd{fd:g}')
+ wave=[]
+ for p in (root/'wave_diagnostics').glob('*.npz'):
+ d=raw(p)
+ for i in range(len(d['id'])):wave.append(dict(fd=float(p.stem[2:]),id=int(d['id'][i]),ici_to_diagonal=d['ici_energy'][i]/d['diagonal_energy'][i],guard_to_diagonal=d['guard_leakage'][i]/d['diagonal_energy'][i],normalized_doppler=float(d['normalized_doppler'][i])))
+ pd.DataFrame(wave).to_csv(out/'waveform_ici_samples.csv',index=False)
+ basis=[]
+ for p in (root/'sensitivity').glob('*/basis.npz'):
+ with np.load(p) as d:basis.append(dict(variant=p.parent.name,singular_min=float(d['singular_values'][-1]),singular_max=float(d['singular_values'][0]),effective_rank=int(d['effective_rank']),condition=float(d['condition']) if 'condition' in d else None))
+ pd.DataFrame(basis).to_csv(out/'bem_sensitivity_conditioning.csv',index=False)
diff --git a/pace_revision_2/pace/backup.py b/pace_revision_2/pace/backup.py
new file mode 100644
index 0000000000000000000000000000000000000000..ed63973fd571bdd72d80c24ab0b69edf5c87e587
--- /dev/null
+++ b/pace_revision_2/pace/backup.py
@@ -0,0 +1,19 @@
+from pathlib import Path
+import fsspec
+from .io import sha,atomic_json
+
+def backup(root,destination):
+ """Explicit user-selected local/remote destination. Credentials resolved by fsspec.
+ No deletion, no secrets in the receipt. Completion marker written last.
+ """
+ root=Path(root);fs,base=fsspec.core.url_to_fs(destination);entries=[]
+ for p in sorted(root.rglob('*')):
+ if not p.is_file() or p.name.endswith('.tmp'):continue
+ rel=p.relative_to(root).as_posix();target=base.rstrip('/')+'/'+rel;fs.makedirs(target.rsplit('/',1)[0],exist_ok=True)
+ with p.open('rb') as src,fs.open(target,'wb') as dst:
+ import shutil
+ shutil.copyfileobj(src,dst,length=8<<20)
+ entries.append({'path':rel,'bytes':p.stat().st_size,'sha256':sha(p)})
+ import json
+ with fs.open(base.rstrip('/')+'/BACKUP_COMPLETE.json','w') as f:json.dump({'files':entries},f,indent=2)
+ print(f'Backed up {len(entries)} files; completion manifest written last.')
diff --git a/pace_revision_2/pace/classical.py b/pace_revision_2/pace/classical.py
new file mode 100644
index 0000000000000000000000000000000000000000..ae02198f8cf30bf04001023aace27ff48f4fde94
--- /dev/null
+++ b/pace_revision_2/pace/classical.py
@@ -0,0 +1,65 @@
+import numpy as np
+from scipy.signal.windows import dpss
+from scipy.linalg import cho_factor,cho_solve
+from .config import Bem
+from .io import atomic_npz
+
+def interpolation(g):
+ eye=np.eye(g.P).reshape(len(g.pilot_symbols),len(g.pf),g.P)
+ freq=np.stack([np.stack([np.interp(np.arange(g.F),g.pf,eye[s,:,p]) for p in range(g.P)],-1) for s in range(len(g.pilot_symbols))])
+ L=np.stack([np.stack([np.interp(g.times,g.times[list(g.pilot_symbols)],freq[:,f,p]) for p in range(g.P)],-1) for f in range(g.F)],1).reshape(g.M,g.P)
+ assert np.allclose(L[g.pilots],np.eye(g.P));return L
+
+def basis(g,b):
+ bf,conc=dpss(g.F,g.F*g.scs*b.tau/2,Kmax=b.kf,sym=True,norm=2,return_ratios=True)
+ bf=bf.T.astype(complex)*np.exp(-2j*np.pi*g.active*g.scs*b.tau/2)[:,None]
+ eig,bt=np.linalg.eigh(np.sinc(2*b.fd*(g.times[:,None]-g.times[None,:])))
+ order=np.argsort(-eig,kind='stable');bt=bt[:,order[:b.kt]].astype(complex)
+ for mat in (bf,bt):
+ for j in range(mat.shape[1]):
+ v=mat[np.argmax(abs(mat[:,j])),j];mat[:,j]*=np.conj(v)/abs(v)
+ B=np.kron(bt,bf);assert np.allclose(B.conj().T@B,np.eye(b.kf*b.kt),atol=1e-12)
+ return B,conc,eig[order]
+
+def fit_covariance(bank,device='cpu'):
+ import torch
+ cov=None;n=0
+ for h in bank.chunks_h():
+ x=torch.as_tensor(h.reshape(len(h),-1),dtype=torch.complex128,device=device)
+ c=x.T@x.conj();cov=c if cov is None else cov+c;n+=len(h)
+ if not n:raise ValueError('Empty fitting bank')
+ return (cov/n).cpu().numpy()
+
+def solve_gain(cross,auto,n0,gamma=1):
+ M=auto+gamma*n0*np.eye(len(auto));delta=1e-10*np.trace(M).real/len(M)
+ K=cho_solve(cho_factor(M+delta*np.eye(len(M)),lower=True),cross.conj().T).conj().T
+ return K,delta
+
+def gains(g,cov,bem,kind,n0,spectrum=None):
+ B,_,_=basis(g,bem);P=g.pilots
+ if kind=='zero':return np.zeros((g.M,g.P),complex)
+ if kind=='ls':return interpolation(g).astype(complex)
+ if kind=='lmmse' or kind.startswith('rank'):
+ R=.999*cov+.001*np.trace(cov).real/g.M*np.eye(g.M)
+ if kind.startswith('rank'):
+ rank=int(kind[4:]);v,U=np.linalg.eigh(R) if spectrum is None else spectrum;R=(U[:,-rank:]*v[-rank:])@U[:,-rank:].conj().T
+ return solve_gain(R[:,P],R[np.ix_(P,P)],n0)[0]
+ R0=B.conj().T@cov@B;q=B.shape[1];alpha=1 if bem.isotropic else bem.shrink
+ Rc=(1-alpha)*R0+alpha*np.trace(R0).real/q*np.eye(q);A=B[P]
+ return solve_gain(B@Rc@A.conj().T,A@Rc@A.conj().T,n0,bem.gamma)[0]
+
+def diagnostics(g,cov,b):
+ B,conc,eigs=basis(g,b);A=B[g.pilots];s=np.linalg.svd(A,compute_uv=False);rank=int(sum(s>1e-10*s[0]));Rc=B.conj().T@cov@B
+ return {'singular_values':s,'effective_rank':rank,'condition':float(s[0]/s[-1]) if rank==A.shape[1] else None,'frequency_concentration':conc,'time_eigenvalues':eigs,'prior_raw':Rc,'basis':B}
+
+
+def residual_information(g,cov,b,path):
+ """Finite-noise injectivity of z -> (L-K)z, separately from numerical stability."""
+ from .config import SNR
+ L=interpolation(g);rows=[]
+ for snr in SNR:
+ K=gains(g,cov,b,'bem',10**(-snr/10))
+ singular=np.linalg.svd(L-K,compute_uv=False)
+ pilot_singular=np.linalg.svd(np.eye(g.P)-K[g.pilots],compute_uv=False)
+ rows.append((snr,singular,pilot_singular))
+ atomic_npz(path,snr_db=np.array([x[0] for x in rows]),residual_map_singular=np.stack([x[1] for x in rows]),pilot_residual_singular=np.stack([x[2] for x in rows]),relative_rank_tolerance=np.array(1e-10))
diff --git a/pace_revision_2/pace/cli.py b/pace_revision_2/pace/cli.py
new file mode 100644
index 0000000000000000000000000000000000000000..5e49b607b209651bf7a613dbdcd4e25148205c8f
--- /dev/null
+++ b/pace_revision_2/pace/cli.py
@@ -0,0 +1,169 @@
+import argparse,sys,os
+from pathlib import Path
+from .io import atomic_json,read_json,environment,sha
+from .config import BANK_SIZES,Condition
+from .experiments import jobs,tuning_jobs,recipes
+
+def select(all_jobs,experiments=None,ids=None,seeds=None):
+ return [j for j in all_jobs if (not experiments or j['experiment'] in experiments.split(',')) and (not ids or j['id'] in ids.split(',')) and (not seeds or j['seed'] in [int(x) for x in seeds.split(',')])]
+def init(root,smoke=False):
+ root=Path(root);root.mkdir(parents=True,exist_ok=True)
+ if (root/'study.json').exists():
+ if read_json(root/'study.json')['smoke_only']!=smoke:raise RuntimeError('Smoke and confirmatory outputs require different roots')
+ return
+ source=Path(__file__).resolve().parent;files={str(p.relative_to(source)):sha(p) for p in source.rglob('*.py')}
+ vendor_files={str(p.relative_to(source.parent/'vendor')):sha(p) for p in (source.parent/'vendor').rglob('*') if p.is_file() and '__pycache__' not in str(p)}
+ protocol=source.parent/'protocols';ph={p.name:sha(p) for p in protocol.glob('*') if p.is_file()}
+ atomic_json(root/'study.json',dict(protocol='2.1/A01',implementation='3.0.0',smoke_only=smoke,source_hashes=files,protocol_hashes=ph,vendor_hashes=vendor_files,environment=environment()))
+ atomic_json(root/'jobs.json',jobs());atomic_json(root/'tuning_jobs.json',tuning_jobs())
+
+def guard(root,arch=None):
+ root=Path(root);study=read_json(root/'study.json')
+ if study['smoke_only']:return
+ source=Path(__file__).resolve().parent
+ if (root/'test_freeze.json').exists():
+ expected=read_json(root/'test_freeze.json')['source_selection_sha256']
+ if expected and sha(root/'selected_lr.json')!=expected:raise RuntimeError('Source selection changed after test freeze')
+ for name,h in study['source_hashes'].items():
+ if sha(source/name)!=h:raise RuntimeError('Source changed since study initialization; create a new root or document an amendment')
+ for name,h in study.get('protocol_hashes',{}).items():
+ if sha(source.parent/'protocols'/name)!=h:raise RuntimeError('Protocol changed since initialization')
+ if not (root/'validation'/'qc.json').exists():raise RuntimeError('Run pace qc before confirmatory work')
+ q=read_json(root/'validation'/'qc.json')
+ if not q['passed'] or not q.get('full'):raise RuntimeError('Full acceptance checks have not passed')
+ for name,h in study.get('vendor_hashes',{}).items():
+ if sha(source.parent/'vendor'/name)!=h:raise RuntimeError('Pinned fidelity source/fixture changed')
+ if arch in ('fortitran','adafortitran','helena','channelformer'):
+ p=root/'validation'/f'{arch}_fidelity.json'
+ if not p.exists() or not read_json(p)['passed']:raise RuntimeError(f'Missing baseline fidelity gate: {arch}')
+
+def prepare(root,names,device,limit=None):
+ from .data import generate,Bank,bank_path
+ from .classical import fit_covariance,diagnostics,residual_information
+ from .io import atomic_npz
+ import numpy as np
+ for name in names:
+ r=recipes()[name]
+ for bank in ('TRAIN','TUNE','VAL','GATE_FIT','GATE_VAL'):
+ n=10000 if r.reference and bank=='VAL' else BANK_SIZES[bank]
+ generate(root,r,bank,limit or n,device=device)
+ p=Path(root)/'priors'/f'{name}.npz'
+ if not p.exists():
+ cov=fit_covariance(Bank(bank_path(root,r,'TRAIN')),device);d=diagnostics(r.grid,cov,r.bem);atomic_npz(p,cov=cov,**{k:v for k,v in d.items() if v is not None})
+ info=Path(root)/'priors'/f'{name}_residual_information.npz'
+ if not info.exists():residual_information(r.grid,np.load(p)['cov'],r.bem,info)
+ if name=='target':
+ generate(root,r,'ADAPT',limit or 1024,device=device);generate(root,r,'ADAPT_VAL',limit or 2048,device=device)
+
+def test_banks(root,names,device,limit=None):
+ from .data import generate,audit_source_banks
+ from .config import conditions
+ from . import io
+ root=Path(root)
+ if not read_json(root/'study.json')['smoke_only']:audit_source_banks(root)
+ if not (root/'selected_lr.json').exists() and not read_json(root/'study.json')['smoke_only']:raise RuntimeError('Freeze source-only LR selection before creating TEST banks')
+ if not (root/'test_freeze.json').exists():
+ io.atomic_json(root/'test_freeze.json',{'source_selection_sha256':sha(root/'selected_lr.json') if (root/'selected_lr.json').exists() else None,'bank_manifests':{str(p.relative_to(root)):sha(p) for p in (root/'banks').glob('**/manifest.json')},'smoke_only':read_json(root/'study.json')['smoke_only']})
+ for name in names:
+ r=recipes()[name]
+ for c in conditions(r):generate(root,r,'TEST',limit or (2000 if r.reference else 10000),c,device)
+
+def tune(root,device,limit=None):
+ from .training import train
+ import numpy as np
+ for j in tuning_jobs():guard(root,j['arch']);train(root,j,device,epochs=1 if limit else None,limit=limit)
+ selected={};table=[]
+ for arch in ('compact','cnn16','wide','reesnet','channelformer','fortitran','helena'):
+ candidates=[]
+ for lr in (.0003,.001,.003):
+ scores=[read_json(Path(root)/'runs'/j['id']/'complete.json')['best_linear_nmse'] for j in tuning_jobs() if j['arch']==arch and j['lr']==lr]
+ mean=float(np.mean(scores));candidates.append((mean,lr));table.append(dict(arch=arch,lr=lr,source_tune_score=mean))
+ m=min(x[0] for x in candidates);selected[arch]=min(lr for v,lr in candidates if v<=m*(1+1e-6))
+ atomic_json(Path(root)/'selected_lr.json',selected);atomic_json(Path(root)/'lr_selection_scores.json',table)
+
+def main():
+ parser=argparse.ArgumentParser(description='PACE protocol 2.1 implementation. Full jobs are never launched on import.')
+ parser.add_argument('--root',default=os.environ.get('PACE_OUTPUT_ROOT','outputs/pace21'))
+ parser.add_argument('--device',default='cuda');parser.add_argument('--smoke',action='store_true',help='Separate development-only root; tiny non-publication runs')
+ subs=parser.add_subparsers(dest='command',required=True)
+ subs.add_parser('init');subs.add_parser('plan');subs.add_parser('qc');subs.add_parser('tune')
+ p=subs.add_parser('fidelity');p.add_argument('--arch',choices=['fortitran','adafortitran','channelformer','helena'],required=True);p.add_argument('--fixture')
+ for name in ('prepare','test-banks','classical'):
+ p=subs.add_parser(name);p.add_argument('--recipes',default='main')
+ if name=='classical':p.add_argument('--noise-offset',type=float,default=0.)
+ for name in ('train','evaluate','adapt','benchmark'):
+ p=subs.add_parser(name);p.add_argument('--experiments');p.add_argument('--ids');p.add_argument('--seeds')
+ if name=='evaluate':p.add_argument('--noise-offset',type=float,default=0.)
+ p=subs.add_parser('gates');p.add_argument('--recipe',choices=['main','wave'],default='main');p.add_argument('--seeds',default='');p.add_argument('--evaluate',action='store_true')
+ subs.add_parser('reference-transfer');subs.add_parser('sweep');subs.add_parser('oracle');subs.add_parser('wave-diagnostics');subs.add_parser('statistics');subs.add_parser('report')
+ p=subs.add_parser('receiver');p.add_argument('--id');p.add_argument('--kind',choices=['ls','bem','lmmse','perfect','full_G']);p.add_argument('--source',default='main');p.add_argument('--gate',choices=['scalar','resource']);p.add_argument('--seed',type=int);p.add_argument('--modes',default='WAVE');p.add_argument('--modulations',default='16qam,qpsk')
+ p=subs.add_parser('backup');p.add_argument('--destination',required=True)
+ args=parser.parse_args();root=Path(args.root);limit=12 if args.smoke else None
+ from .io import deterministic
+ deterministic(0)
+ if args.command=='init':init(root,args.smoke);print(f'Initialized {root}');return
+ if args.command=='plan':
+ import json
+ print(json.dumps(jobs(),indent=2));return
+ if not (root/'study.json').exists():raise RuntimeError('Run init first')
+ if read_json(root/'study.json')['smoke_only']!=args.smoke:raise RuntimeError('--smoke must match root provenance')
+ if args.command=='qc':
+ from .validation import qc
+ qc(root,args.device,full=not args.smoke);return
+ if args.command=='fidelity':
+ from .fidelity import run
+ run(root,args.arch,args.fixture,args.device);return
+ if args.command not in ('report','statistics','backup'):guard(root)
+ if args.command=='prepare':guard(root);prepare(root,args.recipes.split(','),args.device,limit)
+ elif args.command=='test-banks':guard(root);test_banks(root,args.recipes.split(','),args.device,limit)
+ elif args.command=='tune':tune(root,args.device,limit)
+ elif args.command=='train':
+ from .training import train
+ for j in select(jobs(),args.experiments,args.ids,args.seeds):guard(root,j['arch']);train(root,j,args.device,epochs=1 if limit else None,limit=limit)
+ elif args.command=='evaluate':
+ from .evaluation import evaluate
+ for j in select(jobs(),args.experiments,args.ids,args.seeds):guard(root,j['arch']);evaluate(root,j,args.device,limit,args.noise_offset)
+ elif args.command=='classical':
+ from .evaluation import classical_evaluate
+ for name in args.recipes.split(','):classical_evaluate(root,recipes()[name],args.device,limit,args.noise_offset)
+ elif args.command=='gates':
+ from .interventions import calibrate_gate,evaluate_gates
+ seeds=[int(s) for s in args.seeds.split(',')] if args.seeds else list(range(41001,41011 if args.recipe=='wave' else 41021))
+ for sd in seeds:
+ calibrate_gate(root,args.recipe,sd,args.device,limit)
+ if args.evaluate:evaluate_gates(root,args.recipe,sd,args.device,limit)
+ elif args.command=='adapt':
+ from .interventions import adapt
+ selected=select(jobs(),args.experiments or 'E01',args.ids,args.seeds)
+ for j in selected:
+ if j['arch']=='compact' and j['arm'] in ('D','A-res') and j['seed']<41011:
+ for n in (128,1024):adapt(root,j,n,args.device,limit)
+ elif args.command=='reference-transfer':
+ from .evaluation import evaluate
+ for j in jobs():
+ if j['experiment']!='R':continue
+ guard(root,j['arch']);evaluate(root,j,args.device,limit,recipe_override=recipes()['main'])
+ if j['arch']=='adafortitran':evaluate(root,j,args.device,limit,recipe_override=recipes()['main'],metadata_mode='nominal')
+ elif args.command=='sweep':
+ from .interventions import sweep
+ sweep(root,limit)
+ elif args.command in ('oracle','wave-diagnostics','statistics'):
+ from .diagnostics import run
+ run(root,args.command,args.device,limit)
+ elif args.command=='receiver':
+ from .receiver import evaluate_receiver
+ job=next(j for j in jobs() if j['id']==args.id) if args.id else None
+ if sum([bool(job),bool(args.kind),bool(args.gate)])!=1:raise ValueError('Choose exactly one of --id, --kind, --gate')
+ if args.gate and args.seed is None:raise ValueError('--gate requires --seed')
+ if job:guard(root,job['arch'])
+ evaluate_receiver(root,job,args.kind,args.source,args.device,12 if limit else 5000,tuple(args.modes.split(',')),tuple(args.modulations.split(',')),args.gate,args.seed)
+ elif args.command=='report':
+ from .reporting import report
+ report(root,100 if limit else 10000)
+ elif args.command=='benchmark':
+ from .diagnostics import benchmark
+ for j in select(jobs(),args.experiments,args.ids,args.seeds):benchmark(root,j,args.device,smoke=bool(limit))
+ elif args.command=='backup':
+ from .backup import backup
+ backup(root,args.destination)
+if __name__=='__main__':main()
diff --git a/pace_revision_2/pace/complexity.py b/pace_revision_2/pace/complexity.py
new file mode 100644
index 0000000000000000000000000000000000000000..3e748b363f390331bcc92de29f40291ee282c42a
--- /dev/null
+++ b/pace_revision_2/pace/complexity.py
@@ -0,0 +1,34 @@
+"""Arithmetic counts: one real multiply-accumulate is one MAC.
+Biases, activations, normalization, FFTs and classical solves are excluded and named.
+"""
+import numpy as np
+import torch
+from torch import nn
+
+def neural_macs(model,batch):
+ total=[0];hooks=[]
+ def count(module,args,output):
+ x=args[0]
+ if isinstance(module,nn.Conv2d):total[0]+=output.numel()*module.in_channels//module.groups*np.prod(module.kernel_size)
+ elif isinstance(module,nn.ConvTranspose2d):total[0]+=x.numel()*module.out_channels//module.groups*np.prod(module.kernel_size)
+ elif isinstance(module,nn.Linear):total[0]+=output.numel()*module.in_features
+ elif isinstance(module,nn.LSTM):
+ n,t,_=x.shape if module.batch_first else (x.shape[1],x.shape[0],x.shape[2]);directions=2 if module.bidirectional else 1
+ for layer in range(module.num_layers):
+ dim=module.input_size if layer==0 else module.hidden_size*directions
+ total[0]+=n*t*directions*4*module.hidden_size*(dim+module.hidden_size)
+ elif isinstance(module,nn.MultiheadAttention):
+ n,t,d=x.shape if module.batch_first else (x.shape[1],x.shape[0],x.shape[2])
+ total[0]+=n*(4*t*d*d+2*t*t*d)
+ old=torch.backends.mha.get_fastpath_enabled();torch.backends.mha.set_fastpath_enabled(False)
+ try:
+ for m in model.net.modules():
+ if isinstance(m,(nn.Conv2d,nn.ConvTranspose2d,nn.Linear,nn.LSTM,nn.MultiheadAttention)):hooks.append(m.register_forward_hook(count))
+ with torch.no_grad():model(batch)
+ finally:
+ for h in hooks:h.remove()
+ torch.backends.mha.set_fastpath_enabled(old)
+ n=len(batch['z'])
+ if model.arch=='channelformer':total[0]+=n*model.net.attention_macs()
+ if model.arch=='helena':total[0]+=n*2*4*(model.g.F//12)**2*64
+ return dict(real_neural_macs_per_slot=int(total[0]//n),convention='One real multiply-accumulate = one MAC; excludes biases, nonlinearities, normalization and classical preprocessing; transposed convolution counts full kernel support before edge cropping',interpolation_complex_macs_per_slot=model.g.M*model.g.P if model.arch in ('compact','wide','cnn16') else 0,anchor_complex_macs_per_slot=model.g.M*model.g.P if model.arm!='D' and model.anchor not in ('zero','oracle') else 0)
diff --git a/pace_revision_2/pace/config.py b/pace_revision_2/pace/config.py
new file mode 100644
index 0000000000000000000000000000000000000000..f06cde3096c65f20bcc19e419d04a99fcdb07ee1
--- /dev/null
+++ b/pace_revision_2/pace/config.py
@@ -0,0 +1,84 @@
+from dataclasses import dataclass, asdict, field
+import hashlib, json
+import numpy as np
+
+SNR = (0,5,10,15,20,25)
+SEEDS = tuple(range(41001,41021))
+BANK_SIZES = dict(TRAIN=100000,TUNE=6000,VAL=12000,GATE_FIT=6000,GATE_VAL=3000,TEST=10000,QC=2048)
+
+@dataclass(frozen=True)
+class Grid:
+ F:int=120
+ S:int=14
+ N:int=256
+ scs:float=15000.
+ comb:int=3
+ pilot_symbols:tuple=(2,11)
+ @property
+ def fs(self): return self.N*self.scs
+ @property
+ def cp(self): return np.array([20]+[18]*6+[20]+[18]*6 if self.scs==15000 else [22]+[18]*13)
+ @property
+ def starts(self): return np.cumsum(self.cp+self.N)-self.N
+ @property
+ def times(self): return (self.starts+(self.N-1)/2)/self.fs
+ @property
+ def active(self): return np.arange(-self.F//2,self.F//2)
+ @property
+ def pf(self): return np.arange(1,self.F,self.comb)
+ @property
+ def pilots(self): return np.array([s*self.F+k for s in self.pilot_symbols for k in self.pf])
+ @property
+ def mask(self):
+ m=np.zeros(self.S*self.F,bool);m[self.pilots]=True;return m.reshape(self.S,self.F)
+ @property
+ def M(self): return self.S*self.F
+ @property
+ def P(self): return len(self.pilots)
+
+@dataclass(frozen=True)
+class Condition:
+ profile:str='C'
+ ds_ns:float=100.
+ fd:float=10.
+ @property
+ def key(self): return f'{self.profile}_ds{self.ds_ns:g}_fd{self.fd:g}'
+
+@dataclass(frozen=True)
+class Bem:
+ kf:int=4
+ kt:int=2
+ tau:float=1e-6
+ fd:float=20.
+ gamma:float=1.
+ shrink:float=.01
+ isotropic:bool=False
+
+@dataclass(frozen=True)
+class Recipe:
+ name:str='main'
+ grid:Grid=field(default_factory=Grid)
+ source:Condition=field(default_factory=Condition)
+ mode:str='DIAG'
+ broad:bool=False
+ reference:bool=False
+ bem:Bem=field(default_factory=Bem)
+ def to_dict(self): return asdict(self)
+ @classmethod
+ def from_dict(cls,d):
+ d=dict(d);d['grid']=Grid(**{**d['grid'],'pilot_symbols':tuple(d['grid']['pilot_symbols'])});d['source']=Condition(**d['source']);d['bem']=Bem(**d['bem']);return cls(**d)
+
+def digest(x): return hashlib.sha256(json.dumps(x,sort_keys=True,separators=(',',':')).encode()).hexdigest()
+_seed_strings={}
+def seed(bank,family,sample_id,component):
+ s=f'PACE2|20260922|{bank}|{family}|{sample_id}|{component}'
+ value=int.from_bytes(hashlib.sha256(s.encode()).digest()[:8],'little')&((1<<63)-1)
+ previous=_seed_strings.setdefault(value,s)
+ if previous!=s:raise RuntimeError('SHA256-derived seed collision detected')
+ return value
+
+def conditions(recipe):
+ if recipe.reference:return [Condition('A',200,500)]
+ if recipe.name=='reverse':return [Condition(fd=100),Condition(fd=10)]
+ if recipe.grid.scs==30000:return [Condition(fd=x) for x in (10,100,200)]
+ return [Condition(fd=x) for x in (10,100,200,500)]+[Condition('A',100,10),Condition('C',300,10),Condition('A',300,100)]
diff --git a/pace_revision_2/pace/data.py b/pace_revision_2/pace/data.py
new file mode 100644
index 0000000000000000000000000000000000000000..d983d75fa8b3ed7a04da106f9d7e18c2fc1433a3
--- /dev/null
+++ b/pace_revision_2/pace/data.py
@@ -0,0 +1,101 @@
+from pathlib import Path
+from functools import lru_cache
+import numpy as np
+import torch
+from .physics import sample,Channel
+from .config import digest,BANK_SIZES
+from .io import atomic_json,atomic_npz,sha,read_json
+
+def bank_path(root,recipe,bank,condition=None):
+ return Path(root)/'banks'/recipe.name/recipe.mode/bank/(condition.key if condition else 'source')
+
+def generate(root,recipe,bank,n=None,condition=None,device='cpu',shard=512):
+ n=n or BANK_SIZES[bank];path=bank_path(root,recipe,bank,condition);path.mkdir(parents=True,exist_ok=True)
+ spec={'recipe':recipe.to_dict(),'bank':bank,'n':n,'condition':condition.__dict__ if condition else None,'schema':1,'generation_device':device}
+ if (path/'manifest.json').exists():
+ old=read_json(path/'manifest.json')
+ if digest(old['spec'])!=digest(spec):raise RuntimeError('Existing bank has different specification; use a separate root')
+ if all(sha(path/f['file'])==f['sha256'] for f in old['shards']):return path
+ raise RuntimeError('Bank hash mismatch')
+ engine=Channel(recipe.grid,device);records=[]
+ from tqdm import trange
+ for start in trange(0,n,shard,desc=f'{recipe.name}/{bank}'):
+ f=path/f'{start:08d}.npz';meta=f.with_suffix('.json')
+ # Completed shards are resumable only when accompanied by matching spec and hash.
+ if f.exists() and meta.exists() and read_json(meta).get('spec_hash')==digest(spec) and read_json(meta)['sha256']==sha(f):
+ records.append(read_json(meta));continue
+ rows=[sample(recipe,bank,i,condition,device,engine) for i in range(start,min(n,start+shard))]
+ import hashlib
+ for row in rows:row['label_hash']=np.array(hashlib.sha256(row['h'].tobytes()).hexdigest(),dtype='S64')
+ atomic_npz(f,**{k:np.stack([x[k] for x in rows]) for k in rows[0]})
+ rec={'file':f.name,'start':start,'n':len(rows),'sha256':sha(f),'spec_hash':digest(spec)};atomic_json(meta,rec);records.append(rec)
+ atomic_json(path/'manifest.json',{'spec':spec,'shards':records});return path
+
+class Bank(torch.utils.data.Dataset):
+ def __init__(self,path,snr=None,limit=None):
+ self.path=Path(path);self.manifest=read_json(self.path/'manifest.json');self.snr=snr
+ self.n=min(limit or self.manifest['spec']['n'],self.manifest['spec']['n'])
+ self.ends=np.cumsum([r['n'] for r in self.manifest['shards']])
+ def __len__(self):return self.n
+ @lru_cache(maxsize=4)
+ def _shard(self,j):
+ with np.load(self.path/self.manifest['shards'][j]['file']) as f:return {k:f[k] for k in f.files}
+ def __getitem__(self,i):
+ j=int(np.searchsorted(self.ends,i,side='right'));start=0 if j==0 else self.ends[j-1];d=self._shard(j);i=int(i-start)
+ snr=float(d['snr'][i]) if self.snr is None else self.snr
+ n0=10**(-snr/10)
+ return {'h':d['h'][i],'z':(d['z0'][i]+np.sqrt(n0)*d['noise'][i]).astype(np.complex64),'n0':np.float32(n0),'snr':np.float32(snr),'fd':d['fd'][i],'ds':d['ds'][i],'id':d['id'][i]}
+ def chunks_h(self):
+ count=0
+ for j in range(len(self.ends)):
+ h=self._shard(j)['h'][:max(0,self.n-count)];count+=len(h)
+ if len(h):yield h
+ if count>=self.n:break
+
+class DeviceBank:
+ """One-time host streaming into GPU tensors. Does not alter batch size/data/RNG.
+ Used only for source TRAIN/VAL/TUNE; evaluation continues streaming raw records.
+ """
+ def __init__(self,dataset,device):
+ from torch.utils.data import ConcatDataset
+ datasets=dataset.datasets if isinstance(dataset,ConcatDataset) else [dataset]
+ parts=[]
+ for ds in datasets:
+ items=[];remaining=len(ds)
+ for j in range(len(ds.ends)):
+ d=ds._shard(j);take=min(remaining,len(d['h']));remaining-=take
+ if take<=0:break
+ snr=d['snr'][:take] if ds.snr is None else np.full(take,ds.snr,dtype=np.float32)
+ n0full=10.**(-snr.astype(np.float64)/10);n0=n0full.astype(np.float32)
+ z=(d['z0'][:take]+np.sqrt(n0full)[:,None]*d['noise'][:take]).astype(np.complex64)
+ items.append({**{k:d[k][:take] for k in ('h','fd','ds','id')},'z':z,'n0':n0,'snr':snr})
+ parts.append({k:np.concatenate([x[k] for x in items]) for k in items[0]})
+ self.tensors={k:torch.as_tensor(np.concatenate([x[k] for x in parts]),device=device) for k in parts[0]};self.n=len(self.tensors['h'])
+ def __len__(self):return self.n
+ def batches(self,batch,shuffle=False,generator=None):
+ # CPU torch.randperm matches the DataLoader-independent protocol shuffle stream.
+ # The same implementation is used for every paired arm.
+ order=torch.randperm(self.n,generator=generator) if shuffle else torch.arange(self.n)
+ for start in range(0,self.n,batch):
+ idx=order[start:start+batch].to(self.tensors['h'].device);yield {k:v[idx] for k,v in self.tensors.items()}
+
+def audit_source_banks(root):
+ """Detect repeated channel labels across independent fitting/selection banks.
+ TEST banks intentionally reuse channel IDs across methods/SNR and are excluded.
+ """
+ import sqlite3
+ db=Path(root)/'source_identity_audit.sqlite';connection=sqlite3.connect(db)
+ connection.execute('DROP TABLE IF EXISTS labels');connection.execute('CREATE TABLE labels(hash TEXT PRIMARY KEY, bank TEXT, id INTEGER)')
+ total=0
+ for manifest in sorted((Path(root)/'banks').glob('**/manifest.json')):
+ meta=read_json(manifest)
+ if meta['spec']['bank'] in ('TEST','QC','RECEIVER'):continue
+ for shard in meta['shards']:
+ with np.load(manifest.parent/shard['file']) as d:
+ if 'label_hash' not in d:raise RuntimeError('Bank predates label-hash schema; regenerate in a new output root')
+ for h,i in zip(d['label_hash'],d['id']):
+ try:connection.execute('INSERT INTO labels VALUES(?,?,?)',(h.decode(),str(manifest),int(i)))
+ except sqlite3.IntegrityError as e:raise RuntimeError('Duplicate channel label in independent source banks') from e
+ total+=1
+ connection.commit()
+ connection.close();atomic_json(Path(root)/'source_identity_audit.json',dict(passed=True,independent_channels=total))
diff --git a/pace_revision_2/pace/devices.py b/pace_revision_2/pace/devices.py
new file mode 100644
index 0000000000000000000000000000000000000000..c39766d931426d18a301e1d3dbfce2d2575bb7ad
--- /dev/null
+++ b/pace_revision_2/pace/devices.py
@@ -0,0 +1,9 @@
+"""Resolve PyTorch aliases before crossing Sionna's explicit-device boundary."""
+def sionna_device(device):
+ import torch
+ resolved = torch.device(device)
+ if resolved.type == 'cuda' and resolved.index is None:
+ return f'cuda:{torch.cuda.current_device()}'
+ if resolved.type == 'cpu':
+ return 'cpu'
+ return str(resolved)
diff --git a/pace_revision_2/pace/diagnostics.py b/pace_revision_2/pace/diagnostics.py
new file mode 100644
index 0000000000000000000000000000000000000000..02fa94cab5b5642cd8be9329cbc89cb15ef3c47f
--- /dev/null
+++ b/pace_revision_2/pace/diagnostics.py
@@ -0,0 +1,156 @@
+from pathlib import Path
+from dataclasses import replace
+import numpy as np
+import torch
+from .config import Condition,SNR,Bem
+from .experiments import recipes
+from .classical import basis,gains,diagnostics
+from .data import Bank,bank_path
+from .training import loader,load_model,move
+from .metrics import energies,equivalence,paired_summary
+from .io import atomic_npz,atomic_json,read_json
+
+def run(root,command,device='cpu',limit=None):
+ root=Path(root);r=recipes()['main'];g=r.grid
+ if command=='oracle':
+ cov=np.load(root/'priors'/'target.npz')['cov'];c=Condition(fd=100)
+ for name,b,kind in [('target_cov_lmmse',r.bem,'lmmse'),('target_recalibrated_bem',replace(r.bem,fd=200),'bem')]:
+ B=basis(g,b)[0]
+ for snr in SNR:
+ data=Bank(bank_path(root,r,'TEST',c),snr,limit);K=gains(g,cov,b,kind,10**(-snr/10));rows=[]
+ for batch in loader(data):
+ h=batch['h'].numpy();p=(batch['z'].numpy()@K.T).reshape(h.shape);raw=energies(h,p,p,B,g.mask);raw['id']=batch['id'].numpy();rows.append(raw)
+ atomic_npz(root/'oracles'/name/f'snr{snr}.npz',**{k:np.concatenate([p[k] for p in rows]) for k in rows[0]})
+ return
+ if command=='wave-diagnostics':
+ from .physics import Channel,operator
+ eng=Channel(g,device)
+ for fd in (10,100,500,1000):
+ values=[]
+ for i in range(limit or 128):
+ # Same family used by the main TEST bank.
+ c=Condition(fd=fd);family=f'{g.scs:g}:{g.comb}:{g.pilot_symbols}:{c.profile}:{c.ds_ns:g}'
+ a,tau=eng.paths(c,'TEST',family,i);diag=off=guard=0.
+ for s in range(g.S):
+ G=operator(a,tau,g,s);active=G[:,g.active%g.N];A=active[g.active%g.N];d=np.sum(abs(np.diag(A))**2);diag+=d;off+=np.sum(abs(A)**2)-d;guard+=np.sum(abs(active)**2)-np.sum(abs(A)**2)
+ values.append((i,diag,off,guard))
+ x=np.asarray(values);atomic_npz(root/'wave_diagnostics'/f'fd{fd}.npz',id=x[:,0],diagonal_energy=x[:,1],ici_energy=x[:,2],guard_leakage=x[:,3],normalized_doppler=np.full(len(x),fd/g.scs))
+ return
+ if command=='statistics':
+ detailed_statistics(root,device);return
+ raise ValueError(command)
+
+def detailed_statistics(root,device):
+ """Additional uncertainty and spectra; raw prediction files are the only inputs."""
+ from .reporting import raw,align
+ from scipy.linalg import eigh
+ out=root/'statistics';out.mkdir(exist_ok=True)
+ # Required-target covariance depends on the anchor, not the neural seed: use fixed seed 41001 once.
+ for p in (root/'evaluation').glob('*_s41001/DIAG/*snr10/examples.npz'):
+ d=raw(p);r=d['h'].astype(np.complex128)-d['anchor'];flat=r.reshape(len(r),-1);mean=flat.mean(0);center=flat-mean
+ t=torch.tensor(center,device=device,dtype=torch.complex128);cov=(t.T@t.conj())/max(len(t)-1,1);evals=torch.linalg.eigvalsh(cov).real.clamp_min(0).flip(0)
+ prefix=out/'residual_covariance'/p.parent.parent.parent.name/p.parent.name
+ atomic_npz(prefix/'covariance.npz',mean=mean,variance_diagonal=cov.diagonal().real.cpu().numpy(),eigenvalues=evals.cpu().numpy(),top20=evals[:20].cpu().numpy(),covariance=cov.cpu().numpy())
+ for p in (root/'receiver').glob('**/raw.npz'):
+ d=raw(p);rng=np.random.default_rng(90221);n=len(d['id']);rep=[]
+ for _ in range(10000):
+ idx=rng.integers(n,size=n);rep.append(d['bit_errors'][idx].sum()/d['bits'][idx].sum())
+ atomic_json(out/'receiver_uncertainty'/p.relative_to(root/'receiver').with_suffix('.json'),{'ber_cluster_bootstrap_95':np.quantile(rep,[.025,.975]).tolist(),'slots':n,'replicates':10000})
+ # Fixed primary seed for realization-level projection/cosine diagnostics; no seed pseudo-replication.
+ p0=list((root/'evaluation').glob('E01*compact_A-res*_s41001/DIAG/C_ds100_fd10_snr10/raw.npz'))
+ p1=list((root/'evaluation').glob('E01*compact_A-res*_s41001/DIAG/C_ds100_fd100_snr10/raw.npz'))
+ if p0 and p1:
+ a,b=raw(p0[0]),raw(p1[0]);assert np.array_equal(a['id'],b['id'])
+ result={'projection':equivalence(b['projection_outside']/b['denominator']-a['projection_outside']/a['denominator'],.005),'condition_number':'same deterministic sampled basis: algebraically identical; no hypothesis test'}
+ valid=a['cosine_defined']&b['cosine_defined'];result['cosine']=equivalence(b['cosine'][valid]-a['cosine'][valid],.05);result['cosine_undefined_pairs']=int((~valid).sum())
+ from .metrics import holm
+ adj=holm([result['projection']['p_tost'],result['cosine']['p_tost']])
+ for k,v in zip(['projection','cosine'],adj):result[k]['p_tost_holm']=float(v)
+ atomic_json(out/'diagnostic_equivalence.json',result)
+ receiver_paired(root,out)
+ receiver_contrasts(root,out)
+ residual_covariance_contrasts(out)
+
+def receiver_paired(root,out):
+ from .reporting import raw
+ groups={}
+ for p in (root/'receiver').glob('**/raw.npz'):
+ rel=p.relative_to(root/'receiver');name=rel.parts[0]
+ if '_s' not in name:continue
+ family,sd=name.rsplit('_s',1)
+ if not sd.isdigit():continue
+ # Preserve the method/arm family and condition explicitly.
+ key=(family,*rel.parts[1:-1]);groups.setdefault(key,[]).append((int(sd),p))
+ for key,items in groups.items():
+ values=[raw(p) for _,p in sorted(items)];nseed=len(values)
+ if nseed<2:continue
+ n=len(values[0]['id'])
+ if not all(np.array_equal(v['id'],values[0]['id']) for v in values):raise RuntimeError('Receiver seed IDs disagree')
+ block=np.stack([v['block_errors'] for v in values]);rng=np.random.default_rng(90221);rep=[]
+ for _ in range(10000):
+ si=rng.integers(nseed,size=nseed);fi=rng.integers(n,size=n);rep.append(block[si][:,fi].mean())
+ atomic_json(out/'receiver_seed_intervals'/('_'.join(key)+'.json'),{'mean_seed_bler':paired_summary(block.mean(1)),'crossed_seed_slot_95':np.quantile(rep,[.025,.975]).tolist()})
+
+def benchmark(root,job,device='cuda',smoke=False):
+ import time
+ r=recipes()[job['recipe']];m=load_model(root,job,device);data=Bank(bank_path(root,r,'VAL'));results=[]
+ from .complexity import neural_macs
+ complexity=neural_macs(m,move(next(iter(loader(data,1))),device))
+ for batchsize in (1,512):
+ b=move(next(iter(loader(data,batchsize))),device)
+ if len(b['z'])!=batchsize and not smoke:raise RuntimeError('Insufficient benchmark batch')
+ timings=[]
+ def sync():
+ if device.startswith('cuda'):torch.cuda.synchronize()
+ if device.startswith('cuda'):torch.cuda.reset_peak_memory_stats()
+ with torch.no_grad():
+ for _ in range(2 if smoke else 100):m(b)
+ for _ in range(5 if smoke else 1000):
+ sync();t=time.perf_counter();m(b);sync();timings.append(time.perf_counter()-t)
+ captured=[]
+ hook=m.net.register_forward_pre_hook(lambda module,args:captured.append(args))
+ with torch.no_grad():m(b)
+ hook.remove();netargs=captured[0];network=[]
+ with torch.no_grad():
+ for _ in range(2 if smoke else 100):m.net(*netargs)
+ for _ in range(5 if smoke else 1000):
+ sync();t=time.perf_counter();m.net(*netargs);sync();network.append(time.perf_counter()-t)
+ results.append({'network_only_median_ms':1000*np.median(network),'network_only_p95_ms':1000*np.quantile(network,.95),'batch':len(b['z']),'median_ms':1000*np.median(timings),'p95_ms':1000*np.quantile(timings,.95),'slots_per_second':len(b['z'])/np.median(timings),'peak_allocated_bytes':torch.cuda.max_memory_allocated() if device.startswith('cuda') else None,'includes':'pilot interpolation and anchor plus network; input tensors already on device','parameters':sum(p.numel() for p in m.parameters()),'fixed_buffer_bytes':sum(p.numel()*p.element_size() for p in m.buffers()),'gain_cache_bytes':sum(p.numel()*p.element_size() for p in m._gains.values()),'cpu_covariance_bytes':m.cov.nbytes})
+ atomic_json(Path(root)/'benchmarks'/f'{job["id"]}.json',{'measurements':results,'complexity':complexity,'smoke_only':smoke})
+
+
+def residual_covariance_contrasts(out):
+ # Same canonical RE coordinates; descriptive fixed-seed diagnostics, not extra replicates.
+ for source in (out/'residual_covariance').glob('*/C_ds100_fd10_snr10/covariance.npz'):
+ target=source.parent.parent/'C_ds100_fd100_snr10/covariance.npz'
+ if not target.exists():continue
+ with np.load(source) as a,np.load(target) as b:
+ atomic_json(source.parent.parent/'source_target_contrast.json',dict(relative_covariance_frobenius=float(np.linalg.norm(b['covariance']-a['covariance'])/max(np.linalg.norm(a['covariance']),1e-30)),source_trace=float(a['variance_diagonal'].sum()),target_trace=float(b['variance_diagonal'].sum()),mean_difference_energy=float(abs(b['mean']-a['mean'])@abs(b['mean']-a['mean'])),scope='descriptive first 2000 fixed TEST IDs, training seed 41001'))
+
+def receiver_contrasts(root,out):
+ """Paired operational contrasts at predeclared central 10 dB, fd=10/100.
+ Positive BLER/BER reduction means the anchored/gated method helps.
+ Exploratory intervals; no unregistered significance claims.
+ """
+ from .experiments import jobs
+ for recipe,e in [('main','E01'),('wave','E13')]:
+ ds={j['seed']:j for j in jobs() if j['experiment']==e and j['arch']=='compact' and j['arm']=='D' and j['seed']<=41010}
+ for method in ('A-res','A-raw','scalar','resource'):
+ for mode in ('DIAG','WAVE'):
+ for mod in ('16qam','qpsk'):
+ for fd in (10,100):
+ differences=[];used=[];refids=None
+ for sd,j in sorted(ds.items()):
+ name=f'{recipe}_{method}_s{sd}' if method in ('scalar','resource') else j['id'].replace('_D_','_'+method+'_')
+ suffix=Path(mode)/mod/f'C_ds100_fd{fd}'/'snr10'/'raw.npz'
+ pa=root/'receiver'/j['id']/suffix;pb=root/'receiver'/name/suffix
+ if not pa.exists() or not pb.exists():continue
+ with np.load(pa) as a,np.load(pb) as b:
+ if not np.array_equal(a['id'],b['id']) or not np.array_equal(a['bits'],b['bits']):raise RuntimeError('Unpaired receiver contrast')
+ if refids is not None and not np.array_equal(refids,a['id']):raise RuntimeError('Receiver seed sample mismatch')
+ refids=a['id'].copy();differences.append(np.stack([a['block_errors'].astype(float)-b['block_errors'],(a['bit_errors']-b['bit_errors'])/a['bits']]));used.append(sd)
+ if len(used)<2:continue
+ x=np.stack(differences);ns,_,n=x.shape;rng=np.random.default_rng(90221);rep=[]
+ for _ in range(10000):
+ si=rng.integers(ns,size=ns);w=rng.multinomial(n,np.full(n,1/n));rep.append((x@w/n)[si].mean(0))
+ atomic_json(out/'receiver_contrasts'/f'{recipe}_{method}_{mode}_{mod}_fd{fd}.json',dict(seeds=used,sign='Direct error rate minus comparison error rate; positive helps',scope='exploratory paired operational effects at 10 dB',bler_seed_effect=paired_summary(x[:,0].mean(1)),ber_seed_effect=paired_summary(x[:,1].mean(1)),crossed_seed_slot_95=np.quantile(rep,[.025,.975],axis=0).tolist(),interval_columns=['BLER_reduction','BER_reduction']))
diff --git a/pace_revision_2/pace/evaluation.py b/pace_revision_2/pace/evaluation.py
new file mode 100644
index 0000000000000000000000000000000000000000..0c3c3452c7cf36fcb939c701244d1afb2c00b48b
--- /dev/null
+++ b/pace_revision_2/pace/evaluation.py
@@ -0,0 +1,63 @@
+from pathlib import Path
+import numpy as np
+import torch
+from .config import SNR,conditions
+from .experiments import recipes,job_bem
+from .training import load_model,loader,move,covariance
+from .data import Bank,bank_path
+from .classical import basis,gains
+from .metrics import energies,pooled
+from .io import atomic_npz,atomic_json,sha
+
+def evaluate(root,job,device='cuda',limit=None,noise_offset=0.,recipe_override=None,metadata_mode='true'):
+ r=recipe_override or recipes()[job['recipe']];g=r.grid;model=load_model(root,job,device)
+ B=basis(g,job_bem(job,recipes()[job['recipe']]))[0];outputs=[]
+ for condition in conditions(r):
+ for snr in SNR:
+ if noise_offset and (snr!=10 or condition.fd not in (10,100) or condition.profile!='C' or condition.ds_ns!=100):continue
+ bank=Bank(bank_path(root,r,'TEST',condition),snr,limit)
+ tag=f'{condition.key}_snr{snr:g}'+(f'_noise{noise_offset:+g}' if noise_offset else '')+(f'_{metadata_mode}' if metadata_mode!='true' else '')
+ out=Path(root)/'evaluation'/job['id']/r.mode/tag
+ if (out/'summary.json').exists():
+ print(f'[evaluate reuse] {job["id"]} {tag}',flush=True);continue
+ print(f'[evaluate start] {job["id"]} {tag} n={len(bank)}',flush=True)
+ records=[];examples=[]
+ with torch.no_grad():
+ for batch_index,batch in enumerate(loader(bank),1):
+ batch=move(batch,device)
+ if noise_offset:batch['n0']=batch['n0']*10**(noise_offset/10);batch['snr']=batch['snr']-noise_offset
+ if metadata_mode=='nominal':batch['fd']=torch.full_like(batch['fd'],10.);batch['ds']=torch.full_like(batch['ds'],100.)
+ pred=model(batch);u,b,q=model.inputs(batch)
+ raw=energies(batch['h'].cpu().numpy(),pred.cpu().numpy(),b.cpu().numpy(),B,g.mask);raw['id']=batch['id'].cpu().numpy();records.append(raw)
+ if batch_index%10==0:print(f'[evaluate batches] {job["id"]} {tag}: {batch_index}',flush=True)
+ if snr==10:
+ keep=batch['id']<2000
+ if keep.any():examples.append({k:v[keep].cpu().numpy() for k,v in dict(id=batch['id'],h=batch['h'],estimate=pred,anchor=b,z=batch['z']).items()})
+ raw={k:np.concatenate([x[k] for x in records]) for k in records[0]};atomic_npz(out/'raw.npz',**raw)
+ if examples:atomic_npz(out/'examples.npz',**{k:np.concatenate([x[k] for x in examples]) for k in examples[0]})
+ summary={'job':job,'metadata_mode':metadata_mode,'target_recipe':r.name,'condition':condition.__dict__,'snr_db':snr,'mode':r.mode,'noise_assumption_offset_db':noise_offset,'n':len(raw['id']),'pooled_linear_nmse':pooled(raw),'mean_realization_nmse':float(np.mean(raw['error']/raw['denominator'])),'raw_sha256':sha(out/'raw.npz'),'checkpoint_sha256':sha(Path(root)/'runs'/job['id']/'best.pt'),'bank_manifest_sha256':sha(bank.path/'manifest.json'),'smoke_only':limit is not None}
+ atomic_json(out/'summary.json',summary);outputs.append(summary)
+ print(f'[evaluate saved] {job["id"]} {tag}',flush=True)
+ return outputs
+
+def classical_evaluate(root,recipe,device='cpu',limit=None,noise_offset=0.):
+ from .training import covariance
+ g=recipe.grid;cov=np.load(Path(root)/'priors'/f'{recipe.name}.npz')['cov'];B=basis(g,recipe.bem)[0]
+ kinds=['ls','bem','lmmse','rank4','rank8','rank16','rank32','oracle_projection']
+ R=.999*cov+.001*np.trace(cov).real/g.M*np.eye(g.M);spectrum=np.linalg.eigh(R);cache={}
+ for cond in conditions(recipe):
+ for snr in SNR:
+ if noise_offset and (snr!=10 or cond.profile!='C' or cond.ds_ns!=100 or cond.fd not in (10,100)):continue
+ bank=Bank(bank_path(root,recipe,'TEST',cond),snr,limit)
+ for kind in kinds:
+ out=Path(root)/'classical'/recipe.name/kind/(f'{cond.key}_snr{snr:g}'+(f'_noise{noise_offset:+g}' if noise_offset else ''))
+ if (out/'summary.json').exists():
+ print(f'[classical reuse] {kind} {cond.key} snr={snr}',flush=True);continue
+ print(f'[classical start] {kind} {cond.key} snr={snr}',flush=True)
+ if (kind,snr) not in cache:cache[kind,snr]=None if kind=='oracle_projection' else gains(g,cov,recipe.bem,kind,10**((-snr+noise_offset)/10),spectrum)
+ K=cache[kind,snr];rows=[]
+ for batch in loader(bank):
+ h=batch['h'].numpy();z=batch['z'].numpy();pred=((h.reshape(len(h),-1)@B.conj())@B.T) if K is None else z@K.T
+ pred=pred.reshape(h.shape);d=energies(h,pred,pred,B,g.mask);d['id']=batch['id'].numpy();rows.append(d)
+ raw={k:np.concatenate([x[k] for x in rows]) for k in rows[0]};atomic_npz(out/'raw.npz',**raw)
+ atomic_json(out/'summary.json',dict(kind=kind,recipe=recipe.name,condition=cond.__dict__,snr_db=snr,noise_assumption_offset_db=noise_offset,pooled_linear_nmse=pooled(raw),n=len(bank),smoke_only=limit is not None))
diff --git a/pace_revision_2/pace/experiments.py b/pace_revision_2/pace/experiments.py
new file mode 100644
index 0000000000000000000000000000000000000000..9582673a1c7f125835c44d277897fd3e118e7258
--- /dev/null
+++ b/pace_revision_2/pace/experiments.py
@@ -0,0 +1,48 @@
+from dataclasses import replace
+from .config import Recipe,Grid,Condition,Bem,SEEDS
+
+def recipes():
+ main=Recipe()
+ return {'main':main,'reverse':replace(main,name='reverse',source=Condition(fd=100),bem=Bem(fd=200)),
+ 'target':replace(main,name='target',source=Condition(fd=100)),
+ 'broad':replace(main,name='broad',broad=True,bem=Bem(kf=6,tau=3e-6,fd=200)),
+ 'comb6':replace(main,name='comb6',grid=Grid(comb=6)),
+ 'timepilot':replace(main,name='timepilot',grid=Grid(pilot_symbols=(3,10))),
+ 'scs30':replace(main,name='scs30',grid=Grid(scs=30000)),
+ 'wave':replace(main,name='wave',mode='WAVE'),
+ 'reference':replace(main,name='reference',reference=True,mode='WAVE',source=Condition('A',100,50))}
+
+def jobs():
+ out=[]
+ def add(experiment,arch,arm,seeds=SEEDS[:10],recipe='main',**extra):
+ for s in seeds:
+ item=dict(experiment=experiment,arch=arch,arm=arm,seed=s,recipe=recipe,anchor='bem',info=False,scaled=False,labels_extra=False,**{})
+ item.update(extra);tag=extra.get('variant',extra.get('anchor','base'))
+ item['id']=f'{experiment}_{recipe}_{arch}_{arm}_{tag}_s{s}';out.append(item)
+ for arm in ('D','A-raw','A-res'):add('E01','compact',arm,SEEDS)
+ for arch in ('reesnet','channelformer','fortitran','helena'):add('E02',arch,'D')
+ for anchor in ('ls','lmmse','sham','oracle'):add('E03','compact','A-res',anchor=anchor)
+ for arch in ('cnn16','wide'):
+ for arm in ('D','A-res'):add('E04',arch,arm)
+ for arm in ('D','A-res'):
+ add('E05','compact',arm,info=True);add('E06','compact',arm,scaled=True)
+ variants={'broad':dict(kf=6,tau=3e-6,fd=200),'broad_iso':dict(kf=6,tau=3e-6,fd=200,isotropic=True),'low_order':dict(kf=2,kt=1),'gamma01':dict(gamma=.1),'gamma10':dict(gamma=10)}
+ for name,b in variants.items():add('E07','compact','A-res',variant=name,bem=b)
+ for eid,r in [('E08','reverse'),('E09','target'),('E10','broad'),('E11','comb6'),('E11','timepilot'),('E12','scs30')]:
+ for arm in ('D','A-res'):add(eid,'compact',arm,recipe=r)
+ for arch,arm in [('compact','D'),('compact','A-res'),('fortitran','D'),('helena','D')]:add('E13',arch,arm,recipe='wave')
+ add('E14','compact','D',labels_extra=True)
+ assert len(out)==440
+ for arch in ('fortitran','adafortitran'):add('R',arch,'D',SEEDS[:3],recipe='reference')
+ return out
+
+def tuning_jobs():
+ out=[]
+ for arch,arms in [('compact',('D','A-raw','A-res')),('cnn16',('D','A-res')),('wide',('D','A-res'))]+[(x,('D',)) for x in ('reesnet','channelformer','fortitran','helena')]:
+ for lr in (.0003,.001,.003):
+ for arm in arms:
+ for s in (31001,31002,31003):
+ out.append(dict(id=f'TUNE_{arch}_{arm}_{lr}_s{s}',experiment='TUNE',recipe='main',arch=arch,arm=arm,seed=s,anchor='bem',info=False,scaled=False,labels_extra=False,lr=lr))
+ assert len(out)==99;return out
+
+def job_bem(job,recipe):return replace(recipe.bem,**job.get('bem',{}))
diff --git a/pace_revision_2/pace/fidelity.py b/pace_revision_2/pace/fidelity.py
new file mode 100644
index 0000000000000000000000000000000000000000..d7f0e60d80d3ef453d2cf1455d90b5663870099b
--- /dev/null
+++ b/pace_revision_2/pace/fidelity.py
@@ -0,0 +1,81 @@
+"""Independent source/ported parity gates, no learned-estimation performance tests."""
+from pathlib import Path
+import io,zipfile,sys
+import numpy as np
+import torch
+from .config import Grid
+from .io import atomic_json,sha
+
+def vendor():return Path(__file__).resolve().parent.parent/'vendor'
+def helena_weights(model,path):
+ import h5py
+ with zipfile.ZipFile(path) as z,h5py.File(io.BytesIO(z.read('model.weights.h5')),'r') as f:
+ def put(layer,base,kind='dense'):
+ w=np.array(f[f'layers/{base}/vars/0']);b=np.array(f[f'layers/{base}/vars/1'])
+ if kind=='conv':w=w.transpose(3,2,0,1)
+ elif kind=='qkv':w=w.reshape(64,256).T;b=b.reshape(256)
+ elif kind=='attout':w=w.reshape(256,64).T
+ elif kind=='dense':w=w.T
+ layer.weight.data.copy_(torch.tensor(w));layer.bias.data.copy_(torch.tensor(b))
+ put(model.conv1,'conv2d','conv');put(model.conv2,'conv2d_1','conv')
+ for layer,name in [(model.embed,'dense'),(model.squeeze,'dense_1'),(model.excite,'dense_2'),(model.out,'dense_3')]:put(layer,name)
+ for layer,name in [(model.q,'_query_dense'),(model.k,'_key_dense'),(model.v,'_value_dense')]:put(layer,'multi_head_attention/'+name,'qkv')
+ put(model.attout,'multi_head_attention/_output_dense','attout');put(model.norm,'layer_normalization','norm')
+
+def forti_parity(adaptive=False):
+ from types import SimpleNamespace as NS
+ sys.path.insert(0,str(vendor()/'fortitran'))
+ from src.models.fortitran import BaseFortiTranEstimator
+ from .models.fortitran import FortiTran
+ g=Grid();s=NS(ofdm=NS(num_scs=120,num_symbols=14),pilot=NS(num_scs=40,num_symbols=2))
+ c=NS(patch_size=(3,2),adaptive_token_length=6,channel_adaptivity_hidden_sizes=[7,42,560],model_dim=32,num_head=4,activation='gelu',dropout=.1,num_layers=6 if adaptive else 3,max_seq_len=512,pos_encoding_type='learnable')
+ torch.manual_seed(313);native=BaseFortiTranEstimator(s,c,'cpu',adaptive).eval();port=FortiTran(g,adaptive).eval()
+ port.up.load_state_dict(native.pilot_upsampler.state_dict());port.first.load_state_dict(native.initial_enhancer.conv_block.state_dict());port.last.load_state_dict(native.final_refiner.conv_block.state_dict());port.embed.load_state_dict(native.transformer_encoder.linear_1.state_dict());port.project.load_state_dict(native.transformer_encoder.linear_2.state_dict());port.transform.load_state_dict(native.transformer_encoder.transformer.state_dict());port.position.data.copy_(native.transformer_encoder.positional_encoding.position_embeddings)
+ if adaptive:
+ for m,n in zip(port.metadata,[native.channel_adapter.snr_encoder,native.channel_adapter.ds_encoder,native.channel_adapter.dop_encoder]):m.load_state_dict(n.state_dict())
+ z=torch.complex(torch.randn(3,80),torch.randn(3,80));meta=torch.tensor([[10.,100.,50.],[0.,300.,100.],[25.,25.,1000.]])
+ nm=(None,meta[:,0:1],meta[:,1:2],meta[:,2:3],None,None)
+ with torch.no_grad():
+ expected=native(z.reshape(3,2,40).transpose(1,2).contiguous(),nm if adaptive else None).transpose(1,2);actual=port(z,meta)
+ torch.testing.assert_close(actual,expected,rtol=1e-5,atol=1e-6);return float(abs(actual-expected).max())
+
+def cf_parity():
+ from scipy.signal import correlate2d
+ from scipy.special import softmax
+ from .models.channelformer import Channelformer
+ torch.manual_seed(123);model=Channelformer(14,120,80).double().eval();x=np.random.default_rng(321).normal(size=(1,1,80,2))
+ def arr(v):return v.detach().numpy()
+ def conv(x,m):
+ w,b=arr(m.weight),arr(m.bias);out=np.zeros((len(x),len(w),x.shape[2],x.shape[3]))
+ for n in range(len(x)):
+ for o in range(len(w)):
+ out[n,o]=b[o]
+ for c in range(x.shape[1]):out[n,o]+=correlate2d(x[n,c],w[o,c],mode='same',boundary='fill')
+ return out
+ def norm(x,m):return (x-x.mean(2,keepdims=True))/np.sqrt(x.var(2,keepdims=True)+m.eps)*arr(m.gain)+arr(m.bias)
+ def linear(x,m):return x@arr(m.weight).T+arr(m.bias)
+ def gelu(x):return .5*x*(1+np.tanh(np.sqrt(2/np.pi)*(x+.044715*x**3)))
+ z=x.copy()
+ for e in model.encoder:
+ seq=z[:,0].transpose(0,2,1);q,k,v=np.split(linear(seq,e.attn.qkv),3,-1)
+ q,k,v=[y.reshape(len(y),2,2,40).transpose(0,2,1,3) for y in (q,k,v)]
+ a=(softmax(q@k.swapaxes(-1,-2)/np.sqrt(40),axis=-1)@v).transpose(0,2,1,3).reshape(len(x),2,80)
+ a=linear(a,e.attn.proj).transpose(0,2,1)[:,None];z=norm(z+a,e.ln1);z=norm(z+conv(gelu(conv(z,e.ffn.conv1)),e.ffn.conv2),e.ln2)
+ z=conv(z,model.conv_head)
+ for b in model.decoder:z=norm(z+conv(np.maximum(conv(z,b.conv1),0),b.conv2),b.ln)
+ z=linear(z.transpose(0,1,3,2),model.fc_upsample).transpose(0,1,3,2);z=conv(z,model.conv_out)[:,0].transpose(0,2,1).reshape(len(x),2,14,120)
+ with torch.no_grad():actual=model(torch.tensor(x)).numpy()
+ np.testing.assert_allclose(actual,z,rtol=1e-9,atol=1e-9);return float(np.max(abs(actual-z)))
+
+def run(root,arch,fixture=None,device='cpu'):
+ if arch in ('fortitran','adafortitran'):error=forti_parity(arch=='adafortitran');method='pinned released source versus independent port'
+ elif arch=='channelformer':error=cf_parity();method='independent NumPy implementation of MATLAB-defined operators; not native MATLAB checkpoint parity'
+ elif arch=='helena':
+ if not fixture:raise ValueError('Export native Keras fixture with scripts/export_helena.py, then pass --fixture PATH')
+ from .models.helena import Helena
+ f=np.load(fixture);model=Helena(612).eval();helena_weights(model,vendor()/'helena/model.keras')
+ x=f['input'];inp=torch.complex(torch.tensor(x[...,0]),torch.tensor(x[...,1])).transpose(1,2)
+ with torch.no_grad():out=model(inp);actual=torch.stack([out.real,out.imag],-1).transpose(1,2).numpy()
+ np.testing.assert_allclose(actual,f['output'],rtol=1e-4,atol=1e-4);error=float(abs(actual-f['output']).max());method='native Keras saved weights, 612x14 sparse-pilot forward parity'
+ else:raise ValueError(arch)
+ atomic_json(Path(root)/'validation'/f'{arch}_fidelity.json',dict(passed=True,max_abs_error=error,method=method,fixture_sha256=sha(fixture) if fixture else None));print(arch,method,error)
diff --git a/pace_revision_2/pace/interventions.py b/pace_revision_2/pace/interventions.py
new file mode 100644
index 0000000000000000000000000000000000000000..0fd7ee96af49544216f4b20b9c83712a27c906d8
--- /dev/null
+++ b/pace_revision_2/pace/interventions.py
@@ -0,0 +1,170 @@
+from pathlib import Path
+from dataclasses import replace,asdict
+import numpy as np
+import torch
+from .models import ResourceGate
+from .training import load_model,loader,move,score,build,initialize_seed
+from .data import Bank,bank_path
+from .experiments import jobs,recipes
+from .config import SNR,conditions,seed
+from .io import atomic_npz,atomic_json,read_json,torch_save,deterministic,sha
+from .classical import basis,gains,diagnostics
+from .metrics import energies,pooled
+
+def parents(recipe,training_seed):
+ e='E13' if recipe=='wave' else 'E01'
+ return [next(j for j in jobs() if j['experiment']==e and j['arch']=='compact' and j['arm']==arm and j['seed']==training_seed) for arm in ('D','A-res')]
+
+def calibrate_gate(root,recipe,training_seed,device='cuda',limit=None):
+ import time,copy
+ r=recipes()[recipe];out=Path(root)/'gates'/recipe/str(training_seed)
+ if (out/'complete.json').exists():
+ print(f'[gate fit reuse] {recipe} seed={training_seed}',flush=True);return
+ d,a=[load_model(root,j,device) for j in parents(recipe,training_seed)]
+ fit=Bank(bank_path(root,r,'GATE_FIT'),limit=limit);val=Bank(bank_path(root,r,'GATE_VAL'),limit=limit)
+ # Cache the ORIGINAL decoded arrays. __getitem__, batching and arithmetic
+ # stay unchanged. Do not introduce an unbounded class-wide LRU cache.
+ decoded_bytes=0;t0=time.perf_counter()
+ for bank in (fit,val):
+ shards=[bank._shard(i) for i in range(len(bank.ends))]
+ decoded_bytes+=sum(v.nbytes for shard in shards for v in shard.values())
+ bank._shard=lambda i,shards=shards:shards[i]
+ print(f'[gate RAM] {recipe} seed={training_seed}: {decoded_bytes/2**20:.1f} MiB loaded in {time.perf_counter()-t0:.2f}s',flush=True)
+ deterministic(seed('GATE',recipe,training_seed,'initialization'));gate=ResourceGate().to(device);mask=torch.tensor(r.grid.mask,device=device,dtype=torch.float32)[None,None]
+ sums=torch.zeros(7,device=device,dtype=torch.float64);sq=sums.clone();count=0;num=den=energy=0.
+ with torch.no_grad():
+ for batch in loader(fit,256):
+ batch=move(batch,device);dp=d(batch);ap=a(batch);u,_,q=d.inputs(batch)
+ f=gate.features(u,dp,ap,mask,q)[:,:7].double();sums+=f.sum((0,2,3));sq+=(f*f).sum((0,2,3));count+=f.shape[0]*f.shape[2]*f.shape[3]
+ delta=(ap-dp).to(torch.complex128);target=(batch['h']-dp).to(torch.complex128);num+=float((target.conj()*delta).real.sum());den+=float((abs(delta)**2).sum());energy+=float((abs(batch['h'].to(torch.complex128))**2).sum())
+ gate.mean.copy_((sums/count).float()[None,:,None,None]);gate.std.copy_(torch.sqrt(torch.clamp(sq/count-(sums/count)**2,min=1e-12)).float()[None,:,None,None])
+ alpha=float(np.clip(num/den,0,1)) if den>1e-12*energy else 0.
+ scalar=dict(alpha=alpha,numerator=num,denominator=den,extra_source_labels=len(fit)+len(val))
+ def exact(x,y):
+ if torch.is_tensor(x):return torch.is_tensor(y) and x.dtype==y.dtype and torch.equal(x.detach().cpu(),y.detach().cpu())
+ if isinstance(x,dict):return isinstance(y,dict) and x.keys()==y.keys() and all(exact(x[k],y[k]) for k in x)
+ if isinstance(x,(list,tuple)):return type(x)==type(y) and len(x)==len(y) and all(exact(a,b) for a,b in zip(x,y))
+ return x==y
+ def snapshot(model):return {k:v.detach().cpu().clone() for k,v in model.state_dict().items()}
+ old=torch.load(out/'last.pt',map_location='cpu',weights_only=True) if (out/'last.pt').exists() else None
+ contract={'recipe':recipe,'seed':training_seed,'limit':limit,'n_fit':len(fit),'n_val':len(val),
+ 'parent_checkpoints':[sha(Path(root)/'runs'/j['id']/'best.pt') for j in parents(recipe,training_seed)],
+ 'bank_manifests':[sha(bank.path/'manifest.json') for bank in (fit,val)],
+ 'fit_epochs':50,'batch':256}
+ if (out/'scalar.json').exists():
+ if read_json(out/'scalar.json')!=scalar:raise RuntimeError('Gate scalar calibration differs on restart; saved results left untouched.')
+ elif old is not None:raise RuntimeError('Incomplete checkpoint restore: scalar.json is missing.')
+ else:atomic_json(out/'scalar.json',scalar)
+ opt=torch.optim.Adam(gate.parameters(),lr=.001);best=float('inf');history=[];best_state=None;start=0
+ legacy=old is not None and old.get('resume_schema')!=2
+ if old is not None:
+ if not (0<=int(old['epoch'])<50):raise RuntimeError('Invalid saved gate epoch')
+ if legacy:
+ if not (out/'best.pt').exists():raise RuntimeError('Legacy best.pt is required for verified continuation.')
+ legacy_best=torch.load(out/'best.pt',map_location='cpu',weights_only=True)
+ print(f'[gate verify] Replaying {int(old["epoch"])+1} saved epochs IN MEMORY with RAM loading to verify the legacy checkpoint and recover exact history. No old results overwritten.',flush=True)
+ else:
+ if old['contract']!=contract:raise RuntimeError('Gate checkpoint/data contract mismatch')
+ gate.load_state_dict(old['gate']);opt.load_state_dict(old['optimizer']);start=int(old['epoch'])+1
+ best=old['best'];history=old['history'];best_state=old['best_gate']
+ torch.set_rng_state(old['rng_cpu'])
+ if old.get('rng_cuda') and torch.cuda.is_available():torch.cuda.set_rng_state_all(old['rng_cuda'])
+ # last.pt is the atomic authority; repair mirrors after an interrupted save.
+ torch_save(out/'best.pt',best_state);atomic_json(out/'history.json',history)
+ print(f'[gate resume] {recipe} seed={training_seed}: {start}/50 epochs already saved',flush=True)
+ for epoch in range(start,50):
+ epoch_start=time.perf_counter()
+ gate.train();gen=torch.Generator().manual_seed(seed('GATE',recipe,f'{training_seed}:{epoch}','shuffle'))
+ for batch in loader(fit,256,True,gen):
+ batch=move(batch,device)
+ with torch.no_grad():dp=d(batch);ap=a(batch);u,_,q=d.inputs(batch)
+ pred,_=gate(u,dp,ap,mask,q);loss=abs(pred-batch['h']).square().mean();opt.zero_grad();loss.backward();torch.nn.utils.clip_grad_norm_(gate.parameters(),1.,error_if_nonfinite=True);opt.step()
+ gate.eval();total=count=0
+ with torch.no_grad():
+ for batch in loader(val,256):
+ batch=move(batch,device);dp=d(batch);ap=a(batch);u,_,q=d.inputs(batch);pred,_=gate(u,dp,ap,mask,q);total+=float(abs(pred.to(torch.complex128)-batch['h']).square().sum());count+=pred.numel()
+ v=total/count;history.append({'epoch':epoch,'validation_complex_mse':v})
+ if v0)
+ anchor_outside=energy(b-((b.reshape(n,-1)@B.conj())@B.T).reshape(h.shape))
+ estimate_outside=energy(estimate-((estimate.reshape(n,-1)@B.conj())@B.T).reshape(h.shape))
+ projection_closure=energy(e)-energy(h-ph)-energy(ph-b)
+ out=dict(anchor_range_energy=anchor_outside,estimate_range_energy=estimate_outside,projection_closure=projection_closure,error=E,denominator=D,projection_outside=energy(h-ph),anchor_inspace=energy(ph-b),anchor_error=energy(e),correction_energy=cn,required_energy=rn,required_learned_inner=dot,anchor_correction_error_cross=2*inner(e,d),cosine=cosine,cosine_defined=den>0,correction_closure=E-(rn+cn-2*dot))
+ # Check closures before any pooling. Projection identity applies only to in-range anchors.
+ correction_scale=np.maximum(rn+cn+E,1e-30)
+ if np.any(abs(out['correction_closure'])>1e-10*correction_scale):raise FloatingPointError('Correction decomposition failed')
+ in_range=anchor_outside<=1e-12*np.maximum(D+energy(b),1e-30)
+ out['projection_identity_applicable']=in_range
+ if np.any(abs(projection_closure[in_range])>5e-6*np.maximum(D[in_range]+energy(b)[in_range],1e-30)):raise FloatingPointError('Projection decomposition failed')
+ if mask is not None:
+ out['data_error']=(abs(estimate-h)**2)[:,~mask].sum(1);out['data_denominator']=(abs(h)**2)[:,~mask].sum(1)
+ return out
+
+def pooled(record):return float(np.sum(record['error'],dtype=np.float64)/np.sum(record['denominator'],dtype=np.float64))
+def paired_summary(values,alternative='two-sided'):
+ x=np.asarray(values,float);n=len(x)
+ if n<2:return {'n':n,'mean':float(x.mean()),'low':None,'high':None,'p':None,'sd':None,'dz':None}
+ mean=x.mean();sd=x.std(ddof=1);half=stats.t.ppf(.975,n-1)*sd/np.sqrt(n)
+ if sd==0:p=1. if mean==0 else (0. if alternative=='two-sided' or (alternative=='greater' and mean>0) or (alternative=='less' and mean<0) else 1.)
+ else:p=float(stats.ttest_1samp(x,0,alternative=alternative).pvalue)
+ return dict(n=n,mean=float(mean),sd=float(sd),low=float(mean-half),high=float(mean+half),p=p,dz=float(mean/sd) if sd else None)
+def holm(ps):
+ ps=np.asarray(ps,float);order=np.argsort(ps);out=np.empty(len(ps));v=0
+ for j,k in enumerate(order):v=max(v,(len(ps)-j)*ps[k]);out[k]=min(v,1)
+ return out
+
+def equivalence(x,margin):
+ x=np.asarray(x,float);n=len(x);se=x.std(ddof=1)/np.sqrt(n);m=x.mean();half=stats.t.ppf(.95,n-1)*se
+ p=max(stats.t.sf((m+margin)/se,n-1),stats.t.cdf((m-margin)/se,n-1)) if se else float(abs(m)>=margin)
+ return dict(mean=float(m),margin=margin,low90=float(m-half),high90=float(m+half),p_tost=float(p),equivalent=bool(p<.05))
+
+def crossed_bootstrap(d0,a0,d1,a1,den0,den1,reps=10000,seed=90221):
+ # arrays [seed, sample], shared channel bootstrap and seed indices across all arms.
+ rng=np.random.default_rng(seed);ns,n=d0.shape;out=[]
+ for _ in range(reps):
+ w=rng.multinomial(n,np.full(n,1/n));ids=rng.integers(ns,size=ns)
+ g0=10*np.log10((d0@w)/(a0@w));g1=10*np.log10((d1@w)/(a1@w))
+ out.append(np.mean((g1-g0)[ids]))
+ return np.asarray(out)
diff --git a/pace_revision_2/pace/models/__init__.py b/pace_revision_2/pace/models/__init__.py
new file mode 100644
index 0000000000000000000000000000000000000000..cbd5017e387a77228a8043e5806389cc91e5d6f1
--- /dev/null
+++ b/pace_revision_2/pace/models/__init__.py
@@ -0,0 +1,77 @@
+import numpy as np
+import torch
+from torch import nn
+from .compact import hybrid,CNN
+from .reesnet import ReEsNet
+from .channelformer import Channelformer
+from .fortitran import FortiTran
+from .helena import Helena
+from ..classical import interpolation,basis,gains
+from ..config import seed
+
+def ri(x):return torch.stack((x.real,x.imag),1)
+def cx(x):return torch.complex(x[:,0],x[:,1])
+
+class Estimator(nn.Module):
+ def __init__(self,g,cov,bem,arch='compact',arm='D',anchor='bem',info=False,scaled=False):
+ super().__init__();self.g=g;self.bem=bem;self.arch=arch;self.arm=arm;self.anchor=anchor;self.info=info;self.scaled=scaled
+ self.cov=cov;self._gains={}
+ self.register_buffer('L',torch.tensor(interpolation(g),dtype=torch.complex128))
+ self.register_buffer('B',torch.tensor(basis(g,bem)[0],dtype=torch.complex128))
+ self.register_buffer('su',torch.tensor(1.));self.register_buffer('sr',torch.tensor(1.))
+ rng=np.random.default_rng(seed('FIXED','main',0,'sham'))
+ self.register_buffer('permutation',torch.tensor(rng.permutation(g.M)))
+ self.register_buffer('signs',torch.tensor(rng.choice([-1,1],g.M),dtype=torch.float64))
+ if arch in ('compact','wide'):self.net=hybrid(g,arch=='wide',5 if info else 3)
+ elif arch=='cnn16':self.net=CNN(16,5 if info else 3)
+ elif arch=='reesnet':self.net=ReEsNet(g.S,g.F,None,len(g.pilot_symbols),len(g.pf))
+ elif arch=='channelformer':self.net=Channelformer(g.S,g.F,g.P)
+ elif arch in ('fortitran','adafortitran'):self.net=FortiTran(g,arch=='adafortitran')
+ elif arch=='helena':self.net=Helena(g.F,g.S)
+ else:raise ValueError(arch)
+ def anchor_value(self,batch,n0=None):
+ z=batch['z'].to(self.L.device).to(torch.complex128);h=batch.get('h');n0=batch['n0'] if n0 is None else n0
+ if self.arm=='D':return torch.zeros((len(z),self.g.S,self.g.F),device=z.device,dtype=torch.complex64)
+ if self.anchor=='oracle':
+ if h is None:raise ValueError('Oracle PH requires a labeled diagnostic batch')
+ flat=h.to(z.device).to(torch.complex128).flatten(1);out=(flat@self.B.conj())@self.B.T
+ else:
+ out=torch.empty((len(z),self.g.M),device=z.device,dtype=torch.complex128)
+ for value in torch.unique(n0):
+ v=float(value);key=(self.anchor,v,str(z.device))
+ if key not in self._gains:
+ self._gains[key]=torch.tensor(gains(self.g,self.cov,self.bem,'bem' if self.anchor=='sham' else self.anchor,v),device=z.device,dtype=torch.complex128)
+ idx=n0==value;out[idx]=z[idx]@self._gains[key].T
+ if self.anchor=='sham':out=out[:,self.permutation]*self.signs
+ return out.reshape(-1,self.g.S,self.g.F).to(torch.complex64)
+ def inputs(self,batch):
+ z=batch['z'].to(self.L.device);u=(z.to(torch.complex128)@self.L.T).reshape(-1,self.g.S,self.g.F).to(torch.complex64)
+ b=self.anchor_value(batch);q=(-torch.log10(batch['n0'].to(z.device))/2.5)[:,None,None,None].expand(-1,1,self.g.S,self.g.F)
+ return u,b,q
+ def forward(self,batch):
+ z=batch['z'].to(self.L.device).to(torch.complex64)
+ if self.arch=='reesnet':return cx(self.net(ri(z.reshape(-1,len(self.g.pilot_symbols),len(self.g.pf)))))
+ if self.arch=='channelformer':return cx(self.net(ri(z)))
+ if self.arch in ('fortitran','adafortitran'):
+ meta=torch.stack([batch[k] for k in ('snr','ds','fd')],-1).to(z.device)
+ return self.net(z,meta)
+ if self.arch=='helena':
+ sparse=torch.zeros((len(z),self.g.M),device=z.device,dtype=z.dtype);sparse[:,self.g.pilots]=z
+ return self.net(sparse.reshape(-1,self.g.S,self.g.F))
+ u,b,q=self.inputs(batch);x=u-b if self.arm=='A-res' else u
+ if self.scaled:x=x/self.su
+ planes=[ri(x)]
+ if self.info:planes.append(ri(b) if self.arm=='A-res' else torch.zeros_like(ri(b)))
+ planes.append(q);y=cx(self.net(torch.cat(planes,1)))
+ return b+self.sr*y if self.scaled else b+y
+
+class ResourceGate(nn.Module):
+ def __init__(self):
+ super().__init__();self.register_buffer('mean',torch.zeros(1,7,1,1));self.register_buffer('std',torch.ones(1,7,1,1))
+ self.net=nn.Sequential(nn.Conv2d(9,16,3,padding=1),nn.ReLU(),nn.Conv2d(16,16,3,padding=1),nn.ReLU(),nn.Conv2d(16,1,1),nn.Sigmoid())
+ nn.init.zeros_(self.net[4].weight);nn.init.constant_(self.net[4].bias,np.log(.1/.9))
+ def features(self,u,d,a,mask,q):
+ f=torch.cat([ri(u),ri(d),ri(a),torch.log1p(abs(a-d)**2)[:,None]],1)
+ return torch.cat([(f-self.mean)/self.std,mask.expand(len(u),1,*u.shape[1:]),q],1)
+ def forward(self,u,d,a,mask,q):
+ alpha=self.net(self.features(u,d,a,mask,q))[:,0];return d+alpha*(a-d),alpha
diff --git a/pace_revision_2/pace/models/__pycache__/__init__.cpython-311.pyc b/pace_revision_2/pace/models/__pycache__/__init__.cpython-311.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..bcd82bf8f1ba81acba84a138f38a44907871ec05
Binary files /dev/null and b/pace_revision_2/pace/models/__pycache__/__init__.cpython-311.pyc differ
diff --git a/pace_revision_2/pace/models/__pycache__/base.cpython-311.pyc b/pace_revision_2/pace/models/__pycache__/base.cpython-311.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..eaba4c198fc20fde23740414f0ca4adc92e12ee8
Binary files /dev/null and b/pace_revision_2/pace/models/__pycache__/base.cpython-311.pyc differ
diff --git a/pace_revision_2/pace/models/__pycache__/channelformer.cpython-311.pyc b/pace_revision_2/pace/models/__pycache__/channelformer.cpython-311.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..c269e75ef2a7c9049b455d5386ca126d904a8e83
Binary files /dev/null and b/pace_revision_2/pace/models/__pycache__/channelformer.cpython-311.pyc differ
diff --git a/pace_revision_2/pace/models/__pycache__/compact.cpython-311.pyc b/pace_revision_2/pace/models/__pycache__/compact.cpython-311.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..aa6f0d655306d023e74aeecc8a746db9490a77d0
Binary files /dev/null and b/pace_revision_2/pace/models/__pycache__/compact.cpython-311.pyc differ
diff --git a/pace_revision_2/pace/models/__pycache__/deterministic.cpython-311.pyc b/pace_revision_2/pace/models/__pycache__/deterministic.cpython-311.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..c01c6303393192f8d58fed02a57096743f878127
Binary files /dev/null and b/pace_revision_2/pace/models/__pycache__/deterministic.cpython-311.pyc differ
diff --git a/pace_revision_2/pace/models/__pycache__/fortitran.cpython-311.pyc b/pace_revision_2/pace/models/__pycache__/fortitran.cpython-311.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..985cfac66dcda014536e3df824d69fde4e63897e
Binary files /dev/null and b/pace_revision_2/pace/models/__pycache__/fortitran.cpython-311.pyc differ
diff --git a/pace_revision_2/pace/models/__pycache__/helena.cpython-311.pyc b/pace_revision_2/pace/models/__pycache__/helena.cpython-311.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..b586bbd49ef8bcd9a79c250140e5143dd481f516
Binary files /dev/null and b/pace_revision_2/pace/models/__pycache__/helena.cpython-311.pyc differ
diff --git a/pace_revision_2/pace/models/__pycache__/hybrid_cnn_lstm.cpython-311.pyc b/pace_revision_2/pace/models/__pycache__/hybrid_cnn_lstm.cpython-311.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..8476a0015593ed14f2805df707fa4d4fe0a233ac
Binary files /dev/null and b/pace_revision_2/pace/models/__pycache__/hybrid_cnn_lstm.cpython-311.pyc differ
diff --git a/pace_revision_2/pace/models/__pycache__/reesnet.cpython-311.pyc b/pace_revision_2/pace/models/__pycache__/reesnet.cpython-311.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..73729bc8939d567f22e1a79440a36ce60b7701ee
Binary files /dev/null and b/pace_revision_2/pace/models/__pycache__/reesnet.cpython-311.pyc differ
diff --git a/pace_revision_2/pace/models/base.py b/pace_revision_2/pace/models/base.py
new file mode 100644
index 0000000000000000000000000000000000000000..dff4266d188efa06fb990e38352aca705b511e5c
--- /dev/null
+++ b/pace_revision_2/pace/models/base.py
@@ -0,0 +1,67 @@
+"""Base class and IO contract for channel-estimator models.
+
+All estimator models consume and produce real/imag-stacked CFR tensors of
+shape ``[batch, 2, num_ofdm_symbols, num_subcarriers]`` (channels-first for
+PyTorch convolutions). The two channels are the real and imaginary parts.
+
+Keeping a single contract lets the trainer, evaluator, and (later) alternative
+architectures be swapped without touching call sites.
+"""
+
+from __future__ import annotations
+
+from abc import abstractmethod
+
+import torch
+from torch import nn
+
+
+class BaseEstimatorModel(nn.Module):
+ """Abstract base for CFR estimator networks.
+
+ Subclasses implement :meth:`forward` mapping an input tensor
+ ``[B, 2, S, F]`` to an output tensor of the same shape.
+ """
+
+ def __init__(self, num_ofdm_symbols: int, num_subcarriers: int) -> None:
+ """Store grid dimensions used for shape checks.
+
+ Args:
+ num_ofdm_symbols: Number of OFDM symbols (S).
+ num_subcarriers: Number of subcarriers (F).
+ """
+ super().__init__()
+ self.num_ofdm_symbols = num_ofdm_symbols
+ self.num_subcarriers = num_subcarriers
+
+ @abstractmethod
+ def forward(self, x: torch.Tensor) -> torch.Tensor:
+ """Map input CFR estimate to refined CFR estimate.
+
+ Args:
+ x: Input tensor ``[B, 2, S, F]``.
+
+ Returns:
+ Output tensor ``[B, 2, S, F]``.
+ """
+ raise NotImplementedError
+
+ def check_io_shapes(self, x: torch.Tensor, y: torch.Tensor) -> None:
+ """Validate that input and output match the expected grid shape.
+
+ Args:
+ x: Input tensor.
+ y: Output tensor.
+
+ Raises:
+ ValueError: If either tensor has an unexpected shape.
+ """
+ expected = (2, self.num_ofdm_symbols, self.num_subcarriers)
+ if tuple(x.shape[1:]) != expected:
+ raise ValueError(f"input shape {tuple(x.shape[1:])} != expected {expected}")
+ if tuple(y.shape[1:]) != expected:
+ raise ValueError(f"output shape {tuple(y.shape[1:])} != expected {expected}")
+
+ def num_parameters(self) -> int:
+ """Return the total number of trainable parameters."""
+ return sum(p.numel() for p in self.parameters() if p.requires_grad)
diff --git a/pace_revision_2/pace/models/channelformer.py b/pace_revision_2/pace/models/channelformer.py
new file mode 100644
index 0000000000000000000000000000000000000000..457f3009a633284ab35ff134795e80bc218e6c36
--- /dev/null
+++ b/pace_revision_2/pace/models/channelformer.py
@@ -0,0 +1,379 @@
+"""Audited offline Channelformer adaptation (Luan & Thompson, IEEE TWC 2023).
+
+Reference: D. Luan and J. Thompson, "Channelformer: Attention based Neural
+Solution for Wireless Channel Estimation and Effective Online Training," IEEE
+Transactions on Wireless Communications, 2023 (arXiv:2302.04368). Official
+MATLAB code: github.com/dianixn/Channelformer (offline == package ``+HA03``).
+
+This module reproduces the **unpruned offline** Channelformer exactly as the
+official ``+transformer/model.m`` executes it, with every architectural detail
+resolved from the MATLAB source rather than the paper prose (the two differ in
+places; the source is authoritative). Resolved facts (see
+``CF_RESOLVED_FROM_SOURCE.md`` for the full audit):
+
+Tensor semantics (the subtle part). In MATLAB the pilot input is a dlarray of
+shape ``[F, 2, N]`` where ``F`` is the pilot-vector length (72 paper / 48 ours),
+the ``2`` is the real/imag plane, and ``N`` is batch. The encoder attention's
+projection ``dlmtimes(W[3F,F], X[F,2,N]) -> [3F,2,N]`` mixes across the ``F``
+axis, so:
+
+ * the attention **model dimension** d_model == F (the pilot-vector length),
+ * the attention **sequence** is the 2 re/im planes (T = 2 tokens),
+ * ``NumHeads`` divides F and d_k = F / NumHeads.
+
+The FeedforwardNN ("Pre-Network" in the paper) and the whole decoder then treat
+the ``[F, 2]`` map as a single-channel 2-D image (height F, width 2) and apply
+``'same'`` 2-D convolutions over it. The decoder FC upsample maps the F axis up
+to ``out_len = S * F_full`` (freq-fastest / column-major of ``[F_full, S]``),
+producing the full-slot channel.
+
+Forward order (from ``model.m``), exactly:
+
+ Z = X # [B, 1, F, 2] (torch layout)
+ Z = EncoderBlock(Z) x Encoder_layers # attention + FFN, post-norm
+ Z = conv_head(Z) # 1 -> N_dec, 5x5 'same'
+ Z = DecoderBlock(Z) x Decoder_layers # residual conv, post-norm
+ Z = fc_upsample(Z) # F -> out_len (per token,chan)
+ Z = conv_out(Z) # N_dec -> 1, 5x5 'same'
+
+Post-norm LayerNorm (``normalization.m``) is over MATLAB dimension 1 (the F
+axis), eps 1e-5, affine. GeLU is the tanh approximation (``gelu.m``).
+
+The network's raw output is ``[B, 2, out_len]`` with ``out_len`` ordered
+freq-fastest; the estimator wrapper reshapes it to the project's ``[B, 2, S, F]``
+CFR contract. Keeping this module pure (pilots -> flat full-slot) makes the
+paper-grid fidelity gate a direct shape/param check.
+"""
+
+from __future__ import annotations
+
+import torch
+from torch import nn
+
+from types import SimpleNamespace as ModelConfig
+from .base import BaseEstimatorModel
+
+
+class _LayerNormDim1(nn.Module):
+ """LayerNorm over the F (feature) axis of a ``[B, C, F, T]`` map, affine per-F.
+
+ Mirrors the MATLAB ``normalization.m``: normalize over dimension 1 (the F
+ axis) with eps=1e-5 and a per-F affine gain/bias broadcast across the token
+ (T) and channel (C) axes. The affine parameters have length F, exactly as the
+ source (``ln_*_g_0``/``ln_*_b_0`` are ``[F, 1]``).
+ """
+
+ def __init__(self, feature_size: int, eps: float = 1e-5) -> None:
+ super().__init__()
+ self.eps = float(eps)
+ # Affine over the F axis; shape [1,1,F,1] to broadcast across B,C,T.
+ self.gain = nn.Parameter(torch.ones(1, 1, feature_size, 1))
+ self.bias = nn.Parameter(torch.zeros(1, 1, feature_size, 1))
+
+ def forward(self, x: torch.Tensor) -> torch.Tensor:
+ # x: [B, C, F, T]; normalize over dim=2 (F).
+ mean = x.mean(dim=2, keepdim=True)
+ var = ((x - mean) ** 2).mean(dim=2, keepdim=True)
+ x = (x - mean) / torch.sqrt(var + self.eps)
+ return self.gain * x + self.bias
+
+
+class _EncoderAttention(nn.Module):
+ """Single-block multi-head self-attention over the T=2 (re/im) token axis.
+
+ Reproduces ``+layer/attention.m`` + ``multiheadAttention.m``. The input map is
+ ``[B, 1, F, T]`` (single channel, F features, T=2 tokens). The combined
+ projection ``W[3F, F]`` mixes across F to produce Q, K, V each of model-dim F;
+ heads split F into ``NumHeads`` groups of size ``d_k = F/NumHeads``; scaled
+ dot-product attention runs over the T tokens; the output projection ``W[F,F]``
+ maps back. Weight layout matches the source: a single Linear(F -> 3F) for
+ QKV (rows Q|K|V), a Linear(F -> F) output projection.
+ """
+
+ def __init__(self, feature_size: int, num_heads: int) -> None:
+ super().__init__()
+ if feature_size % num_heads != 0:
+ raise ValueError(
+ f"feature_size {feature_size} must be divisible by num_heads {num_heads}"
+ )
+ self.F = feature_size
+ self.H = num_heads
+ self.d_k = feature_size // num_heads
+ # attn_c_attn_w_0: [3F, F] (+ bias 3F) ; attn_c_proj_w_0: [F, F] (+ bias F).
+ self.qkv = nn.Linear(feature_size, 3 * feature_size, bias=True)
+ self.proj = nn.Linear(feature_size, feature_size, bias=True)
+
+ def forward(self, x: torch.Tensor) -> torch.Tensor:
+ # x: [B, 1, F, T] -> tokens as [B, T, F] (drop the singleton channel).
+ b, c, F, T = x.shape
+ assert c == 1 and F == self.F
+ seq = x.squeeze(1).permute(0, 2, 1).contiguous() # [B, T, F]
+ qkv = self.qkv(seq) # [B, T, 3F]
+ q, k, v = qkv.split(self.F, dim=-1) # each [B, T, F]
+
+ def split_heads(t: torch.Tensor) -> torch.Tensor:
+ # [B, T, F] -> [B, H, T, d_k]
+ return t.view(b, T, self.H, self.d_k).permute(0, 2, 1, 3).contiguous()
+
+ qh, kh, vh = split_heads(q), split_heads(k), split_heads(v)
+ # scores over tokens: [B, H, T, T], scaled by sqrt(d_k) (== source sqrt(size(Q,1))).
+ scores = torch.matmul(qh, kh.transpose(-2, -1)) / (self.d_k ** 0.5)
+ attn = torch.softmax(scores, dim=-1)
+ ctx = torch.matmul(attn, vh) # [B, H, T, d_k]
+ merged = ctx.permute(0, 2, 1, 3).contiguous().view(b, T, self.F) # [B, T, F]
+ out = self.proj(merged) # [B, T, F]
+ # back to map [B, 1, F, T]
+ return out.permute(0, 2, 1).unsqueeze(1).contiguous()
+
+
+class _FeedforwardNN(nn.Module):
+ """Convolutional feed-forward ("Pre-Network"): conv 1->N_enc, GeLU, conv N_enc->1.
+
+ Reproduces ``+layer/FeedforwardNN.m``: two ``'same'`` 3x3 convolutions over
+ the ``[F, T]`` map with a tanh-GeLU between. Channels 1 -> N_encoder -> 1.
+ """
+
+ def __init__(self, n_encoder: int) -> None:
+ super().__init__()
+ self.conv1 = nn.Conv2d(1, n_encoder, kernel_size=3, padding=1)
+ self.act = nn.GELU(approximate="tanh")
+ self.conv2 = nn.Conv2d(n_encoder, 1, kernel_size=3, padding=1)
+
+ def forward(self, x: torch.Tensor) -> torch.Tensor:
+ return self.conv2(self.act(self.conv1(x)))
+
+
+class _EncoderBlock(nn.Module):
+ """Post-norm attention + FFN encoder block (``+HA03/Encoder_block.m``).
+
+ A = attention(X); A = A + X; A = LN1(A)
+ Z = FFN(A); Z = Z + A; Z = LN2(Z)
+ """
+
+ def __init__(self, feature_size: int, num_heads: int, n_encoder: int) -> None:
+ super().__init__()
+ self.attn = _EncoderAttention(feature_size, num_heads)
+ self.ln1 = _LayerNormDim1(feature_size)
+ self.ffn = _FeedforwardNN(n_encoder)
+ self.ln2 = _LayerNormDim1(feature_size)
+
+ def forward(self, x: torch.Tensor) -> torch.Tensor:
+ a = self.attn(x)
+ a = a + x
+ a = self.ln1(a)
+ z = self.ffn(a)
+ z = z + a
+ z = self.ln2(z)
+ return z
+
+
+class _DecoderBlock(nn.Module):
+ """Post-norm residual conv block (``+HA03/Decoder_block.m``).
+
+ Y = conv1(X); Y = relu(Y); Y = conv2(Y); Y = Y + X; Y = LN(Y)
+
+ Both convs are ``'same'`` 5x5, N_decoder -> N_decoder. The LayerNorm affine
+ is over the F axis (``ln_de_w3``/``ln_de_b3`` are ``[F,1]``).
+ """
+
+ def __init__(self, feature_size: int, n_decoder: int, gamma: int = 5) -> None:
+ super().__init__()
+ pad = gamma // 2
+ self.conv1 = nn.Conv2d(n_decoder, n_decoder, kernel_size=gamma, padding=pad)
+ self.relu = nn.ReLU(inplace=True)
+ self.conv2 = nn.Conv2d(n_decoder, n_decoder, kernel_size=gamma, padding=pad)
+ self.ln = _LayerNormDim1(feature_size)
+
+ def forward(self, x: torch.Tensor) -> torch.Tensor:
+ y = self.conv1(x)
+ y = self.relu(y)
+ y = self.conv2(y)
+ y = y + x
+ y = self.ln(y)
+ return y
+
+
+class Channelformer(BaseEstimatorModel):
+ """Faithful offline Channelformer: pilots -> flat full-slot CFR.
+
+ The module consumes the pilot LS vector as a ``[B, 1, F, 2]`` map (F = pilot
+ vector length, 2 = re/im tokens) and produces a ``[B, 2, out_len]`` flat
+ estimate with ``out_len = S * F_full`` (freq-fastest). The estimator wrapper
+ reshapes the flat output into the project's ``[B, 2, S, F_full]`` contract.
+
+ Shapes at the paper grid (F=72, F_full=72, S=14): out_len=1008.
+ Shapes at our grid (F=48, F_full=48, S=14): out_len=672.
+ """
+
+ #: expose the paper's attention config as class-visible parameters for tests
+ def __init__(
+ self,
+ num_ofdm_symbols: int,
+ num_subcarriers: int,
+ feature_size: int,
+ num_heads: int = 2,
+ num_encoder_layers: int = 1,
+ num_decoder_layers: int = 3,
+ n_encoder_filters: int = 5,
+ n_decoder_filters: int = 12,
+ gamma: int = 5,
+ ) -> None:
+ """Build the offline Channelformer for a specific pilot/grid geometry.
+
+ Args:
+ num_ofdm_symbols: Full-grid OFDM symbols S (output time size).
+ num_subcarriers: Full-grid subcarriers F_full (output freq size).
+ feature_size: Pilot-vector length F (== N_pt * N_pf), the attention
+ model dimension. Must be divisible by ``num_heads``.
+ num_heads: Attention heads (offline pretrained weights use 2).
+ num_encoder_layers: Encoder blocks (offline: 1).
+ num_decoder_layers: Decoder residual blocks K (offline: 3).
+ n_encoder_filters: FeedforwardNN conv width N_Encoder (offline: 5).
+ n_decoder_filters: Decoder conv width N_Decoder (offline: 12).
+ gamma: Decoder conv kernel size (offline: 5).
+ """
+ super().__init__(num_ofdm_symbols, num_subcarriers)
+ self.feature_size = int(feature_size)
+ self.num_heads = int(num_heads)
+ self.out_len = int(num_ofdm_symbols * num_subcarriers)
+ self.n_decoder_filters = int(n_decoder_filters)
+
+ self.encoder = nn.ModuleList(
+ [
+ _EncoderBlock(feature_size, num_heads, n_encoder_filters)
+ for _ in range(num_encoder_layers)
+ ]
+ )
+ pad = gamma // 2
+ # decoder head conv: 1 -> N_decoder, 5x5 'same' (model.m, applied before blocks)
+ self.conv_head = nn.Conv2d(1, n_decoder_filters, kernel_size=gamma, padding=pad)
+ self.decoder = nn.ModuleList(
+ [
+ _DecoderBlock(feature_size, n_decoder_filters, gamma=gamma)
+ for _ in range(num_decoder_layers)
+ ]
+ )
+ # FC upsample: maps the F axis to out_len (ln_de_w1 = [out_len, F] + bias).
+ self.fc_upsample = nn.Linear(feature_size, self.out_len, bias=True)
+ # final conv: N_decoder -> 1, 5x5 'same'
+ self.conv_out = nn.Conv2d(n_decoder_filters, 1, kernel_size=gamma, padding=pad)
+
+ def forward(self, x: torch.Tensor) -> torch.Tensor:
+ """Map the pilot vector to the flat full-slot estimate.
+
+ Args:
+ x: Pilot map ``[B, 1, F, 2]`` (F features, 2 = re/im tokens). A
+ ``[B, 2, F]`` or ``[B, 2, N_pt, N_pf]`` input is also accepted
+ and reshaped to the canonical ``[B, 1, F, 2]`` layout.
+
+ Returns:
+ Flat CFR estimate ``[B, 2, out_len]`` (out_len = S * F_full,
+ freq-fastest).
+ """
+ x = self._to_canonical(x) # [B, 1, F, 2]
+ z = x
+ for block in self.encoder:
+ z = block(z) # [B, 1, F, 2]
+ z = self.conv_head(z) # [B, N_dec, F, 2]
+ for block in self.decoder:
+ z = block(z) # [B, N_dec, F, 2]
+ # FC upsample over the F axis: [B, N_dec, F, 2] -> [B, N_dec, out_len, 2]
+ z = z.permute(0, 1, 3, 2).contiguous() # [B, N_dec, 2, F]
+ z = self.fc_upsample(z) # [B, N_dec, 2, out_len]
+ z = z.permute(0, 1, 3, 2).contiguous() # [B, N_dec, out_len, 2]
+ z = self.conv_out(z) # [B, 1, out_len, 2]
+ # squeeze channel -> [B, out_len, 2]; move the re/im token axis to front
+ # so the result is [B, 2, out_len] (re/im as the 2 output channels).
+ z = z.squeeze(1) # [B, out_len, 2]
+ flat = z.permute(0, 2, 1).contiguous() # [B, 2, out_len]
+ # Reshape the flat full-slot vector to the project CFR contract [B,2,S,F].
+ # out_len is ordered freq-fastest (index = f + F_full*t), which is exactly
+ # the C-order layout of [S, F_full]; so a plain view recovers the grid.
+ b = flat.shape[0]
+ return flat.reshape(b, 2, self.num_ofdm_symbols, self.num_subcarriers)
+
+ def _to_canonical(self, x: torch.Tensor) -> torch.Tensor:
+ """Coerce an accepted input layout to ``[B, 1, F, 2]``.
+
+ Accepts:
+ * ``[B, 1, F, 2]`` (already canonical),
+ * ``[B, 2, F]`` (re/im channel first, flat pilot vector),
+ * ``[B, 2, N_pt, N_pf]`` (pilot subgrid; flattened freq-fastest to F).
+ """
+ if x.dim() == 4 and x.shape[1] == 1 and x.shape[3] == 2:
+ return x
+ if x.dim() == 4 and x.shape[1] == 2:
+ # pilot subgrid [B, 2, N_pt, N_pf] -> F = N_pt*N_pf, freq-fastest
+ b, two, n_pt, n_pf = x.shape
+ F = n_pt * n_pf
+ # flatten (N_pt, N_pf) with freq (N_pf) fastest to match the pilot vector
+ flat = x.reshape(b, two, F) # row-major: symbol-major, freq-fastest within symbol
+ return flat.permute(0, 2, 1).unsqueeze(1).contiguous() # [B,1,F,2]
+ if x.dim() == 3 and x.shape[1] == 2:
+ b, two, F = x.shape
+ return x.permute(0, 2, 1).unsqueeze(1).contiguous() # [B,1,F,2]
+ raise ValueError(
+ f"unexpected Channelformer input shape {tuple(x.shape)}; "
+ "expected [B,1,F,2], [B,2,F], or [B,2,N_pt,N_pf]"
+ )
+
+ def attention_macs(self) -> int:
+ """Per-sample MACs of the functional attention matmuls (QK^T and AV).
+
+ The module-walk MAC counter sees the QKV/out ``Linear`` projections but
+ NOT the two batched matmuls inside scaled dot-product attention. This
+ hook reports exactly those, so the generic counter can add them:
+
+ scores QK^T : H * T * T * d_k
+ context A V : H * T * T * d_k
+
+ summed over all encoder blocks, where T = 2 (re/im tokens), H = num_heads,
+ d_k = F / H. (Per sample; batch is handled by the counter.)
+ """
+ per_block = 0
+ for block in self.encoder:
+ attn = block.attn
+ T = 2
+ per_block += 2 * attn.H * T * T * attn.d_k
+ return int(per_block)
+
+
+def build_channelformer(
+ num_ofdm_symbols: int,
+ num_subcarriers: int,
+ cfg: ModelConfig,
+ feature_size: int | None = None,
+ num_heads: int = 2,
+ num_encoder_layers: int = 1,
+ num_decoder_layers: int = 3,
+ n_encoder_filters: int = 5,
+ n_decoder_filters: int = 12,
+ gamma: int = 5,
+) -> BaseEstimatorModel:
+ """Factory for the faithful offline :class:`Channelformer`.
+
+ Args:
+ num_ofdm_symbols: Full-grid S.
+ num_subcarriers: Full-grid F_full.
+ cfg: Model configuration (signature parity; Channelformer uses its own
+ offline hyperparameters, not the Hybrid CNN-LSTM width).
+ feature_size: Pilot-vector length F. If ``None``, defaults to the
+ project DM-RS geometry (2 pilot symbols x comb-2 => F = 2 * F_full/2
+ = F_full). The baseline wrapper passes the true F from the config.
+ num_heads, num_encoder_layers, num_decoder_layers, n_encoder_filters,
+ n_decoder_filters, gamma: Offline Channelformer hyperparameters.
+ """
+ if feature_size is None:
+ # project default: 2 pilot symbols, comb-2 -> N_pf = F_full/2, F = 2*N_pf = F_full
+ feature_size = num_subcarriers
+ return Channelformer(
+ num_ofdm_symbols,
+ num_subcarriers,
+ feature_size=feature_size,
+ num_heads=num_heads,
+ num_encoder_layers=num_encoder_layers,
+ num_decoder_layers=num_decoder_layers,
+ n_encoder_filters=n_encoder_filters,
+ n_decoder_filters=n_decoder_filters,
+ gamma=gamma,
+ )
diff --git a/pace_revision_2/pace/models/compact.py b/pace_revision_2/pace/models/compact.py
new file mode 100644
index 0000000000000000000000000000000000000000..05629f28de0afe6754d6ba404c7c87cc8db69843
--- /dev/null
+++ b/pace_revision_2/pace/models/compact.py
@@ -0,0 +1,14 @@
+from types import SimpleNamespace
+from torch import nn
+from .hybrid_cnn_lstm import HybridCNNLSTM
+
+def hybrid(g,wide=False,planes=3):
+ return HybridCNNLSTM(g.S,g.F,SimpleNamespace(conv_channels=32 if wide else 8,lstm_feature_dim=32 if wide else 16,lstm_hidden=32 if wide else 16,input_planes=planes,smoothing_kernel=3,use_time_flip=True,leaky_relu_slope=.1))
+class Block(nn.Module):
+ def __init__(self,c):
+ super().__init__();self.net=nn.Sequential(nn.Conv2d(c,c,3,padding=1),nn.ReLU(),nn.Conv2d(c,c,3,padding=1))
+ def forward(self,x):return x+self.net(x)
+class CNN(nn.Module):
+ def __init__(self,width=16,planes=3):
+ super().__init__();self.net=nn.Sequential(nn.Conv2d(planes,width,3,padding=1),nn.ReLU(),*[Block(width) for _ in range(4)],nn.Conv2d(width,2,3,padding=1))
+ def forward(self,x):return self.net(x)
diff --git a/pace_revision_2/pace/models/deterministic.py b/pace_revision_2/pace/models/deterministic.py
new file mode 100644
index 0000000000000000000000000000000000000000..581992b19897e433aa0d1d91322fe85a6cca4653
--- /dev/null
+++ b/pace_revision_2/pace/models/deterministic.py
@@ -0,0 +1,14 @@
+"""Exact replication padding without CUDA ReplicationPad2d backward atomics."""
+import torch
+from torch import nn
+from torch.nn import functional as F
+class ReplicateConv2d(nn.Conv2d):
+ def __init__(self,cin,cout,kernel_size=3):
+ super().__init__(cin,cout,kernel_size,padding=0,bias=True)
+ self.border=kernel_size//2
+ def forward(self,x):
+ p=self.border
+ if p:
+ x=torch.cat((x[:,:,:,:1].expand(-1,-1,-1,p),x,x[:,:,:,-1:].expand(-1,-1,-1,p)),dim=3)
+ x=torch.cat((x[:,:,:1,:].expand(-1,-1,p,-1),x,x[:,:,-1:,:].expand(-1,-1,p,-1)),dim=2)
+ return F.conv2d(x,self.weight,self.bias,self.stride,0,self.dilation,self.groups)
diff --git a/pace_revision_2/pace/models/fortitran.py b/pace_revision_2/pace/models/fortitran.py
new file mode 100644
index 0000000000000000000000000000000000000000..d5167198427534aad713ea67775e490e37ba0a39
--- /dev/null
+++ b/pace_revision_2/pace/models/fortitran.py
@@ -0,0 +1,28 @@
+"""Independent implementation of the pinned released FortiTran operators."""
+import torch
+from torch import nn
+class Enhance(nn.Sequential):
+ def __init__(self):super().__init__(nn.Conv2d(1,8,3,padding=1),nn.ReLU(),nn.Conv2d(8,32,3,padding=1),nn.ReLU(),nn.Conv2d(32,8,3,padding=1),nn.ReLU(),nn.Conv2d(8,1,3,padding=1))
+class FortiTran(nn.Module):
+ def __init__(self,g,adaptive=False):
+ super().__init__();self.g=g;self.adaptive=adaptive
+ self.up=nn.Linear(g.P,g.M);self.first=Enhance();self.unfold=nn.Unfold((3,2),stride=(3,2))
+ if adaptive:self.metadata=nn.ModuleList([nn.Sequential(nn.Linear(1,7),nn.ReLU(),nn.Linear(7,42),nn.ReLU(),nn.Linear(42,560)) for _ in range(3)])
+ self.embed=nn.Linear(12 if adaptive else 6,32)
+ self.position=nn.Parameter(torch.zeros(1,512,32));nn.init.trunc_normal_(self.position,std=.02)
+ layer=nn.TransformerEncoderLayer(32,4,64,.1,'gelu',batch_first=True,norm_first=False,layer_norm_eps=1e-5)
+ self.transform=nn.TransformerEncoder(layer,6 if adaptive else 3,enable_nested_tensor=False)
+ self.project=nn.Linear(32,6);self.fold=nn.Fold((g.F,g.S),(3,2),stride=(3,2));self.last=Enhance()
+ def real_forward(self,z,meta):
+ x=self.first(self.up(z.flatten(1)).reshape(-1,1,self.g.F,self.g.S))
+ t=self.unfold(x).transpose(1,2)
+ if self.adaptive:
+ tokens=[m(meta[:,i:i+1]).reshape(len(z),280,2) for i,m in enumerate(self.metadata)]
+ t=torch.cat([t,*tokens],-1)
+ t=self.embed(t)+self.position[:,:t.shape[1]]
+ t=self.project(self.transform(t));return self.last(x+self.fold(t.transpose(1,2))).squeeze(1)
+ def forward(self,z,meta=None):
+ # z canonical symbol-major; release flattens frequency-major.
+ p=z.reshape(-1,len(self.g.pilot_symbols),len(self.g.pf)).transpose(1,2).contiguous()
+ out=torch.complex(self.real_forward(p.real,meta),self.real_forward(p.imag,meta))
+ return out.transpose(1,2).contiguous()
diff --git a/pace_revision_2/pace/models/helena.py b/pace_revision_2/pace/models/helena.py
new file mode 100644
index 0000000000000000000000000000000000000000..d129ce4018038f2b4aeafaafed946b00b96e5153
--- /dev/null
+++ b/pace_revision_2/pace/models/helena.py
@@ -0,0 +1,26 @@
+"""Saved Keras architecture, including per-head key_dim=64 and NHWC reshape."""
+import math, torch
+from torch import nn
+from torch.nn import functional as F
+class Helena(nn.Module):
+ def __init__(self,carriers=120,symbols=14):
+ super().__init__();assert carriers%12==0 and symbols==14;self.F=carriers
+ self.conv1=nn.Conv2d(2,32,(12,2));self.conv2=nn.Conv2d(32,2,(6,7));self.drop=nn.Dropout(.1)
+ self.embed=nn.Linear(336,64);self.q=nn.Linear(64,256);self.k=nn.Linear(64,256);self.v=nn.Linear(64,256);self.attout=nn.Linear(256,64)
+ self.norm=nn.LayerNorm(64,eps=.001);self.squeeze=nn.Linear(64,16);self.excite=nn.Linear(16,64);self.out=nn.Linear(64,336)
+ for m in self.modules():
+ if isinstance(m,(nn.Conv2d,nn.Linear)):nn.init.xavier_uniform_(m.weight);nn.init.zeros_(m.bias)
+ def forward(self,sparse):
+ # Input canonical complex B,S,F. All Keras spatial layers use F,S.
+ base=torch.stack([sparse.real,sparse.imag],-1).transpose(1,2).contiguous()
+ x=base.permute(0,3,1,2)
+ x=F.relu(self.conv1(F.pad(x,(0,1,5,6))))
+ x=self.drop(F.relu(self.conv2(F.pad(x,(3,3,2,3)))))
+ t=x.permute(0,2,3,1).contiguous().reshape(len(x),self.F//12,336);e=self.embed(t)
+ def heads(layer):return layer(e).reshape(len(e),-1,4,64).transpose(1,2)
+ q,k,v=heads(self.q),heads(self.k),heads(self.v)
+ att=torch.softmax(q@k.transpose(-1,-2)/8,-1)@v
+ t=self.norm(e+self.attout(att.transpose(1,2).reshape(len(e),-1,256)))
+ gate=torch.sigmoid(self.excite(F.relu(self.squeeze(t.mean(1,keepdim=True)))))
+ out=self.out(t*gate).reshape(len(e),self.F,14,2)+base
+ out=out.transpose(1,2);return torch.complex(out[...,0],out[...,1])
diff --git a/pace_revision_2/pace/models/hybrid_cnn_lstm.py b/pace_revision_2/pace/models/hybrid_cnn_lstm.py
new file mode 100644
index 0000000000000000000000000000000000000000..e15863cae28d01c045af40de327520132a61bf95
--- /dev/null
+++ b/pace_revision_2/pace/models/hybrid_cnn_lstm.py
@@ -0,0 +1,157 @@
+"""Hybrid CNN-LSTM channel estimator (reference reproduction).
+
+Faithful port of the reference architecture (De Filippo et al., EURASIP JWCN
+2026, "Hybrid CNN-LSTM"):
+
+ encoder: Conv2D over (freq, time) extracting features
+ compress: flatten and linearly compress the frequency axis into a compact
+ per-time-step feature vector of length D (reference: 32), giving
+ a sequence of length S -> shape [B, S, D]
+ TimeFlip: reverse the temporal axis so the LSTM starts from the most
+ recent OFDM symbol (reference finds this important)
+ LSTM: temporal modeling over the S-step sequence
+ (un-flip: restore temporal order)
+ expand: linear map back to the (C, F) feature map per time step
+ decoder: TransposedConv2D restores the (freq, time) grid
+ smoothing: a 3x3 Conv2D with 'same' padding reduces checkerboard artifacts
+
+Per the reference, **skip connections are omitted** (they were found
+detrimental once DM-RS boosting yields accurate estimates).
+
+The reference targets a small footprint (~10^4-10^5 parameters). This port is
+adapted from the prediction task to the *estimation* task: input and output are
+the same grid ``[B, 2, S, F]``, so the decoder reconstructs the full slot
+rather than a next-slot prediction. The architecture is otherwise unchanged.
+"""
+
+from __future__ import annotations
+
+import torch
+from torch import nn
+
+from types import SimpleNamespace as ModelConfig
+from .base import BaseEstimatorModel
+from .deterministic import ReplicateConv2d
+
+
+class HybridCNNLSTM(BaseEstimatorModel):
+ """Hybrid CNN-LSTM CFR estimator operating on real/imag-stacked grids."""
+
+ def __init__(
+ self,
+ num_ofdm_symbols: int,
+ num_subcarriers: int,
+ cfg: ModelConfig,
+ ) -> None:
+ """Build the network.
+
+ Args:
+ num_ofdm_symbols: Number of OFDM symbols (S).
+ num_subcarriers: Number of subcarriers (F).
+ cfg: Model hyperparameters.
+ """
+ super().__init__(num_ofdm_symbols, num_subcarriers)
+ self._cfg = cfg
+ S = num_ofdm_symbols
+ F = num_subcarriers
+ C = cfg.conv_channels
+ D = cfg.lstm_feature_dim
+ slope = cfg.leaky_relu_slope
+
+ # Encoder: Conv2D over (freq, time). 'same' padding preserves S,F so the
+ # per-time-step feature map has a fixed, known frequency size.
+ self.encoder = nn.Sequential(
+ nn.Conv2d(getattr(cfg, "input_planes", 3), C, kernel_size=3, padding=1),
+ nn.BatchNorm2d(C),
+ nn.LeakyReLU(slope),
+ )
+
+ # Frequency compression: reduce the (C, F) feature map at each time step
+ # to a compact D-dim vector, matching the reference's post-flatten
+ # sequence shape [B, S, D] (reference reports D = 32). This keeps the
+ # LSTM input small and the footprint at reference scale.
+ self.freq_compress = nn.Linear(C * F, D)
+
+ self.lstm = nn.LSTM(
+ input_size=D,
+ hidden_size=cfg.lstm_hidden,
+ num_layers=1,
+ batch_first=True,
+ )
+
+ # Expand the LSTM output back to (C, F) so the decoder can restore the grid.
+ self.freq_expand = nn.Linear(cfg.lstm_hidden, C * F)
+
+ # Decoder: TransposedConv2D (here 'same'-preserving) + smoothing conv.
+ pad = cfg.smoothing_kernel // 2
+ self.decoder = nn.Sequential(
+ nn.ConvTranspose2d(C, C, kernel_size=3, padding=1),
+ nn.BatchNorm2d(C),
+ nn.LeakyReLU(slope),
+ ReplicateConv2d(C, 2, kernel_size=cfg.smoothing_kernel),
+ )
+
+ self._C = C
+ self._F = F
+ self._S = S
+ self._D = D
+
+ def forward(self, x: torch.Tensor) -> torch.Tensor:
+ """Refine an input CFR estimate.
+
+ Args:
+ x: Input tensor ``[B, 2, S, F]``.
+
+ Returns:
+ Refined CFR tensor ``[B, 2, S, F]``.
+ """
+ B = x.shape[0]
+ # Work in [B, C, F, S] so the LSTM sequence axis is time (S).
+ # Input is [B, 2, S, F] -> permute to [B, 2, F, S] for the conv/flatten.
+ x_fs = x.permute(0, 1, 3, 2).contiguous() # [B, 2, F, S]
+
+ feat = self.encoder(x_fs) # [B, C, F, S]
+
+ # Per-time-step feature map [B, S, C*F] -> compress to [B, S, D].
+ flat = feat.permute(0, 3, 1, 2).contiguous().view(B, self._S, self._C * self._F)
+ seq = self.freq_compress(flat) # [B, S, D]
+
+ if self._cfg.use_time_flip:
+ seq = torch.flip(seq, dims=[1])
+
+ lstm_out, _ = self.lstm(seq) # [B, S, hidden]
+
+ if self._cfg.use_time_flip:
+ lstm_out = torch.flip(lstm_out, dims=[1])
+
+ expanded = self.freq_expand(lstm_out) # [B, S, C*F]
+
+ # Restore [B, C, F, S] for the decoder.
+ dec_in = (
+ expanded.view(B, self._S, self._C, self._F).permute(0, 2, 3, 1).contiguous()
+ )
+
+ out_fs = self.decoder(dec_in) # [B, 2, F, S]
+ out = out_fs.permute(0, 1, 3, 2).contiguous() # [B, 2, S, F]
+ return out
+
+
+def build_model(
+ num_ofdm_symbols: int, num_subcarriers: int, cfg: ModelConfig
+) -> BaseEstimatorModel:
+ """Factory returning an estimator model by name.
+
+ Args:
+ num_ofdm_symbols: Number of OFDM symbols.
+ num_subcarriers: Number of subcarriers.
+ cfg: Model configuration (``cfg.name`` selects the architecture).
+
+ Returns:
+ An instantiated :class:`BaseEstimatorModel`.
+
+ Raises:
+ ValueError: If ``cfg.name`` is unknown.
+ """
+ if cfg.name == "hybrid_cnn_lstm":
+ return HybridCNNLSTM(num_ofdm_symbols, num_subcarriers, cfg)
+ raise ValueError(f"unknown model name: {cfg.name!r}")
diff --git a/pace_revision_2/pace/models/reesnet.py b/pace_revision_2/pace/models/reesnet.py
new file mode 100644
index 0000000000000000000000000000000000000000..16efe3b8264014664361e1fd9a7ed54f53c9e050
--- /dev/null
+++ b/pace_revision_2/pace/models/reesnet.py
@@ -0,0 +1,172 @@
+"""Documented ReEsNet adaptation (Li et al., IEEE WCL 2020).
+
+Reference: L. Li, H. Chen, H.-H. Chang, L. Liu, "Deep Residual Learning Meets
+OFDM Channel Estimation," IEEE Wireless Commun. Lett., 9(5):615-618, 2020.
+Architecture as re-specified in Yang et al. (arXiv:2107.07161, Sec. III-B),
+which reproduces ReEsNet and reports "ReEsNet 1" at ~27K params / ~54K FLOPs
+using the original hyper-parameters.
+
+Original architecture (the faithful version implemented here):
+
+ input : pilot LS estimates, [B, 2, N_pt, N_pf] (the LOW-RESOLUTION grid;
+ pilots only, NOT the interpolated full grid)
+ head : Conv2d(2 -> C, 3x3, same) -> [B, C, N_pt, N_pf]
+ body : n_blocks x ResBlock(C, 3x3) with identity skip,
+ then Conv2d(C -> C, 3x3, same), plus a global skip from the head
+ output (residual learning over the whole body)
+ up : ConvTranspose2d(C -> C) upsampling (N_pt,N_pf) -> (S, F)
+ out : Conv2d(C -> 2, 3x3, same) -> [B, 2, S, F]
+
+Defaults: C = 16 filters, n_blocks = 4, matching "ReEsNet 1".
+
+FIDELITY NOTE - input convention. The PACE pipeline's frozen estimator contract
+feeds every estimator the *interpolated* full LS grid ``ls_grid`` [B, 2, S, F].
+The original ReEsNet instead consumes the *pilot subgrid* and learns the
+upsampling itself via the transposed convolution - that upsampling is central to
+what ReEsNet is. To reproduce ReEsNet faithfully (and to compare it on the input
+it was designed for), this module extracts the pilot subgrid from ``ls_grid``
+inside the estimator wrapper and feeds the pilots-only tensor to the network,
+which upsamples to the full grid. This is documented as an explicit modelling
+decision, not silently reshaped. The alternative (feeding the interpolated grid
+and using a same-size network) would be a *different* estimator ("ReEsNet-style
+residual CNN on interpolated input"), which is exactly the role the direct
+Hybrid CNN-LSTM and the ``ls_residual`` ablation already play. Keeping ReEsNet
+faithful preserves the scientific meaning of the baseline.
+
+The upsampling transposed-convolution geometry is derived from the pilot vs full
+grid sizes at build time, so the module adapts to the project's pilot pattern
+(here N_pt=2, N_pf=24 -> S=14, F=48, i.e. 7x in time and 2x in frequency).
+"""
+
+from __future__ import annotations
+
+import torch
+from torch import nn
+
+from types import SimpleNamespace as ModelConfig
+from .base import BaseEstimatorModel
+
+
+class _ResBlock(nn.Module):
+ """Two 3x3 conv layers (C->C) with a ReLU between and an identity skip."""
+
+ def __init__(self, channels: int) -> None:
+ super().__init__()
+ self.conv1 = nn.Conv2d(channels, channels, kernel_size=3, padding=1)
+ self.relu = nn.ReLU(inplace=True)
+ self.conv2 = nn.Conv2d(channels, channels, kernel_size=3, padding=1)
+
+ def forward(self, x: torch.Tensor) -> torch.Tensor:
+ return x + self.conv2(self.relu(self.conv1(x)))
+
+
+def _upsample_params(n_in: int, n_out: int) -> tuple[int, int, int]:
+ """Return (kernel, stride, padding) for a 1-D transposed conv n_in -> n_out.
+
+ ConvTranspose output length: (n_in - 1) * stride - 2*padding + kernel.
+ We use stride = round(n_out / n_in) and solve for a kernel with padding=1,
+ adjusting the kernel so the exact output length is achieved.
+
+ Args:
+ n_in: Input length along this axis (pilot dimension).
+ n_out: Desired output length (full-grid dimension).
+
+ Returns:
+ (kernel, stride, padding) producing exactly ``n_out`` from ``n_in``.
+ """
+ if n_out == n_in:
+ return 3, 1, 1 # same-size 3x3 'same'
+ stride = max(1, round(n_out / n_in))
+ padding = 1
+ # kernel = n_out - (n_in - 1)*stride + 2*padding
+ kernel = n_out - (n_in - 1) * stride + 2 * padding
+ if kernel < 1:
+ stride = 1
+ kernel = n_out - (n_in - 1) * stride + 2 * padding
+ return int(kernel), int(stride), int(padding)
+
+
+class ReEsNet(BaseEstimatorModel):
+ """Faithful ReEsNet: residual CNN on pilots + transposed-conv upsampling."""
+
+ def __init__(
+ self,
+ num_ofdm_symbols: int,
+ num_subcarriers: int,
+ cfg: ModelConfig,
+ num_pilot_symbols: int,
+ num_pilot_subcarriers: int,
+ channels: int = 16,
+ num_blocks: int = 4,
+ ) -> None:
+ """Build the network for a specific pilot geometry.
+
+ Args:
+ num_ofdm_symbols: Full-grid OFDM symbols S (output time size).
+ num_subcarriers: Full-grid subcarriers F (output freq size).
+ cfg: Model configuration (kept for signature parity; ReEsNet uses
+ its own width C rather than cfg.conv_channels).
+ num_pilot_symbols: Pilot OFDM-symbol count N_pt (input time size).
+ num_pilot_subcarriers: Pilot subcarrier count N_pf (input freq size).
+ channels: Feature width C (ReEsNet-1 uses 16).
+ num_blocks: Number of residual blocks (ReEsNet-1 uses 4).
+ """
+ super().__init__(num_ofdm_symbols, num_subcarriers)
+ c = channels
+ self._n_pt = num_pilot_symbols
+ self._n_pf = num_pilot_subcarriers
+
+ self.head = nn.Conv2d(2, c, kernel_size=3, padding=1)
+ self.blocks = nn.ModuleList([_ResBlock(c) for _ in range(num_blocks)])
+ self.body_tail = nn.Conv2d(c, c, kernel_size=3, padding=1)
+
+ kt, st, pt = _upsample_params(num_pilot_symbols, num_ofdm_symbols)
+ kf, sf, pf = _upsample_params(num_pilot_subcarriers, num_subcarriers)
+ self.upsample = nn.ConvTranspose2d(
+ c, c, kernel_size=(kt, kf), stride=(st, sf), padding=(pt, pf)
+ )
+ self.out = nn.Conv2d(c, 2, kernel_size=3, padding=1)
+
+ def forward(self, x: torch.Tensor) -> torch.Tensor:
+ """Map the pilot subgrid to the full-grid CFR estimate.
+
+ Args:
+ x: Pilot LS estimates ``[B, 2, N_pt, N_pf]``.
+
+ Returns:
+ Full-grid CFR estimate ``[B, 2, S, F]``.
+ """
+ feat = self.head(x)
+ res = feat
+ for block in self.blocks:
+ res = block(res)
+ res = self.body_tail(res)
+ feat = feat + res
+ up = self.upsample(feat)
+ return self.out(up)
+
+
+def build_reesnet(
+ num_ofdm_symbols: int,
+ num_subcarriers: int,
+ cfg: ModelConfig,
+ num_pilot_symbols: int = 2,
+ num_pilot_subcarriers: int = 24,
+ channels: int = 16,
+ num_blocks: int = 4,
+) -> BaseEstimatorModel:
+ """Factory for the faithful :class:`ReEsNet`.
+
+ Pilot geometry defaults match the project's DM-RS (2 pilot symbols, comb-2 =>
+ 24 pilot subcarriers). The estimator wrapper passes the true geometry from the
+ config so this stays correct if the pilot pattern changes.
+ """
+ return ReEsNet(
+ num_ofdm_symbols,
+ num_subcarriers,
+ cfg,
+ num_pilot_symbols=num_pilot_symbols,
+ num_pilot_subcarriers=num_pilot_subcarriers,
+ channels=channels,
+ num_blocks=num_blocks,
+ )
diff --git a/pace_revision_2/pace/physics.py b/pace_revision_2/pace/physics.py
new file mode 100644
index 0000000000000000000000000000000000000000..2e57768a965f209e17fa0de455c02c816d395334
--- /dev/null
+++ b/pace_revision_2/pace/physics.py
@@ -0,0 +1,71 @@
+"""Exact within-CP LTV operator; pinned Sionna supplies path gains."""
+import numpy as np
+from .config import seed,Condition
+from .devices import sionna_device
+PILOT=(1+1j)/np.sqrt(2)
+
+class Channel:
+ def __init__(self,grid,device='cpu'):
+ self.grid=grid;self.device=sionna_device(device);self.models={}
+ def paths(self,condition,bank,family,i):
+ import torch
+ from sionna.phy import config
+ from sionna.phy.channel.tr38901 import TDL
+ key=condition.key
+ if key not in self.models:
+ v=condition.fd*299792458/2e9
+ self.models[key]=TDL(condition.profile,delay_spread=condition.ds_ns*1e-9,carrier_frequency=2e9,min_speed=v,max_speed=v,num_sinusoids=32,precision='double',device=self.device)
+ config.seed=seed(bank,family,i,'channel')
+ with torch.no_grad():
+ a,tau=self.models[key](batch_size=1,num_time_steps=int(sum(self.grid.cp+self.grid.N)),sampling_frequency=self.grid.fs)
+ a=a.reshape(-1,a.shape[-1]).detach().cpu().numpy();tau=tau.reshape(-1).detach().cpu().numpy()
+ if max(tau)>=min(self.grid.cp)/self.grid.fs:raise ValueError('CP exceeded: continuous ISI implementation required')
+ useful=np.stack([a[:,s:s+self.grid.N] for s in self.grid.starts])
+ return useful,tau
+
+def label(a,tau,g):
+ phase=np.exp(-2j*np.pi*g.active[:,None]*g.scs*tau[None,:])
+ return a.mean(-1)@phase.T
+
+def waveform(x,a,tau,g):
+ bins=np.fft.fftfreq(g.N)*g.N
+ phase=np.exp(-2j*np.pi*bins[None,:]*g.scs*tau[:,None])
+ full=np.zeros((g.S,g.N),complex);full[:,g.active%g.N]=x
+ delayed=np.fft.ifft(full[:,None,:]*phase[None,:,:],axis=-1,norm='ortho')
+ y=np.fft.fft((delayed*a).sum(1),axis=-1,norm='ortho')
+ return y[:,g.active%g.N]
+
+def operator(a,tau,g,s):
+ # Full FFT-domain G, with actual unshifted FFT-bin ordering.
+ phase=np.exp(-2j*np.pi*(np.fft.fftfreq(g.N)*g.N)[None,:]*g.scs*tau[:,None])
+ delta=(np.arange(g.N)[:,None]-np.arange(g.N)[None,:])%g.N
+ spectrum=np.fft.fft(a[s],axis=-1)/g.N
+ return np.sum(spectrum[:,delta]*phase[:,None,:],axis=0)
+
+def random_grid(g,rng):
+ amp=np.array([-3,-1,3,1])/np.sqrt(10)
+ x=amp[rng.integers(0,4,(g.S,g.F))]+1j*amp[rng.integers(0,4,(g.S,g.F))]
+ x[g.mask]=PILOT;return x
+
+def sample(recipe,bank,i,condition=None,device='cpu',engine=None):
+ g=recipe.grid
+ # Physical family excludes fd and mode: Doppler and DIAG/WAVE pairs share latent paths.
+ c=condition or recipe.source
+ if condition is None and (recipe.broad or recipe.reference):
+ rng=np.random.default_rng(seed(bank,recipe.name,i,'settings'))
+ if recipe.reference:c=Condition('A',float(rng.choice(np.arange(25,301,25))),float(rng.choice(np.arange(50,1001,50))))
+ else:c=Condition(str(rng.choice(['A','C'])),float(rng.choice([100,300])),float(rng.choice([10,100,500])))
+ family=f'{g.scs:g}:{g.comb}:{g.pilot_symbols}:{c.profile}:{c.ds_ns:g}'
+ # Different source domains/bank recipes must be disjoint, while their TEST draws stay paired.
+ bankkey=bank if bank in ('TEST','QC','RECEIVER') else f'{recipe.name}:{bank}'
+ a,tau=(engine or Channel(g,device)).paths(c,bankkey,family,i)
+ h=label(a,tau,g)
+ rng=np.random.default_rng(seed(bankkey,family,i,'data_bits'));x=random_grid(g,rng)
+ y0=h*x if recipe.mode=='DIAG' else waveform(x,a,tau,g)
+ rng=np.random.default_rng(seed(bankkey,family,i,'pilot_noise'))
+ noise=(rng.standard_normal(g.P)+1j*rng.standard_normal(g.P))/np.sqrt(2)
+ z0=y0.reshape(-1)[g.pilots]/PILOT
+ # Balanced source strata are fixed; reference recipe samples SNR independently.
+ snr=float((0,5,10,15,20,25)[i%6])
+ if recipe.reference:snr=float(rng.choice([0,5,10,15,20,25]))
+ return dict(h=h.astype(np.complex64),z0=z0.astype(np.complex64),noise=noise.astype(np.complex64),snr=np.float32(snr),fd=np.float32(c.fd),ds=np.float32(c.ds_ns),profile=np.int8(c.profile=='C'),id=np.int64(i))
diff --git a/pace_revision_2/pace/receiver.py b/pace_revision_2/pace/receiver.py
new file mode 100644
index 0000000000000000000000000000000000000000..40a4723c066bce122d4fcd7d27db81ff388334a7
--- /dev/null
+++ b/pace_revision_2/pace/receiver.py
@@ -0,0 +1,119 @@
+from pathlib import Path
+import numpy as np
+import torch
+from .config import Condition,seed
+from .devices import sionna_device
+from .physics import Channel,label,waveform,operator,PILOT
+from .io import atomic_npz,atomic_json,read_json,sha
+from .classical import gains
+from .training import load_model,move
+from .experiments import recipes
+
+class Codec:
+ def __init__(self,device='cpu'):
+ from sionna.phy.fec.ldpc import LDPC5GEncoder,LDPC5GDecoder
+ device=sionna_device(device)
+ self.device=device
+ self.encoder=LDPC5GEncoder(k=3200,n=6400,num_bits_per_symbol=4,bg='bg2',precision='single',device=device)
+ self.decoder=LDPC5GDecoder(self.encoder,cn_update='boxplus-phi',vn_update='sum',cn_schedule='flooding',hard_out=True,return_infobits=True,num_iter=40,llr_max=20,prune_pcm=True,return_state=False,harq_mode=False,precision='single',device=device)
+ assert self.encoder.z==320 and self.encoder.k==3200 and self.encoder.n==6400
+ def encode(self,bits):
+ with torch.no_grad():return self.encoder(torch.as_tensor(bits,device=self.device,dtype=torch.float32))
+ def decode(self,llr):
+ with torch.no_grad():return self.decoder(llr.clamp(-20,20)).to(torch.int8)
+
+def constellation(mod,device):
+ m=4 if mod=='16qam' else 2;labels=((torch.arange(2**m,device=device)[:,None]>>torch.arange(m-1,-1,-1,device=device))&1).bool()
+ if mod=='16qam':
+ amp=torch.tensor([-3.,-1.,3.,1.],device=device)/np.sqrt(10);idx=labels.long();symbols=torch.complex(amp[2*idx[:,0]+idx[:,1]],amp[2*idx[:,2]+idx[:,3]])
+ else:symbols=torch.complex(1-2*labels[:,0].float(),1-2*labels[:,1].float())/np.sqrt(2)
+ return symbols,labels
+
+def map_bits(bits,mod):
+ points,_=constellation(mod,bits.device);m=4 if mod=='16qam' else 2;b=bits.long().reshape(len(bits),-1,m);idx=(b*2**torch.arange(m-1,-1,-1,device=b.device)).sum(-1);return points[idx]
+
+def app_llr(y,h,n0,mod='16qam'):
+ points,labels=constellation(mod,y.device);dist=-abs(y[...,None]-h[...,None]*points)**2/torch.as_tensor(n0,device=y.device)[...,None]
+ llr=torch.stack([torch.logsumexp(dist[...,labels[:,i]],-1)-torch.logsumexp(dist[...,~labels[:,i]],-1) for i in range(labels.shape[1])],-1)
+ llr=torch.where((abs(h)<1e-12)[...,None],0.,llr)
+ return llr.reshape(len(y),-1).clamp(-20,20)
+
+def receiver_bank(root,condition,snr,mode='WAVE',mod='16qam',frames=5000,device='cuda',shard=64):
+ r=recipes()['main'];g=r.grid;out=Path(root)/'receiver_banks'/mode/mod/condition.key/f'snr{snr:g}'
+ spec=dict(condition=condition.__dict__,snr=snr,mode=mode,mod=mod,frames=frames)
+ if (out/'manifest.json').exists():
+ old=read_json(out/'manifest.json')
+ if old['spec']!=spec:raise ValueError('Receiver bank configuration mismatch')
+ if any(sha(out/e['file'])!=e['sha256'] for e in old['shards']):raise RuntimeError('Receiver bank hash mismatch')
+ return out
+ engine=Channel(g,device);codec=Codec(device) if mod=='16qam' else None;entries=[]
+ family=f'{condition.profile}:{condition.ds_ns:g}'
+ for start in range(0,frames,shard):
+ file=out/f'{start:06d}.npz';rows=[];ids=range(start,min(start+shard,frames))
+ bits=np.stack([np.random.default_rng(seed('RECEIVER',family,i,f'{mod}_data_bits')).integers(0,2,3200,dtype=np.int8) for i in ids])
+ coded=codec.encode(bits) if codec else torch.tensor(bits,device=device);symbols=map_bits(coded,mod).cpu().numpy()
+ for j,i in enumerate(ids):
+ a,tau=engine.paths(condition,'RECEIVER',family,i);h=label(a,tau,g);x=np.full((g.S,g.F),PILOT,complex);x[~g.mask]=symbols[j]
+ y0=waveform(x,a,tau,g) if mode=='WAVE' else h*x
+ rng=np.random.default_rng(seed('RECEIVER',family,i,'waveform_noise'));nt=(rng.standard_normal((g.S,g.N))+1j*rng.standard_normal((g.S,g.N)))/np.sqrt(2)
+ nf=np.fft.fft(nt,axis=-1,norm='ortho')[:,g.active%g.N];y=y0+10**(-snr/20)*nf
+ rows.append(dict(h=h.astype(np.complex64),y=y.astype(np.complex64),bits=bits[j],id=np.int64(i)))
+ atomic_npz(file,**{k:np.stack([x[k] for x in rows]) for k in rows[0]});entries.append({'file':file.name,'sha256':sha(file),'n':len(rows)})
+ atomic_json(out/'manifest.json',dict(spec=spec,shards=entries));return out
+
+def evaluate_receiver(root,job=None,kind=None,source_recipe='main',device='cuda',frames=5000,modes=('WAVE',),modulations=('16qam','qpsk'),gate=None,gate_seed=None):
+ r=recipes()[source_recipe];g=r.grid
+ if job and job.get('anchor')=='oracle':raise ValueError('PH is a label oracle, excluded from receiver ranking')
+ model=load_model(root,job,device) if job else None;cov=np.load(Path(root)/'priors'/f'{source_recipe}.npz')['cov']
+ name=job['id'] if job else (kind if kind in ('perfect','full_G') else f'{source_recipe}_{kind}')
+ if gate:
+ from .interventions import parents
+ from .models import ResourceGate
+ d,a=[load_model(root,j,device) for j in parents(source_recipe,gate_seed)];folder=Path(root)/'gates'/source_recipe/str(gate_seed)
+ alpha=read_json(folder/'scalar.json')['alpha'];rg=ResourceGate().to(device);rg.load_state_dict(torch.load(folder/'best.pt',map_location=device,weights_only=True));rg.eval();name=f'{source_recipe}_{gate}_s{gate_seed}'
+ for fd in (10,100,500,1000):
+ condition=Condition(fd=fd);snrs=range(0,25,2) if fd in (10,100) else (0,5,10,15,20,25)
+ for snr in snrs:
+ if kind=='full_G' and (fd!=1000 or snr not in (10,20)):continue
+ for mode in modes:
+ for mod in modulations:
+ out=Path(root)/'receiver'/name/mode/mod/condition.key/f'snr{snr:g}'
+ if (out/'summary.json').exists():continue
+ bank=receiver_bank(root,condition,snr,mode,mod,frames,device);manifest=read_json(bank/'manifest.json');codec=Codec(device) if mod=='16qam' else None
+ K=None if model or gate or kind in ('perfect','full_G') else torch.tensor(gains(g,cov,r.bem,kind,10**(-snr/10)),device=device,dtype=torch.complex64)
+ rows=[];engine=Channel(g,device) if kind=='full_G' else None
+ with torch.no_grad():
+ for entry in manifest['shards']:
+ with np.load(bank/entry['file']) as raw:b={k:torch.as_tensor(raw[k],device=device) for k in raw.files}
+ z=b['y'].flatten(1)[:,g.pilots]/PILOT;n0=torch.full((len(z),),10**(-snr/10),device=device)
+ batch=dict(z=z,h=b['h'],n0=n0,snr=torch.full_like(n0,snr),ds=torch.full_like(n0,100),fd=torch.full_like(n0,fd))
+ if model:estimate=model(batch)
+ elif gate:
+ dp=d(batch);ap=a(batch)
+ if gate=='scalar':estimate=dp+alpha*(ap-dp)
+ else:
+ u,_,q=d.inputs(batch);mask=torch.tensor(g.mask,device=device,dtype=torch.float32)[None,None];estimate=rg(u,dp,ap,mask,q)[0]
+ elif kind in ('perfect','full_G'):estimate=b['h']
+ else:estimate=(z@K.T).reshape(-1,g.S,g.F)
+ ydata=b['y'][:,~g.mask];hdata=estimate[:,~g.mask]
+ if kind=='full_G':
+ ydata,variance=full_g_outputs(b,condition,engine,g,10**(-snr/10),device);hdata=torch.ones_like(ydata);noise=variance
+ else:noise=n0[:,None]
+ llr=app_llr(ydata,hdata,noise,mod);decoded=codec.decode(llr) if codec else (llr>0).to(torch.int8)
+ errors=(decoded!=b['bits']).sum(1);nmse_num=abs(estimate.to(torch.complex128)-b['h']).square().sum((1,2));nmse_den=abs(b['h'].to(torch.complex128)).square().sum((1,2))
+ rows.append(dict(id=b['id'].cpu().numpy(),bit_errors=errors.cpu().numpy(),block_errors=(errors>0).cpu().numpy(),bits=np.full(len(z),3200),nmse_error=nmse_num.cpu().numpy(),nmse_denominator=nmse_den.cpu().numpy()))
+ raw={k:np.concatenate([p[k] for p in rows]) for k in rows[0]};atomic_npz(out/'raw.npz',**raw)
+ errors=int(raw['block_errors'].sum());be=int(raw['bit_errors'].sum());n=len(raw['id']);p=errors/n;z95=1.95996398454;center=(p+z95*z95/(2*n))/(1+z95*z95/n);half=z95*np.sqrt(p*(1-p)/n+z95*z95/(4*n*n))/(1+z95*z95/n)
+ atomic_json(out/'summary.json',dict(name=name,source_recipe=source_recipe,fd=fd,snr=snr,mode=mode,modulation=mod,blocks=n,block_errors=errors,bit_errors=be,bler=p,ber=be/(n*3200),bler_low=center-half,bler_high=center+half,zero_error_upper=1-.05**(1/n) if errors==0 else None,smoke_only=frames!=5000))
+
+def full_g_outputs(batch,c,engine,g,n0,device):
+ outputs=[];variances=[];family=f'{c.profile}:{c.ds_ns:g}'
+ for index,i in enumerate(batch['id'].cpu().tolist()):
+ a,tau=engine.paths(c,'RECEIVER',family,i);ys=[];vs=[]
+ for s in range(g.S):
+ G=operator(a,tau,g,s)[np.ix_(g.active%g.N,g.active%g.N)];G=torch.tensor(G,device=device,dtype=torch.complex128);mask=torch.tensor(g.mask[s],device=device);GD=G[:,~mask]
+ y=batch['y'][index,s].to(torch.complex128)-G[:,mask].sum(1)*PILOT
+ W=torch.linalg.solve(GD.mH@GD+n0*torch.eye(GD.shape[1],device=device,dtype=torch.complex128),GD.mH)
+ bias=torch.diagonal(W@GD).real;safe=bias>1e-12;ys.append(torch.where(safe,(W@y)/bias.clamp_min(1e-12),0));vs.append(torch.where(safe,(1/bias.clamp_min(1e-12)-1).clamp_min(1e-12),1e12))
+ outputs.append(torch.cat(ys));variances.append(torch.cat(vs))
+ return torch.stack(outputs).to(torch.complex64),torch.stack(variances).float()
diff --git a/pace_revision_2/pace/reporting.py b/pace_revision_2/pace/reporting.py
new file mode 100644
index 0000000000000000000000000000000000000000..b2253f05e82e77a967371919f36953c514873759
--- /dev/null
+++ b/pace_revision_2/pace/reporting.py
@@ -0,0 +1,204 @@
+"""Reports are regenerated from raw records, never by rerunning networks."""
+from pathlib import Path
+import json
+import numpy as np
+import pandas as pd
+from scipy import stats
+import matplotlib
+matplotlib.use('Agg')
+import matplotlib.pyplot as plt
+from .io import read_json,atomic_json,atomic_npz
+from .metrics import paired_summary,holm,crossed_bootstrap,equivalence
+
+def raw(path):
+ with np.load(path) as f:return {k:f[k] for k in f.files}
+def align(*records):
+ first=records[0]
+ for other in records[1:]:
+ if not np.array_equal(first['id'],other['id']) or not np.allclose(first['denominator'],other['denominator'],rtol=0,atol=0):raise RuntimeError('Sample/denominator mismatch in paired comparison')
+_SMOKE_ONLY=False
+def savefig(fig,path):
+ if _SMOKE_ONLY:fig.text(.5,.5,'SMOKE TEST — NOT RESEARCH RESULTS',ha='center',va='center',rotation=24,fontsize=13,color='darkred',alpha=.23)
+ path=Path(path);path.parent.mkdir(parents=True,exist_ok=True)
+ for ext in ('pdf','svg','png'):fig.savefig(path.with_suffix('.'+ext),bbox_inches='tight',dpi=300)
+ plt.close(fig)
+def report(root,bootstrap=10000):
+ global _SMOKE_ONLY
+ root=Path(root);_SMOKE_ONLY=read_json(root/'study.json').get('smoke_only',False) if (root/'study.json').exists() else False
+ out=root/'reports';out.mkdir(exist_ok=True);figdir=out/'figures';figdir.mkdir(exist_ok=True)
+ plt.rcParams.update({'font.size':9,'axes.grid':True,'grid.alpha':.22,'axes.spines.top':False,'axes.spines.right':False,'savefig.dpi':300,'pdf.fonttype':42,'svg.fonttype':'none'})
+ rows=[];lookup={}
+ for path in sorted((root/'evaluation').glob('**/summary.json')):
+ s=read_json(path);r=raw(path.with_name('raw.npz'));j=s['job'];c=s['condition']
+ row={**{k:j.get(k) for k in ('id','experiment','arch','arm','seed','recipe','anchor')},'profile':c['profile'],'ds_ns':c['ds_ns'],'fd':c['fd'],'snr':s['snr_db'],'mode':s['mode'],'noise_offset':s['noise_assumption_offset_db'],'n':len(r['id']),'error_sum':r['error'].sum(),'denominator_sum':r['denominator'].sum(),'nmse_linear':r['error'].sum()/r['denominator'].sum(),'mean_realization_nmse':np.mean(r['error']/r['denominator']),'variant':j.get('variant','base')+('_nominal_metadata' if s.get('metadata_mode')=='nominal' else ''),'raw_file':str(path.with_name('raw.npz').relative_to(root)),'smoke_only':s.get('smoke_only',False)}
+ row['nmse_db']=10*np.log10(row['nmse_linear']);rows.append(row)
+ lookup[(j['experiment'],j['arch'],j['arm'],j['seed'],c['profile'],c['ds_ns'],c['fd'],s['snr_db'],s['mode'],s['noise_assumption_offset_db'])]=r
+ df=pd.DataFrame(rows);df.to_csv(out/'all_seed_nmse.csv',index=False)
+ gains=[];primary={};d0s=[];a0s=[];d1s=[];a1s=[]
+ for sd in range(41001,41021):
+ gs={}
+ for fd in (10,100):
+ for snr in (0,5,10,15,20,25):
+ keys=[('E01','compact',a,sd,'C',100,fd,snr,'DIAG',0.) for a in ('D','A-res')]
+ if not all(k in lookup for k in keys):continue
+ d,a=[lookup[k] for k in keys];align(d,a);gain=10*np.log10(d['error'].sum()/a['error'].sum());gains.append(dict(seed=sd,fd=fd,snr=snr,gain_db=gain));gs[fd,snr]=(gain,d,a)
+ if (10,10) in gs and (100,10) in gs:
+ g0,d0,a0=gs[10,10];g1,d1,a1=gs[100,10]
+ if not np.array_equal(d0['id'],d1['id']):raise RuntimeError('Matched/shifted IDs not paired')
+ primary[sd]=g1-g0;d0s.append(d0['error']);a0s.append(a0['error']);d1s.append(d1['error']);a1s.append(a1['error'])
+ gain_df=pd.DataFrame(gains);gain_df.to_csv(out/'paired_anchor_gain.csv',index=False)
+ if primary:
+ summary=paired_summary(list(primary.values()));summary.update(endpoint='G(fd100)-G(fd10) at 10dB',required_seeds=20,complete=len(primary)==20,confirmatory_eligible=len(primary)==20 and not any(df.smoke_only))
+ pd.DataFrame({'seed':list(primary),'delta_db':list(primary.values())}).to_csv(out/'primary_seed_contrasts.csv',index=False)
+ if len(primary)==20:
+ boot=crossed_bootstrap(*map(np.asarray,(d0s,a0s,d1s,a1s)),None,None,reps=bootstrap);atomic_npz(out/'primary_crossed_bootstrap.npz',delta=boot);summary['crossed_bootstrap_95']=np.quantile(boot,[.025,.975]).tolist()
+ atomic_json(out/'primary_endpoint.json',summary)
+ if len(gain_df):
+ fig,ax=plt.subplots(figsize=(5.5,3.6));points=[]
+ for fd,group in gain_df.groupby('fd'):
+ x=[];y=[];err=[]
+ for snr,p in group.groupby('snr'):
+ st=paired_summary(p.gain_db);x.append(snr);y.append(st['mean']);err.append(0 if st['low'] is None else st['mean']-st['low']);points.append(dict(fd=fd,snr=snr,**st))
+ ax.errorbar(x,y,yerr=err,marker='o',capsize=3,label=f'Max Doppler {fd:g} Hz')
+ ax.axhline(0,color='black',lw=1);ax.set(xlabel='Transmitted active-RE $E_s/N_0$ (dB)',ylabel='Paired anchor gain (dB; positive helps)');ax.legend(loc='best');savefig(fig,figdir/'anchor_gain');pd.DataFrame(points).to_csv(out/'anchor_gain_plot_data.csv',index=False)
+ if len(df):
+ subset=df[(df.recipe=='main')&(df.experiment.isin(['E01','E02']))&(df.noise_offset==0)&(df.profile=='C')&(df.ds_ns==100)&(df.fd.isin([10,100]))]
+ plotrows=[]
+ for fd,group in subset.groupby('fd'):
+ fig,ax=plt.subplots(figsize=(6.3,4))
+ for (arch,arm),m in group.groupby(['arch','arm']):
+ pts=[]
+ for snr,p in m.groupby('snr'):
+ # Explicit pooled seed/sample score, not hidden averaging of batch dB.
+ v=10*np.log10(p.error_sum.sum()/p.denominator_sum.sum());pts.append((snr,v));plotrows.append(dict(fd=fd,arch=arch,arm=arm,snr=snr,nmse_db_pooled_seeds=v,seeds=len(p)))
+ ax.plot(*zip(*pts),marker='o',ms=3,label=f'{arch} / {arm}')
+ for kind in ('ls','bem','lmmse'):
+ pts=[]
+ for snr in (0,5,10,15,20,25):
+ cp=root/'classical'/'main'/kind/f'C_ds100_fd{fd:g}_snr{snr}'/'raw.npz'
+ if cp.exists():
+ cr=raw(cp);v=10*np.log10(cr['error'].sum()/cr['denominator'].sum());pts.append((snr,v));plotrows.append(dict(fd=fd,arch=kind,arm='classical',snr=snr,nmse_db_pooled_seeds=v,seeds=1))
+ if pts:ax.plot(*zip(*pts),'--',label=kind)
+ ax.set(xlabel='Transmitted active-RE $E_s/N_0$ (dB)',ylabel='Pooled NMSE (dB)',title=f'TDL-C, 100 ns, maximum Doppler {fd:g} Hz');ax.legend(loc='upper left',bbox_to_anchor=(1.02,1),fontsize=8);savefig(fig,figdir/f'nmse_fd{fd:g}')
+ pd.DataFrame(plotrows).to_csv(out/'nmse_plot_data.csv',index=False)
+ from .auxiliary_reporting import supplemental
+ supplemental(root,out,figdir)
+ coverage_reports(root,out,figdir,df)
+ paired_exploratory(root,out,df)
+ secondary(root,out,lookup,gain_df)
+ receiver_reports(root,out,figdir)
+ diagnostic_reports(root,out,figdir)
+ atomic_json(out/'report_status.json',dict(seed_rows=len(rows),primary_seeds=len(primary),bootstrap_replicates=bootstrap,source='linear-domain raw records',incomplete=len(primary)!=20))
+
+def secondary(root,out,lookup,gain_df):
+ family=[]
+ def add(name,x,alternative='two-sided',required=20):
+ st=paired_summary(x,alternative) if len(x) else dict(n=0,p=None);family.append(dict(hypothesis=name,required_n=required,**st))
+ for fd,alt in ((10,'greater'),(100,'less')):
+ x=gain_df[gain_df.fd==fd].query('snr==10').gain_db.to_numpy() if len(gain_df) else []
+ add(f'anchor_gain_fd{fd}_sign',x,alt)
+ vals=[]
+ for sd in range(41001,41021):
+ gs=[]
+ for fd in (10,100):
+ ks=[('E01','compact',a,sd,'C',100,fd,10,'DIAG',0.) for a in ('D','A-raw')]
+ if all(k in lookup for k in ks):
+ d,a=[lookup[k] for k in ks];align(d,a);gs.append(10*np.log10(d['error'].sum()/a['error'].sum()))
+ if len(gs)==2:vals.append(gs[1]-gs[0])
+ add('A-raw_delta',vals)
+ for gate,comparison in [('scalar','D'),('resource','D'),('resource','A-res')]:
+ vals=[]
+ for sd in range(41001,41021):
+ p=root/'gates'/'main'/str(sd)/'evaluation'/gate/'C_ds100_fd100_snr10'/'raw.npz';k=('E01','compact',comparison,sd,'C',100,100,10,'DIAG',0.)
+ if p.exists() and k in lookup:
+ a=raw(p);d=lookup[k];align(d,a);vals.append(10*np.log10(d['error'].sum()/a['error'].sum()))
+ add(f'{gate}_vs_{comparison}',vals)
+ for baseline in ('ls','lmmse','reesnet','channelformer','fortitran','helena'):
+ vals=[];classic=baseline in ('ls','lmmse')
+ for sd in range(41001,41021 if classic else 41011):
+ k=('E01','compact','A-res',sd,'C',100,100,10,'DIAG',0.)
+ if k not in lookup:continue
+ a=lookup[k]
+ if classic:
+ p=root/'classical'/'main'/baseline/'C_ds100_fd100_snr10'/'raw.npz'
+ if not p.exists():continue
+ d=raw(p)
+ else:
+ kk=('E02',baseline,'D',sd,'C',100,100,10,'DIAG',0.)
+ if kk not in lookup:continue
+ d=lookup[kk]
+ align(d,a);vals.append(10*np.log10(d['error'].sum()/a['error'].sum()))
+ add(f'A-res_vs_{baseline}',vals,required=20 if classic else 10)
+ assert len(family)==12
+ complete=all(x.get('p') is not None and x['n']==x['required_n'] for x in family)
+ if complete:
+ for item,p in zip(family,holm([x['p'] for x in family])):item['p_holm']=float(p)
+ atomic_json(out/'secondary_family.json',{'complete':complete,'hypotheses':family,'intervals':'pointwise 95%; Holm p-values only after full family is available'})
+
+def receiver_reports(root,out,figdir):
+ rows=[]
+ for p in (root/'receiver').glob('**/summary.json'):rows.append(read_json(p))
+ if not rows:return
+ df=pd.DataFrame(rows);df.to_csv(out/'receiver_seed_results.csv',index=False)
+ # Per-model panels prevent dozens of seed curves crowding one figure.
+ df['family']=df.name.str.replace(r'_s\d+$','',regex=True)
+ agg=df.groupby(['family','mode','modulation','fd','snr']).agg(mean_bler=('bler','mean'),mean_ber=('ber','mean'),seeds=('bler','size')).reset_index();agg.to_csv(out/'receiver_plot_data.csv',index=False)
+ for (family,mode,mod),group in agg.groupby(['family','mode','modulation']):
+ fig,ax=plt.subplots(figsize=(5.4,3.6))
+ for fd,p in group.groupby('fd'):
+ p=p.sort_values('snr');positive=p.mean_bler>0;ax.semilogy(p.snr[positive],p.mean_bler[positive],'-o',label=f'{fd:g} Hz')
+ ax.set(xlabel='Transmitted active-RE $E_s/N_0$ (dB)',ylabel='Mean seed code-block error rate' if mod=='16qam' else 'Uncoded slot error rate',title=f'{family} · {mode} · {mod}');ax.legend(loc='best');savefig(fig,figdir/f'receiver_{family}_{mode}_{mod}')
+
+def diagnostic_reports(root,out,figdir):
+ rows=[]
+ for p in (root/'evaluation').glob('**/raw.npz'):
+ r=raw(p)
+ rows.append({'file':str(p.relative_to(root)),'projection_fraction_pooled':r['projection_outside'].sum()/r['denominator'].sum(),'anchor_nmse_pooled':r['anchor_error'].sum()/r['denominator'].sum(),'correction_energy_normalized':r['correction_energy'].sum()/r['denominator'].sum(),'required_learned_inner_normalized':r['required_learned_inner'].sum()/r['denominator'].sum(),'cosine_mean_defined':np.nanmean(r['cosine']),'cosine_undefined_count':int((~r['cosine_defined']).sum()),'max_abs_closure':max(abs(r['correction_closure']))})
+ pd.DataFrame(rows).to_csv(out/'mechanism_diagnostics.csv',index=False)
+ # One fixed primary seed, not selected by performance, for visual examples.
+ for p in (root/'evaluation').glob('E01*compact_A-res*_s41001/DIAG/*snr10/examples.npz'):
+ x=raw(p);residual=x['h'].astype(complex)-x['anchor'];error=x['estimate'].astype(complex)-x['h'];maps=[]
+ for v in (residual,error):maps.append(np.mean(abs(np.fft.fftshift(np.fft.fft(np.fft.ifft(v,axis=2,norm='ortho'),axis=1,norm='ortho'),axes=1))**2,axis=0))
+ folder=out/'spectra'/p.parent.name;atomic_npz(folder/'plot_data.npz',required=maps[0],output_error=maps[1]);fig,axs=plt.subplots(1,2,figsize=(9,3.3),layout='constrained')
+ for ax,z,title in zip(axs,maps,['Required correction','Estimation error']):
+ im=ax.imshow(10*np.log10(np.maximum(z,1e-15)),origin='lower',aspect='auto',extent=[0,1/15000*1e6,-7/0.001,7/0.001]);ax.set(title=title,xlabel='Periodic delay coordinate (μs)',ylabel='Nominal slot-DFT Doppler (Hz)');fig.colorbar(im,ax=ax,label='Mean spectral energy (dB)')
+ savefig(fig,figdir/f'spectra_{p.parent.name}')
+
+def coverage_reports(root,out,figdir,df):
+ classical=[]
+ for p in (root/'classical').glob('**/summary.json'):
+ d=read_json(p);c=d.pop('condition');classical.append({**d,**c,'raw_file':str(p.with_name('raw.npz').relative_to(root))})
+ pd.DataFrame(classical).to_csv(out/'classical_results.csv',index=False)
+ if not len(df):return
+ statsrows=[]
+ keys=['experiment','recipe','arch','arm','anchor','profile','ds_ns','fd','snr','mode','noise_offset','variant']
+ for key,group in df.groupby(keys,dropna=False):
+ summary=paired_summary(group.nmse_db.to_numpy());statsrows.append(dict(zip(keys,key),**{f'seed_db_{k}':v for k,v in summary.items()},pooled_seed_sample_nmse_db=10*np.log10(group.error_sum.sum()/group.denominator_sum.sum())))
+ pd.DataFrame(statsrows).to_csv(out/'all_comparison_intervals.csv',index=False)
+ # All ablation arcs get their own panels, with target/source setting in the title.
+ for (exp,recipe,fd),group in df[(df.profile=='C')&(df.ds_ns==100)&(df.noise_offset==0)].groupby(['experiment','recipe','fd']):
+ if exp in ('E01','E02'):continue
+ fig,ax=plt.subplots(figsize=(6,3.8))
+ for (arch,arm,anchor,variant),m in group.groupby(['arch','arm','anchor','variant']):
+ pts=[]
+ for snr,p in m.groupby('snr'):pts.append((snr,10*np.log10(p.error_sum.sum()/p.denominator_sum.sum())))
+ ax.plot(*zip(*pts),'-o',ms=3,label=f'{arch}/{arm}/{anchor}/{variant}')
+ ax.set(xlabel='Transmitted active-RE $E_s/N_0$ (dB)',ylabel='Pooled seed/sample NMSE (dB)',title=f'{exp}: {recipe}, C/100 ns, {fd:g} Hz');ax.legend(loc='upper left',bbox_to_anchor=(1.02,1),fontsize=8);savefig(fig,figdir/f'{exp}_{recipe}_fd{fd:g}')
+
+def paired_exploratory(root,out,df):
+ if not len(df):return
+ records=[]
+ for _,row in df.iterrows():
+ if row.noise_offset!=0:continue
+ exp=row.experiment
+ control_exp='E01' if exp in ('E02','E03','E07','E14') else exp
+ control_arch=row.arch if exp in ('E04',) else 'compact'
+ control=df[(df.experiment==control_exp)&(df.arch==control_arch)&(df.arm=='D')&(df.seed==row.seed)&(df.recipe==row.recipe)&(df.profile==row.profile)&(df.ds_ns==row.ds_ns)&(df.fd==row.fd)&(df.snr==row.snr)&(df['mode']==row['mode'])&(df.noise_offset==0)]
+ if len(control)!=1 or control.iloc[0].id==row.id:continue
+ ref=control.iloc[0];a=raw(root/row.raw_file);d=raw(root/ref.raw_file);align(a,d)
+ records.append({k:row[k] for k in ('experiment','recipe','arch','arm','anchor','variant','seed','profile','ds_ns','fd','snr','mode')}|{'gain_db':10*np.log10(d['error'].sum()/a['error'].sum()),'control_job':ref.id})
+ values=pd.DataFrame(records);values.to_csv(out/'exploratory_paired_seed_effects.csv',index=False)
+ if len(values):
+ keys=[k for k in values.columns if k not in ('seed','gain_db','control_job')];summaries=[]
+ for key,group in values.groupby(keys):summaries.append(dict(zip(keys,key),**paired_summary(group.gain_db.to_numpy())))
+ pd.DataFrame(summaries).to_csv(out/'exploratory_paired_intervals.csv',index=False)
diff --git a/pace_revision_2/pace/tables/TDL-A.json b/pace_revision_2/pace/tables/TDL-A.json
new file mode 100644
index 0000000000000000000000000000000000000000..c8a482dd98d9a740b76bb0271cea6d16a2484af3
--- /dev/null
+++ b/pace_revision_2/pace/tables/TDL-A.json
@@ -0,0 +1,53 @@
+{
+ "los" : 0,
+ "num_clusters" : 23,
+ "scale_delays" : true,
+
+ "delays" : [ 0.0,
+ 0.3819,
+ 0.4025,
+ 0.5868,
+ 0.4610,
+ 0.5375,
+ 0.6708,
+ 0.5750,
+ 0.7618,
+ 1.5375,
+ 1.8978,
+ 2.2242,
+ 2.1718,
+ 2.4942,
+ 2.5119,
+ 3.0582,
+ 4.0810,
+ 4.4579,
+ 4.5695,
+ 4.7966,
+ 5.0066,
+ 5.3043,
+ 9.6586],
+
+ "powers" : [ -13.4,
+ 0.0,
+ -2.2,
+ -4.0,
+ -6.0,
+ -8.2,
+ -9.9,
+ -10.5,
+ -7.5,
+ -15.9,
+ -6.6,
+ -16.7,
+ -12.4,
+ -15.2,
+ -10.8,
+ -11.3,
+ -12.7,
+ -16.2,
+ -18.3,
+ -18.9,
+ -16.6,
+ -19.9,
+ -29.7]
+}
diff --git a/pace_revision_2/pace/tables/TDL-C.json b/pace_revision_2/pace/tables/TDL-C.json
new file mode 100644
index 0000000000000000000000000000000000000000..47fa1f1820e7cd2913cd1e3b9b03a3ae6e42a075
--- /dev/null
+++ b/pace_revision_2/pace/tables/TDL-C.json
@@ -0,0 +1,55 @@
+{
+ "los" : 0,
+ "num_clusters" : 24,
+ "scale_delays" : true,
+
+ "powers" : [ -4.4,
+ -1.2,
+ -3.5,
+ -5.2,
+ -2.5,
+ 0.0,
+ -2.2,
+ -3.9,
+ -7.4,
+ -7.1,
+ -10.7,
+ -11.1,
+ -5.1,
+ -6.8,
+ -8.7,
+ -13.2,
+ -13.9,
+ -13.9,
+ -15.8,
+ -17.1,
+ -16,
+ -15.7,
+ -21.6,
+ -22.8],
+
+ "delays" : [ 0.0,
+ 0.2099,
+ 0.2219,
+ 0.2329,
+ 0.2176,
+ 0.6366,
+ 0.6448,
+ 0.6560,
+ 0.6584,
+ 0.7935,
+ 0.8213,
+ 0.9336,
+ 1.2285,
+ 1.3083,
+ 2.1704,
+ 2.7105,
+ 4.2589,
+ 4.6003,
+ 5.4902,
+ 5.6077,
+ 6.3065,
+ 6.6374,
+ 7.0427,
+ 8.6523]
+}
diff --git a/pace_revision_2/pace/training.py b/pace_revision_2/pace/training.py
new file mode 100644
index 0000000000000000000000000000000000000000..49a705fc94470bd2b294138ac3a81b0c298e2b3a
--- /dev/null
+++ b/pace_revision_2/pace/training.py
@@ -0,0 +1,100 @@
+import math,time,random
+from pathlib import Path
+import numpy as np
+import torch
+from torch.utils.data import DataLoader,ConcatDataset
+from .config import seed
+from .data import Bank,DeviceBank,bank_path
+from .models import Estimator
+from .experiments import recipes,job_bem
+from .io import atomic_json,read_json,torch_save,deterministic,sha
+
+def move(batch,device):return {k:v.to(device,non_blocking=True) for k,v in batch.items()}
+def loader(dataset,batch=512,shuffle=False,generator=None,workers=0):
+ if isinstance(dataset,DeviceBank):return dataset.batches(batch,shuffle,generator)
+ # Use an explicit permutation in both modes so staging cannot change sample order.
+ if shuffle:
+ order=torch.randperm(len(dataset),generator=generator).tolist()
+ return DataLoader(dataset,batch_size=batch,sampler=order,num_workers=workers,pin_memory=torch.cuda.is_available(),drop_last=False)
+ return DataLoader(dataset,batch_size=batch,shuffle=False,num_workers=workers,pin_memory=torch.cuda.is_available(),drop_last=False)
+def covariance(root,job):
+ # Target-domain retraining deliberately retains the SOURCE covariance/anchor.
+ r='main' if job['recipe']=='target' else job['recipe']
+ return np.load(Path(root)/'priors'/f'{r}.npz')['cov']
+def build(root,job,device):
+ r=recipes()[job['recipe']];return Estimator(r.grid,covariance(root,job),job_bem(job,r),job['arch'],job['arm'],job.get('anchor','bem'),job.get('info',False),job.get('scaled',False)).to(device)
+def score(model,data,device):
+ error=den=0.
+ model.eval()
+ with torch.no_grad():
+ for b in loader(data):
+ b=move(b,device);e=(model(b).to(torch.complex128)-b['h'].to(torch.complex128));error+=float((abs(e)**2).sum());den+=float((abs(b['h'].to(torch.complex128))**2).sum())
+ if den<=0 or not np.isfinite(error):raise FloatingPointError('Invalid validation metric')
+ return error/den
+
+def source_scales(model,data,device):
+ se=te=count=0.
+ with torch.no_grad():
+ for batch in loader(data):
+ batch=move(batch,device);u,b,q=model.inputs(batch);x=u-b if model.arm=='A-res' else u
+ se+=float((abs(x.to(torch.complex128))**2).sum());te+=float((abs((batch['h']-b).to(torch.complex128))**2).sum());count+=x.numel()
+ model.su.fill_(max(np.sqrt(se/count),1e-6));model.sr.fill_(max(np.sqrt(te/count),1e-6))
+def rng_state():return {'torch':torch.get_rng_state(),'cuda':torch.cuda.get_rng_state_all() if torch.cuda.is_available() else [],'numpy':np.random.get_state(),'python':random.getstate()}
+def restore_rng(x):
+ torch.set_rng_state(x['torch']);np.random.set_state(x['numpy']);random.setstate(x['python'])
+ if x['cuda'] and torch.cuda.is_available():torch.cuda.set_rng_state_all(x['cuda'])
+def initialize_seed(job):
+ arch=job['arch']+('_five' if job.get('info') else '')
+ return seed('INIT',f'{job["recipe"]}:{arch}',job['seed'],'initialization')
+
+def train(root,job,device='cuda',epochs=None,lr=None,workers=0,limit=None):
+ root=Path(root);out=root/'runs'/job['id'];out.mkdir(parents=True,exist_ok=True)
+ if (out/'complete.json').exists():return read_json(out/'complete.json')
+ r=recipes()[job['recipe']];tune=job['experiment']=='TUNE';reference=r.reference
+ epochs=epochs or (50 if tune else 1000 if reference else 200)
+ lr=lr or job.get('lr') or (.001 if reference else read_json(root/'selected_lr.json')[job['arch']])
+ spec={'job':job,'lr':lr,'epochs':epochs,'limit':limit}
+ if (out/'spec.json').exists() and read_json(out/'spec.json')!=spec:raise RuntimeError('Run ID already has a different training specification')
+ atomic_json(out/'spec.json',spec);deterministic(initialize_seed(job))
+ model=build(root,job,device)
+ train_data=Bank(bank_path(root,r,'TRAIN'),limit=limit)
+ if job.get('labels_extra'):train_data=ConcatDataset([train_data,*[Bank(bank_path(root,r,x),limit=limit) for x in ('GATE_FIT','GATE_VAL')]])
+ val=Bank(bank_path(root,r,'TUNE' if tune else 'VAL'),limit=limit)
+ if device.startswith('cuda'):
+ train_data=DeviceBank(train_data,device);val=DeviceBank(val,device)
+ if model.scaled:source_scales(model,train_data,device)
+ opt=torch.optim.Adam(model.parameters(),lr=lr,betas=(.9,.999),eps=1e-8,weight_decay=0)
+ J=math.ceil(len(train_data)/512);T=epochs*J;Tw=min(5*J,T);best=float('inf');start=0;history=[];stale=0;significant=float('inf')
+ init={k:v.detach().cpu().clone() for k,v in model.net.state_dict().items()};torch_save(out/'initial.pt',init)
+ if (out/'last.pt').exists():
+ ck=torch.load(out/'last.pt',map_location='cpu',weights_only=False);model.load_state_dict(ck['model']);opt.load_state_dict(ck['optimizer']);start=ck['epoch']+1;best=ck['best'];history=ck['history'];stale=ck['stale'];significant=ck['significant'];restore_rng(ck['rng'])
+ elapsed=time.monotonic()
+ for epoch in range(start,epochs):
+ gen=torch.Generator().manual_seed(seed('SHUFFLE',r.name,f'{job["seed"]}:{epoch}','shuffle'))
+ model.train();sum_loss=0.;count=0
+ for j,batch in enumerate(loader(train_data,shuffle=True,generator=gen,workers=workers)):
+ t=epoch*J+j
+ if reference:rate=lr*.995**epoch
+ elif t=50:break
+ result={'job':job,'best_linear_nmse':best,'epochs_completed':len(history),'seconds_this_invocation':time.monotonic()-elapsed,'parameters':sum(p.numel() for p in model.parameters()),'checkpoint_sha256':sha(out/'best.pt'),'initialization_sha256':sha(out/'initial.pt'),'smoke_only':limit is not None}
+ atomic_json(out/'complete.json',result);return result
+
+def load_model(root,job,device):
+ deterministic(0) # Evaluation in a fresh process must also disable TF32/AMP shortcuts.
+ model=build(root,job,device);ck=torch.load(Path(root)/'runs'/job['id']/'best.pt',map_location='cpu',weights_only=False);model.load_state_dict(ck['model']);return model.eval()
diff --git a/pace_revision_2/pace/validation.py b/pace_revision_2/pace/validation.py
new file mode 100644
index 0000000000000000000000000000000000000000..769d9d02706eefd11fda90e6c75c0ac2127d49c6
--- /dev/null
+++ b/pace_revision_2/pace/validation.py
@@ -0,0 +1,52 @@
+from pathlib import Path
+import subprocess,sys,time
+import numpy as np
+from scipy.special import j0
+from .config import Grid,Condition
+from .physics import Channel
+from .io import atomic_json,environment
+
+def qc(root,device='cpu',full=True):
+ import torch
+ torch.set_num_threads(2)
+ result=subprocess.run([sys.executable,'-m','pytest',str(Path(__file__).resolve().parent.parent/'tests'),'-q'],text=True,capture_output=True)
+ folder=Path(root)/'validation';folder.mkdir(parents=True,exist_ok=True);(folder/'pytest.log').write_text(result.stdout+'\n'+result.stderr)
+ checks={'pytest_passed':result.returncode==0}
+ if full:
+ env=environment();expected={'sionna':'2.0.1','numpy':'2.2.6','scipy':'1.15.3','h5py':'3.15.1','matplotlib':'3.10.8'}
+ checks['core_versions']=all(env['versions'].get(k)==v for k,v in expected.items()) and str(env['versions'].get('torch','')).startswith('2.9.1')
+ checks['python_version']=sys.version_info[:3]==(3,11,11)
+ checks['cuda_device']=device.startswith('cuda') and torch.cuda.is_available() and torch.version.cuda=='12.8'
+ rng=np.random.default_rng(45);z=(rng.normal(size=1000000)+1j*rng.normal(size=1000000))/np.sqrt(2)
+ checks['noise_variance']=bool(abs(np.mean(abs(z)**2)-1)<.005 and abs(z.real.var()/.5-1)<.005 and abs(z.imag.var()/.5-1)<.005)
+ extra={}
+ if full and checks.get('cuda_device'):
+ extra['cuda_model_counts']=cuda_model_checks(device);checks['cuda_forward_backward']=True
+ if full:
+ g=Grid();engine=Channel(g,device);first=[];last=[];hashes=set()
+ import hashlib
+ for i in range(2048):
+ a,t=engine.paths(Condition(fd=100),'QC','diversity',i);first.append(a[0,:,0]);last.append(a[-1,:,-1]);hashes.add(hashlib.sha256(a.tobytes()).hexdigest())
+ first=np.asarray(first);last=np.asarray(last)
+ from importlib.resources import files
+ import json
+ table=json.loads(files('pace').joinpath('tables/TDL-C.json').read_text());power=10**(np.array(table['powers'])/10);power/=sum(power)
+ v=abs(first)**2;mean=v.mean(0);se=v.std(0,ddof=1)/np.sqrt(len(v));checks['ensemble_path_power']=bool(np.all(abs(mean-power)<=6*se));checks['no_duplicate_channels']=len(hashes)==2048
+ dt=(g.starts[-1]+g.N-1-g.starts[0])/g.fs;corr=(first.conj()*last).real/power[None,:];cm=corr.mean(0);cse=corr.std(0,ddof=1)/np.sqrt(len(corr));expected=j0(2*np.pi*100*dt);checks['time_correlation']=bool(np.all(abs(cm-expected)<=6*cse));extra.update({'path_power_mean':mean.tolist(),'path_power_expected':power.tolist(),'time_correlation_expected':float(expected)})
+ report=dict(passed=all(checks.values()),checks=checks,full=full,environment=environment(),**extra);atomic_json(folder/'qc.json',report)
+ print(result.stdout);print(report)
+ if not report['passed']:raise RuntimeError('QC failed; inspect validation/pytest.log')
+
+def cuda_model_checks(device):
+ import torch
+ from .io import deterministic
+ from .config import Grid,Bem
+ from .models import Estimator
+ deterministic(4421);g=Grid();cov=np.eye(g.M,dtype=complex);counts={}
+ for arch in ('compact','wide','cnn16','reesnet','channelformer','fortitran','helena','adafortitran'):
+ m=Estimator(g,cov,Bem(),arch=arch,arm='A-res' if arch=='compact' else 'D').to(device)
+ b=dict(h=torch.randn(2,14,120,device=device,dtype=torch.complex64),z=torch.randn(2,80,device=device,dtype=torch.complex64),n0=torch.full((2,),.1,device=device),snr=torch.full((2,),10.,device=device),ds=torch.full((2,),100.,device=device),fd=torch.full((2,),10.,device=device))
+ m.train();loss=abs(m(b)-b['h']).square().mean();loss.backward()
+ if not all(p.grad is not None and torch.isfinite(p.grad).all() for p in m.net.parameters()):raise RuntimeError(f'Invalid CUDA gradients: {arch}')
+ counts[arch]=sum(p.numel() for p in m.parameters());del m
+ return counts
diff --git a/pace_revision_2/pace_revision.egg-info/PKG-INFO b/pace_revision_2/pace_revision.egg-info/PKG-INFO
new file mode 100644
index 0000000000000000000000000000000000000000..84ebc1e9dd3cbd72e29458a9df6543b33bc3cf9f
--- /dev/null
+++ b/pace_revision_2/pace_revision.egg-info/PKG-INFO
@@ -0,0 +1,18 @@
+Metadata-Version: 2.4
+Name: pace-revision
+Version: 3.0.0
+Requires-Python: >=3.11
+Requires-Dist: numpy==2.2.6
+Requires-Dist: scipy==1.15.3
+Requires-Dist: h5py==3.15.1
+Requires-Dist: matplotlib==3.10.8
+Requires-Dist: importlib-resources==6.5.2
+Requires-Dist: pandas<3,>=2.2
+Requires-Dist: tqdm>=4.66
+Requires-Dist: fsspec>=2025.2
+Requires-Dist: pydantic<3,>=2
+Requires-Dist: pyyaml>=6
+Provides-Extra: test
+Requires-Dist: pytest>=8; extra == "test"
+Provides-Extra: notebook
+Requires-Dist: marimo>=0.18; extra == "notebook"
diff --git a/pace_revision_2/pace_revision.egg-info/SOURCES.txt b/pace_revision_2/pace_revision.egg-info/SOURCES.txt
new file mode 100644
index 0000000000000000000000000000000000000000..c4abc5046baa8f6d1cd31d7304ba68fa0ac58ca0
--- /dev/null
+++ b/pace_revision_2/pace_revision.egg-info/SOURCES.txt
@@ -0,0 +1,43 @@
+README.md
+pyproject.toml
+pace/__init__.py
+pace/auxiliary_reporting.py
+pace/backup.py
+pace/classical.py
+pace/cli.py
+pace/complexity.py
+pace/config.py
+pace/data.py
+pace/devices.py
+pace/diagnostics.py
+pace/evaluation.py
+pace/experiments.py
+pace/fidelity.py
+pace/interventions.py
+pace/io.py
+pace/metrics.py
+pace/physics.py
+pace/receiver.py
+pace/reporting.py
+pace/training.py
+pace/validation.py
+pace/models/__init__.py
+pace/models/base.py
+pace/models/channelformer.py
+pace/models/compact.py
+pace/models/deterministic.py
+pace/models/fortitran.py
+pace/models/helena.py
+pace/models/hybrid_cnn_lstm.py
+pace/models/reesnet.py
+pace/tables/TDL-A.json
+pace/tables/TDL-C.json
+pace_revision.egg-info/PKG-INFO
+pace_revision.egg-info/SOURCES.txt
+pace_revision.egg-info/dependency_links.txt
+pace_revision.egg-info/entry_points.txt
+pace_revision.egg-info/requires.txt
+pace_revision.egg-info/top_level.txt
+tests/test_contracts.py
+tests/test_devices.py
+tests/test_launcher.py
\ No newline at end of file
diff --git a/pace_revision_2/pace_revision.egg-info/dependency_links.txt b/pace_revision_2/pace_revision.egg-info/dependency_links.txt
new file mode 100644
index 0000000000000000000000000000000000000000..8b137891791fe96927ad78e64b0aad7bded08bdc
--- /dev/null
+++ b/pace_revision_2/pace_revision.egg-info/dependency_links.txt
@@ -0,0 +1 @@
+
diff --git a/pace_revision_2/pace_revision.egg-info/entry_points.txt b/pace_revision_2/pace_revision.egg-info/entry_points.txt
new file mode 100644
index 0000000000000000000000000000000000000000..3479d14818672794966f6e015a938f0859a97b7d
--- /dev/null
+++ b/pace_revision_2/pace_revision.egg-info/entry_points.txt
@@ -0,0 +1,2 @@
+[console_scripts]
+pace = pace.cli:main
diff --git a/pace_revision_2/pace_revision.egg-info/requires.txt b/pace_revision_2/pace_revision.egg-info/requires.txt
new file mode 100644
index 0000000000000000000000000000000000000000..cff9e1df5d85374c50b638d259adcbbd8c4a9e0d
--- /dev/null
+++ b/pace_revision_2/pace_revision.egg-info/requires.txt
@@ -0,0 +1,16 @@
+numpy==2.2.6
+scipy==1.15.3
+h5py==3.15.1
+matplotlib==3.10.8
+importlib-resources==6.5.2
+pandas<3,>=2.2
+tqdm>=4.66
+fsspec>=2025.2
+pydantic<3,>=2
+pyyaml>=6
+
+[notebook]
+marimo>=0.18
+
+[test]
+pytest>=8
diff --git a/pace_revision_2/pace_revision.egg-info/top_level.txt b/pace_revision_2/pace_revision.egg-info/top_level.txt
new file mode 100644
index 0000000000000000000000000000000000000000..ff58dfdb33c828b5facdc53f43663b03f791c598
--- /dev/null
+++ b/pace_revision_2/pace_revision.egg-info/top_level.txt
@@ -0,0 +1 @@
+pace
diff --git a/pace_revision_2/performance_tools/gate_profile.py b/pace_revision_2/performance_tools/gate_profile.py
new file mode 100644
index 0000000000000000000000000000000000000000..d495905d6041668f2a309fa22ad64d758b5020b2
--- /dev/null
+++ b/pace_revision_2/performance_tools/gate_profile.py
@@ -0,0 +1,119 @@
+"""Read-only campaign profiling. Writes only performance_diagnostics/."""
+import argparse,copy,json,math,time,statistics,hashlib
+from pathlib import Path
+import sys
+sys.path.insert(0,str(Path(__file__).resolve().parents[1]))
+import numpy as np
+import torch
+from pace.io import deterministic,read_json,atomic_json,environment,sha
+from pace.config import seed
+from pace.experiments import recipes
+from pace.data import Bank,bank_path
+from pace.training import loader,move,load_model
+from pace.models import ResourceGate
+from pace.interventions import parents
+
+p=argparse.ArgumentParser();p.add_argument('--root',required=True);p.add_argument('--output',required=True);a=p.parse_args()
+root=Path(a.root);output=Path(a.output);output.mkdir(parents=True,exist_ok=True)
+r=recipes()['main'];device='cuda:0';sd=41001
+if not torch.cuda.is_available():raise RuntimeError('Run on the Molab GPU for useful timings.')
+# Leave CPU thread defaults as used by the real gates CLI; report them.
+deterministic(0)
+folder=root/'gates/main'/str(sd)
+last_path=folder/'last.pt';best_path=folder/'best.pt'
+last=torch.load(last_path,map_location='cpu',weights_only=True)
+state=last['gate'];start=last['epoch']+1
+fit=Bank(bank_path(root,r,'GATE_FIT'));val=Bank(bank_path(root,r,'GATE_VAL'))
+def gen():return torch.Generator().manual_seed(seed('GATE','main',f'{sd}:{start}','shuffle'))
+def measured_batches(bank,shuffle):
+ it=iter(loader(bank,256,shuffle,gen() if shuffle else None));batches=[];seconds=[]
+ for i in range(min(3,math.ceil(len(bank)/256))):
+ t=time.perf_counter();batch=next(it);seconds.append(time.perf_counter()-t);batches.append(batch)
+ print(f' batch {i+1}: data loading {seconds[-1]:.3f}s',flush=True)
+ return batches,seconds
+print('1/5 Timing original shuffled data loading (three batches)...',flush=True)
+fit._shard.cache_clear()
+original,load_s=measured_batches(fit,True)
+cache_info=fit._shard.cache_info()._asdict()
+print('2/5 Loading the same gate-fit/validation shard arrays into RAM once...',flush=True)
+t=time.perf_counter();memory=0;cache_load={}
+for name,bank in [('fit',fit),('val',val)]:
+ t0=time.perf_counter();shards=[bank._shard(i) for i in range(len(bank.ends))]
+ memory+=sum(v.nbytes for shard in shards for v in shard.values())
+ bank._shard=lambda i,shards=shards:shards[i]
+ cache_load[name]=time.perf_counter()-t0
+preload_s=time.perf_counter()-t
+resident,ram_load_s=measured_batches(fit,True)
+exact=all(set(x)==set(y) and all(torch.equal(x[k],y[k]) for k in x) for x,y in zip(original,resident))
+if not exact:raise RuntimeError('Cached and original batches differ. Do not adopt this optimization.')
+print(f'Batches match exactly. Resident shard arrays: {memory/2**20:.1f} MiB',flush=True)
+print('3/5 Loading frozen models and gate copies; timing GPU components...',flush=True)
+d,anch=[load_model(root,j,device) for j in parents('main',sd)]
+mask=torch.tensor(r.grid.mask,device=device,dtype=torch.float32)[None,None]
+gate=ResourceGate().to(device);gate.load_state_dict(state);gate.train()
+opt=torch.optim.Adam(gate.parameters(),lr=.001);opt.load_state_dict(copy.deepcopy(last['optimizer']))
+def timed(fn):
+ torch.cuda.synchronize();t=time.perf_counter();result=fn();torch.cuda.synchronize()
+ return result,time.perf_counter()-t
+@torch.no_grad()
+def frozen(batch):
+ dp=d(batch);ap=anch(batch);u,_,q=d.inputs(batch)
+ return u,dp,ap,q
+# Warm GPU kernels without changing a saved model or optimizer.
+warm=move(resident[0],device);features=frozen(warm)
+pred,_=gate(*features[:3],mask,features[3]);abs(pred-warm['h']).square().mean().backward();gate.zero_grad(set_to_none=True);torch.cuda.synchronize()
+transfer=[];fixed=[];training=[];precomputed=[]
+for batch in resident:
+ b,dt=timed(lambda:move(batch,device));transfer.append(dt)
+ features,dt=timed(lambda:frozen(b));fixed.append(dt)
+ def step():
+ pred,_=gate(*features[:3],mask,features[3]);loss=abs(pred-b['h']).square().mean()
+ opt.zero_grad();loss.backward();torch.nn.utils.clip_grad_norm_(gate.parameters(),1.,error_if_nonfinite=True);opt.step()
+ return float(loss.detach())
+ _,dt=timed(step);training.append(dt)
+ precomputed.append((b,features))
+ print(f' transfer={transfer[-1]:.4f}s frozen={fixed[-1]:.4f}s gate update={training[-1]:.4f}s',flush=True)
+print('4/5 Checking predictions, gradients and one Adam update for original versus RAM-backed input...',flush=True)
+def one_update(batch):
+ model=ResourceGate().to(device);model.load_state_dict(state);model.train()
+ optimizer=torch.optim.Adam(model.parameters(),lr=.001);optimizer.load_state_dict(copy.deepcopy(last['optimizer']))
+ b=move(batch,device);u,dp,ap,q=frozen(b);pred,_=model(u,dp,ap,mask,q)
+ loss=abs(pred-b['h']).square().mean();optimizer.zero_grad();loss.backward()
+ torch.nn.utils.clip_grad_norm_(model.parameters(),1.,error_if_nonfinite=True)
+ grads={n:p.grad.detach().clone() for n,p in model.named_parameters()}
+ optimizer.step()
+ return pred.detach(),grads,{n:t.detach().clone() for n,t in model.state_dict().items()}
+x=one_update(original[0]);y=one_update(resident[0])
+checks={'batch_values_exact':exact,'prediction_exact':torch.equal(x[0],y[0]),
+ 'gradients_exact':all(torch.equal(x[1][k],y[1][k]) for k in x[1]),
+ 'updated_parameters_exact':all(torch.equal(x[2][k],y[2][k]) for k in x[2])}
+print(checks,flush=True)
+print('5/5 Timing validation samples and saving diagnostic estimates...',flush=True)
+val_batches,val_load=measured_batches(val,False);val_compute=[]
+# Use the saved best checkpoint only in memory. Do not select or overwrite it.
+gate.load_state_dict(torch.load(best_path,map_location=device,weights_only=True));gate.eval()
+for batch in val_batches:
+ def validate():
+ with torch.no_grad():
+ b=move(batch,device);u,dp,ap,q=frozen(b);pred,_=gate(u,dp,ap,mask,q)
+ return float(abs(pred.to(torch.complex128)-b['h']).square().sum())
+ _,dt=timed(validate);val_compute.append(dt)
+mean=statistics.mean;nb=math.ceil(len(fit)/256);nv=math.ceil(len(val)/256)
+compute=mean(transfer)+mean(fixed)+mean(training)
+# Small-sample extrapolations, excluding gate evaluation and other study stages.
+epoch_ram=nb*(mean(ram_load_s)+compute)+nv*(mean(val_load)+mean(val_compute))
+estimates={'ram_backed_epoch_seconds_approx':epoch_ram,
+ 'training_loader_seconds_per_epoch_original_approx':nb*mean(load_s),
+ 'training_loader_seconds_per_epoch_ram_approx':nb*mean(ram_load_s),
+ 'remaining_first_fit_seconds_approx':max(0,50-start)*epoch_ram,
+ 'all_20_fit_epochs_from_scratch_seconds_approx':20*50*epoch_ram,
+ 'scope':'Three batches per component; excludes gate evaluation, checkpoint I/O, most model setup, later experiments; not a whole-study ETA.'}
+report={'environment':environment(),'cpu_threads':torch.get_num_threads(),'completed_gate_epochs':start,
+ 'checkpoint_sha256':sha(last_path),'best_sha256':sha(best_path),'n_fit':len(fit),'n_val':len(val),
+ 'original_shard_cache_observation':cache_info,'resident_shards_bytes':memory,'preload_seconds':preload_s,'preload_by_bank':cache_load,
+ 'timings_seconds':{'original_shuffled_loading':load_s,'ram_shuffled_loading':ram_load_s,'transfer':transfer,'frozen_models':fixed,'gate_update':training,'ram_val_loading':val_load,'validation_compute':val_compute},
+ 'equivalence':checks,'estimates':estimates,'campaign_files_modified':False}
+atomic_json(output/'gate_profile.json',report)
+print(json.dumps(estimates,indent=2),flush=True)
+print(f'PROFILE COMPLETE. Share this file: {output/"gate_profile.json"}',flush=True)
+if not all(checks.values()):raise RuntimeError('Equivalence check failed. No production optimization was applied.')
diff --git a/pace_revision_2/protocols/PACE_Phase1_References.bib b/pace_revision_2/protocols/PACE_Phase1_References.bib
new file mode 100644
index 0000000000000000000000000000000000000000..404fca0653a2e4bb2c83e37598f9dc63c7e7be68
--- /dev/null
+++ b/pace_revision_2/protocols/PACE_Phase1_References.bib
@@ -0,0 +1,202 @@
+% PACE Phase 1 bibliography. Prepared 2026-09-22; literature cutoff 2026-09-21.
+% Publication status is explicit. Missing pages/DOIs are intentionally omitted.
+% See the report for full-text access limits and baseline roles.
+
+@inproceedings{guler2025adafortitran,
+ author = {Guler, Berkay and Jafarkhani, Hamid},
+ title = {{AdaFortiTran}: An Adaptive Transformer Model for Robust {OFDM} Channel Estimation},
+ booktitle = {2025 IEEE International Conference on Communications (ICC)},
+ year = {2025},
+ doi = {10.1109/ICC52391.2025.11160810},
+ eprint = {2505.09076},
+ archivePrefix = {arXiv},
+ url = {https://arxiv.org/abs/2505.09076},
+ note = {Selected reference experiment: FortiTran-M, Figure 3(a). Author code: https://github.com/BerkIGuler/AdaFortiTran}
+}
+
+@misc{camelo2026helena,
+ author = {Camelo Botero, Miguel and Beyazit, Esra Aycan and Slamnik-Krije{\v{s}}torac, Nina and Marquez-Barja, Johann M.},
+ title = {{HELENA}: High-Efficiency Learning-based channel Estimation using dual Neural Attention},
+ year = {2026},
+ eprint = {2506.13408},
+ archivePrefix = {arXiv},
+ primaryClass = {eess.SP},
+ url = {https://arxiv.org/abs/2506.13408v2},
+ note = {Preprint v2, revised April 16, 2026; first submitted June 16, 2025. Author repository: https://github.com/miguelhdo/HELENA_Channel_Estimation}
+}
+
+@article{liu2025pdcevit,
+ author = {Liu, Fangyu and Jiang, Peiwen and Zhang, Jing and Wang, Wenjin and Wen, Chao-Kai and Jin, Shi},
+ title = {{PD-CEViT}: A Novel Pilot Pattern Design and Channel Estimation Network for {OFDM} Systems},
+ journal = {IEEE Transactions on Communications},
+ year = {2025},
+ volume = {73},
+ number = {6},
+ pages = {4363--4377},
+ doi = {10.1109/TCOMM.2024.3502687},
+ url = {https://doi.org/10.1109/TCOMM.2024.3502687},
+ note = {Early access 2024; journal issue 2025. Distinct from CE-ViT at GLOBECOM 2023}
+}
+
+@article{wang2026adagpmt,
+ author = {Wang, Bolin and Chen, Li and Chen, Xiaohui and Wang, Weidong},
+ title = {Generalization-Enhanced Channel Estimation Through Adaptive Interpolation and Multi-Task Learning-Based Denoising Network},
+ journal = {IEEE Transactions on Machine Learning in Communications and Networking},
+ year = {2026},
+ volume = {4},
+ pages = {528--541},
+ doi = {10.1109/TMLCN.2026.3664840},
+ url = {https://doi.org/10.1109/TMLCN.2026.3664840}
+}
+
+@misc{qi2026dance,
+ author = {Qi, Heqiang and Chen, Yirun and Meng, Xiangming and Jiang, Chunxiao and Wu, Sheng and Kuang, Linling},
+ title = {Diffusion-Based Noise-Adaptive Null-Space Channel Estimation for {OFDM} Systems},
+ year = {2026},
+ eprint = {2607.03348},
+ archivePrefix = {arXiv},
+ url = {https://arxiv.org/html/2607.03348v1},
+ note = {Preprint, July 2026; method named DANCE}
+}
+
+@article{shi2026perl,
+ author = {Shi, Xiaotian and Liu, Yuanjian},
+ title = {Transformer-Based Physics Prior-Enhanced Residual Learning for {OFDM} Channel Estimation: The {PERL} Architecture},
+ journal = {Electronics},
+ year = {2026},
+ volume = {15},
+ number = {16},
+ pages = {3653},
+ doi = {10.3390/electronics15163653},
+ url = {https://www.mdpi.com/2079-9292/15/16/3653},
+ note = {Article 3653. Phase 1 assessment based on publisher abstract and metadata; full text not retrieved}
+}
+
+@inproceedings{pratik2025requestnet,
+ author = {Pratik, Kumar and Sadeghi, Pouriya and Cesa, Gabriele and Barghi, Sanaz and Soriaga, Joseph B. and Yu, Yuanning and Bhattacharjee, Supratik and Behboodi, Arash},
+ title = {{ReQuestNet}: A Foundational Learning model for Channel Estimation},
+ booktitle = {2025 IEEE Global Communications Conference (GLOBECOM)},
+ year = {2025},
+ eprint = {2508.08790},
+ archivePrefix = {arXiv},
+ url = {https://arxiv.org/abs/2508.08790},
+ note = {Conference acceptance stated in the author preprint; final proceedings pages and DOI not verified}
+}
+
+@misc{chen2025continual,
+ author = {Chen, Jianqiao and Ma, Nan and Liu, Wenkai and Xu, Xiaodong and Zhang, Ping},
+ title = {Continual Learning-Aided Super-Resolution Scheme for Channel Reconstruction and Generalization in {OFDM} Systems},
+ year = {2025},
+ eprint = {2503.01897},
+ archivePrefix = {arXiv},
+ url = {https://arxiv.org/abs/2503.01897},
+ note = {Preprint; publication beyond the checked arXiv record not verified}
+}
+
+@article{wang2026extrapolation,
+ author = {Wang, Haoyu and Sun, Zhi and Han, Shuangfeng and Wang, Xiaoyun and Wang, Zhaocheng},
+ title = {Generalizable Learning for Frequency-Domain Channel Extrapolation Under Distribution Shift},
+ journal = {IEEE Transactions on Wireless Communications},
+ year = {2026},
+ doi = {10.1109/TWC.2025.3650044},
+ eprint = {2505.13867},
+ archivePrefix = {arXiv},
+ url = {https://arxiv.org/abs/2505.13867},
+ note = {Author preprint 2025; publisher record 2026. Final volume, issue, and pagination omitted pending verification}
+}
+
+@article{okoyeigbo2026chanest,
+ author = {Okoyeigbo, Obinna and Deng, Xutao and Sheriff, Ray and Jeremiah, Daniel and Shobayo, Olamilekan},
+ title = {{ChanEst} Dataset: A Reconfigurable Framework and Benchmark for Deep Learning-Based {6G} Channel Estimation},
+ journal = {Telecom},
+ year = {2026},
+ volume = {7},
+ number = {3},
+ pages = {65},
+ doi = {10.3390/telecom7030065},
+ url = {https://shura.shu.ac.uk/37529/1/telecom-07-00065.pdf},
+ note = {Article 65. Author repository: https://github.com/obydelion/ChanEst-Dataset-Generation}
+}
+
+@misc{nie2026delaydoppler,
+ author = {Nie, Mingcheng and Chang, Hao and Zhang, Xiaoqi and Liu, Junkai and Hardjawana, Wibowo and Vucetic, Branka and Li, Yonghui},
+ title = {Channel Estimation for {OFDM} via Delay--Doppler Refinement},
+ year = {2026},
+ eprint = {2609.09782},
+ archivePrefix = {arXiv},
+ url = {https://arxiv.org/html/2609.09782v1},
+ note = {Preprint, September 2026}
+}
+
+@article{li2020reesnet,
+ author = {Li, Lianjun and Chen, Hao and Chang, Hung-Hsi and Liu, Liang},
+ title = {Deep Residual Learning Meets {OFDM} Channel Estimation},
+ journal = {IEEE Wireless Communications Letters},
+ year = {2020},
+ volume = {9},
+ number = {5},
+ pages = {615--618},
+ doi = {10.1109/LWC.2019.2962796},
+ url = {https://doi.org/10.1109/LWC.2019.2962796}
+}
+
+@article{luan2023channelformer,
+ author = {Luan, Dianxin and Thompson, John S.},
+ title = {Channelformer: Attention Based Neural Solution for Wireless Channel Estimation and Effective Online Training},
+ journal = {IEEE Transactions on Wireless Communications},
+ year = {2023},
+ volume = {22},
+ number = {10},
+ pages = {6562--6577},
+ doi = {10.1109/TWC.2023.3244484},
+ url = {https://doi.org/10.1109/TWC.2023.3244484}
+}
+
+@inproceedings{liu2023cevit,
+ author = {Liu, Fangyu and Zhang, Jing and Jiang, Peiwen and Wen, Chao-Kai and Jin, Shi},
+ title = {A Robust Channel Estimator Based on Vision Transformer for {OFDM} Systems},
+ booktitle = {2023 IEEE Global Communications Conference (GLOBECOM)},
+ year = {2023},
+ pages = {4798--4803},
+ note = {CE-ViT; distinct from the later PD-CEViT journal paper. Bibliographic information also appears in the AdaFortiTran primary paper}
+}
+
+@article{zemen2005dpss,
+ author = {Zemen, Thomas and Mecklenbr{\"a}uker, Christoph F.},
+ title = {Time-Variant Channel Estimation Using Discrete Prolate Spheroidal Sequences},
+ journal = {IEEE Transactions on Signal Processing},
+ year = {2005},
+ volume = {53},
+ number = {9},
+ pages = {3597--3607},
+ doi = {10.1109/TSP.2005.853104},
+ url = {https://thomaszemen.org/papers/Zemen05-IEEETrSignalProcessing.pdf}
+}
+
+@misc{mathworks_nrtdlchannel,
+ author = {{The MathWorks, Inc.}},
+ title = {{nrTDLChannel}: Model {TDL} MIMO Channel},
+ howpublished = {Official MATLAB 5G Toolbox documentation},
+ url = {https://www.mathworks.com/help/5g/ref/nrtdlchannel-system-object.html},
+ note = {Accessed September 21, 2026; random-stream and seed defaults require explicit control in reproduction}
+}
+
+@misc{mathworks_nrofdminfo,
+ author = {{The MathWorks, Inc.}},
+ title = {{nrOFDMInfo}: Get {OFDM} Information},
+ howpublished = {Official MATLAB 5G Toolbox documentation},
+ url = {https://www.mathworks.com/help/5g/ref/nrofdminfo.html},
+ note = {Accessed September 21, 2026; verify FFT size, sample rate, CP lengths, and symbol timing from simulator metadata}
+}
+
+@article{edfors1998svd,
+ author = {Edfors, Ove and Sandell, Magnus and van de Beek, Jan-Jaap and Wilson, Sarah Kate and B{\"o}rjesson, Per Ola},
+ title = {{OFDM} Channel Estimation by Singular Value Decomposition},
+ journal = {IEEE Transactions on Communications},
+ year = {1998},
+ volume = {46},
+ number = {7},
+ pages = {931--939},
+ doi = {10.1109/26.701321},
+ url = {https://doi.org/10.1109/26.701321}
+}
diff --git a/pace_revision_2/protocols/PACE_Phase2_1_Backbone_Assessment.md b/pace_revision_2/protocols/PACE_Phase2_1_Backbone_Assessment.md
new file mode 100644
index 0000000000000000000000000000000000000000..de18a688f1addec486593bb45de803840f243513
--- /dev/null
+++ b/pace_revision_2/protocols/PACE_Phase2_1_Backbone_Assessment.md
@@ -0,0 +1,121 @@
+# PACE Phase 2.1 — Backbone Assessment and Architecture Lock
+
+**Amendment A01 · Version 2.1 · 22 September 2026**
+
+This addendum supersedes the primary-backbone dimensions and E04 allocation in Phase 2.0. It is a design decision made before new confirmatory results. The decision is to use a **compact CNN–LSTM with convolution width 8, compression dimension 16, and LSTM hidden size 16**. The supplied operator sequence is retained. CNN-only remains an independent architecture control; the former wide hybrid becomes a capacity control. These substitutions do not increase the planned number of training fits.
+
+This phase inspected the supplied source, reviewed the applicable PyTorch operator definitions, and ran a reproducible arithmetic audit. It did not train networks, measure receiver performance, benchmark the user's GPU, or certify empirical accuracy equivalence. Torch is not installed in this audit environment; parameter counts are calculated from source-defined tensor shapes, not presented as runtime profiler measurements. Implementation must assert the same counts when models are instantiated.
+
+## 1. What is actually expensive?
+
+For the Phase 2 grid (120 carriers, 14 symbols, three input planes), the previously selected C=32, D=32, H=32 hybrid has **268,930 trainable parameters**. Its two frequency projection layers contain **249,632 parameters, or 92.82%** of the total. The LSTM has only **8,448 parameters, or 3.14%**.
+
+The source first creates 32 convolution features at each frequency and symbol. It flattens each symbol to 32×120=3,840 features, maps that to 32, passes it through the LSTM, and maps back to 3,840. Those two dense matrices create most of the parameter burden. Merely deleting the LSTM while retaining these projections would save little storage and would alter temporal processing without addressing the main source of parameters.
+
+The arithmetic bottleneck is different: the 32→32 transpose convolution contributes 15.483 million of 21.457 million real MACs, approximately 72.16%. Reducing the convolution width therefore attacks both the dense parameter burden and the convolution arithmetic. Reducing D/H also shrinks the dense layers. Neither an LSTM label nor a CNN label, by itself, establishes efficiency.
+
+The original 48-carrier, two-input-plane architecture evaluates to 118,882 parameters under the supplied 32/32/32 defaults. The corresponding selected 48-pilot Channelformer variant evaluates to 65,197. These historical-grid counts are distinct from the new Phase 2 counts. They are formula-based architecture counts, not a claim that every old checkpoint used identical configuration. A published pruned Channelformer count must not be compared with our unpruned selected variant as if they were the same model.
+
+## 2. Comparable candidate accounting
+
+All rows below use the same 120×14 output grid. Central candidates receive the same pilot-derived information and known noise level. Channelformer receives its prescribed 80-pilot adapter. Every count includes trainable biases and normalization affine parameters. MACs count real convolution/linear products and LSTM matrix products; Channelformer also includes QK and attention-value products. One MAC is one multiply-accumulate, not one FLOP. Bias additions, normalization, activations, recurrent elementwise arithmetic, interpolation, fixed anchors and data movement are excluded. Convolution MACs follow the dense kernel-size convention, including padded positions. Thus MACs are comparable arithmetic accounting, not complete runtime cost.
+
+| Backbone | Trainable parameters | MACs per slot | Role / interpretation |
+|---|---:|---:|---|
+| Previous hybrid, C32/D32/H32 | 268,930 | 21,457,408 | Wide capacity control |
+| **Compact hybrid, C8/D16/H16** | **34,858** | **2,031,232** | **Locked primary backbone** |
+| Intermediate hybrid, C16/D16/H16 | 68,674 | 5,969,152 | Audited alternative; no additional training arm |
+| Plain residual CNN, width 8 | 5,042 | 8,346,240 | Very few parameters, but more MACs than compact hybrid |
+| Plain residual CNN, width 16 | 19,298 | 32,175,360 | Locked additional architecture control |
+| Plain residual CNN, width 32 | 75,458 | 126,282,240 | Removed from planned E04 allocation |
+| Global single-layer LSTM, H32 | 43,120 | 596,736 | Audited alternative; no local convolutional bias |
+| Global single-layer bidirectional LSTM, H16/direction | 41,072 | 568,064 | Audited alternative; not selected without evidence |
+| Selected Channelformer adaptation | 185,181 | 7,803,840 | External comparison, unchanged |
+
+The compact hybrid reduces trainable parameters by **87.04%** and counted MACs by **90.53%** relative to the previous Phase 2 hybrid. Against the selected same-grid Channelformer it has **81.18% fewer parameters** and **73.97% fewer counted MACs**. These are backbone-only comparisons. Anchored and gated systems must additionally report preprocessing, fixed matrices and branch costs. A two-parent gate does not inherit the cost of one backbone.
+
+An LSTM may still have worse GPU latency than its MAC count suggests because its 14 recurrent steps execute sequentially. Conversely, small convolutions may underutilize the GPU. No speedup factor, energy saving, batch throughput, or peak-memory ratio is established by this table. The Phase 2 batch-1/batch-512 measurements remain mandatory.
+
+## 3. Can CNN-only or LSTM-only do the job?
+
+### CNN-only
+
+Yes: a two-dimensional convolutional network is a legitimate estimator of this time–frequency grid. Recurrence is not required by the input–output model. A plain residual CNN also avoids recurrent state and batch normalization in the specified control, and its fully convolutional parameter count does not scale with frequency-grid length.
+
+However, the already specified four-block width-16 CNN performs eight width-to-width 3×3 convolutions over all 1,680 grid positions. It has fewer parameters than the compact hybrid but approximately 15.84 times its counted MACs. The width-8 CNN has fewer parameters again, but approximately 4.11 times the compact hybrid MACs. Low parameter count is therefore an insufficient reason to replace the primary backbone with these CNNs.
+
+Its nominal receptive field is 21×21 for the specified ten 3×3 layers. This is not access to the entire 120-carrier grid. Interpolated LS already incorporates nearby pilot information, so the raw-pilot receptive field is not identical to the neural receptive field. Nevertheless, the CNN and global-projection hybrid use different spatial biases. There is no present evidence that either achieves better estimation accuracy. Dilated, bottleneck and depthwise CNNs could reduce arithmetic or expand coverage; adding them now would introduce a new architecture search beyond the anchor question. They are not required for this revision.
+
+### LSTM-only
+
+A coherent global LSTM-only candidate forms one token per symbol: all 240 real/imaginary frequency values plus the one noise feature, hence input dimension 241. A linear head maps each hidden output to 240 values. The bidirectional candidate uses 16 units per direction, hence a 32-dimensional concatenated output. Both exploit cross-frequency mixing through dense input weights, without local convolution. The arithmetic script defines these candidates exactly enough to reproduce the accounting; they are not locked experimental arms.
+
+A different implementation that runs one tiny LSTM independently at each subcarrier would discard learned cross-frequency mixing and is not equivalent to the global candidate. Flattening the whole grid into a 1,680-step sequence would introduce an artificial traversal and is also not the candidate counted here.
+
+The global LSTM options are cheaper in counted MACs, but remove the local convolutional processing and impose a different output bottleneck. Their parameter counts are slightly larger than the selected compact hybrid. They might work well; we have not demonstrated that. Selecting one as an empirical winner without training would be unjustified. The compact hybrid is the conservative design choice because it removes most of the known cost while preserving the original processing structure.
+
+## 4. Locked primary architecture
+
+Internal axes follow the supplied implementation, which temporarily uses frequency before time for convolution. Do not change flattening order when porting it.
+
+| Stage | Exact definition | Main-grid shape |
+|---|---|---|
+| Input | RI field plus broadcast q=SNR_dB/25 | B×3×14×120 |
+| Permute | swap frequency/time axes | B×3×120×14 |
+| Encoder | Conv2d(3,8,3,stride=1,padding=1,bias=True); BatchNorm2d(8); LeakyReLU(0.1) | B×8×120×14 |
+| Flatten per symbol | permute to symbol, channel, frequency; flatten C×F | B×14×960 |
+| Compression | Linear(960,16,bias=True); no added activation | B×14×16 |
+| Time reversal | reverse the 14-token time axis | B×14×16 |
+| Recurrent layer | LSTM(input_size=16,hidden_size=16,num_layers=1,bias=True,batch_first=True,dropout=0,bidirectional=False,proj_size=0) | B×14×16 |
+| Restore time order | reverse outputs on the time axis | B×14×16 |
+| Expansion | Linear(16,960,bias=True); reshape and permute | B×8×120×14 |
+| Decoder | ConvTranspose2d(8,8,3,stride=1,padding=1,output_padding=0,bias=True); BatchNorm2d(8); LeakyReLU(0.1) | B×8×120×14 |
+| Output | Conv2d(8,2,3,stride=1,padding=1,padding_mode='replicate',bias=True) | B×2×120×14 |
+| Restore canonical axes | swap frequency/time | B×2×14×120 |
+
+Both BatchNorm layers use eps=1e-5, momentum=0.1, affine=True, track_running_stats=True. They use training statistics when fitting and frozen running statistics at inference. Initial running mean is zero and variance one. Retaining BatchNorm deliberately avoids changing normalization and width simultaneously. Distribution shift in these statistics remains a possible mechanism; do not claim width reduction resolves it.
+
+Retain PyTorch 2.9.1 constructor initialization, with no custom post-initialization or zero output head; BatchNorm affine starts at gain one/bias zero. All three central arms load identical named initial tensors per training seed. Initial LSTM hidden/cell states are zero for each independent slot, with no state carry. The reversed unidirectional LSTM is retained for continuity; it is not a causal online receiver and is not advertised as bidirectional. Because interpolation uses the slot's pilots, time reversal does not imply exclusive access to future raw observations.
+
+No pooling, attention, extra global LS skip, output clipping, projection onto the BEM subspace, added activation after the output, or new normalization is introduced. Direct, A-raw and A-res retain precisely their Phase 2 external constructions. Internal feature processing and the external physical anchor remain distinct.
+
+The two five-plane information-preserving controls change only the first convolution to 5→8. Each then has **35,002 parameters** and **2,273,152 counted MACs**. For other frequency grids, replace both 960 dimensions by 8F and record changed counts; the locked main and 30-kHz grids both use F=120. Pilot density does not change this backbone's input/output dimensions because its adapter still produces the full grid.
+
+## 5. Why this is the decision, and what it does not establish
+
+The design priority is an interpretable finite-model anchor study with low execution cost, not a new architecture contribution or the smallest possible network. C8/D16/H16 gives a major reduction while retaining local convolutions, global frequency mixing and short temporal recurrence. D=H=16 is a declared engineering budget; it is not inferred to be optimal from the eight-dimensional BEM. In particular, unrestricted learned corrections must still represent out-of-subspace error. The network is not projected or forced into that eight-dimensional subspace.
+
+A narrower hidden representation may underfit or change the sign of the anchor effect. That is why the old 32/32/32 hybrid is retained in a paired capacity control. If the phenomenon appears only in the compact model, the paper must identify that capacity dependence. We must not claim a general anchoring failure from a deliberately weak model, nor silently enlarge the primary model after seeing an unfavorable target result.
+
+This is an **architecture lock**, not an empirical noninferiority certification. There is no defensible NMSE-preservation guarantee before training. Source-only tuning and validation remain required; corrected performance may favor direct estimation, anchored estimation, CNN-only, or an external baseline. Report whichever outcome occurs.
+
+## 6. Binding amendments to Phase 2.0
+
+1. **Section 6.1 and every central-backbone use:** replace C32/D32/H32 by C8/D16/H16. This includes E01, anchor variants, information/scale controls, sensitivities, retraining, broad training, waveform training, adaptation and the gate-label-budget control. Update five-plane input counts as above. The former wide hybrid is not the default for any of these recipes.
+2. **Section 6.2 / E04:** replace the two CNN widths with (a) the existing plain residual CNN width 16 and (b) the original wide hybrid C32/D32/H32. Each trains Direct and A-res with ten paired seeds under the main source and is evaluated on the already frozen main test conditions. E04 remains 40 full fits. This provides a different architecture and a hybrid width/bottleneck contrast. The latter changes C, D and H together and must not be called a convolution-width-only intervention.
+3. **Section 7.1 tuning:** central compact D/A-raw/A-res jointly select their peak LR using the existing three-candidate, three-development-seed procedure. The CNN16 pair selects jointly; the wide-hybrid pair selects jointly, each on source TUNE only. External baselines are unchanged. The tuning count remains 27 compact-primary +18 CNN16 +18 wide-hybrid +36 external =99 development fits of 50 epochs. No target-dependent architecture selection is permitted.
+4. **Execution ledger:** primary/secondary seed counts, 440 main full fits, six reference fits, gates and adaptation counts are unchanged. The primary endpoint still concerns the main compact A-res versus compact Direct. E04 comparisons are exploratory capacity/architecture analyses, not additions to the twelve-test confirmatory secondary family.
+5. **Environment and system model:** no changes to channels, pilot geometry, BEM calibration, source/target splits, external baseline definitions, receiver, gates or metric/statistical rules. Fit gates to the new compact parent checkpoints; old-parent gates/checkpoints are incompatible and must not be reused.
+6. **Artifacts / precedence:** apply this Amendment A01 and its JSON overlay over Phase 2.0. The original Phase 2 files remain the historical frozen base. An implementation must record both hashes, effective C/D/H and recipe identity; it must not read the old dimensions and silently ignore this addendum. This is the authoritative effective version 2.1 until a later numbered amendment.
+
+The retained CNN16 costs more arithmetic per slot than the compact hybrid, but it occurs in only the bounded E04 control. Removing CNN32 from E04 reduces that secondary workload. No end-to-end wall-clock saving is asserted before measurement.
+
+## 7. Implementation acceptance and claim boundaries
+
+Before final training, instantiate all central variants and assert the exact trainable counts: 34,858 for three-plane compact, 35,002 for five-plane compact, 268,930 for the wide three-plane hybrid, and 19,298 for CNN16. Count BatchNorm affine parameters, but not running-statistic buffers. Confirm tensor order with a nonsymmetric numbered fixture, zero-anchor output/gradient equivalence, identical initialization hashes within paired arms, and no hidden-state carry. Reuse all Phase 2 numerical, checkpoint and leakage checks.
+
+Inspect source TRAIN/TUNE/VAL curves and perform the already specified small-fixture overfit check. A wiring failure blocks execution and is fixed; a properly implemented model with poorer accuracy is an experimental outcome. No automatic threshold is invented to guarantee it outperforms an external comparator. If genuine underfitting motivates a new design, amend the protocol before confirmatory target access, document all development attempts, and repeat affected source calibration.
+
+Report total trainable parameters, fixed anchor/covariance storage, preprocessing, real MAC convention, batch-1 latency, batch-512 throughput, peak allocated memory and complete gated-system cost separately. Do not claim 90.53% lower measured runtime merely because counted MACs fell by that amount. Nor does equal trainable count establish equal capacity.
+
+Suitable paper wording: “We use a compact CNN–LSTM backbone to study deterministic pilot-derived anchors under a fixed training budget. The same backbone and initialization are used within each controlled comparison. Additional CNN and wider-hybrid experiments assess dependence on architecture and model size.” Its compactness is a practical implementation choice, not a claimed new channel-estimation architecture.
+
+## 8. Evidence and reproducibility
+
+- Supplied project: `ntn_ce/models/hybrid_cnn_lstm.py`, `ntn_ce/models/channelformer.py`, and `ntn_ce/config/schema.py`, from the previously audited project archive. Exact source hashes are included in the companion amendment.
+- Channelformer source contract: [pinned author repository](https://github.com/dianixn/Channelformer/tree/6312c79e103422178ab4cc3d698aeae0731c308f), selected unpruned offline two-head/three-decoder adaptation from Phase 2. It is not a new baseline variant selected in this phase.
+- [PyTorch 2.9 LSTM documentation](https://docs.pytorch.org/docs/2.9/generated/torch.nn.LSTM.html): input/recurrent matrices and both bias vectors establish the parameter formula 4H(D+H+2) for one direction and one layer.
+- [PyTorch 2.9 Conv2d documentation](https://docs.pytorch.org/docs/2.9/generated/torch.nn.Conv2d.html): convolution tensor dimensions establish the kernel-count formula used here.
+- `PACE_Phase2_1_Architecture_Audit.py`: dependency-free arithmetic, all candidate definitions and layer breakdowns. Execute with Python to reproduce the table. It does not implement or train the research models.
+
+**Final lock: compact CNN–LSTM C8/D16/H16 as primary; CNN16 and wide hybrid C32/D32/H32 as the bounded architecture/capacity controls.**
diff --git a/pace_revision_2/protocols/PACE_Phase2_1_Backbone_Lock.json b/pace_revision_2/protocols/PACE_Phase2_1_Backbone_Lock.json
new file mode 100644
index 0000000000000000000000000000000000000000..db7f95f0c8ca0dda7681cadc1d2b32151ec5bd4b
--- /dev/null
+++ b/pace_revision_2/protocols/PACE_Phase2_1_Backbone_Lock.json
@@ -0,0 +1,268 @@
+{
+ "amendment": "A01",
+ "effective_version": "2.1",
+ "status": "architecture locked; empirical performance not established",
+ "base_protocol": {
+ "filename": "PACE_Phase2_Experimental_Protocol.md",
+ "sha256": "b754df9fad1d2967aea20741926caaba0a99df248a9e0414d8ab345a06de6e72"
+ },
+ "base_config": {
+ "filename": "PACE_Phase2_Protocol_Config.json",
+ "sha256": "f238850ca3d81b076f182f7737542df9147005abf6ec2e410f65f0b2091d912e"
+ },
+ "authority": "Apply this overlay and Phase 2.1 narrative over Phase 2.0. Unmentioned settings unchanged.",
+ "report_sha256": "bdf5de52f1a42664be34794f162aeb9028eb94eb15f0a1171b81a8c6132e50f7",
+ "backbone_override": {
+ "name": "HybridCNNLSTM",
+ "conv_channels": 8,
+ "compression": 16,
+ "lstm_hidden": 16,
+ "lstm_layers": 1,
+ "reverse_time": true,
+ "bidirectional": false,
+ "dropout": 0,
+ "proj_size": 0,
+ "input_planes": 3,
+ "output_planes": 2,
+ "smoothing_kernel": 3,
+ "batchnorm_eps": 1e-05,
+ "batchnorm_momentum": 0.1,
+ "leaky_relu": 0.1,
+ "initialization": "PyTorch 2.9.1 constructor defaults; identical tensors across paired arms",
+ "hidden_state": "zeros per slot; never carried"
+ },
+ "E04_override": {
+ "controls": [
+ {
+ "name": "plain_residual_CNN",
+ "width": 16,
+ "blocks": 4
+ },
+ {
+ "name": "HybridCNNLSTM",
+ "conv_channels": 32,
+ "compression": 32,
+ "lstm_hidden": 32
+ }
+ ],
+ "arms": [
+ "D",
+ "A-res"
+ ],
+ "seeds": [
+ 41001,
+ 41002,
+ 41003,
+ 41004,
+ 41005,
+ 41006,
+ 41007,
+ 41008,
+ 41009,
+ 41010
+ ],
+ "full_fits": 40,
+ "replace_prior_CNN_widths": [
+ 16,
+ 32
+ ],
+ "inference": "exploratory architecture/capacity comparisons"
+ },
+ "tuning_override": {
+ "compact_primary": 27,
+ "CNN16_pair": 18,
+ "wide_hybrid_pair": 18,
+ "external": 36,
+ "total": 99,
+ "rules": "Phase 2 source-only three LRs / three development seeds / 50 epochs; each control pair selects jointly"
+ },
+ "main_fit_total": 440,
+ "counts": {
+ "historical_hybrid_48carriers_2planes": {
+ "parameters": 118882,
+ "macs": 8458240,
+ "parameter_breakdown": {
+ "encoder_conv": 608,
+ "encoder_bn": 64,
+ "compress": 49184,
+ "lstm": 8448,
+ "expand": 50688,
+ "decoder_conv": 9248,
+ "decoder_bn": 64,
+ "output_conv": 578
+ },
+ "mac_breakdown": {
+ "encoder_conv": 387072,
+ "compress": 688128,
+ "lstm": 114688,
+ "expand": 688128,
+ "decoder_conv": 6193152,
+ "output_conv": 387072
+ }
+ },
+ "historical_channelformer_48pilots_48carriers": {
+ "parameters": 65197,
+ "macs": 3307200,
+ "parameter_breakdown": {
+ "attention": 9408,
+ "encoder_norms": 192,
+ "ffn": 96,
+ "decoder_head": 312,
+ "decoder_blocks": 21960,
+ "upsample": 32928,
+ "output": 301
+ },
+ "mac_breakdown": {
+ "attention_projections": 18432,
+ "attention_products": 384,
+ "ffn": 8640,
+ "decoder_head": 28800,
+ "decoder_blocks": 2073600,
+ "upsample": 774144,
+ "output": 403200
+ }
+ },
+ "phase2_hybrid_32_32_32": {
+ "parameters": 268930,
+ "macs": 21457408,
+ "parameter_breakdown": {
+ "encoder_conv": 896,
+ "encoder_bn": 64,
+ "compress": 122912,
+ "lstm": 8448,
+ "expand": 126720,
+ "decoder_conv": 9248,
+ "decoder_bn": 64,
+ "output_conv": 578
+ },
+ "mac_breakdown": {
+ "encoder_conv": 1451520,
+ "compress": 1720320,
+ "lstm": 114688,
+ "expand": 1720320,
+ "decoder_conv": 15482880,
+ "output_conv": 967680
+ }
+ },
+ "compact_hybrid_8_16_16_LOCKED": {
+ "parameters": 34858,
+ "macs": 2031232,
+ "parameter_breakdown": {
+ "encoder_conv": 224,
+ "encoder_bn": 16,
+ "compress": 15376,
+ "lstm": 2176,
+ "expand": 16320,
+ "decoder_conv": 584,
+ "decoder_bn": 16,
+ "output_conv": 146
+ },
+ "mac_breakdown": {
+ "encoder_conv": 362880,
+ "compress": 215040,
+ "lstm": 28672,
+ "expand": 215040,
+ "decoder_conv": 967680,
+ "output_conv": 241920
+ }
+ },
+ "moderate_hybrid_16_16_16": {
+ "parameters": 68674,
+ "macs": 5969152,
+ "parameter_breakdown": {
+ "encoder_conv": 448,
+ "encoder_bn": 32,
+ "compress": 30736,
+ "lstm": 2176,
+ "expand": 32640,
+ "decoder_conv": 2320,
+ "decoder_bn": 32,
+ "output_conv": 290
+ },
+ "mac_breakdown": {
+ "encoder_conv": 725760,
+ "compress": 430080,
+ "lstm": 28672,
+ "expand": 430080,
+ "decoder_conv": 3870720,
+ "output_conv": 483840
+ }
+ },
+ "phase2_channelformer": {
+ "parameters": 185181,
+ "macs": 7803840,
+ "parameter_breakdown": {
+ "attention": 25920,
+ "encoder_norms": 320,
+ "ffn": 96,
+ "decoder_head": 312,
+ "decoder_blocks": 22152,
+ "upsample": 136080,
+ "output": 301
+ },
+ "mac_breakdown": {
+ "attention_projections": 51200,
+ "attention_products": 640,
+ "ffn": 14400,
+ "decoder_head": 48000,
+ "decoder_blocks": 3456000,
+ "upsample": 3225600,
+ "output": 1008000
+ }
+ },
+ "plain_residual_CNN8": {
+ "parameters": 5042,
+ "macs": 8346240,
+ "receptive_field_each_axis": 21
+ },
+ "plain_residual_CNN16": {
+ "parameters": 19298,
+ "macs": 32175360,
+ "receptive_field_each_axis": 21
+ },
+ "plain_residual_CNN32": {
+ "parameters": 75458,
+ "macs": 126282240,
+ "receptive_field_each_axis": 21
+ },
+ "global_LSTM32": {
+ "parameters": 43120,
+ "macs": 596736
+ },
+ "global_BiLSTM16": {
+ "parameters": 41072,
+ "macs": 568064
+ },
+ "compact_5plane_information_control": {
+ "parameters": 35002,
+ "macs": 2273152,
+ "parameter_breakdown": {
+ "encoder_conv": 368,
+ "encoder_bn": 16,
+ "compress": 15376,
+ "lstm": 2176,
+ "expand": 16320,
+ "decoder_conv": 584,
+ "decoder_bn": 16,
+ "output_conv": 146
+ },
+ "mac_breakdown": {
+ "encoder_conv": 604800,
+ "compress": 215040,
+ "lstm": 28672,
+ "expand": 215040,
+ "decoder_conv": 967680,
+ "output_conv": 241920
+ }
+ }
+ },
+ "cost_convention": "real MACs; dense convolution convention; bias, normalization, activation, elementwise recurrence, adapters and anchors excluded; not latency",
+ "source_hashes": {
+ "ntn_ce/models/hybrid_cnn_lstm.py": "699b42d2c1eba5cde68df084ff3cca768619124b3785708edcdac7f8a2623ef4",
+ "ntn_ce/models/channelformer.py": "c9458cb6d9ca44ea7f10571e4276bb02b4d7d84029c3f56732bc9d95fa854162",
+ "ntn_ce/config/schema.py": "640f39eed905c4aad9df797b10e94198fe0531221317fae4b7081ade36041822"
+ },
+ "audit_script_sha256": "6103bf09159b6a0debac4955a8e158ddb66b5caf9b47b77cb5c7845d08fbe46f",
+ "performance_evidence": "none in this phase; source-shape arithmetic only",
+ "artifacts_invalidated": "old central/gate checkpoint compatibility; old C32 primary manifests; all future caches must include effective version and dimensions"
+}
diff --git a/pace_revision_2/protocols/PACE_Phase2_Experimental_Protocol.md b/pace_revision_2/protocols/PACE_Phase2_Experimental_Protocol.md
new file mode 100644
index 0000000000000000000000000000000000000000..32814630508f194b05dc914ee980345462a9ae85
--- /dev/null
+++ b/pace_revision_2/protocols/PACE_Phase2_Experimental_Protocol.md
@@ -0,0 +1,345 @@
+# PACE Phase 2 — Experimental Protocol
+
+**Version 2.0 · 22 September 2026 · Status: design frozen for implementation**
+
+Prepared for Hassan Saud. This is the controlling implementation blueprint for the terrestrial study. It supersedes Phase 1 wherever an explicit resolution below is more specific. No channel-estimation experiment, neural training, or receiver simulation was run in preparing it. The evidence in this phase consists of source inspection, serialized-architecture inspection, and arithmetic/contract checks. Runtime acceptance checks are mandatory execution work; their results are not claimed here.
+
+## 1. Scientific question, scope, and freeze rules
+
+We test how a deterministic pilot-derived anchor changes a finite neural estimator's behavior under controlled channel-distribution shift. The confirmatory question is whether its signed gain changes between matched and shifted conditions. A sign reversal, its mechanism, successful mitigation, and superiority over external methods are separate claims requiring separate evidence.
+
+The study is terrestrial, SISO, single-slot CP-OFDM. It does not claim NTN propagation, full NR conformance, MIMO generality, causal real-time prediction, or universal robustness. Both pilots in the slot are available before estimation; latency includes waiting for the later pilot. Geometry, CFO, oscillator phase noise, shadowing, path loss, and synchronization errors are absent. State these assumptions in the paper. Timing and bulk phase synchronization are ideal for all receivers.
+
+The design is sufficiently rigorous for the intended study if its acceptance gates pass and its reporting rules are followed. It cannot guarantee TWC acceptance, recovery of the old result, convergence of every model, or absence of future software defects. Failures of numerical or fidelity gates block affected results; they never justify silently substituting a different model.
+
+**Decision hierarchy:** this narrative is authoritative; its companion JSON is an indexed configuration manifest and must agree with it. Any discrepancy blocks implementation until corrected. Next in precedence is pinned executable source for an explicitly identified released-code comparator; original paper for scientific interpretation. Source/paper disagreements are recorded, not erased. Any change to datasets, primary endpoint, information access, selected model, or training policy requires a numbered amendment stating the reason and whether confirmatory outputs have been inspected. Routine bug fixes must preserve the mathematical contract and invalidate affected cached results.
+
+**Two experiment tracks:** R is a published-setting independent reproduction of FortiTran-M; C is our controlled common-data study. They do not share checkpoints or performance claims. The original 48-subcarrier project remains a historical diagnostic, not part of the new confirmatory dataset.
+
+## 2. Source audit and binding resolutions
+
+The companion source-lock JSON contains repository commits, inspected-file SHA-256 hashes, and the full serialized HELENA configuration. This preserves what was inspected even if upstream changes. The original project archive remains the authority for the supplied PACE/ReEsNet/Channelformer ports.
+
+| Component | Inspected source | Binding resolution |
+|---|---|---|
+| FortiTran / AdaFortiTran | `BerkIGuler/AdaFortiTran`, `fa49e60f25579f59ba1815a27399e999b1382d5c`; models, blocks, dataset, trainer, parser, YAML | Preserve the released operators and shared real/imaginary weights. Set three layers for FortiTran-M and six for AdaFortiTran-L. Default demo settings are not the paper protocol. |
+| Reference generator | `BerkIGuler/OFDMChannelGenerator`, `eea85606e09b0c90c2105c7be7661fa40cdfd789` | Do not use its generated data for C. Its default-seed, timing, measured-noise, and truth-definition issues require native audit before any historical numerical replication claim. |
+| HELENA | `miguelhdo/HELENA_Channel_Estimation`, `af601ec272fc566bac1c47c97e820fc796b6fdfc`; saved `.keras` configuration/weights and evaluation helpers | Preserve the saved architecture, with only declared reshape changes for 120 carriers. Four heads each have key/value dimension 64. Do not replace this with four 16-dimensional heads. Use our metric, not the conflicting helper definitions. |
+| Channelformer | `dianixn/Channelformer`, `6312c79e103422178ab4cc3d698aeae0731c308f`; MATLAB operator files and supplied project port | Use the specified unpruned offline two-head, three-decoder-block port, corroborated by `parameters_frame_3_decode.mat`, adapting pilot feature length. Attention tokens are real/imaginary planes. No online update or pruning claims. Training scripts contain other variants; do not combine them. |
+| ReEsNet | Supplied `ntn_ce/models/reesnet.py` | Treat as a documented ReEsNet adaptation, not certified original-author numerical reproduction. Retain pilot-grid input, residual blocks and learned upsampling. |
+| Physical channel / coding | NVlabs Sionna **2.0.1**, commit `04ddb9312116b408093b9d3ad363a3df355093a6` | New isolated PyTorch-based revision environment. Explicit version migration from the old project; do not overwrite its environment or silently reuse cached channels. Pin channel tables and LDPC APIs. |
+
+**FortiTran count conflict:** at 80 pilots and 1,680 outputs the released upsampler alone has `80×1680+1680=136,080` parameters. Consequently the whole released model cannot have the paper's approximately 0.12M count at this configuration. Report measured implementation counts. Name it **FortiTran-M (released-code variant)**. This resolves what to implement but does not identify the authors' historical code. An exact historical Figure 3(a) numerical replication remains unverified; no protocol can reconstruct unavailable provenance by assumption.
+
+**No license dependency for C or R:** use the canonical Python engine below. R is explicitly an *independent reproduction of published settings using released model code*, not an exact reproduction of the original MATLAB data. Native MATLAB/Keras parity checks are isolated quality checks when their runtime is available. Absence of MATLAB does not authorize claiming native parity: use documented independent operator checks and retain the adaptation label. HELENA's CPU parity environment is specified below and is mandatory before its main results.
+
+Public source links: [FortiTran](https://github.com/BerkIGuler/AdaFortiTran), [generator](https://github.com/BerkIGuler/OFDMChannelGenerator), [HELENA](https://github.com/miguelhdo/HELENA_Channel_Estimation), [Channelformer](https://github.com/dianixn/Channelformer), [Sionna 2.0.1](https://github.com/NVlabs/sionna/tree/v2.0.1). Paper citations are in the saved Phase 1 bibliography; new implementation claims here are based on the pinned source files, not inferred from abstracts.
+
+## 3. Physical, tensor, and observation contracts
+
+### 3.1 Grid and power
+
+Main grid: 120 active carriers, 14 symbols, 15 kHz spacing, FFT length 256, sample rate 3.84 MHz, carrier 2 GHz. Active signed FFT indices are `−60,…,59`; map signed index k to unshifted FFT index `k mod 256`. DC is active in this custom grid. Remaining bins are zero. Do not add an unreported DC null.
+
+CP lengths in samples are `[20,18,18,18,18,18,18,20,18,18,18,18,18,18]`. The slot has 3,840 samples and duration 1 ms. Unitary FFT/IFFT use `norm='ortho'`; no windowing, overlap, or carrier-frequency phase compensation. Symbol useful-window starts are cumulative preceding `(256+CP)` plus the current CP. Define `t_s` as the center of that 256-sample useful window. It is not an assumed uniformly spaced symbol index.
+
+Pilot indices are zero-based active-grid frequency positions `1,4,…,118` and symbol indices `[2,11]`. There are 80 pilots and 1,600 data REs. All pilots are `(1+j)/sqrt(2)`, known to every estimator; data are independent and unit-energy. Fixed pilots avoid an unnecessary pilot-sequence variable. The pattern is a custom comb, not asserted to be standard NR DM-RS.
+
+The axis labeled SNR is **transmitted active-RE Es/N0**. Set Es=1 and `N0=10^(−SNR_dB/10)`. Noise is circular complex Gaussian, each real component variance N0/2. Time-domain noise has the same complex variance under unitary FFT. The occupied-bin fraction changes average waveform sample power; it does not change this definition. No per-realization measured-power AWGN, pilot boost, or Eb/N0 conversion is permitted. If Eb/N0 is additionally shown, distinguish payload-bit energy and explicitly include actual code rate, modulation, pilots and CP overhead.
+
+### 3.2 Channel and shared labels
+
+Use terrestrial Sionna TDL-A/C tap tables, normalized ensemble path power, SISO, **32 sinusoids per path**, independent uniformly random phases and the pinned TDL angular construction. Set `min_speed=max_speed=fd*c/fc` with c=299,792,458 m/s; fd is a maximum Doppler in Hz, not a common CFO. Source is TDL-C, RMS delay spread 100 ns, fd=10 Hz. Both A and C are NLOS profiles. No per-realization channel normalization or channel-dependent noise scaling.
+
+Generate path gains at the actual waveform sample times through the slot, using `TDL(..., num_sinusoids=32, precision='double')` and `num_time_steps=3840`, `sampling_frequency=3.84e6` for the main grid. For each symbol, average each path gain over its 256 useful samples. Define the canonical channel label
+
+`H[s,k] = sum_p mean_n(a_p(t_s,n)) exp(−j 2π k_signed Δf τ_p)`.
+
+This is the diagonal of the waveform channel operator below when the CP covers the path delays. It is **not** the instantaneous gain at an arbitrary symbol boundary. Generate in complex128, reduce/store H as complex64; retain float64 reference diagnostics for QC. Channel paths are time varying within symbols, even when using the controlled diagonal observation.
+
+**C-DIAG:** `Y[s,k]=H[s,k]X[s,k]+N[s,k]`. Only pilot observations are exposed to estimators. Nonpilot data are irrelevant to estimation here. This deliberately removes ICI while retaining a consistent target.
+
+**C-WAVE:** for each symbol and path, apply its exact fractional-delay frequency phase to the populated FFT grid, IFFT, multiply useful samples by that path's time-varying gain, and sum paths before adding noise and FFT. Equivalently,
+
+`y_s = sum_p diag(a_p,s) Fᴴ diag(exp(−j2π k Δf τ_p)) x_s + n_s`.
+
+Here x_s includes all 256 bins, F is the unitary FFT, and each a_p,s contains 256 useful-time samples. This is a sample-level linear time-varying channel, not scalar multiplication after FFT. Its operator is `G_s = sum_p F diag(a_p,s) Fᴴ D_p`. The diagonal equals the label above. Retain the actual CP timing between useful windows. Fractional delays are exact for the periodically extended OFDM symbol; do not round path delays or introduce an undocumented finite-sinc filter.
+
+This construction assumes excess delay less than CP. That assumption holds for the locked cases: TDL-C's largest normalized delay is 8.6523, so even 300 ns RMS gives 2.596 μs, below the 15-kHz minimum CP of 4.6875 μs. At 30 kHz only 100 ns is tested, below its 2.34375 μs minimum CP. Assert this using the pinned tables for every recipe. Thus **ISI is absent by design**, while ICI is present in C-WAVE. A later CP-violating case requires a continuous multi-symbol convolution implementation and a protocol amendment; do not silently use the circular construction there.
+
+Main waveform conditions are fd `[10,100,500,1000]` Hz at C/100 ns. The 1,000-Hz case is a severe stress condition, not a typical claimed deployment. Report normalized Doppler and measured off-diagonal operator energy. On the first 128 waveform test channels per condition, build G and report active-input/active-output ICI energy divided by diagonal energy, plus leakage into guard outputs. This is separate from BEM projection error.
+
+### 3.3 Data formats and information groups
+
+Canonical complex arrays have shape `[batch,symbol=14,frequency=120]`, frequency contiguous. Real neural arrays are `[batch,2,14,120]`, real then imaginary. Canonical vector index is `j=120*s+k`. Pilot vectors are symbol-major, frequency-fast. Let S be the binary pilot-selection matrix; `z = Y_p/X_p = SH + ε` in C-DIAG, with covariance N0 I. In C-WAVE, z additionally contains data-dependent ICI; do not call it pure AWGN pilot noise.
+
+Inputs allowed to the main information group: z, known pilots, mask, grid constants, and N0. No channel labels, true Doppler, profile, delay spread, or true channel norm enter prediction. A model may ignore N0; central Direct/PACE models must all receive it. Noise feature is `q=−log10(N0)/2.5 = SNR_dB/25`, broadcast, with no clipping in declared sensitivity tests.
+
+Oracle group: PH projection, independent target-covariance LMMSE, target-domain retraining, and AdaFortiTran with true fd/delay metadata. Every output names its information group. No oracle curve is presented as an attainable pilot-only method.
+
+Interpolate LS by separable piecewise-linear interpolation in frequency and in actual t_s, with nearest-value extension outside the pilot convex hull in each axis. Restore pilot positions exactly. This defines a linear matrix L, and `SL=I`. Never infer pilot positions by testing whether observed values are nonzero.
+
+## 4. Samples, randomization, and leakage prevention
+
+Training seeds are `41001,…,41020`; external and secondary comparisons use the first ten. Development seeds are `[31001,31002,31003]` and never enter confirmatory statistics. Root data seed is 20260922.
+
+Each source recipe in C has independent banks: TRAIN 100,000 channels; TUNE 6,000 (1,000 per SNR); VAL 12,000 (2,000 per SNR); GATE_FIT 6,000 (1,000 per SNR); GATE_VAL 3,000 (500 per SNR); TEST 10,000 channels **per condition**, each reused at the six SNRs. The balanced validation count of 12,000 replaces Phase 1's illustrative 10,000. Training SNR labels are balanced to within one sample across `[0,5,10,15,20,25]`; an epoch shuffles all 100,000 examples, including the last partial batch. Training examples and their noise are fixed across epochs and training seeds. Results are conditional on this training bank; twenty initializations are not twenty independently sampled datasets.
+
+Generate a sample's RNG seed from the first eight SHA-256 bytes, little-endian, masked to 63 bits, of UTF-8 `PACE2|20260922|bank|family|sample_id|component`. Components are channel, pilot_noise, waveform_noise, data_bits, shuffle, initialization and sham. For data, sample_id is the zero-based integer channel ID; for model RNGs, use the literal training seed as sample_id and the architecture/recipe as family. Paired central arms use the same architecture/recipe family without the arm name. The fixed sham uses bank=FIXED, family=main, sample_id=0, component=sham. Record every expanded seed string in the manifest. Check for collisions and fail if found. Do not use Python's salted hash. Use explicit per-sample RNG states, not batch size or call order, to define the data. Sionna generation can be performed one sample per seeded call and batched later; any faster implementation must reproduce saved per-sample outputs within declared tolerance. Do not rely on a global training seed to control simulator draws.
+
+For matched/reverse Doppler tests on the same profile/delay, family identifies a common latent channel: reuse path angles/phases and rescale fd; reuse standardized noise across SNRs. For profile changes, use distinct channel families but common test IDs and noise. Reuse the exact same bank across all methods. Reuse the same path realization for its DIAG/WAVE pair. All source train, tune, validation, gate, test, adaptation, and oracle-fitting banks are disjoint by identity. Never split adjacent windows from one longer path realization across banks.
+
+After source tuning and all acceptance tests, freeze the configuration, source hashes and dataset hashes **before generating/evaluating TEST outputs**. QC uses a separate bank, 2,048 channels, seed family QC. Do not inspect confirmatory performance while debugging. Save test tensors or deterministic regeneration inputs; record sample IDs, actual N0, physical settings and label hashes.
+
+## 5. Classical estimators and BEM specification
+
+### 5.1 Primary calibrated BEM
+
+Main design support is delay interval `[0,1 μs]` and Doppler interval `[−20,20]` Hz. These are declared source-envelope design values, not per-test oracle inputs. Kf=4 frequency modes, Kt=2 time modes, total rank 8. Do not clamp orders to pilot counts; regularized estimators may remain defined when sampled bases are rank deficient, but that deficiency must be reported.
+
+Frequency basis: `scipy.signal.windows.dpss(120, NW=120*Δf*τmax/2, Kmax=Kf, sym=True, norm=2, return_ratios=True)`, ordered by decreasing concentration. At 15 kHz and τmax=1 μs, NW=0.9. Multiply taper k by `exp(−j2π f_k τmax/2)` to represent a positive-delay band. Time basis: eigendecompose the 14×14 real symmetric kernel `Cst=sinc(2*fd_design*(t_s−t_t))`, where sinc(u)=sin(πu)/(πu), using actual useful-window centers. Keep the Kt largest eigenvectors, Euclidean-normalized. This is a generalized prolate basis on the actual sampling times; do not falsely describe it as ordinary uniformly sampled DPSS. For the first largest-magnitude element of each column, fix sign/phase to positive real; ties choose the lowest index. Sorting is descending eigenvalue then original index. Record concentration/eigenvalues and gaps; extremely small retained eigenvalues are diagnostics, not permission for a hidden bandwidth floor.
+
+Build `B = B_t ⊗ B_f` in canonical frequency-fast order; verify `BᴴB=I`. Set `A=SB`, `P=BBᴴ`. Coefficients are c=Bᴴh. Estimate their zero-mean second moment R0 from **clean TRAIN only**, using complex128 accumulation. The physical generator has zero ensemble mean; do not center by test means. Use `R_c=0.99 R0+0.01 trace(R0)/q I`, q=rank(B)=8 in the primary configuration (use the actual q for sensitivity bases). Prior variance is therefore measured, not fixed to one per coefficient.
+
+The anchor is
+
+`b = B R_c Aᴴ (A R_c Aᴴ + γ N0 I)^−1 z`, with main γ=1.
+
+Use a Cholesky solve in complex128, never a dense inverse. Add only `δ=1e−10 trace(M)/P_count` to M's diagonal for numerical stabilization, where M is the matrix being solved; record δ. Do not progressively increase δ until a result looks stable. If Cholesky fails, stop that configuration for diagnosis. The exact statistical model excludes δ; report its relative scale. Cast b to complex64 only at the neural boundary. Its output remains in range(B).
+
+For arbitrary nonorthonormal fixture bases, use `P=B pinv(B)` with SVD relative cutoff 1e−12. The primary orthonormal basis requires no pseudoinverse. Save σmax, smallest retained σ, effective rank at `σ>1e−10 σmax`, and condition number of A; report infinity if it is rank deficient. Also save the solve-matrix condition number, which is a different quantity.
+
+### 5.2 Strong covariance LMMSE and controls
+
+Fit C=E[hhᴴ] from the same source TRAIN; use zero mean. Let M=1680, p=trace(C)/M, α=0.001. Define `R=(1−α)C+α p I_M`. Only R_hp and R_pp need storage for prediction. Use `hhat=R_hp(R_pp+N0 I)^−1 z` with the same complex128 solve/jitter policy. The cross covariance is `E[h h_pᴴ]`, not its transpose or unconjugated product. A phase-correlated analytic fixture must verify this orientation. This estimator uses **source** statistics at every target condition.
+
+Oracle target-covariance LMMSE is required only for C/100 ns/fd=100 Hz, fitted on a separate 100,000-channel target training bank. Never estimate it from TEST. It is an oracle linear diagnostic, not a nonlinear-MMSE bound.
+
+Low-rank covariance curves use the top eigenvectors of the full source R with ranks `[4,8,16,32]`, then the corresponding rank-truncated cross/auto covariances in the same estimator. Label this an **Edfors-style empirical low-rank LMMSE adaptation**, not an exact reproduction of the original paper's sampling/prior assumptions.
+
+Alternate anchors: zero; interpolated LS Lz; source LMMSE; primary BEM; broad-support BEM (τmax=3 μs, fd_design=200 Hz, Kf=6,Kt=2); oracle PH. For the broad BEM, test both the source-fitted prior above and isotropic `R_c=trace(R0)/12 I`. This separates representational support from prior mismatch.
+
+Sham anchor: apply one fixed random permutation of the 1,680 complex entries of b and independent signs ±1, generated once from the sham seed. Keep it fixed across realizations, splits and training seeds. It preserves each sample's complex norm and uses no target channel. No cross-sample shuffling, ground-truth norm matching, or retuned sham per domain.
+
+The zero-anchor/raw-input construction is exactly Direct under shared initialization and minibatches; verify equality, do not count duplicate runs as independent evidence. PH uses ground truth and must be excluded from deployable rankings and BER/BLER tables.
+
+## 6. Neural estimators and baseline adapters
+
+### 6.1 Central controlled constructions
+
+Let u=Lz, b be the selected anchor, q the noise feature. The three primary constructions are:
+
+- **D:** `fθ([Re u, Im u, q])`.
+- **A-raw:** `b + fθ([Re u, Im u, q])`.
+- **A-res:** `b + fθ([Re(u−b), Im(u−b), q])`.
+
+All output a two-plane complex grid; the noise plane is input only. The three models share initialization tensors exactly for a training seed and use identical batch order, source data, optimizer choice and update schedule. They train separately. No target-domain tuning, anchor gradients, output clipping, pilot overwriting after prediction, or forced BEM projection of neural outputs. Train by full-grid complex MSE, not by the relative residual norm or by a per-sample dB loss.
+
+The backbone is the supplied Hybrid CNN-LSTM, explicitly adapted to three input planes and 120 carriers. Fix C=32 convolution channels, frequency-compression dimension D=32, one unidirectional LSTM with hidden size 32, time reversal before and after LSTM, and the supplied encoder/decompressor/decoder ordering. Encoder: 3×3 same Conv, BatchNorm (eps 1e−5, momentum 0.1), LeakyReLU 0.1. Compress each time slice's C×120 features to 32. Expand LSTM output to C×120. Decoder: 3×3 stride-one transpose Conv, BatchNorm, LeakyReLU 0.1; final 3×3 Conv to two outputs with replicate padding. All linear/convolution biases present. No hidden LSTM state is carried between independent slots. BatchNorm uses training batches while fitting and frozen running statistics at evaluation. Do not replace batch size using gradient accumulation without noting that BatchNorm would change.
+
+This is a finite-budget controlled architecture, not a claim of equivalent function classes or new population information. The raw-input population equivalence conditions on all U=(z,N0,mask). The residual-input variant additionally requires its input transform to preserve U. For every N0, compute the singular values of the pilot-restricted transformation `I−S K`, where b=Kz, and the full map `L−K`. Report injectivity and conditioning; at finite precision an invertible transform may still be ill-conditioned.
+
+Add an information-preserving residual control: feed `[Re(u−b),Im(u−b),Re b,Im b,q]` to the same backbone with five input channels. Pair it with a five-channel raw control `[Re u,Im u,0,0,q]`. Use identical five-channel initial weights. The concatenated representation recovers u by addition; compare these two variants without claiming their parameter count proves identical effective capacity.
+
+### 6.2 Architecture generality
+
+Pure CNN widths are 16 and 32. Each uses 3×3 Conv(3→width), ReLU, four residual blocks each Conv(width→width), ReLU, Conv(width→width), identity addition; then 3×3 Conv(width→2). Zero padding one; biases present; no BatchNorm or dropout and no global LS skip unless prescribed by A-raw/A-res. Apply D and A-res within each width, using the same fixed BEM. Each receives q. This is the additional-backbone experiment; merely listing ReEsNet separately does not substitute for it.
+
+### 6.3 External learned baselines
+
+**ReEsNet adaptation:** pilot tensor `[B,2,Npt,Npf]` with Npt=2,Npf=40; width 16; four two-convolution residual blocks; head Conv2→16, body-tail Conv16→16 with head skip, learned ConvTranspose upsampling, output Conv16→2. All ordinary convolutions are 3×3 same. In `(time,frequency)` order, main upsampling kernel=(9,5), stride=(7,3), padding=(1,1), output_padding=0, yielding 14×120 exactly. For declared regular-comb changes use the supplied formula with Python's round semantics: stride=round(nout/nin), padding=1, kernel=nout−(nin−1)stride+2; assert the output shape. Preserve learned upsampling, not bilinear replacement. N0 is available but not consumed by this native-style architecture.
+
+**Channelformer adaptation:** canonical z length 80 maps to `[B,1,80,2]`, with separate real/imaginary tokens. Two heads, one encoder block, encoder feedforward convolution width 5, three decoder blocks width 12. Post-normalization over the 80-feature axis, epsilon 1e−5, affine per feature. Encoder QKV linear 80→240, output 80→80; FFN 1→5→1 with 3×3 convolutions and tanh-approximate GELU. Decoder head 1→12 and residual block convolutions use 5×5; each block has ReLU between two convolutions followed by the source post-norm. FC upsamples 80→1680 per channel/token, followed by final 5×5 Conv12→1. Reshape in canonical frequency-fast order. Preserve the supplied port's operation order and bias layout. A native MAT-file loader must follow the actual stored field names: MATLAB string concatenation can produce `layer_31` for the final three-block decoder field; do not assume the field is named `layer_4`. Never reinterpret 80 pilot entries as 80 attention tokens. All selected pilot patterns have an even number of pilots; the two-head divisibility assertion must pass. This is the **two-head, three-decoder-block offline variant**, confirmed in `parameters_frame_3_decode.mat`. The separate `parameters_HA03.mat` instead has one decoder block and must not be used as its fidelity checkpoint. Another public training script uses six heads, which does not divide 80. It is not silently padded or conflated with our selected variant.
+
+**FortiTran-M released-code variant:** input complex `[B,40,2]` with frequency-major/time-fast order, explicitly transposed from canonical z. Flatten to 80. One shared real-valued model processes real and imaginary parts in two calls; do not create independent weights or stack them as two Conv input channels. Upsampler Linear80→1680, reshape `[B,1,120,14]`. Initial/final enhancement modules use four 3×3 Conv layers with channels 1→8→32→8→1, ReLU after the first three only. Unfold patches (frequency,time)=(3,2), stride=(3,2), into 280 tokens of length 6. Linear6→32; learned positional embeddings `[1,512,32]`, retaining all 512 rows as in the release; three TransformerEncoder layers, four heads, FFN=64, GELU, dropout 0.1, post-norm epsilon 1e−5, then Linear32→6. Fold patches back; add the enhanced feature map before final refinement. Preserve the release's initialization, including Transformer layer cloning and positional initialization. Count allocated and actually used parameters separately if discussing unused positional rows. Do not claim the paper's published count.
+
+**AdaFortiTran-L oracle-metadata arm:** same released architecture with six Transformer layers; concatenate six metadata features per patch before Linear12→32. Three MLPs each 1→7→42→560, ReLU between hidden layers, reshape each to 280×2. Input units are SNR in dB, delay spread in ns, Doppler in Hz, as in the release. Do not silently standardize metadata. This branch is trained on the broad recipe R, then compared with a broad-trained FortiTran-M; the two share data but differ in metadata access and architecture. It is not part of the source-only primary ranking. Include an “available nominal metadata” evaluation using fixed source fd=10 and DS=100 on C tests, labeled as a mismatched-metadata stress result, not an estimated-metadata method. True-statistics and nominal-statistics outputs remain separate.
+
+**HELENA released-model adaptation:** input is sparse pilot LS with zeros at nonpilots, arranged NHWC `[B,120,14,2]`. Do not replace this with interpolated LS. Preserve Conv2D 2→32 kernel(12,2), stride1, SAME padding, ReLU; Conv32→2 kernel(6,7), SAME, ReLU; dropout 0.1. Keras SAME padding is asymmetric for even kernels: first (frequency before/after 5/6, time 0/1); second (2/3,3/3). Reshape in NHWC order to `[B,10,336]` (ten groups of twelve frequencies across all fourteen times/two planes). Linear336→64. MHA has four heads each key/value dim64: Q/K/V projections each 64→256, attention scaling sqrt(64), output256→64, attention dropout 0, biases present. Add input embedding, LayerNorm over64 with epsilon 0.001. Average over the ten tokens with keepdims; MLP64→16 ReLU→64 sigmoid; multiply the normalized token features. Linear64→336; reshape back NHWC and add the original sparse LS input. Output transpose to canonical layout. Do not use `nn.MultiheadAttention(embed_dim=64,num_heads=4)` as a drop-in replacement.
+
+Native HELENA parity uses the saved 612×14 model, i.e. 51 tokens, its actual weights and fixed nonsymmetric real/imaginary test arrays. The 120-carrier adaptation changes only input/output reshape and token count, not feature dimensions. Do not reuse published native-grid accuracy/latency numbers for the adapted model. Preserve Glorot-uniform kernels, zero biases and norm initialization when training this architecture from scratch.
+
+All external baselines use the same complex labels, complex-MSE definition, source bank and evaluator. Their deterministic preprocessing differences are intentional. Published metrics on different data are context only, not rows in our numerical table.
+
+## 7. Optimization and deterministic selection
+
+### 7.1 Common-data training
+
+Main batch size 512, 200 epochs, 196 optimizer steps per epoch including the 160-sample final batch. No early stopping; select the best validation checkpoint. Optimizer is Adam, betas=(0.9,0.999), eps=1e−8, weight_decay=0, global gradient-norm clip=1.0. No augmentation, mixed precision, TF32, stochastic weight averaging or test-time ensembling in the primary results. Use float32 networks and sum real/imaginary squared errors so `loss=mean_complex_RE |Hhat−H|²`. For external code that uses half this loss, replace it in C with the canonical loss and document the training adaptation.
+
+A small fixed tuning procedure avoids handicapping different architectures without leaving discretionary choices. Candidate peak learning rates are `[0.0003,0.001,0.003]`. Train each candidate for 50 epochs on TRAIN, seeds 31001–31003, and choose by arithmetic mean of the best TUNE **pooled linear NMSE** across seeds. Ties within 1e−6 relative choose the smaller learning rate. All architectures get exactly this budget; no discarded failed trials. Central D/A-raw/A-res select one shared peak rate by averaging the three arms' source TUNE scores for each candidate. The same selected rate is reused for all central anchor controls, sensitivities, adaptation initialization, and gates' parent estimators. Each pure-CNN width selects jointly across D and A-res. Each external architecture selects separately. Selection uses only source TUNE and resets all weights before final fitting.
+
+The scheduler is per optimizer step. Let T be total steps, J=ceil(number of training examples/512), Tw=5×J (980 for TRAIN), η the selected peak. During warmup `lr(t)=η[0.1+0.9(t+1)/Tw]` for t0. Save rank/conditioning without clamping or suppressing failures.
+
+Neural sensitivity subset is fixed in advance: (i) broad support with source prior; (ii) broad support with isotropic prior; (iii) Kf2/Kt1 with other defaults; (iv) γ0.1; (v) γ10. Retrain A-res only, ten seeds, compare with the already trained D on identical conditions. This avoids selecting neural cases after seeing a favorable classical sweep.
+
+Noise-information stress uses actual10 dB observations at fd 10/100, but supplies `N0_assumed=N0×10^(δ/10)` with δ=−3 or+3 dB to every method that consumes it, including the central noise plane and anchor. Recompute the anchor using the assumed value; labels and actual noise are unchanged. No retraining and no extra significance family. This bounds the known-noise assumption.
+
+Physical test conditions at main grid: C/100 ns/fd `[10,100,200,500]`; A/100 ns/fd 10; C/300 ns/fd 10; combined A/300 ns/fd 100. Only the first two enter the primary endpoint. Source-only models are frozen for these tests. Reverse shift trains on C/100 ns/fd 100 and tests fd 100 and 10, ten seeds for D/A-res; source-calibrated anchor/covariances are refitted to that source bank by the same rules, with declared time design fd 200.
+
+Pilot sensitivity: frequency comb6 positions `1,7,…,115` on symbols2,11 (40 pilots); time-location change comb3 on symbols3,10 (80 pilots). Train D/A-res from scratch per pattern, ten seeds; regenerate L,S,A and fit source priors. Do not evaluate a shape-changed pretrained network as if it had been retrained.
+
+Numerology sensitivity: 30 kHz, FFT256, Fs7.68MHz, same 120×14 active grid, CP `[22,18,…,18]` (one long and thirteen short), slot0.5 ms. Use C/100 ns/fd 10 source and fd 100/200 tests; the 200-Hz case matches the main100-Hz normalized Doppler. Retrain D/A-res, ten seeds, recompute basis at actual frequencies/times. Bandwidth changes with fixed carrier count; do not call this a pure SCS-only physical intervention with unchanged bandwidth.
+
+Broad-training control for C: TRAIN 100000/VAL 12000 with profile uniformA/C, DS uniform discrete100/300 ns, fd uniform discrete10/100/500 Hz, balanced SNR. Train D/A-res, ten seeds. Anchor broad support6×2/fd 200/τ3 μs with a prior fitted to this broad TRAIN. Label this covered-domain training, not unseen-domain robustness. Do not compare its gains without acknowledging the changed training support.
+
+## 9. Receiver protocol
+
+### 9.1 Exact bit, code and mapping choices
+
+Receiver evaluation uses the main comb3/15-kHz grid only. Data REs are all active nonpilot positions, enumerated symbol-major/frequency-fast, exactly1,600 per slot. No rate adaptation, retransmission, HARQ combining, scrambling, CRC, or cross-slot interleaving. One independent codeword/channel per slot. Report **code-block BLER**, not standards-compliant NR transport-block BLER.
+
+Uncoded sanity/BER arm: Gray QPSK with 2 independent bits per data RE, `(1−2b0 + j(1−2b1))/sqrt(2)`; exactly3,200 bits/slot. Coded arm: **3,200 independent information bits → 6,400 transmitted coded bits**, rate1/2, one16-QAM symbol per data RE. Use Sionna2.0.1 `LDPC5GEncoder(k=3200,n=6400,num_bits_per_symbol=4,bg='bg2',precision='single')`, redundancy version0. Expected lifting factor Z=320, lifting-set index2, information mother length3200, full mother length16640, puncture first 640 mother bits followed by the library's RV0 rate matching. No filler information bits for this k/Z. Assert these properties. Keep the encoder's four-bit output interleaver and corresponding decoder inverse; do not apply it a second time. This is an NR-derived LDPC code on a custom link, not a complete NR chain.
+
+16-QAM mapping: first bit pair maps real amplitude and second pair imaginary amplitude; Gray amplitudes `00→−3, 01→−1, 11→+1, 10→+3`, divided by sqrt(10). Use this explicit table, not an assumed library bit ordering. The mapper and demapper share the same table. No true-H-assisted demapping except the labeled oracle receiver.
+
+Decoder: `LDPC5GDecoder(encoder,cn_update='boxplus-phi',vn_update='sum',cn_schedule='flooding',hard_out=True,return_infobits=True,num_iter=40,llr_max=20,prune_pcm=True,return_state=False,harq_mode=False,precision='single')`. Fixed40 iterations, no early syndrome stop. LLR convention is `log P(bit=1)/P(bit=0)`; positive indicates1. Clip demapper LLRs to±20. Use the pinned API's `cn_update`, not old `cn_type`.
+
+### 9.2 Equalization and soft information
+
+Every estimated-CFR receiver uses the same scalar LMMSE coefficient `g=hhat*/(|hhat|²+N0)`. For APP demapping use output z=gY, effective mean for constellation x equal to `g hhat x`, and variance `|g|² N0`. Equivalently compute the stable log-sum-exp APP metric directly from `|Y−hhat x|²/N0`; verify equality away from g=0. At |hhat|<1e−12, supply zero LLR rather than dividing by zero. Uncoded QPSK uses the equivalent maximum-likelihood symbol decision with hhat.
+
+No estimator gets test-derived channel-error variance. All ordinary receivers deliberately treat residual estimation error/ICI as unmodeled mismatch; this keeps demapping common. Report this receiver assumption. If a later uncertainty-aware receiver is added, it needs an explicit separate protocol and all comparable methods must receive the same calibration opportunity.
+
+Always show perfect **diagonal** H with the same receiver. At fd 1000, SNR 10 and 20 dB, also show a full-G oracle: subtract known pilot contributions using true G; jointly LMMSE-detect data within each OFDM symbol using the active-output matrix and N0, debias each soft output, and use its linear-MMSE effective variance for the same APP demapper/decoder. Use `W=(G_DᴴG_D+N0 I)^−1G_Dᴴ`; bias d_i=(WG_D)_ii; debiased variance `max(Re(1/d_i−1),1e−12)` for unit-power symbols. If d_i is numerically zero, LLR=0. This is a true-channel, higher-complexity reference, not a baseline estimator. State that it uses active outputs only and that Gaussian-interference APP is an approximation after linear detection.
+
+### 9.3 Conditions, training regime, and stopping
+
+Run coded BLER and uncoded BER at SNR `[0,2,4,6,8,10,12,14,16,18,20,22,24]` dB, C/100 ns/fd 10 and 100. Use a fixed **5,000 independent slots per condition/SNR**, common bits/channel/noise across methods; no error-count stopping and no extra samples after observing an inconvenient curve. This gives 500 expected block errors near BLER0.1 and 200near0.04. Where errors are rarer, report the wider interval or zero-error upper bound; do not invent reliable1e−5 BLER claims. At fd 500/1000 use SNR `[0,5,10,15,20,25]` and the same 5,000-slot budget. Full-G oracle uses these exact banks at its two declared points.
+
+First evaluate frozen DIAG-trained models on DIAG and WAVE banks to quantify observation-model transfer. Then train the dedicated WAVE-source variants D, A-res, FortiTran-M and HELENA on 100,000 independent waveform observations at C/100 ns/fd 10 and the training SNR grid; use random16-QAM data, the same channel-bank generation rules and diagonal labels. Use first ten seeds and the original source-selected optimizer settings. WAVE-source training does not see fd 100/500/1000. Refit the corresponding source priors/calibration banks under the WAVE-label definition; main source classical estimators remain source fitted. Show WAVE-trained matched versus shifted results separately from DIAG→WAVE transfer. Never describe a DIAG-trained/WAVE-tested result as fully matched waveform training.
+
+Main receiver panel: D, A-res, scalar/resource gate, FortiTran-M, HELENA, LS, BEM, source LMMSE, perfect diagonal H. A-raw, ReEsNet and Channelformer have DIAG-trained transfer results in the supplement; no additional WAVE retraining is claimed for them. Gates for WAVE parents follow the same disjoint WAVE calibration protocol, ten seeds. Coded16-QAM is the inferential receiver endpoint; uncoded-QPSK BER is a separately labeled modulation condition. Do not mix them into one reported gain.
+
+## 10. Metrics, inferential claims, and uncertainty
+
+For each realization i save `E_i=sum_RE |Hhat−H|²`, `D_i=sum_RE |H|²`, and each mechanism energy/cross term. Compute `NMSE_pool=sum E_i/sum D_i`, then10log10 once. Save mean per-realization ratio separately; it is not the primary metric. All-grid NMSE is primary; data-only NMSE is secondary with an explicit mask. Use float64 reductions. Do not divide an RI-averaged error by complex channel energy. Batch size and last-batch shape must not change the result.
+
+For each paired seed s and condition c, define `G_s(c)=10log10(NMSE_D,s(c)/NMSE_Ares,s(c))`. Positive helps. **Single primary endpoint:** `Δ_s=G_s(fd100)−G_s(fd10)` at SNR 10 dB, C/100 ns, main grid, DIAG,20 paired seeds. Report the arithmetic mean Δ, standard deviation, paired t interval with 19 degrees of freedom, and two-sided one-sample paired t test of meanΔ=0 at 0.05. This inference is conditional on the frozen training/test banks and concerns training randomness. Also report a10,000-replicate crossed bootstrap resampling seeds and independent channel IDs (same channel weights for matched/shifted, all methods and reused SNRs), seed90221, to show sensitivity to test-channel sampling. The two intervals answer different uncertainty questions and must be labeled.
+
+Sign reversal is a secondary claim: require evidence for G(fd 10)>0 and G(fd 100)<0, not just Δ<0. Freeze the secondary hypothesis family at 10 dB to: these two signs; A-raw Δ; scalar-gate minus D gain at fd 100; resource-gate minus D gain at fd 100; resource-gate minus A-res gain at fd 100; and A-res versus each of LS, source LMMSE, ReEsNet, Channelformer, FortiTran-M and HELENA at fd 100. Apply Holm correction to this12-hypothesis family. Use paired seeds, first ten where an external model has ten, and paired t statistics; classical methods have fixed predictions but are paired to each neural seed. Report unadjusted estimates and 95% CIs alongside adjusted p-values, clearly noting those intervals are pointwise rather than simultaneous.
+
+Other SNRs, sensitivities and mechanism interventions are reported with paired effect estimates and 95% seed intervals, labeled secondary/exploratory without additional significance stars. Do not select the best SNR/model/anchor and present its pointwise interval as a predeclared discovery. For paired standardized effect report d_z=mean paired difference / its sample SD, with its underlying units and sample count; if SD=0 label it undefined.
+
+Diagnostics called “stable” require equivalence testing using independent channel-level paired differences, not repeated copies across training seeds: projection-energy fraction margin±0.005, source-to-target difference of log10 sampled-basis condition number margin±0.05 when the basis actually differs, and cosine-alignment margin±0.05. These are operational tolerances, not robustness guarantees. Use TOST with 90% interval at alpha 0.05 and also show95% descriptive intervals; Holm-adjust if jointly claiming equivalence across the three. If the exact same deterministic basis is used, its condition number is algebraically identical and needs no pseudo-replicated statistical test. Rank stability is exact equality, not a continuous equivalence test. Do not call a nonsignificant change “stable.”
+
+For each checkpoint's BLER report counts/errors and 95% Wilson intervals for independent slots. For zero block errors, additionally give the one-sided95% upper bound `1−0.05^(1/N)`. For aggregate neural receiver comparisons, report mean seed BLER and paired seed intervals; crossed seed/slot bootstrap provides population-of-slots sensitivity. Bit errors within a faded slot are correlated: BER uncertainty uses slot-cluster resampling, not a binomial interval treating every bit as independent. No extrapolated required-SNR gain unless the measured curves bracket the target BLER. If reporting BLER0.1 crossing, interpolate linearly in SNR versus log10(BLER) between adjacent bracketing points and bootstrap the complete procedure; otherwise report “not bracketed.”
+
+**Data integrity:** no effect-dependent sample exclusions. A zero/invalid denominator is logged and stops the affected metric pipeline; it must not silently change a method's sample set. Missing/diverged seeds are reported; do not claim the planned20 seed analysis as completed with fewer runs. The primary contrast is reported even if the sign reversal disappears.
+
+## 11. Bounded execution matrix
+
+This is a staged study, not a full Cartesian product. All final secondary neural experiments use ten paired seeds. Tuning runs are development-only and cannot be pooled with final seeds.
+
+| ID | Required neural fits / reuse | Purpose |
+|---|---|---|
+| E01 | D/A-raw/A-res ×20 =60 | Primary controlled effect |
+| E02 | ReEsNet/Channelformer/FortiTran-M/HELENA ×10 =40 | External context |
+| E03 | LS/LMMSE/sham/PH anchors, A-res only ×10 =40 | Anchor controls; zero is exact D reuse |
+| E04 | Pure CNN widths16/32, D/A-res ×10 =40 | Architecture/width generality |
+| E05 | Five-channel information-preserving pair ×10 =20 | Input transformation versus information loss |
+| E06 | Scale-normalized D/A-res ×10 =20 | Residual-scale intervention |
+| E07 | Five specified BEM sensitivity A-res variants ×10 =50 | Support, prior, order and regularization |
+| E08 | Reverse-source D/A-res ×10 =20 | Reverse Doppler shift |
+| E09 | Target-domain D/A-res from scratch ×10 =20 | Oracle retraining; frozen source anchor |
+| E10 | Broad-source D/A-res ×10 =20 | Training-support control |
+| E11 | Two pilot variants, D/A-res ×10 =40 | Density/location sensitivity |
+| E12 | 30-kHz D/A-res ×10 =20 | Numerology sensitivity |
+| E13 | WAVE-source D/A-res/FortiTran-M/HELENA ×10 =40 | Matched waveform receiver study |
+| E14 | D with 109,000 labels ×10 =10 | Gate label-budget control |
+| R | Broad-reference FortiTran-M/AdaFortiTran-L ×3 =6 | Published-setting independent reproduction |
+
+C total is 440 full fits, plus 6 R fits. Scalar gates need no gradient training. Resource gates add20 DIAG+10 WAVE short fits; limited adaptation adds2 models×2budgets×10=40 short fits. The central/cnn/external tuning procedure is 99 fits of50 epochs (27central +36CNN +36external). E04, E08–E12 deliberately omit A-raw and E11 omits external retraining. This avoids another Cartesian expansion while retaining the supervisor's requested dimensions.
+
+Pass numerical gates before final training, then run E01/E02/E03, then E04–E07/E13, then remaining coverage. This ordering is operational only: do not cancel unfavorable conditions. No wall-clock claim is made before implementation timing. If the deadline cannot accommodate the declared study, amend the scope before confirmatory output access; do not quietly reduce seeds or hide incomplete experiments. GPU capacity does not make 440 training fits cost-free.
+
+## 12. Runtime, fidelity, and acceptance gates
+
+### 12.1 Environment contract
+
+Canonical environment: Linux x86_64, Python3.11.11; torch2.9.1 CUDA12.8 wheel; Sionna2.0.1 pinned source; NumPy2.2.6; SciPy1.15.3; h5py3.15.1; matplotlib3.10.8; importlib-resources6.5.2. These match the inspected Sionna minimum core requirements. Install the PHY source with explicit core dependencies; RT is unused and must not be imported as part of generation/training. Do not allow an unpinned `sionna-rt` dependency to replace core versions. Record the full resolved dependency lock, installed wheel hashes and GPU driver; a lockfile and successful environment smoke test are required before data generation. Driver version cannot be certified without access to the user's GPU, and must satisfy the selected CUDA wheel's requirements.
+
+HELENA parity only: separate CPU environment Python3.10.16, TensorFlow-CPU2.15.1, Keras2.15.0, NumPy1.26.4, h5py3.10.0. No GPU allocation in this environment. Load only the trusted pinned saved model; export weights and fixed-fixture outputs. Do not mix Keras2 serialized-layer conventions with Keras3 inference. Native MATLAB checks, if available, use isolated R2025a plus required toolboxes; they never generate C's data. MATLAB is not a required execution dependency for the main experiment or R.
+
+Training is FP32, evaluation tensors complex64 with FP64 reductions; classical reference solves/projectors are complex128. Disable TF32, autocast and torch.compile in confirmatory runs; `torch.use_deterministic_algorithms(True)`, cuDNN benchmark false, `CUBLAS_WORKSPACE_CONFIG=:4096:8`. If a deterministic GPU operator is unsupported, stop and document a mathematically equivalent deterministic implementation; do not silently disable the gate. Run only one training job per GPU for reproducible memory/latency measurements. Data generation may run in isolated batches offline; it cannot alter a training RNG stream.
+
+### 12.2 Mandatory acceptance checks before any final training
+
+1. **Physical arithmetic:** all pilot/data counts, FFT-bin ordering, unitary round trip, slot sample counts, CP duration and CP-delay inequalities match Section3. At fd 0 the WAVE construction reduces to DIAG to relative1e−10 in complex128. Validate the fractional-delay phase for a single path independently from the multi-path implementation.
+2. **Noise:** with one deterministic unit channel, measure time/frequency complex noise variance on 1,000,000 independent samples. Require relative error<0.005 and each RI component variance within0.005 of N0/2; verify pilot division leaves N0 unchanged. This is a QC test, not a research result.
+3. **Operator truth:** on ten QC channels compare the analytic diagonal H with the diagonal of explicitly constructed G to relative1e−10. On a small32-bin fixture independently form the time-domain linear operator and verify G=F T Fᴴ; do not compare two calls to the same helper and call that independent validation.
+4. **Channel diversity:** no duplicate path/label hashes across disjoint banks; changing seed changes the channel; regenerating the same sample in batch 1 and a batched adapter agrees to relative1e−10 before float32 cast. Check ensemble path powers and time correlation against the pinned SoS construction, with Monte Carlo tolerances declared from sample count. Do not reject random deep fades as “bad samples.”
+5. **Complex algebra:** projector Hermitianity, idempotence, range membership and per-realization Pythagorean closure relative1e−9 in complex128; include genuinely complex, nonorthogonal and rank-deficient fixtures. Tolerance is `abs(residual)/max(reference_energy,1e−12)`. Runtime complex64 outputs may use1e−5, with the stricter reference always retained.
+6. **LMMSE:** analytic correlated-complex2×2 fixture, zero-noise/full-observation limit, high-noise limit and comparison of factored/dense solves. Relative tolerance1e−9. Test pilot energy other than 1 in the fixture to catch hard-coded boosts.
+7. **Metric:** exact equality within1e−12 relative across batch sizes1,7,256 and all-sample accumulation in float64; include a final partial batch. A fixture with known complex error catches the RI factor of2. All estimator records have identical sample IDs/denominators/masks.
+8. **Adapters:** nonsymmetric numbered complex arrays verify every reshape/order; include a zero-valued pilot. ReEsNet output dimensions, HELENA SAME padding/reshape and Channelformer token-axis assertions are mandatory. Models never consume labels at inference except labeled oracles.
+9. **Neural fidelity:** FortiTran wrapper versus pinned model, eval mode with identical weights and inputs, maximum absolute discrepancy≤1e−6 plus relative1e−5. HELENA native612-grid Keras versus port: maximum discrepancy≤1e−4+1e−4×reference magnitude, followed by layer-level checks if it fails. Preserve Q/K/V and output projection axes explicitly. Channelformer verifies each MATLAB-defined operator against an independent NumPy implementation at float64 tolerance1e−9; if MATLAB outputs are available, add end-to-end parity. Never claim native MATLAB checkpoint parity from NumPy operator checks alone.
+10. **Training:** D and zero-anchor outputs/gradients/update trajectories agree on a fixed minibatch and several updates; common central initial tensors hash identically. Gradients through a fixed anchor are absent. Validation/checkpoint selection ignores target data. A tiny training-set overfit fixture checks the optimizer/loss wiring without informing experiment selection.
+11. **Coding:** encoder syndrome, rate matching/interleaver round trip, noiseless decoding, sign of APP LLR, Gray constellation labeling, and decoded3200-bit length. Independently verify the expected BG2/Z320 and no-filler settings. Check QPSK AWGN BER against its analytic curve using a separate QC bank and binomial sampling tolerance for the nonfading fixture.
+12. **Checkpoint/evaluation:** save/load preserves eval outputs; resuming a paused run preserves next batch and RNG; test sample order changes no aggregate. Invalid shapes, NaNs and gate leakage fail loudly.
+
+Performance comparison is permitted only after all relevant gates pass. They are deliberately deferred to implementation because static inspection cannot establish executable numerical parity. Their inputs, tolerances and consequences are fixed here, so passing them does not require inventing a new protocol after results.
+
+### 12.3 Reporting and implementation handoff
+
+Per-run record: protocol/version/hash, recipe ID, source commit hashes, data-bank hashes, train seed, initialization hash, selected η, selected epoch, update count, checkpoint hash, software/hardware lock, data/metadata access, anchor/basis/prior hashes, matrix rank/conditioning, and elapsed training/evaluation cost.
+
+Per-sample record: sample ID, condition, SNR/N0, channel-energy denominator, all-grid and data-grid error numerators, projection/in-subspace energies, correction energies/inner products, gate values or summaries, and block/bit error counts where applicable. Save selected complex predictions for all 2,000 spectral-analysis samples, with enough inputs to reconstruct them. Never rely on rounded dB summaries to regenerate figures.
+
+Latency: sameGPU, eval/no-grad, FP32, batch 1 and 512,100 warmup and 1,000 timed repetitions, synchronize before/after each timed block, report median/p95 plus peak allocated memory. Include preprocessing and anchor/gate branch cost; also report network-only latency separately. Count real MACs consistently and count the two FortiTran RI passes in compute, but shared weights only once in parameters. Exclude channel generation from estimator latency and report it separately. No comparison to another paper's hardware timing as if measured here.
+
+The implementation should expose separate modules for sample generation, observation mode, pilot adapter, anchor, learned estimator, training policy, metric accumulation, receiver and analysis. All figures must be generated from the saved linear-domain record schema. Source/tensor/schema changes invalidate dependent caches through hashes. Preserve the original project/run directory and use a new revision output root.
+
+## 13. Supervisor-concern closure and remaining uncertainty
+
+Points1–2 are covered by shared samples, exact complex metrics and algebra gates; point3 by common U and the residual-input information control; point4 by the terrestrial scope; point5 by alternate/sham/oracle anchors and deployable gates; point6 by energy/alignment/covariance diagnostics plus scale, prior and adaptation interventions; point7 by two CNN widths; point8 by the bounded sensitivity and waveform matrix; point9 by disjoint selection/test data and paired, predeclared inference; point10 by fully specified BER/BLER; point11 by the physical/runtime/schema contracts. Literature, prose, figures and submission requirements remain manuscript work, not unresolved experiment design.
+
+No scalar chosen here is guaranteed optimal. That is why source-only deterministic calibration is distinguished from manually chosen constants. Empirical covariance, gate weights and the selected member of the locked LR grid will be computed during implementation; their rules are already final. Actual driver compatibility, native/ported output parity and training success remain validation outcomes, not claims established by this document.
+
+The deliverable is a blueprint for **trustworthy measurements and interpretable comparisons**. If corrected experiments do not show a sign reversal or successful gate, report that outcome and narrow the scientific claims. Do not reopen the parameter search to manufacture the original narrative.
+
+## 14. Companion files and reference trail
+
+`PACE_Phase2_Protocol_Config.json` indexes the fixed values, selection procedures and experiment counts. It is a design manifest, not runnable simulation code; Sections 3–12 define its mathematics and adapter behavior. `PACE_Phase2_Source_Lock.json` identifies pinned sources and hashes every retained audit file, including the selected native architecture/checkpoint files. `PACE_Phase1_References.bib` remains the paper bibliography. The source lock records that bibliography’s hash and citation keys so manuscript references remain traceable. No baseline is declared universally state of the art merely because it is recent.
diff --git a/pace_revision_2/protocols/PACE_Phase2_Protocol_Config.json b/pace_revision_2/protocols/PACE_Phase2_Protocol_Config.json
new file mode 100644
index 0000000000000000000000000000000000000000..355598373d653ac1a51e8fd9ba5f3ef3d3e4b1c3
--- /dev/null
+++ b/pace_revision_2/protocols/PACE_Phase2_Protocol_Config.json
@@ -0,0 +1,963 @@
+{
+ "protocol": "PACE Phase 2",
+ "version": "2.0",
+ "date": "2026-09-22",
+ "status": "design_frozen_runtime_gates_pending",
+ "authority": {
+ "narrative": "PACE_Phase2_Experimental_Protocol.md",
+ "sha256": "b754df9fad1d2967aea20741926caaba0a99df248a9e0414d8ab345a06de6e72",
+ "conflict_policy": "Narrative governs; discrepancies block implementation until corrected",
+ "scope": "terrestrial SISO; NTN deferred; no research experiments run in Phase 2"
+ },
+ "grid": {
+ "active_carriers": 120,
+ "symbols": 14,
+ "fft_size": 256,
+ "scs_hz": 15000,
+ "sample_rate_hz": 3840000,
+ "carrier_hz": 2000000000,
+ "active_signed_bins": [
+ -60,
+ -59,
+ -58,
+ -57,
+ -56,
+ -55,
+ -54,
+ -53,
+ -52,
+ -51,
+ -50,
+ -49,
+ -48,
+ -47,
+ -46,
+ -45,
+ -44,
+ -43,
+ -42,
+ -41,
+ -40,
+ -39,
+ -38,
+ -37,
+ -36,
+ -35,
+ -34,
+ -33,
+ -32,
+ -31,
+ -30,
+ -29,
+ -28,
+ -27,
+ -26,
+ -25,
+ -24,
+ -23,
+ -22,
+ -21,
+ -20,
+ -19,
+ -18,
+ -17,
+ -16,
+ -15,
+ -14,
+ -13,
+ -12,
+ -11,
+ -10,
+ -9,
+ -8,
+ -7,
+ -6,
+ -5,
+ -4,
+ -3,
+ -2,
+ -1,
+ 0,
+ 1,
+ 2,
+ 3,
+ 4,
+ 5,
+ 6,
+ 7,
+ 8,
+ 9,
+ 10,
+ 11,
+ 12,
+ 13,
+ 14,
+ 15,
+ 16,
+ 17,
+ 18,
+ 19,
+ 20,
+ 21,
+ 22,
+ 23,
+ 24,
+ 25,
+ 26,
+ 27,
+ 28,
+ 29,
+ 30,
+ 31,
+ 32,
+ 33,
+ 34,
+ 35,
+ 36,
+ 37,
+ 38,
+ 39,
+ 40,
+ 41,
+ 42,
+ 43,
+ 44,
+ 45,
+ 46,
+ 47,
+ 48,
+ 49,
+ 50,
+ 51,
+ 52,
+ 53,
+ 54,
+ 55,
+ 56,
+ 57,
+ 58,
+ 59
+ ],
+ "dc_active": true,
+ "fft_norm": "ortho",
+ "cp_samples": [
+ 20,
+ 18,
+ 18,
+ 18,
+ 18,
+ 18,
+ 18,
+ 20,
+ 18,
+ 18,
+ 18,
+ 18,
+ 18,
+ 18
+ ],
+ "pilot_frequencies": [
+ 1,
+ 4,
+ 7,
+ 10,
+ 13,
+ 16,
+ 19,
+ 22,
+ 25,
+ 28,
+ 31,
+ 34,
+ 37,
+ 40,
+ 43,
+ 46,
+ 49,
+ 52,
+ 55,
+ 58,
+ 61,
+ 64,
+ 67,
+ 70,
+ 73,
+ 76,
+ 79,
+ 82,
+ 85,
+ 88,
+ 91,
+ 94,
+ 97,
+ 100,
+ 103,
+ 106,
+ 109,
+ 112,
+ 115,
+ 118
+ ],
+ "pilot_symbols": [
+ 2,
+ 11
+ ],
+ "pilot_complex_expression": "(1+j)/sqrt(2)",
+ "data_REs": 1600,
+ "flattening": "symbol-major, frequency-fast",
+ "time_centers": "actual useful-window sample centers including CP"
+ },
+ "observations": {
+ "DIAG": "Y=H*X+N",
+ "WAVE": "per-path fractional-delay IFFT, sample-varying gains, sum, noise, FFT; Section 3.2",
+ "label": "diagonal of G; average each path gain over useful samples",
+ "isi": "absent under asserted CP coverage",
+ "snr": "transmitted active-RE Es/N0",
+ "Es": 1,
+ "N0_expression": "10**(-snr_db/10)",
+ "RI_noise_variance": "N0/2",
+ "channel_normalization": "ensemble path-power only"
+ },
+ "channel": {
+ "engine": "Sionna 2.0.1",
+ "model": "TDL",
+ "num_sinusoids": 32,
+ "precision": "double",
+ "source": {
+ "profile": "C",
+ "delay_spread_ns": 100,
+ "max_doppler_hz": 10
+ },
+ "speed_rule": "min_speed=max_speed=fd*299792458/fc",
+ "main_test_cases": [
+ {
+ "profile": "C",
+ "delay_spread_ns": 100,
+ "max_doppler_hz": 10
+ },
+ {
+ "profile": "C",
+ "delay_spread_ns": 100,
+ "max_doppler_hz": 100
+ },
+ {
+ "profile": "C",
+ "delay_spread_ns": 100,
+ "max_doppler_hz": 200
+ },
+ {
+ "profile": "C",
+ "delay_spread_ns": 100,
+ "max_doppler_hz": 500
+ },
+ {
+ "profile": "A",
+ "delay_spread_ns": 100,
+ "max_doppler_hz": 10
+ },
+ {
+ "profile": "C",
+ "delay_spread_ns": 300,
+ "max_doppler_hz": 10
+ },
+ {
+ "profile": "A",
+ "delay_spread_ns": 300,
+ "max_doppler_hz": 100
+ }
+ ]
+ },
+ "data": {
+ "root_seed": 20260922,
+ "training_seeds": [
+ 41001,
+ 41002,
+ 41003,
+ 41004,
+ 41005,
+ 41006,
+ 41007,
+ 41008,
+ 41009,
+ 41010,
+ 41011,
+ 41012,
+ 41013,
+ 41014,
+ 41015,
+ 41016,
+ 41017,
+ 41018,
+ 41019,
+ 41020
+ ],
+ "secondary_seeds": [
+ 41001,
+ 41002,
+ 41003,
+ 41004,
+ 41005,
+ 41006,
+ 41007,
+ 41008,
+ 41009,
+ 41010
+ ],
+ "development_seeds": [
+ 31001,
+ 31002,
+ 31003
+ ],
+ "training_snr_db": [
+ 0,
+ 5,
+ 10,
+ 15,
+ 20,
+ 25
+ ],
+ "banks": {
+ "TRAIN": 100000,
+ "TUNE": 6000,
+ "VAL": 12000,
+ "GATE_FIT": 6000,
+ "GATE_VAL": 3000,
+ "TEST_per_condition": 10000,
+ "QC": 2048
+ },
+ "test_channel_reuse_across_snrs": true,
+ "source_examples_fixed_across_epochs": true,
+ "hash_seed": "UTF8 PACE2|20260922|bank|family|sample_id|component; SHA256 first 8 bytes little endian & ((1<<63)-1); reject collisions",
+ "pairing": "same data, initialization where compatible, shuffle; common latent paths across fd and DIAG/WAVE"
+ },
+ "bem": {
+ "delay_support_s": [
+ 0,
+ 1e-06
+ ],
+ "design_doppler_hz": 20,
+ "frequency_modes": 4,
+ "time_modes": 2,
+ "frequency_dpss": {
+ "sym": true,
+ "norm": 2,
+ "NW_expression": "120*scs_hz*tau_max/2",
+ "NW_main": 0.9,
+ "modulation": "exp(-j*2*pi*f*tau_max/2)"
+ },
+ "time_basis": "descending eigenvectors of sinc(2*fd_design*(t_s-t_t))",
+ "prior": "zero-mean TRAIN second moment",
+ "prior_shrinkage": 0.01,
+ "gamma": 1,
+ "precision": "complex128",
+ "solve": "Cholesky",
+ "jitter_relative_trace": 1e-10,
+ "sampled_basis_rank_relative_cutoff": 1e-10,
+ "fixture_pinv_rcond": 1e-12,
+ "broad": {
+ "delay_max_s": 3e-06,
+ "design_doppler_hz": 200,
+ "frequency_modes": 6,
+ "time_modes": 2
+ },
+ "sweeps": {
+ "frequency_modes": [
+ 2,
+ 4,
+ 6
+ ],
+ "time_modes": [
+ 1,
+ 2,
+ 3
+ ],
+ "design_doppler_hz": [
+ 5,
+ 10,
+ 20,
+ 100,
+ 200
+ ],
+ "delay_max_us": [
+ 0.5,
+ 1,
+ 3
+ ],
+ "gamma": [
+ 0.1,
+ 1,
+ 10
+ ],
+ "prior_shrinkage": [
+ 0,
+ 0.01,
+ 0.1,
+ 1
+ ]
+ },
+ "neural_variants": [
+ "broad_source_prior",
+ "broad_isotropic_prior",
+ "Kf2_Kt1",
+ "gamma0.1",
+ "gamma10"
+ ]
+ },
+ "lmmse": {
+ "source_covariance_fit_bank": "TRAIN",
+ "mean": "zero ensemble mean",
+ "isotropic_shrinkage": 0.001,
+ "low_rank": [
+ 4,
+ 8,
+ 16,
+ 32
+ ],
+ "target_oracle_fit_channels": 100000
+ },
+ "models": {
+ "central": [
+ "D",
+ "A-raw",
+ "A-res"
+ ],
+ "central_input_planes": 3,
+ "noise_feature": "snr_db/25",
+ "backbone": {
+ "name": "HybridCNNLSTM",
+ "conv_channels": 32,
+ "compression": 32,
+ "lstm_hidden": 32,
+ "lstm_layers": 1,
+ "reverse_time": true,
+ "batchnorm_eps": 1e-05,
+ "batchnorm_momentum": 0.1,
+ "leaky_relu": 0.1
+ },
+ "additional_cnn": {
+ "widths": [
+ 16,
+ 32
+ ],
+ "residual_blocks": 4,
+ "batchnorm": false
+ },
+ "external": [
+ "ReEsNet adaptation",
+ "Channelformer two-head three-decoder offline adaptation",
+ "FortiTran-M released-code variant",
+ "HELENA released-model adaptation"
+ ],
+ "oracle_metadata": "AdaFortiTran-L in R; true vs nominal metadata separated",
+ "exact_adapters": "narrative Section 6.3",
+ "sham": "fixed complex-entry permutation with independent signs; sample-norm preserving"
+ },
+ "optimization": {
+ "optimizer": "Adam",
+ "betas": [
+ 0.9,
+ 0.999
+ ],
+ "eps": 1e-08,
+ "weight_decay": 0,
+ "clip_global_norm": 1,
+ "batch_size": 512,
+ "epochs": 200,
+ "early_stopping": false,
+ "checkpoint": "minimum source VAL pooled linear NMSE; earliest on exact tie",
+ "loss": "mean complex RE squared error",
+ "lr_candidates": [
+ 0.0003,
+ 0.001,
+ 0.003
+ ],
+ "tuning_epochs": 50,
+ "tuning_seeds": [
+ 31001,
+ 31002,
+ 31003
+ ],
+ "lr_selection": "source TUNE only; central shared across three arms; CNN shared across D/A-res per width; external separately",
+ "lr_tie_relative": 1e-06,
+ "lr_tie_rule": "smaller",
+ "warmup_epochs": 5,
+ "warmup_start_fraction": 0.1,
+ "cosine_floor_fraction": 0.01,
+ "scheduler_formula": "Section 7.1",
+ "precision": "fp32",
+ "AMP": false,
+ "TF32": false,
+ "torch_compile": false
+ },
+ "reference_R": {
+ "profile": "A",
+ "train": 100000,
+ "val": 10000,
+ "test_per_snr": 2000,
+ "snr_db": [
+ 0,
+ 5,
+ 10,
+ 15,
+ 20,
+ 25
+ ],
+ "fd_hz": [
+ 50,
+ 100,
+ 150,
+ 200,
+ 250,
+ 300,
+ 350,
+ 400,
+ 450,
+ 500,
+ 550,
+ 600,
+ 650,
+ 700,
+ 750,
+ 800,
+ 850,
+ 900,
+ 950,
+ 1000
+ ],
+ "delay_ns": [
+ 25,
+ 50,
+ 75,
+ 100,
+ 125,
+ 150,
+ 175,
+ 200,
+ 225,
+ 250,
+ 275,
+ 300
+ ],
+ "test_fd_hz": 500,
+ "test_delay_ns": 200,
+ "observation": "WAVE",
+ "models": [
+ "FortiTran-M",
+ "AdaFortiTran-L"
+ ],
+ "seeds": [
+ 41001,
+ 41002,
+ 41003
+ ],
+ "batch_size": 512,
+ "lr": 0.001,
+ "lr_factor_per_epoch": 0.995,
+ "max_epochs": 1000,
+ "early_stopping_patience": 50,
+ "relative_improvement_threshold": 0.0001,
+ "backward_loss": "half complex MSE",
+ "clip": null,
+ "historical_exact_replication": false
+ },
+ "gates": {
+ "blend": "D+alpha*(A-res-D)",
+ "scalar": "closed-form clipped [0,1] least squares on GATE_FIT",
+ "scalar_denominator_relative_floor": 1e-12,
+ "fixed_mixture_alpha": 0.5,
+ "resource": {
+ "input_planes": 9,
+ "hidden_channels": [
+ 16,
+ 16
+ ],
+ "kernels": [
+ 3,
+ 3,
+ 1
+ ],
+ "normalization": "first seven planes, GATE_FIT mean/std",
+ "std_floor": 1e-06,
+ "final_weights": 0,
+ "initial_alpha": 0.1,
+ "lr": 0.001,
+ "batch_size": 256,
+ "epochs": 50,
+ "clip": 1,
+ "selection": "minimum GATE_VAL complex MSE"
+ },
+ "extra_labels": 9000,
+ "direct_label_control": 109000
+ },
+ "interventions": {
+ "scale_floor": 1e-06,
+ "spectral_test_samples": 2000,
+ "spectral_snr_db": 10,
+ "covariance_eigenvalues": 20,
+ "adaptation": {
+ "label_budgets": [
+ 128,
+ 1024
+ ],
+ "extra_validation_labels": 2048,
+ "updates": 200,
+ "validate_every_updates": 20,
+ "lr": 0.0001,
+ "batch": "min(128,n)",
+ "batchnorm_running_stats": "frozen",
+ "seeds": [
+ 41001,
+ 41002,
+ 41003,
+ 41004,
+ 41005,
+ 41006,
+ 41007,
+ 41008,
+ 41009,
+ 41010
+ ]
+ },
+ "noise_assumption_offset_db": [
+ -3,
+ 3
+ ],
+ "noise_stress_actual_snr_db": 10,
+ "pilot_variants": [
+ {
+ "frequencies": [
+ 1,
+ 7,
+ 13,
+ 19,
+ 25,
+ 31,
+ 37,
+ 43,
+ 49,
+ 55,
+ 61,
+ 67,
+ 73,
+ 79,
+ 85,
+ 91,
+ 97,
+ 103,
+ 109,
+ 115
+ ],
+ "symbols": [
+ 2,
+ 11
+ ]
+ },
+ {
+ "frequencies": [
+ 1,
+ 4,
+ 7,
+ 10,
+ 13,
+ 16,
+ 19,
+ 22,
+ 25,
+ 28,
+ 31,
+ 34,
+ 37,
+ 40,
+ 43,
+ 46,
+ 49,
+ 52,
+ 55,
+ 58,
+ 61,
+ 64,
+ 67,
+ 70,
+ 73,
+ 76,
+ 79,
+ 82,
+ 85,
+ 88,
+ 91,
+ 94,
+ 97,
+ 100,
+ 103,
+ 106,
+ 109,
+ 112,
+ 115,
+ 118
+ ],
+ "symbols": [
+ 3,
+ 10
+ ]
+ }
+ ],
+ "scs_variant": {
+ "scs_hz": 30000,
+ "sample_rate_hz": 7680000,
+ "cp_samples": [
+ 22,
+ 18,
+ 18,
+ 18,
+ 18,
+ 18,
+ 18,
+ 18,
+ 18,
+ 18,
+ 18,
+ 18,
+ 18,
+ 18
+ ],
+ "source_fd_hz": 10,
+ "test_fd_hz": [
+ 100,
+ 200
+ ],
+ "delay_ns": 100
+ },
+ "broad_training": {
+ "profiles": [
+ "A",
+ "C"
+ ],
+ "delay_ns": [
+ 100,
+ 300
+ ],
+ "fd_hz": [
+ 10,
+ 100,
+ 500
+ ]
+ }
+ },
+ "receiver": {
+ "information_bits": 3200,
+ "transmitted_coded_bits": 6400,
+ "code_rate": 0.5,
+ "modulation": "16-QAM",
+ "gray_amplitude_map": {
+ "00": -3,
+ "01": -1,
+ "11": 1,
+ "10": 3
+ },
+ "normalization": "sqrt(10)",
+ "bit_order": "first pair real, second pair imaginary",
+ "encoder": {
+ "k": 3200,
+ "n": 6400,
+ "num_bits_per_symbol": 4,
+ "bg": "bg2",
+ "precision": "single"
+ },
+ "expected_lifting": 320,
+ "expected_lifting_set": 2,
+ "expected_mother_n": 16640,
+ "expected_punctured_prefix": 640,
+ "CRC": false,
+ "HARQ": false,
+ "decoder": {
+ "cn_update": "boxplus-phi",
+ "vn_update": "sum",
+ "cn_schedule": "flooding",
+ "hard_out": true,
+ "return_infobits": true,
+ "num_iter": 40,
+ "llr_max": 20,
+ "prune_pcm": true,
+ "return_state": false,
+ "harq_mode": false,
+ "precision": "single"
+ },
+ "LLR": "log P(1)/P(0)",
+ "equalizer": "scalar LMMSE; common mismatched APP; Section 9.2",
+ "zero_channel_threshold": 1e-12,
+ "main_fd_hz": [
+ 10,
+ 100
+ ],
+ "main_snr_db": [
+ 0,
+ 2,
+ 4,
+ 6,
+ 8,
+ 10,
+ 12,
+ 14,
+ 16,
+ 18,
+ 20,
+ 22,
+ 24
+ ],
+ "stress_fd_hz": [
+ 500,
+ 1000
+ ],
+ "stress_snr_db": [
+ 0,
+ 5,
+ 10,
+ 15,
+ 20,
+ 25
+ ],
+ "slots_per_point": 5000,
+ "stopping": "fixed number of slots",
+ "perfect_references": [
+ "diagonal H",
+ "full G at fd1000/SNR10,20"
+ ],
+ "uncoded": "Gray QPSK; 3200 bits/slot",
+ "wave_source_models": [
+ "D",
+ "A-res",
+ "FortiTran-M",
+ "HELENA"
+ ]
+ },
+ "statistics": {
+ "NMSE": "sum squared complex error / sum channel energy, dB after pooling",
+ "primary": "G(fd100)-G(fd10), G=10log10(NMSE_D/NMSE_Ares), SNR10, C/100ns/DIAG",
+ "primary_seeds": 20,
+ "primary_interval": "paired t, 19 df, 95%",
+ "primary_test": "two-sided mean contrast=0, alpha .05",
+ "bootstrap_replicates": 10000,
+ "bootstrap_seed": 90221,
+ "bootstrap_unit": "crossed seed/channel; pairing retained",
+ "secondary_family_size": 12,
+ "multiplicity": "Holm",
+ "equivalence_margins": {
+ "projection_fraction": 0.005,
+ "log10_condition": 0.05,
+ "cosine": 0.05
+ },
+ "BLER_CI": "Wilson per checkpoint; paired seeds and crossed slot bootstrap for comparisons",
+ "BER_CI": "slot-cluster bootstrap"
+ },
+ "execution": {
+ "main_fits": [
+ {
+ "id": "E01",
+ "count": 60,
+ "description": "D/A-raw/A-res, 20 seeds"
+ },
+ {
+ "id": "E02",
+ "count": 40,
+ "description": "four external baselines, 10 seeds"
+ },
+ {
+ "id": "E03",
+ "count": 40,
+ "description": "LS/LMMSE/sham/PH residual anchors, 10 seeds"
+ },
+ {
+ "id": "E04",
+ "count": 40,
+ "description": "CNN widths 16/32, D/A-res, 10 seeds"
+ },
+ {
+ "id": "E05",
+ "count": 20,
+ "description": "information-preserving pair, 10 seeds"
+ },
+ {
+ "id": "E06",
+ "count": 20,
+ "description": "scale-normalized pair, 10 seeds"
+ },
+ {
+ "id": "E07",
+ "count": 50,
+ "description": "five BEM variants, 10 seeds"
+ },
+ {
+ "id": "E08",
+ "count": 20,
+ "description": "reverse shift pair, 10 seeds"
+ },
+ {
+ "id": "E09",
+ "count": 20,
+ "description": "target retraining pair, 10 seeds"
+ },
+ {
+ "id": "E10",
+ "count": 20,
+ "description": "broad training pair, 10 seeds"
+ },
+ {
+ "id": "E11",
+ "count": 40,
+ "description": "two pilot variants, pair, 10 seeds"
+ },
+ {
+ "id": "E12",
+ "count": 20,
+ "description": "30 kHz pair, 10 seeds"
+ },
+ {
+ "id": "E13",
+ "count": 40,
+ "description": "waveform D/A-res/FortiTran/HELENA, 10 seeds"
+ },
+ {
+ "id": "E14",
+ "count": 10,
+ "description": "109000-label Direct control, 10 seeds"
+ }
+ ],
+ "main_fit_total": 440,
+ "reference_fits": 6,
+ "tuning_fits": 99,
+ "tuning_epochs_each": 50,
+ "resource_gate_fits": 30,
+ "short_adaptation_fits": 40,
+ "ordering": [
+ "numerical and fidelity acceptance gates",
+ "E01-E03",
+ "E04-E07 and E13",
+ "remaining coverage"
+ ],
+ "scope_change": "numbered amendment before confirmatory output access; no effect-dependent cancellation"
+ },
+ "environment": {
+ "python": "3.11.11",
+ "torch": "2.9.1+cu128",
+ "sionna": "2.0.1",
+ "numpy": "2.2.6",
+ "scipy": "1.15.3",
+ "h5py": "3.15.1",
+ "matplotlib": "3.10.8",
+ "importlib-resources": "6.5.2",
+ "sionna_rt": "unused; no implicit unpinned install",
+ "cublas_workspace_config": ":4096:8",
+ "deterministic_algorithms": true,
+ "cudnn_benchmark": false,
+ "driver": "record and validate on actual GPU before generation",
+ "HELENA_parity": {
+ "python": "3.10.16",
+ "tensorflow-cpu": "2.15.1",
+ "keras": "2.15.0",
+ "numpy": "1.26.4",
+ "h5py": "3.10.0"
+ }
+ },
+ "acceptance_gates": "All 12 gates in Section 12.2 mandatory for relevant results; not executed in Phase 2",
+ "reporting": "Per-realization linear-domain sums, IDs, seeds, source/data/checkpoint hashes, source-selected hyperparameters and all failures; Sections 10 and 12.3"
+}
diff --git a/pace_revision_2/protocols/PACE_Phase2_Source_Lock.json b/pace_revision_2/protocols/PACE_Phase2_Source_Lock.json
new file mode 100644
index 0000000000000000000000000000000000000000..38f103853578917cd567299a23626171f3f5f033
--- /dev/null
+++ b/pace_revision_2/protocols/PACE_Phase2_Source_Lock.json
@@ -0,0 +1,2025 @@
+{
+ "version": "2.0",
+ "date": "2026-09-22",
+ "audit_method": "Static source and saved architecture/metadata inspection; no training or receiver experiments",
+ "repositories": [
+ {
+ "repository": "BerkIGuler/AdaFortiTran",
+ "commit": "fa49e60f25579f59ba1815a27399e999b1382d5c",
+ "url": "https://github.com/BerkIGuler/AdaFortiTran/tree/fa49e60f25579f59ba1815a27399e999b1382d5c",
+ "files": [
+ {
+ "path": "README.md",
+ "sha256": "c0a2bd62dd53d29c0583242937c756aac62d074449b22da25ba7bd542b30e1a5",
+ "bytes": 18861,
+ "source_url": "https://github.com/BerkIGuler/AdaFortiTran/blob/fa49e60f25579f59ba1815a27399e999b1382d5c/README.md"
+ },
+ {
+ "path": "config/adafortitran.yaml",
+ "sha256": "46db8103887ceeb3aecc305d3f2f4c402208cf5003478f0b4acd60a02c647cca",
+ "bytes": 236,
+ "source_url": "https://github.com/BerkIGuler/AdaFortiTran/blob/fa49e60f25579f59ba1815a27399e999b1382d5c/config/adafortitran.yaml"
+ },
+ {
+ "path": "config/fortitran.yaml",
+ "sha256": "efaca8578b224ce221f4a3a1595e69e490c2cb861af5666efde2b5e7da3a6755",
+ "bytes": 162,
+ "source_url": "https://github.com/BerkIGuler/AdaFortiTran/blob/fa49e60f25579f59ba1815a27399e999b1382d5c/config/fortitran.yaml"
+ },
+ {
+ "path": "config/system_config.yaml",
+ "sha256": "610884d9d3e61cee8ffcc0518aea3db5f03fe96d8833ae37e74cfa6f643e393e",
+ "bytes": 78,
+ "source_url": "https://github.com/BerkIGuler/AdaFortiTran/blob/fa49e60f25579f59ba1815a27399e999b1382d5c/config/system_config.yaml"
+ },
+ {
+ "path": "scripts/add_gitkeep.py",
+ "sha256": "beec4e2a1f98ae9c557228ebe7635c908c3732f9f66550e354e13f9ce2c15686",
+ "bytes": 1484,
+ "source_url": "https://github.com/BerkIGuler/AdaFortiTran/blob/fa49e60f25579f59ba1815a27399e999b1382d5c/scripts/add_gitkeep.py"
+ },
+ {
+ "path": "scripts/upload_to_huggingface.py",
+ "sha256": "deef75143161d16b7ad8b4d299a1c2b7803c6b69079e5007ba01412a8c471f34",
+ "bytes": 11892,
+ "source_url": "https://github.com/BerkIGuler/AdaFortiTran/blob/fa49e60f25579f59ba1815a27399e999b1382d5c/scripts/upload_to_huggingface.py"
+ },
+ {
+ "path": "src/__init__.py",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
+ "bytes": 0,
+ "source_url": "https://github.com/BerkIGuler/AdaFortiTran/blob/fa49e60f25579f59ba1815a27399e999b1382d5c/src/__init__.py"
+ },
+ {
+ "path": "src/config/__init__.py",
+ "sha256": "0c22ab8b739c3e71b03f9c64adfd5da59144184cbc2209f678ae8ef72b58fb64",
+ "bytes": 159,
+ "source_url": "https://github.com/BerkIGuler/AdaFortiTran/blob/fa49e60f25579f59ba1815a27399e999b1382d5c/src/config/__init__.py"
+ },
+ {
+ "path": "src/config/config_loader.py",
+ "sha256": "9a29980b4ee2ff7c1f6268b81a1122062ee4ec401cca6053db92b5574732e47b",
+ "bytes": 4247,
+ "source_url": "https://github.com/BerkIGuler/AdaFortiTran/blob/fa49e60f25579f59ba1815a27399e999b1382d5c/src/config/config_loader.py"
+ },
+ {
+ "path": "src/config/schemas.py",
+ "sha256": "5fbc328a1ba8a4471f04c2f6b478062df2396f6ef92bb9ac4aae1a8276b2f950",
+ "bytes": 5634,
+ "source_url": "https://github.com/BerkIGuler/AdaFortiTran/blob/fa49e60f25579f59ba1815a27399e999b1382d5c/src/config/schemas.py"
+ },
+ {
+ "path": "src/data/__init__.py",
+ "sha256": "d9c175ca8b71c43a64de63106145fe5c06eaf1bb69afd039d7977e21034cdac1",
+ "bytes": 180,
+ "source_url": "https://github.com/BerkIGuler/AdaFortiTran/blob/fa49e60f25579f59ba1815a27399e999b1382d5c/src/data/__init__.py"
+ },
+ {
+ "path": "src/data/dataset.py",
+ "sha256": "e274b798217a4e492e62caf64165aab7550d0088f0565e6fd33944b4935ef292",
+ "bytes": 10600,
+ "source_url": "https://github.com/BerkIGuler/AdaFortiTran/blob/fa49e60f25579f59ba1815a27399e999b1382d5c/src/data/dataset.py"
+ },
+ {
+ "path": "src/evaluate.py",
+ "sha256": "d1309a912344896df81d9dd366c3047e0f376eebbb3c23326e83ef1c7711b3f5",
+ "bytes": 16190,
+ "source_url": "https://github.com/BerkIGuler/AdaFortiTran/blob/fa49e60f25579f59ba1815a27399e999b1382d5c/src/evaluate.py"
+ },
+ {
+ "path": "src/main/__init__.py",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
+ "bytes": 0,
+ "source_url": "https://github.com/BerkIGuler/AdaFortiTran/blob/fa49e60f25579f59ba1815a27399e999b1382d5c/src/main/__init__.py"
+ },
+ {
+ "path": "src/main/parser.py",
+ "sha256": "3fb75a875ec1634fede9e91875653f28c562d775b8c6ac81ccd94e794fc1d768",
+ "bytes": 14932,
+ "source_url": "https://github.com/BerkIGuler/AdaFortiTran/blob/fa49e60f25579f59ba1815a27399e999b1382d5c/src/main/parser.py"
+ },
+ {
+ "path": "src/main/trainer.py",
+ "sha256": "a673cf0cf9a5a31ab6ce0c6c279ae7e8f4717bc451580b125b2d705dc3d9a84f",
+ "bytes": 22993,
+ "source_url": "https://github.com/BerkIGuler/AdaFortiTran/blob/fa49e60f25579f59ba1815a27399e999b1382d5c/src/main/trainer.py"
+ },
+ {
+ "path": "src/models/__init__.py",
+ "sha256": "3ca822c63cf1301315d9cbce3f623926ee45823bf9a9f97ea9e6c813bcab71cd",
+ "bytes": 155,
+ "source_url": "https://github.com/BerkIGuler/AdaFortiTran/blob/fa49e60f25579f59ba1815a27399e999b1382d5c/src/models/__init__.py"
+ },
+ {
+ "path": "src/models/adafortitran.py",
+ "sha256": "e0b39460eef6a89b3698d195934e89f3b496c9713302a811fa8bb8a2cfe11a25",
+ "bytes": 1063,
+ "source_url": "https://github.com/BerkIGuler/AdaFortiTran/blob/fa49e60f25579f59ba1815a27399e999b1382d5c/src/models/adafortitran.py"
+ },
+ {
+ "path": "src/models/blocks/__init__.py",
+ "sha256": "c8dac935e2b368235d4d63fc3dbc0c4515f1b8cf1d9dedd313eddf9a775ebb22",
+ "bytes": 511,
+ "source_url": "https://github.com/BerkIGuler/AdaFortiTran/blob/fa49e60f25579f59ba1815a27399e999b1382d5c/src/models/blocks/__init__.py"
+ },
+ {
+ "path": "src/models/blocks/channel_adaptivity.py",
+ "sha256": "a9fd1e396b2218e3bd0ea8a6b42cb5d630b197eb2d5790a767c9629172e4559e",
+ "bytes": 2322,
+ "source_url": "https://github.com/BerkIGuler/AdaFortiTran/blob/fa49e60f25579f59ba1815a27399e999b1382d5c/src/models/blocks/channel_adaptivity.py"
+ },
+ {
+ "path": "src/models/blocks/encoders.py",
+ "sha256": "1712359450cedab9bfcb7cffaf5adb6e453839943c1a364727374fa363db878e",
+ "bytes": 2355,
+ "source_url": "https://github.com/BerkIGuler/AdaFortiTran/blob/fa49e60f25579f59ba1815a27399e999b1382d5c/src/models/blocks/encoders.py"
+ },
+ {
+ "path": "src/models/blocks/enhancers.py",
+ "sha256": "821da89b8bd12ef392750b3b2c0f01622b73d8b28eabe7b203bf8c39a34d377a",
+ "bytes": 1022,
+ "source_url": "https://github.com/BerkIGuler/AdaFortiTran/blob/fa49e60f25579f59ba1815a27399e999b1382d5c/src/models/blocks/enhancers.py"
+ },
+ {
+ "path": "src/models/blocks/patch_processors.py",
+ "sha256": "8ca0cb8f2a0898f1cab8cb0e2b57ef90dc8b1d5e4ba1746d068a1f1d3307d6bb",
+ "bytes": 2451,
+ "source_url": "https://github.com/BerkIGuler/AdaFortiTran/blob/fa49e60f25579f59ba1815a27399e999b1382d5c/src/models/blocks/patch_processors.py"
+ },
+ {
+ "path": "src/models/blocks/positional_encodings.py",
+ "sha256": "c77cda49254614239ec275d08d90a109678bc45b29fbf46514d10603256c0852",
+ "bytes": 2257,
+ "source_url": "https://github.com/BerkIGuler/AdaFortiTran/blob/fa49e60f25579f59ba1815a27399e999b1382d5c/src/models/blocks/positional_encodings.py"
+ },
+ {
+ "path": "src/models/fortitran.py",
+ "sha256": "4ba036715ec780712512dce0b3967e0e5a414bf1130286d4bcb3715cdb2eb5b4",
+ "bytes": 11953,
+ "source_url": "https://github.com/BerkIGuler/AdaFortiTran/blob/fa49e60f25579f59ba1815a27399e999b1382d5c/src/models/fortitran.py"
+ },
+ {
+ "path": "src/models/linear.py",
+ "sha256": "4edeada31590a0a9c816a1a2931281bc8808626278628329281cc1761670f880",
+ "bytes": 5055,
+ "source_url": "https://github.com/BerkIGuler/AdaFortiTran/blob/fa49e60f25579f59ba1815a27399e999b1382d5c/src/models/linear.py"
+ },
+ {
+ "path": "src/train.py",
+ "sha256": "13e6857fdf684014cdee73d94cbb773441dcbca2f623c22c145b4c6c38c869c6",
+ "bytes": 6124,
+ "source_url": "https://github.com/BerkIGuler/AdaFortiTran/blob/fa49e60f25579f59ba1815a27399e999b1382d5c/src/train.py"
+ },
+ {
+ "path": "src/utils.py",
+ "sha256": "22157f9ea28d98d07fab9d6aad02a27639b2d32df7a2d863b1672f32792e8e49",
+ "bytes": 11081,
+ "source_url": "https://github.com/BerkIGuler/AdaFortiTran/blob/fa49e60f25579f59ba1815a27399e999b1382d5c/src/utils.py"
+ },
+ {
+ "path": "tree.json",
+ "sha256": "581974a59aff9bd5997c382f5c54737008eff84dd0ac11fec481b4ac48b160ab",
+ "bytes": 25532,
+ "source_url": null
+ }
+ ]
+ },
+ {
+ "repository": "BerkIGuler/OFDMChannelGenerator",
+ "commit": "eea85606e09b0c90c2105c7be7661fa40cdfd789",
+ "url": "https://github.com/BerkIGuler/OFDMChannelGenerator/tree/eea85606e09b0c90c2105c7be7661fa40cdfd789",
+ "files": [
+ {
+ "path": "baselines/get_corr_from_path.m",
+ "sha256": "cb66888481fa33fb8939585a746a953f84e4eaf674b6aa18bd86d8ec49d6b1ab",
+ "bytes": 720,
+ "source_url": "https://github.com/BerkIGuler/OFDMChannelGenerator/blob/eea85606e09b0c90c2105c7be7661fa40cdfd789/baselines/get_corr_from_path.m"
+ },
+ {
+ "path": "baselines/get_corr_stats.m",
+ "sha256": "af503fd80aa57e8ae255f3ceb44c77712d2c5d0c3b9262e9b370d6c131d951a2",
+ "bytes": 1075,
+ "source_url": "https://github.com/BerkIGuler/OFDMChannelGenerator/blob/eea85606e09b0c90c2105c7be7661fa40cdfd789/baselines/get_corr_stats.m"
+ },
+ {
+ "path": "baselines/lmmse.m",
+ "sha256": "1d04526821820b326074bda1555a4f21aa47773c886607afd0f4df6562c03437",
+ "bytes": 754,
+ "source_url": "https://github.com/BerkIGuler/OFDMChannelGenerator/blob/eea85606e09b0c90c2105c7be7661fa40cdfd789/baselines/lmmse.m"
+ },
+ {
+ "path": "generate_ds_test_set.m",
+ "sha256": "70142f6b54add6f0c32797f5c28df6e2fbeb26150004a7344a1875e93de81f08",
+ "bytes": 2401,
+ "source_url": "https://github.com/BerkIGuler/OFDMChannelGenerator/blob/eea85606e09b0c90c2105c7be7661fa40cdfd789/generate_ds_test_set.m"
+ },
+ {
+ "path": "generate_full_dataset.m",
+ "sha256": "faea0196e8b694f71df61cc9acfb8df5560a818311b40c47456b897c559b1a87",
+ "bytes": 9096,
+ "source_url": "https://github.com/BerkIGuler/OFDMChannelGenerator/blob/eea85606e09b0c90c2105c7be7661fa40cdfd789/generate_full_dataset.m"
+ },
+ {
+ "path": "generate_mds_test_set.m",
+ "sha256": "bc22471acf7bf4ddf63ed88849c2cdab50d8ec15c6b4bb7eabe57ff73a0ae8df",
+ "bytes": 2426,
+ "source_url": "https://github.com/BerkIGuler/OFDMChannelGenerator/blob/eea85606e09b0c90c2105c7be7661fa40cdfd789/generate_mds_test_set.m"
+ },
+ {
+ "path": "generate_snr_test_set.m",
+ "sha256": "43113f17c5edfb30fe1d8c87e20c7e3f755ef45f343286bfa3fde2d26e320948",
+ "bytes": 2385,
+ "source_url": "https://github.com/BerkIGuler/OFDMChannelGenerator/blob/eea85606e09b0c90c2105c7be7661fa40cdfd789/generate_snr_test_set.m"
+ },
+ {
+ "path": "generate_train_and_val.m",
+ "sha256": "e2027ff0248736237db4f331f2714b3642bf61052055fbac6f760211d4ad9ed6",
+ "bytes": 2759,
+ "source_url": "https://github.com/BerkIGuler/OFDMChannelGenerator/blob/eea85606e09b0c90c2105c7be7661fa40cdfd789/generate_train_and_val.m"
+ },
+ {
+ "path": "helpers/OFDMChannelEstimator.m",
+ "sha256": "fded5452c2ee477a0ae50495e522f95b42768767ad155e308b532e71d39055eb",
+ "bytes": 28642,
+ "source_url": "https://github.com/BerkIGuler/OFDMChannelGenerator/blob/eea85606e09b0c90c2105c7be7661fa40cdfd789/helpers/OFDMChannelEstimator.m"
+ },
+ {
+ "path": "helpers/bilinear_interp.m",
+ "sha256": "132789b46d1c1c3ebc3f27d7ea73c9d222d2930f1428666e502f2d559919f2db",
+ "bytes": 1128,
+ "source_url": "https://github.com/BerkIGuler/OFDMChannelGenerator/blob/eea85606e09b0c90c2105c7be7661fa40cdfd789/helpers/bilinear_interp.m"
+ },
+ {
+ "path": "helpers/organize_by_param.m",
+ "sha256": "a9c1b626d8069ae0a297e2fdeeb88e7f39757c1e896cb3acd6f1e5398b001cce",
+ "bytes": 1040,
+ "source_url": "https://github.com/BerkIGuler/OFDMChannelGenerator/blob/eea85606e09b0c90c2105c7be7661fa40cdfd789/helpers/organize_by_param.m"
+ },
+ {
+ "path": "tree.json",
+ "sha256": "de3b629339d93a96c3dfd5b3576a104c86235f1d5054daf6e422e59ad676dab2",
+ "bytes": 4002,
+ "source_url": null
+ }
+ ]
+ },
+ {
+ "repository": "miguelhdo/HELENA_Channel_Estimation",
+ "commit": "af601ec272fc566bac1c47c97e820fc796b6fdfc",
+ "url": "https://github.com/miguelhdo/HELENA_Channel_Estimation/tree/af601ec272fc566bac1c47c97e820fc796b6fdfc",
+ "files": [
+ {
+ "path": "README.md",
+ "sha256": "ffb293186cb41e017215c588827d2b97741e709f49d1d94a03b3e8d3709b5203",
+ "bytes": 2578,
+ "source_url": "https://github.com/miguelhdo/HELENA_Channel_Estimation/blob/af601ec272fc566bac1c47c97e820fc796b6fdfc/README.md"
+ },
+ {
+ "path": "code/eval_models.py",
+ "sha256": "50305de8ab3bd378e53d0e5b4bfddfe022ab403bee4e242f5049669a02faa8fd",
+ "bytes": 13402,
+ "source_url": "https://github.com/miguelhdo/HELENA_Channel_Estimation/blob/af601ec272fc566bac1c47c97e820fc796b6fdfc/code/eval_models.py"
+ },
+ {
+ "path": "code/helper.py",
+ "sha256": "77c06719440408417d5efde8b9b190ca53097f828f7db602f3c189cc0624d90f",
+ "bytes": 52851,
+ "source_url": "https://github.com/miguelhdo/HELENA_Channel_Estimation/blob/af601ec272fc566bac1c47c97e820fc796b6fdfc/code/helper.py"
+ },
+ {
+ "path": "models/010625_HELENA_CE_model.keras",
+ "sha256": "7f432fd3a8521eaf0f5d5d894e39547f3712de8c0d72404b5b86456d4dda4408",
+ "bytes": 1481193,
+ "source_url": "https://github.com/miguelhdo/HELENA_Channel_Estimation/blob/af601ec272fc566bac1c47c97e820fc796b6fdfc/models/010625_HELENA_CE_model.keras"
+ },
+ {
+ "path": "models/config.json",
+ "sha256": "f61bed897c8140aa470c8f9c51357fd7ccee10d2014e2790738aaf10e45932b9",
+ "bytes": 17833,
+ "source_url": null
+ },
+ {
+ "path": "requirements.txt",
+ "sha256": "e675a43cfa3e4ecba322cbcf400211c1d79fb26dbcdd3f7f76c96dce52849a0c",
+ "bytes": 78,
+ "source_url": "https://github.com/miguelhdo/HELENA_Channel_Estimation/blob/af601ec272fc566bac1c47c97e820fc796b6fdfc/requirements.txt"
+ },
+ {
+ "path": "tree.json",
+ "sha256": "a628e6dba287561d42723269439f535ad3e384b8d5fa9a856ea5c262ff64656f",
+ "bytes": 10115,
+ "source_url": null
+ }
+ ]
+ },
+ {
+ "repository": "dianixn/Channelformer",
+ "commit": "6312c79e103422178ab4cc3d698aeae0731c308f",
+ "url": "https://github.com/dianixn/Channelformer/tree/6312c79e103422178ab4cc3d698aeae0731c308f",
+ "files": [
+ {
+ "path": "+CSI/LS.m",
+ "sha256": "3a03736ed458aadf92252264e4f1624eeb8ef5a982f08774fcf722df7f050f8a",
+ "bytes": 82,
+ "source_url": "https://github.com/dianixn/Channelformer/blob/6312c79e103422178ab4cc3d698aeae0731c308f/+CSI/LS.m"
+ },
+ {
+ "path": "+CSI/MMSE.m",
+ "sha256": "19e530272f9171bdbbf791968b9d5f0123d7c2092f81078228c4f23f3c368fb6",
+ "bytes": 394,
+ "source_url": "https://github.com/dianixn/Channelformer/blob/6312c79e103422178ab4cc3d698aeae0731c308f/+CSI/MMSE.m"
+ },
+ {
+ "path": "+CSI/MMSE_Interpolation_2D.m",
+ "sha256": "8c4c9a4e7e1afb036b1ac460019b98bb0819c4ce527b7e29471cb029e10044d4",
+ "bytes": 660,
+ "source_url": "https://github.com/dianixn/Channelformer/blob/6312c79e103422178ab4cc3d698aeae0731c308f/+CSI/MMSE_Interpolation_2D.m"
+ },
+ {
+ "path": "+CSI/MMSE_Uniform_PDP.m",
+ "sha256": "3170ff0acfc0fa9c52d9397bc1f3f309e9d504a93c64432ee97a9ff5c1cb0f33",
+ "bytes": 984,
+ "source_url": "https://github.com/dianixn/Channelformer/blob/6312c79e103422178ab4cc3d698aeae0731c308f/+CSI/MMSE_Uniform_PDP.m"
+ },
+ {
+ "path": "+Channel/Propagation_Channel_Model.m",
+ "sha256": "906dcf7c2e0a4c092c1668ab699321a195b878de2b5ef54dcaaffbf58f7579f3",
+ "bytes": 1415,
+ "source_url": "https://github.com/dianixn/Channelformer/blob/6312c79e103422178ab4cc3d698aeae0731c308f/+Channel/Propagation_Channel_Model.m"
+ },
+ {
+ "path": "+Channel/Propagation_Channel_Model_Online.m",
+ "sha256": "db8e2c2935a205391c28b59f11101649add2401780e8a9e2b94953ee9c2db674",
+ "bytes": 1804,
+ "source_url": "https://github.com/dianixn/Channelformer/blob/6312c79e103422178ab4cc3d698aeae0731c308f/+Channel/Propagation_Channel_Model_Online.m"
+ },
+ {
+ "path": "+Channel/Propagation_Channel_Model_test.m",
+ "sha256": "5ca2a57420a6fdc16ac9d2ec1e17a0bf7fe12325710ad4c45ab94c281b6b7ff5",
+ "bytes": 1757,
+ "source_url": "https://github.com/dianixn/Channelformer/blob/6312c79e103422178ab4cc3d698aeae0731c308f/+Channel/Propagation_Channel_Model_test.m"
+ },
+ {
+ "path": "+Data_Generation/Data_Generation.m",
+ "sha256": "595ac4dcb08867a3fc24fba6e70a3d7619b492e4d81ab617b54438ae387da6f9",
+ "bytes": 5218,
+ "source_url": "https://github.com/dianixn/Channelformer/blob/6312c79e103422178ab4cc3d698aeae0731c308f/+Data_Generation/Data_Generation.m"
+ },
+ {
+ "path": "+Data_Generation/Data_Generation_Online.m",
+ "sha256": "9d1d75925a1a53d72b84d85562fe457d4391bb6db7c76b9bcd84d3f4fef38d78",
+ "bytes": 4236,
+ "source_url": "https://github.com/dianixn/Channelformer/blob/6312c79e103422178ab4cc3d698aeae0731c308f/+Data_Generation/Data_Generation_Online.m"
+ },
+ {
+ "path": "+Data_Generation/Data_Generation_Residual.m",
+ "sha256": "79ec8f80d09e2ed5702bd8d44e24324c162a6a64aec4ae566028cb4070837462",
+ "bytes": 4021,
+ "source_url": "https://github.com/dianixn/Channelformer/blob/6312c79e103422178ab4cc3d698aeae0731c308f/+Data_Generation/Data_Generation_Residual.m"
+ },
+ {
+ "path": "+Data_Generation/Data_Generation_Transformer.m",
+ "sha256": "1eb7001393b9c3f0c297a861b1857224c09015a20c4068b4a546b6fda9c82185",
+ "bytes": 5521,
+ "source_url": "https://github.com/dianixn/Channelformer/blob/6312c79e103422178ab4cc3d698aeae0731c308f/+Data_Generation/Data_Generation_Transformer.m"
+ },
+ {
+ "path": "+Data_Generation/Data_generation_N.m",
+ "sha256": "0b7390ffe54d01f7e6e7c9081e50f344b973ee226daf48d8980afc1c44dbd179",
+ "bytes": 4975,
+ "source_url": "https://github.com/dianixn/Channelformer/blob/6312c79e103422178ab4cc3d698aeae0731c308f/+Data_Generation/Data_generation_N.m"
+ },
+ {
+ "path": "+Data_Generation/Data_generation_offline_version.m",
+ "sha256": "c5347db8e8c536bfbd9063315ce006072c040bab366c95d5f4d504a24dcf7d56",
+ "bytes": 5122,
+ "source_url": "https://github.com/dianixn/Channelformer/blob/6312c79e103422178ab4cc3d698aeae0731c308f/+Data_Generation/Data_generation_offline_version.m"
+ },
+ {
+ "path": "+OFDM/OFDM_Receiver.m",
+ "sha256": "c82e25248f6d7b177be858528a9c5ce27ceb6063d902ec92549492344e416d25",
+ "bytes": 876,
+ "source_url": "https://github.com/dianixn/Channelformer/blob/6312c79e103422178ab4cc3d698aeae0731c308f/+OFDM/OFDM_Receiver.m"
+ },
+ {
+ "path": "+OFDM/OFDM_Transmitter.m",
+ "sha256": "45220ad4b34ec9dfed7fe451a6a316bd7338f72860276abad9b91a01eb9f8842",
+ "bytes": 345,
+ "source_url": "https://github.com/dianixn/Channelformer/blob/6312c79e103422178ab4cc3d698aeae0731c308f/+OFDM/OFDM_Transmitter.m"
+ },
+ {
+ "path": "+OFDM/Pilot_Insert.m",
+ "sha256": "cff434b1530181255e496fc9d26d2ff8f6bee2a54516adc40fc0395b81192788",
+ "bytes": 566,
+ "source_url": "https://github.com/dianixn/Channelformer/blob/6312c79e103422178ab4cc3d698aeae0731c308f/+OFDM/Pilot_Insert.m"
+ },
+ {
+ "path": "+OFDM/Pilot_extract.m",
+ "sha256": "548033156c454f9f940794bd82babe8cc97d911da4eeddedfd5b2a3fa9726f73",
+ "bytes": 485,
+ "source_url": "https://github.com/dianixn/Channelformer/blob/6312c79e103422178ab4cc3d698aeae0731c308f/+OFDM/Pilot_extract.m"
+ },
+ {
+ "path": "+OFDM/QPSK_Demodulator.m",
+ "sha256": "79f8ac8f323695dbc1f4b59a5378cd82b91840413c3ef181ea1ac26b4c45f1d6",
+ "bytes": 500,
+ "source_url": "https://github.com/dianixn/Channelformer/blob/6312c79e103422178ab4cc3d698aeae0731c308f/+OFDM/QPSK_Demodulator.m"
+ },
+ {
+ "path": "+OFDM/QPSK_Modualtor.m",
+ "sha256": "143c58ed895938970d9558c808d90d3ccf42b53c5358be471cbeb71b2964eb52",
+ "bytes": 286,
+ "source_url": "https://github.com/dianixn/Channelformer/blob/6312c79e103422178ab4cc3d698aeae0731c308f/+OFDM/QPSK_Modualtor.m"
+ },
+ {
+ "path": "+Parameter/parameters.m",
+ "sha256": "38212f7758b5a2b0cebe1690631e27949ca7e9212623dd4b05f2fed6074805ef",
+ "bytes": 1148,
+ "source_url": "https://github.com/dianixn/Channelformer/blob/6312c79e103422178ab4cc3d698aeae0731c308f/+Parameter/parameters.m"
+ },
+ {
+ "path": "+Parameter/parameters_doppler.m",
+ "sha256": "a641d07f23ea6e7122f209d73ba27eb3f4ee954b0c108f6de986af56653a9b7e",
+ "bytes": 884,
+ "source_url": "https://github.com/dianixn/Channelformer/blob/6312c79e103422178ab4cc3d698aeae0731c308f/+Parameter/parameters_doppler.m"
+ },
+ {
+ "path": "+Parameter/parameters_hybrid.m",
+ "sha256": "7301b44ac35ac5baf30619c2446d50d8e004297ffc18ed73119771981206ddd5",
+ "bytes": 5025,
+ "source_url": "https://github.com/dianixn/Channelformer/blob/6312c79e103422178ab4cc3d698aeae0731c308f/+Parameter/parameters_hybrid.m"
+ },
+ {
+ "path": "+Parameter/parameters_online_average.m",
+ "sha256": "1eae59e470aa415985de6d289b716a195a69aff30ed7da362fae6687f61ad22d",
+ "bytes": 931,
+ "source_url": "https://github.com/dianixn/Channelformer/blob/6312c79e103422178ab4cc3d698aeae0731c308f/+Parameter/parameters_online_average.m"
+ },
+ {
+ "path": "+Performance_plot/Attention_plot.m",
+ "sha256": "df16eb0d3d7da12600bfff0679187b42dbfb828e0565ec8e537f18c900751dab",
+ "bytes": 4624,
+ "source_url": "https://github.com/dianixn/Channelformer/blob/6312c79e103422178ab4cc3d698aeae0731c308f/+Performance_plot/Attention_plot.m"
+ },
+ {
+ "path": "+Performance_plot/Plot.m",
+ "sha256": "59a8a9f4c918a0f50eba03990faf9454792c1a5737df8ca9efd1829ec13d42eb",
+ "bytes": 1511,
+ "source_url": "https://github.com/dianixn/Channelformer/blob/6312c79e103422178ab4cc3d698aeae0731c308f/+Performance_plot/Plot.m"
+ },
+ {
+ "path": "+Performance_plot/Plot_BER.m",
+ "sha256": "d6e354f90429bd8ec31d1e78db9357d28ab7e374678fd646dbb69d7ddfaf7672",
+ "bytes": 1244,
+ "source_url": "https://github.com/dianixn/Channelformer/blob/6312c79e103422178ab4cc3d698aeae0731c308f/+Performance_plot/Plot_BER.m"
+ },
+ {
+ "path": "+Performance_plot/Plot_Doppler.m",
+ "sha256": "b8a7e31c7ce18500efcd22a230b7d915fa9909a1b29c48306eecf7d3a5e16f24",
+ "bytes": 1311,
+ "source_url": "https://github.com/dianixn/Channelformer/blob/6312c79e103422178ab4cc3d698aeae0731c308f/+Performance_plot/Plot_Doppler.m"
+ },
+ {
+ "path": "+Performance_plot/Plot_denoising_gain.m",
+ "sha256": "5be0f58033b3bae60c39616a15d3524a1aab97c4fd340b44b05005a9c0fdaab3",
+ "bytes": 1595,
+ "source_url": "https://github.com/dianixn/Channelformer/blob/6312c79e103422178ab4cc3d698aeae0731c308f/+Performance_plot/Plot_denoising_gain.m"
+ },
+ {
+ "path": "+Performance_plot/Plot_online_training.m",
+ "sha256": "c50d918e2dba7288535ad77f8cc90dc06d2061781a9e6c22bc4af3f5df97f884",
+ "bytes": 1151,
+ "source_url": "https://github.com/dianixn/Channelformer/blob/6312c79e103422178ab4cc3d698aeae0731c308f/+Performance_plot/Plot_online_training.m"
+ },
+ {
+ "path": "+Performance_plot/Pruning_Plot.m",
+ "sha256": "574b51b75ddff9233f6afee85fff3333031d12f074edf353c3901967aca4530a",
+ "bytes": 1487,
+ "source_url": "https://github.com/dianixn/Channelformer/blob/6312c79e103422178ab4cc3d698aeae0731c308f/+Performance_plot/Pruning_Plot.m"
+ },
+ {
+ "path": "+Performance_plot/Pruning_Plot_Doppler.m",
+ "sha256": "4e592bde9bb75ca9c77f76a0664236bcd57bbc42d73bd0fe059b07ff7ae189a9",
+ "bytes": 1534,
+ "source_url": "https://github.com/dianixn/Channelformer/blob/6312c79e103422178ab4cc3d698aeae0731c308f/+Performance_plot/Pruning_Plot_Doppler.m"
+ },
+ {
+ "path": "+Pruning/Encoder_Pruning.m",
+ "sha256": "dfd2cf8acbdcaf3912519a64470e33738e46067073271bd0e8f31e2d9a88c220",
+ "bytes": 1425,
+ "source_url": "https://github.com/dianixn/Channelformer/blob/6312c79e103422178ab4cc3d698aeae0731c308f/+Pruning/Encoder_Pruning.m"
+ },
+ {
+ "path": "+Pruning/Fine_tuning.m",
+ "sha256": "4f6a116c8a8ff2793ac75c70f2af4406983485f0f7b893decc9d2359ef922236",
+ "bytes": 7590,
+ "source_url": "https://github.com/dianixn/Channelformer/blob/6312c79e103422178ab4cc3d698aeae0731c308f/+Pruning/Fine_tuning.m"
+ },
+ {
+ "path": "+Pruning/Hybrid_Pruning.m",
+ "sha256": "22249f438a8d08f7340cbc03efccfed940482e7105f64e98ab73194b54ca9dc6",
+ "bytes": 4479,
+ "source_url": "https://github.com/dianixn/Channelformer/blob/6312c79e103422178ab4cc3d698aeae0731c308f/+Pruning/Hybrid_Pruning.m"
+ },
+ {
+ "path": "+Residual_NN/Interpolation_ResNet.m",
+ "sha256": "6888d409c18524a3c5df6186f4e0f68868d9b39fb93d53e5c77fba0835efbb80",
+ "bytes": 3148,
+ "source_url": "https://github.com/dianixn/Channelformer/blob/6312c79e103422178ab4cc3d698aeae0731c308f/+Residual_NN/Interpolation_ResNet.m"
+ },
+ {
+ "path": "+Residual_NN/Residual_transposed.m",
+ "sha256": "d5f599d37d816463296e0b5507bbd17f8f3481b2a5229278e249788b973c0227",
+ "bytes": 2721,
+ "source_url": "https://github.com/dianixn/Channelformer/blob/6312c79e103422178ab4cc3d698aeae0731c308f/+Residual_NN/Residual_transposed.m"
+ },
+ {
+ "path": "+Training/ResNN_pilot_regression.m",
+ "sha256": "b9e3f0c582770e001b5f5bb0e0501eb45821c8b4dd013726e433a8c80db3a145",
+ "bytes": 1062,
+ "source_url": "https://github.com/dianixn/Channelformer/blob/6312c79e103422178ab4cc3d698aeae0731c308f/+Training/ResNN_pilot_regression.m"
+ },
+ {
+ "path": "+Training/Training_Transformer.m",
+ "sha256": "9baa855368ddd53c368340ec79549997581729144d81e56a0ac6c78b4f92cd43",
+ "bytes": 8876,
+ "source_url": "https://github.com/dianixn/Channelformer/blob/6312c79e103422178ab4cc3d698aeae0731c308f/+Training/Training_Transformer.m"
+ },
+ {
+ "path": "+Training/Training_hybrid_channelformer.m",
+ "sha256": "72787a84bb4d0f8dea9617c198db3e22319da9269e84bfc721dfc10f27bb1fc3",
+ "bytes": 7938,
+ "source_url": "https://github.com/dianixn/Channelformer/blob/6312c79e103422178ab4cc3d698aeae0731c308f/+Training/Training_hybrid_channelformer.m"
+ },
+ {
+ "path": "+Training/Training_hybrid_offline.m",
+ "sha256": "a6c150657d386c00b9525e804b4103f926ff8fcb01f559bee346e826e91ac82e",
+ "bytes": 7925,
+ "source_url": "https://github.com/dianixn/Channelformer/blob/6312c79e103422178ab4cc3d698aeae0731c308f/+Training/Training_hybrid_offline.m"
+ },
+ {
+ "path": "+transformer/+HA03/Decoder_block.m",
+ "sha256": "aef6ddbd9027c14536e9f7f8df133e2cb84aa952f59f144d69d14d9befe1151d",
+ "bytes": 476,
+ "source_url": "https://github.com/dianixn/Channelformer/blob/6312c79e103422178ab4cc3d698aeae0731c308f/+transformer/+HA03/Decoder_block.m"
+ },
+ {
+ "path": "+transformer/+HA03/Encoder_block.m",
+ "sha256": "ef821c15e4b3be1ecad332ff485606b5472f2cd44e59a6257f6ee9fe360de0e5",
+ "bytes": 461,
+ "source_url": "https://github.com/dianixn/Channelformer/blob/6312c79e103422178ab4cc3d698aeae0731c308f/+transformer/+HA03/Encoder_block.m"
+ },
+ {
+ "path": "+transformer/+layer/FC1.m",
+ "sha256": "774ebac4ccadd4a10e613b966d574f021284505864bf56eceaaaf4ccce7a10a6",
+ "bytes": 54,
+ "source_url": "https://github.com/dianixn/Channelformer/blob/6312c79e103422178ab4cc3d698aeae0731c308f/+transformer/+layer/FC1.m"
+ },
+ {
+ "path": "+transformer/+layer/FeedforwardNN.m",
+ "sha256": "8b2d2ac801cff4861159c3eac7c938885ce59ab3fd262899f3f1b029b2c9b97e",
+ "bytes": 315,
+ "source_url": "https://github.com/dianixn/Channelformer/blob/6312c79e103422178ab4cc3d698aeae0731c308f/+transformer/+layer/FeedforwardNN.m"
+ },
+ {
+ "path": "+transformer/+layer/FeedforwardNN_transformer.m",
+ "sha256": "bc1a34eb957a7608af5c10255cd87e48af9eb6041a9e30f3c64b5c0f86094403",
+ "bytes": 277,
+ "source_url": "https://github.com/dianixn/Channelformer/blob/6312c79e103422178ab4cc3d698aeae0731c308f/+transformer/+layer/FeedforwardNN_transformer.m"
+ },
+ {
+ "path": "+transformer/+layer/attention.m",
+ "sha256": "c209f613e8d1e06e1704f5395b8d35a119b679fe6ea999685a29661d667b3a34",
+ "bytes": 1166,
+ "source_url": "https://github.com/dianixn/Channelformer/blob/6312c79e103422178ab4cc3d698aeae0731c308f/+transformer/+layer/attention.m"
+ },
+ {
+ "path": "+transformer/+layer/gelu.m",
+ "sha256": "1011465ed5b17663f0db53bca817cea57e6464d72aabfae71426d35691a18dd9",
+ "bytes": 85,
+ "source_url": "https://github.com/dianixn/Channelformer/blob/6312c79e103422178ab4cc3d698aeae0731c308f/+transformer/+layer/gelu.m"
+ },
+ {
+ "path": "+transformer/+layer/multiheadAttention.m",
+ "sha256": "38d72b5492d9288bdcb5b152f38ed6e32a2b340491239c4ce01ef07682f538c3",
+ "bytes": 217,
+ "source_url": "https://github.com/dianixn/Channelformer/blob/6312c79e103422178ab4cc3d698aeae0731c308f/+transformer/+layer/multiheadAttention.m"
+ },
+ {
+ "path": "+transformer/+layer/normalization.m",
+ "sha256": "5c800bdeccacc98360853bd08ab3139438f8b5ee16a0df1db08d04b0b925a249",
+ "bytes": 222,
+ "source_url": "https://github.com/dianixn/Channelformer/blob/6312c79e103422178ab4cc3d698aeae0731c308f/+transformer/+layer/normalization.m"
+ },
+ {
+ "path": "+transformer/Encoder_block_transformer.m",
+ "sha256": "85f3918f403e86c13d1cf7f53b07a4a7d9cf14cbcbf83af5338b1f2f0937257b",
+ "bytes": 485,
+ "source_url": "https://github.com/dianixn/Channelformer/blob/6312c79e103422178ab4cc3d698aeae0731c308f/+transformer/Encoder_block_transformer.m"
+ },
+ {
+ "path": "+transformer/model.m",
+ "sha256": "315bd99982a1c66c1ad8951acad16b7fe236f55788a0d0e114f212b84dbf5607",
+ "bytes": 1130,
+ "source_url": "https://github.com/dianixn/Channelformer/blob/6312c79e103422178ab4cc3d698aeae0731c308f/+transformer/model.m"
+ },
+ {
+ "path": "+transformer/model_transformer.m",
+ "sha256": "b1f93829ac952af0d52e1f82b8ebd60d1e870fcce9c5a539ee45c0a79fe1d958",
+ "bytes": 322,
+ "source_url": "https://github.com/dianixn/Channelformer/blob/6312c79e103422178ab4cc3d698aeae0731c308f/+transformer/model_transformer.m"
+ },
+ {
+ "path": "+transformer_HA02/+layer/FC1.m",
+ "sha256": "774ebac4ccadd4a10e613b966d574f021284505864bf56eceaaaf4ccce7a10a6",
+ "bytes": 54,
+ "source_url": "https://github.com/dianixn/Channelformer/blob/6312c79e103422178ab4cc3d698aeae0731c308f/+transformer_HA02/+layer/FC1.m"
+ },
+ {
+ "path": "+transformer_HA02/+layer/FeedforwardNN.m",
+ "sha256": "99d19252f18bdecfae80d6c84dd116c0cad3411110de0d707e9a924ab0eeff19",
+ "bytes": 278,
+ "source_url": "https://github.com/dianixn/Channelformer/blob/6312c79e103422178ab4cc3d698aeae0731c308f/+transformer_HA02/+layer/FeedforwardNN.m"
+ },
+ {
+ "path": "+transformer_HA02/+layer/attention.m",
+ "sha256": "8295109885edc140b57f6ad85821b01251e7a1e510ea3256fa1cb8657c54c3f0",
+ "bytes": 1295,
+ "source_url": "https://github.com/dianixn/Channelformer/blob/6312c79e103422178ab4cc3d698aeae0731c308f/+transformer_HA02/+layer/attention.m"
+ },
+ {
+ "path": "+transformer_HA02/+layer/gelu.m",
+ "sha256": "1011465ed5b17663f0db53bca817cea57e6464d72aabfae71426d35691a18dd9",
+ "bytes": 85,
+ "source_url": "https://github.com/dianixn/Channelformer/blob/6312c79e103422178ab4cc3d698aeae0731c308f/+transformer_HA02/+layer/gelu.m"
+ },
+ {
+ "path": "+transformer_HA02/+layer/multiheadAttention.m",
+ "sha256": "38d72b5492d9288bdcb5b152f38ed6e32a2b340491239c4ce01ef07682f538c3",
+ "bytes": 217,
+ "source_url": "https://github.com/dianixn/Channelformer/blob/6312c79e103422178ab4cc3d698aeae0731c308f/+transformer_HA02/+layer/multiheadAttention.m"
+ },
+ {
+ "path": "+transformer_HA02/+layer/normalization.m",
+ "sha256": "5c800bdeccacc98360853bd08ab3139438f8b5ee16a0df1db08d04b0b925a249",
+ "bytes": 222,
+ "source_url": "https://github.com/dianixn/Channelformer/blob/6312c79e103422178ab4cc3d698aeae0731c308f/+transformer_HA02/+layer/normalization.m"
+ },
+ {
+ "path": "+transformer_HA02/Decoder_block.m",
+ "sha256": "8777323185bbe0ad75ddf060804ec58111577f15da6de0e6ebed811acaaf4f65",
+ "bytes": 481,
+ "source_url": "https://github.com/dianixn/Channelformer/blob/6312c79e103422178ab4cc3d698aeae0731c308f/+transformer_HA02/Decoder_block.m"
+ },
+ {
+ "path": "+transformer_HA02/Encoder_block.m",
+ "sha256": "2f242d6315fdf5790bb3ebf039265e5de8e2adbd1821ea4e196e6efaca8d0a5d",
+ "bytes": 431,
+ "source_url": "https://github.com/dianixn/Channelformer/blob/6312c79e103422178ab4cc3d698aeae0731c308f/+transformer_HA02/Encoder_block.m"
+ },
+ {
+ "path": "+transformer_HA02/model.m",
+ "sha256": "cc17268f5a008f0dc6d917bcbdd9a1787a61a66d4305dee5c6a20f3b87e47506",
+ "bytes": 1183,
+ "source_url": "https://github.com/dianixn/Channelformer/blob/6312c79e103422178ab4cc3d698aeae0731c308f/+transformer_HA02/model.m"
+ },
+ {
+ "path": "+transformer_HA02/model_transformer.m",
+ "sha256": "63612218f3b4437576a26cd33bf2a9c025b186b999b38805eaf51dda24a528f8",
+ "bytes": 465,
+ "source_url": "https://github.com/dianixn/Channelformer/blob/6312c79e103422178ab4cc3d698aeae0731c308f/+transformer_HA02/model_transformer.m"
+ },
+ {
+ "path": "Demonstration_of_H_Doppler_Propogation_Channel.m",
+ "sha256": "0d2c5a7a1a96d9bc42e192701d7d93a34f364c1880778d9a5d40c91a88f62b5f",
+ "bytes": 12324,
+ "source_url": "https://github.com/dianixn/Channelformer/blob/6312c79e103422178ab4cc3d698aeae0731c308f/Demonstration_of_H_Doppler_Propogation_Channel.m"
+ },
+ {
+ "path": "Demonstration_of_H_Doppler_Propogation_Channel_test.m",
+ "sha256": "553e3d5d8b61d4b642978c1666c28f03b55ed954af574a2790fba1ea7cf2c64b",
+ "bytes": 4956,
+ "source_url": "https://github.com/dianixn/Channelformer/blob/6312c79e103422178ab4cc3d698aeae0731c308f/Demonstration_of_H_Doppler_Propogation_Channel_test.m"
+ },
+ {
+ "path": "Demonstration_of_H_Rayleigh_Propogation_Channel.m",
+ "sha256": "b7162d8043de7f1785d63aba27419c53fa19b2b1a20337117c4fd9daf5848054",
+ "bytes": 20710,
+ "source_url": "https://github.com/dianixn/Channelformer/blob/6312c79e103422178ab4cc3d698aeae0731c308f/Demonstration_of_H_Rayleigh_Propogation_Channel.m"
+ },
+ {
+ "path": "Demonstration_of_H_Rayleigh_Propogation_Channel_test.m",
+ "sha256": "eedf358a47dd67ff03e25cea28615513cf27a0c3a58bbb5460f9c4141329497e",
+ "bytes": 4586,
+ "source_url": "https://github.com/dianixn/Channelformer/blob/6312c79e103422178ab4cc3d698aeae0731c308f/Demonstration_of_H_Rayleigh_Propogation_Channel_test.m"
+ },
+ {
+ "path": "Dynamic_adaptation_batch.m",
+ "sha256": "3fda975429e3243738fb0484bd4f69146f6795970543971b20e6c90d80406bfb",
+ "bytes": 9503,
+ "source_url": "https://github.com/dianixn/Channelformer/blob/6312c79e103422178ab4cc3d698aeae0731c308f/Dynamic_adaptation_batch.m"
+ },
+ {
+ "path": "Naren_Channel/getXPR_NLOS.m",
+ "sha256": "de13f1aaf80fb69c95f30490836228d0d275185c1fa61c5e7bb0bdee892cac6b",
+ "bytes": 823,
+ "source_url": "https://github.com/dianixn/Channelformer/blob/6312c79e103422178ab4cc3d698aeae0731c308f/Naren_Channel/getXPR_NLOS.m"
+ },
+ {
+ "path": "Online/Online_plot.m",
+ "sha256": "924a51b056b1f47206ffa1df7fe9e1cb7e6e078e933056afc94f7d8fdaf1e248",
+ "bytes": 1063,
+ "source_url": "https://github.com/dianixn/Channelformer/blob/6312c79e103422178ab4cc3d698aeae0731c308f/Online/Online_plot.m"
+ },
+ {
+ "path": "Online_pruning.m",
+ "sha256": "117216fb90a5f6d64ed5c7a9a3e2ab9785a17e848b5825bb1c0d23dbc18356f7",
+ "bytes": 4299,
+ "source_url": "https://github.com/dianixn/Channelformer/blob/6312c79e103422178ab4cc3d698aeae0731c308f/Online_pruning.m"
+ },
+ {
+ "path": "Precision_test.m",
+ "sha256": "1d2fcfdb1898508e3d5cb8e4840b6094b5d6cad9d1aa217160b6693de2e33b40",
+ "bytes": 10011,
+ "source_url": "https://github.com/dianixn/Channelformer/blob/6312c79e103422178ab4cc3d698aeae0731c308f/Precision_test.m"
+ },
+ {
+ "path": "README.md",
+ "sha256": "649996c93bd9b2fbe042f1c2a09aec0dcee05c6bc402c83f59bf7be1291b5058",
+ "bytes": 7761,
+ "source_url": "https://github.com/dianixn/Channelformer/blob/6312c79e103422178ab4cc3d698aeae0731c308f/README.md"
+ },
+ {
+ "path": "parameters_HA03.mat",
+ "sha256": "2eedf7b35bc176ee035ec5f9f8caf0e3b697a80e8cdb49fcdc7e9f03b91b6ca4",
+ "bytes": 260076,
+ "source_url": "https://github.com/dianixn/Channelformer/blob/6312c79e103422178ab4cc3d698aeae0731c308f/parameters_HA03.mat"
+ },
+ {
+ "path": "parameters_frame_3_decode.mat",
+ "sha256": "c7c93b804790b3b84f8ae258b413b74fe3a37ac19e83c664561db58554a5e7e3",
+ "bytes": 661459,
+ "source_url": "https://github.com/dianixn/Channelformer/blob/6312c79e103422178ab4cc3d698aeae0731c308f/parameters_frame_3_decode.mat"
+ },
+ {
+ "path": "pretraining.m",
+ "sha256": "815aed26cef146899b638d50abee761476086bb6dca1d10e7cbe8eae4165dfd3",
+ "bytes": 3691,
+ "source_url": "https://github.com/dianixn/Channelformer/blob/6312c79e103422178ab4cc3d698aeae0731c308f/pretraining.m"
+ },
+ {
+ "path": "pretraining_batch.m",
+ "sha256": "ffa8ebff51eced9b65897c59f2dde17cddf69e483a33f4c32aa9ca74879b5898",
+ "bytes": 4571,
+ "source_url": "https://github.com/dianixn/Channelformer/blob/6312c79e103422178ab4cc3d698aeae0731c308f/pretraining_batch.m"
+ },
+ {
+ "path": "tree.json",
+ "sha256": "c2a775e71d86dc6890ba5db4a4b4dcdbd038502ded76a81fe057b54780d8f81c",
+ "bytes": 41774,
+ "source_url": null
+ }
+ ]
+ },
+ {
+ "repository": "NVlabs/sionna",
+ "commit": "04ddb9312116b408093b9d3ad363a3df355093a6",
+ "url": "https://github.com/NVlabs/sionna/tree/04ddb9312116b408093b9d3ad363a3df355093a6",
+ "files": [
+ {
+ "path": "pyproject.toml",
+ "sha256": "93b12a59a064b91441bf3408a5e3db19d73d2d2170d4095dfff5866a995acecd",
+ "bytes": 2021,
+ "source_url": "https://github.com/NVlabs/sionna/blob/04ddb9312116b408093b9d3ad363a3df355093a6/pyproject.toml"
+ },
+ {
+ "path": "src/sionna/phy/channel/apply_time_channel.py",
+ "sha256": "8613428b63a73a0f7d4f54b7cbfbf4c3fc3c599497ba1b75c5321387e9694aa9",
+ "bytes": 8067,
+ "source_url": "https://github.com/NVlabs/sionna/blob/04ddb9312116b408093b9d3ad363a3df355093a6/src/sionna/phy/channel/apply_time_channel.py"
+ },
+ {
+ "path": "src/sionna/phy/channel/time_channel.py",
+ "sha256": "cbc8c2409e2cff66369077619246d93b263e255f0ba0935ce966137cb9bce5b5",
+ "bytes": 9216,
+ "source_url": "https://github.com/NVlabs/sionna/blob/04ddb9312116b408093b9d3ad363a3df355093a6/src/sionna/phy/channel/time_channel.py"
+ },
+ {
+ "path": "src/sionna/phy/channel/tr38901/models/TDL-A.json",
+ "sha256": "fd7991493e099c925dda4424866272c5fba074199bc4b3d0da98bbffbee5fe68",
+ "bytes": 1380,
+ "source_url": "https://github.com/NVlabs/sionna/blob/04ddb9312116b408093b9d3ad363a3df355093a6/src/sionna/phy/channel/tr38901/models/TDL-A.json"
+ },
+ {
+ "path": "src/sionna/phy/channel/tr38901/models/TDL-C.json",
+ "sha256": "6dea193df23e9c4ea83c6ba4427f97651a12ceb1d2c511757d31c849c57829ea",
+ "bytes": 1375,
+ "source_url": "https://github.com/NVlabs/sionna/blob/04ddb9312116b408093b9d3ad363a3df355093a6/src/sionna/phy/channel/tr38901/models/TDL-C.json"
+ },
+ {
+ "path": "src/sionna/phy/channel/tr38901/tdl.py",
+ "sha256": "85159f1efb5189783378d74535a1d4b7c42020e6b3c79ecacdf989ef4b5461e0",
+ "bytes": 24767,
+ "source_url": "https://github.com/NVlabs/sionna/blob/04ddb9312116b408093b9d3ad363a3df355093a6/src/sionna/phy/channel/tr38901/tdl.py"
+ },
+ {
+ "path": "src/sionna/phy/channel/utils.py",
+ "sha256": "aaa9e44304fa1429e3e52e962f358ea81e5ddb9e839d771124cf1824b1cb79ac",
+ "bytes": 65163,
+ "source_url": "https://github.com/NVlabs/sionna/blob/04ddb9312116b408093b9d3ad363a3df355093a6/src/sionna/phy/channel/utils.py"
+ },
+ {
+ "path": "src/sionna/phy/config.py",
+ "sha256": "1deaaa049db928e25702751b1bb845d40f2310ca17805d2388ce0d126a429882",
+ "bytes": 9857,
+ "source_url": "https://github.com/NVlabs/sionna/blob/04ddb9312116b408093b9d3ad363a3df355093a6/src/sionna/phy/config.py"
+ },
+ {
+ "path": "src/sionna/phy/fec/ldpc/decoding.py",
+ "sha256": "684be6a0699cfdff93001c9bd8a489aed6c5f2fda690034b94a6b8667eaa89be",
+ "bytes": 66527,
+ "source_url": "https://github.com/NVlabs/sionna/blob/04ddb9312116b408093b9d3ad363a3df355093a6/src/sionna/phy/fec/ldpc/decoding.py"
+ },
+ {
+ "path": "src/sionna/phy/fec/ldpc/encoding.py",
+ "sha256": "ae35ae6ed5c71a905fb4b3dc734bf50fdf0213d6c2483735e86e44991daa4ed3",
+ "bytes": 28298,
+ "source_url": "https://github.com/NVlabs/sionna/blob/04ddb9312116b408093b9d3ad363a3df355093a6/src/sionna/phy/fec/ldpc/encoding.py"
+ },
+ {
+ "path": "src/sionna/phy/mapping.py",
+ "sha256": "ac638527619e11691e31fb834aab1ff81706327bc250609e6419526d3ee32ae4",
+ "bytes": 65105,
+ "source_url": "https://github.com/NVlabs/sionna/blob/04ddb9312116b408093b9d3ad363a3df355093a6/src/sionna/phy/mapping.py"
+ }
+ ]
+ }
+ ],
+ "original_project": {
+ "library_archive_id": "libfile_c34620e1618c81918f4c0269c3dbaf52",
+ "files": [
+ {
+ "path": "ntn_ce/__init__.py",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "ntn_ce/analysis/__init__.py",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "ntn_ce/analysis/figures.py",
+ "sha256": "4474c259025f3631449379b292e46de0fd5adbc3fb9f2fdb5ffe15fc1b84db46"
+ },
+ {
+ "path": "ntn_ce/analysis/phase2_report.py",
+ "sha256": "96adfe7e4c4e7db29e23985c660005793c1d29661be200a4375ca5e3000b46fd"
+ },
+ {
+ "path": "ntn_ce/analysis/render_e6.py",
+ "sha256": "215b495450f26a1690a98ce852b5b694c9a3803dda68c780e857eda6c17cc0e2"
+ },
+ {
+ "path": "ntn_ce/analysis/stats.py",
+ "sha256": "365ede0bd6c251306d9448218d9b519006577464852fc5eb8f9686ba8cf9679b"
+ },
+ {
+ "path": "ntn_ce/analysis/tables.py",
+ "sha256": "015425b9c1645c2d0bb67d9469af8ca164d9ca1292759b22fb2e2395ce872677"
+ },
+ {
+ "path": "ntn_ce/analysis/theory_measures.py",
+ "sha256": "cebd4b25c1fade94eda1c0e36e652e901777e8783ef104b1fb1f6a42fceaee9a"
+ },
+ {
+ "path": "ntn_ce/baselines/__init__.py",
+ "sha256": "4310d13fd55da4e1981f93435a79356c572b196adb782432cba2f6a20e6e23c9"
+ },
+ {
+ "path": "ntn_ce/baselines/adapters.py",
+ "sha256": "b40fe56aee4c69dfdbf5aecf156008bdb7718aa44ff8fef54811fa2592445f0c"
+ },
+ {
+ "path": "ntn_ce/baselines/builtins.py",
+ "sha256": "6dcbde0f1bd007dcba57b4198f4e9140959f0e6135b3acb05250e9aa7fbe1d8f"
+ },
+ {
+ "path": "ntn_ce/baselines/channelformer.py",
+ "sha256": "0748f0304e5fc6fd7d5fcba52cf7b21abef07609fd67319ba388144a9ef4971e"
+ },
+ {
+ "path": "ntn_ce/baselines/driver.py",
+ "sha256": "dedc1300562e0f65518b32a2f20a85231389bc78cd50ed8247ffd41a86ce6337"
+ },
+ {
+ "path": "ntn_ce/baselines/edfors.py",
+ "sha256": "a6ace212db9d972a156193a443b6999de55b8f9ca557c0d69b369f4656998e81"
+ },
+ {
+ "path": "ntn_ce/baselines/experiment.py",
+ "sha256": "02d78d53e4ae2265bf1a568caf988da6921df16ec41d63247fc2969479e506ee"
+ },
+ {
+ "path": "ntn_ce/baselines/macs.py",
+ "sha256": "4a19e98bbbeb85ba6d2b2185a5380f076320afb37ba6acb7fcbdde07b3007e4d"
+ },
+ {
+ "path": "ntn_ce/baselines/mdelan.py",
+ "sha256": "da2a86d4108fa9e1f1d4b41292f5d70057c72ec20471904f2745d78ff0d8c59a"
+ },
+ {
+ "path": "ntn_ce/baselines/reesnet.py",
+ "sha256": "b5dfff61e1a21d1b379b67f87d4d8caf4b22393c91fc62b122c93aee8b23e590"
+ },
+ {
+ "path": "ntn_ce/baselines/registry.py",
+ "sha256": "dbf36ca5106fcad6fd10e03c37d06e483e7fa11d65770d99fb06a242262cbc72"
+ },
+ {
+ "path": "ntn_ce/config/__init__.py",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "ntn_ce/config/loader.py",
+ "sha256": "eca3e9bdd768cbae8dbfa6b12c68be0bf45fe02a673f3db83f036372924a8ffc"
+ },
+ {
+ "path": "ntn_ce/config/schema.py",
+ "sha256": "640f39eed905c4aad9df797b10e94198fe0531221317fae4b7081ade36041822"
+ },
+ {
+ "path": "ntn_ce/data/__init__.py",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "ntn_ce/data/generator.py",
+ "sha256": "dda7ef3882337678a312d732efc4efc50393f61d1e97d15b4f716a8bd0f35676"
+ },
+ {
+ "path": "ntn_ce/estimators/__init__.py",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "ntn_ce/estimators/base.py",
+ "sha256": "5fe824beb0ae8ee1bdd617274363f8dd36308df4cc846797189a9c77a5e51c60"
+ },
+ {
+ "path": "ntn_ce/estimators/base_residual.py",
+ "sha256": "ca6dc18b9f04160bde1ca265d9bd5fe46d9e3e4f5401d7311a57f5e60b7d1a25"
+ },
+ {
+ "path": "ntn_ce/estimators/bem/__init__.py",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "ntn_ce/estimators/bem/bases.py",
+ "sha256": "1f4c2bd00c5c2b0769605c46b7b21bc44d7c3e1c5cb9d0b002a6c7b09e8e6c10"
+ },
+ {
+ "path": "ntn_ce/estimators/bem/physics.py",
+ "sha256": "527244256c0029529af1677382f21080f1c82f51304f9191365ec42e211c9109"
+ },
+ {
+ "path": "ntn_ce/estimators/bem_lmmse.py",
+ "sha256": "dfb8bb8c5704af7346bb9a8fdc4bcb98d12f8437dbf0c286371f49bbbd200323"
+ },
+ {
+ "path": "ntn_ce/estimators/edfors_svd.py",
+ "sha256": "bf0b2a2aec1ab3100665cd5c6a7b9738df7e5c60a805f5829640c7331967ee5d"
+ },
+ {
+ "path": "ntn_ce/estimators/factory.py",
+ "sha256": "778f490e421648dadbb73c863a1258ff491d7d7eaf0967bd8e3d36dfc4ddec78"
+ },
+ {
+ "path": "ntn_ce/estimators/genie_lmmse.py",
+ "sha256": "fd417500915b022cec4865239f934dc4dcb9aea61c10176bec3213cbe1568c34"
+ },
+ {
+ "path": "ntn_ce/estimators/ls.py",
+ "sha256": "bf1b7faf6b8fb6e7998523a47f415b32eeaa2b8e09cfcd176bd4d05a9c301934"
+ },
+ {
+ "path": "ntn_ce/estimators/neural.py",
+ "sha256": "b087bd06f88ed692610a28c82bfaef1c5011f0ee2f34e20c3b43359d4001385a"
+ },
+ {
+ "path": "ntn_ce/estimators/residual.py",
+ "sha256": "867af7560ba57940d9e5b8c04540cefd13fb0be9ea4d8b0ca6caca0d64aa969d"
+ },
+ {
+ "path": "ntn_ce/evaluation/__init__.py",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "ntn_ce/evaluation/complexity.py",
+ "sha256": "5936d7e07b159b07f47110322f54323581c4c3e06c1c701a38ef1e788c342cf6"
+ },
+ {
+ "path": "ntn_ce/evaluation/evaluator.py",
+ "sha256": "4712cb839436a1c5a47e13038759e1a9e4887d2b8cde8675c63331e4fb02ef59"
+ },
+ {
+ "path": "ntn_ce/evaluation/multi_evaluator.py",
+ "sha256": "81a41cd55001339dd909823e33d01f888109cbab9fa909ca8c1537e7bada4210"
+ },
+ {
+ "path": "ntn_ce/evaluation/report.py",
+ "sha256": "f80c8fa5ce31116385317702128ee7423d369bb8f6eb776a534228fa7ba51216"
+ },
+ {
+ "path": "ntn_ce/experiments/__init__.py",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "ntn_ce/experiments/ablation.py",
+ "sha256": "2f91bb9477603aed77c6a1fc21d80adb091aa3388942720d2deeb482aad2aba3"
+ },
+ {
+ "path": "ntn_ce/experiments/checkpoint_provenance.py",
+ "sha256": "75808e83cb667cee45ecf1a439f325f6bee15aac641c153fedf88ec20ad972af"
+ },
+ {
+ "path": "ntn_ce/experiments/e10_ood.py",
+ "sha256": "2b0f25a119e82cd8556a4ffa409bba0c3d4cce7166b76f05147d4638bbc68fd6"
+ },
+ {
+ "path": "ntn_ce/experiments/e6_sota.py",
+ "sha256": "758e5b1235f0b891aad47a8ed624f665b5d1ed51ac84e465b2c4ecbb616246eb"
+ },
+ {
+ "path": "ntn_ce/experiments/e7_channelformer.py",
+ "sha256": "bdc499376fe0afa74ee1fc6027bbcc663dd228c37d41607a5d3ddc4c456f1141"
+ },
+ {
+ "path": "ntn_ce/experiments/e8_e9_theory.py",
+ "sha256": "cdabf78760725797b19da2f70e8429900135e5dc037c9bbd44ce83c50c2c94fb"
+ },
+ {
+ "path": "ntn_ce/experiments/eval_estimators.py",
+ "sha256": "a5260533f8823db0f720406b42bd51ffb618a862a7cb3e0cceb41b4255cbd9ff"
+ },
+ {
+ "path": "ntn_ce/experiments/eval_genie.py",
+ "sha256": "7c4db37d1920e7637cdce716fee690e735f7cddf5cac71904f366b2919cdc6e3"
+ },
+ {
+ "path": "ntn_ce/experiments/eval_h1.py",
+ "sha256": "63845d7224c3a23d8abfd33348521417ca4b40539e506e59678df21247dab9ab"
+ },
+ {
+ "path": "ntn_ce/experiments/eval_mse_ebn0.py",
+ "sha256": "060233acc46ea02284b3b4ab331bdc1caf701c208f2e368bc8283672b9dcd6cb"
+ },
+ {
+ "path": "ntn_ce/experiments/make_figures.py",
+ "sha256": "159a7ffda4950ee620a4facd9e4dc6dd42280886d20c33ed2b6e208751e32801"
+ },
+ {
+ "path": "ntn_ce/experiments/multiseed.py",
+ "sha256": "b6c8689816f528534054fbfb2edeee82adfe0dbca6df85e269aabd589c92187b"
+ },
+ {
+ "path": "ntn_ce/experiments/ood.py",
+ "sha256": "beac6ef7cc35ddcb2de7f803f9ca62b88a3b2199bc19510f42e25cbb88c1cf2c"
+ },
+ {
+ "path": "ntn_ce/experiments/train_hybrid.py",
+ "sha256": "493bb27ecb641b5bd19dc238eced06aee75c0848d923879258680d3e912bacc5"
+ },
+ {
+ "path": "ntn_ce/experiments/train_residual.py",
+ "sha256": "18d71bbfa7d3e9125320b82a8b42187203d528140e5eece99da0ba477fb24a70"
+ },
+ {
+ "path": "ntn_ce/models/__init__.py",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "ntn_ce/models/base.py",
+ "sha256": "711a4ba831f92c48174f4eb6e16959f7cb487c5bd9d9cd7b3662c1dd3c0d4e9c"
+ },
+ {
+ "path": "ntn_ce/models/channelformer.py",
+ "sha256": "c9458cb6d9ca44ea7f10571e4276bb02b4d7d84029c3f56732bc9d95fa854162"
+ },
+ {
+ "path": "ntn_ce/models/hybrid_cnn_lstm.py",
+ "sha256": "699b42d2c1eba5cde68df084ff3cca768619124b3785708edcdac7f8a2623ef4"
+ },
+ {
+ "path": "ntn_ce/models/mdelan.py",
+ "sha256": "d12b91838169423d2211b36d7fd86b4cb4b4f97db54c82796b5872ad731870cb"
+ },
+ {
+ "path": "ntn_ce/models/reesnet.py",
+ "sha256": "fc435e4d1200262e129eb5f307be856a2ab9d47b9807b7e222d4d5632544c685"
+ },
+ {
+ "path": "ntn_ce/phy/__init__.py",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "ntn_ce/phy/channel.py",
+ "sha256": "b1e66aa62bb1bba3246f2f2b8de623a6d5fc921f973edd41bbd47841cd088eaf"
+ },
+ {
+ "path": "ntn_ce/phy/dmrs.py",
+ "sha256": "b257e4d12f8a4483df1c98038d766066795c96c5ceb8f5b04117bcf59f91a7d5"
+ },
+ {
+ "path": "ntn_ce/phy/estimators/__init__.py",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "ntn_ce/phy/estimators/ls_spline.py",
+ "sha256": "4cdb3ceaeea1fe475b1b19657a20d6bcf0840d9f51b32942b67023fa57c1ed01"
+ },
+ {
+ "path": "ntn_ce/phy/link.py",
+ "sha256": "c3f8999627eb0b0ec982cbe19eca5b3f68ba45327cace9c1f897b7bcc959318b"
+ },
+ {
+ "path": "ntn_ce/phy/resource_grid.py",
+ "sha256": "ea54a2ccd12074d5df9b286d2b3321da55895281eb247cdf1b879b911114fb2f"
+ },
+ {
+ "path": "ntn_ce/training/__init__.py",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "ntn_ce/training/loss.py",
+ "sha256": "847d5c8dd26a04b10bb214b112a6160ee8e4de5f7538d12d0c9654a717f73db6"
+ },
+ {
+ "path": "ntn_ce/training/recipes.py",
+ "sha256": "aa9d7acdeca1ff144c437f788b6daf6c063c75a1af73af2c566ece70ebe75400"
+ },
+ {
+ "path": "ntn_ce/training/schedule.py",
+ "sha256": "45e126ab3f3cfd7a5d08dc87669f725018716ad5a488ffdb3b087bb38f3feec8"
+ },
+ {
+ "path": "ntn_ce/training/trainer.py",
+ "sha256": "ea423a3173013a289d37a323defc7b2d834ebfbb7218d4553ec2829507a1a799"
+ },
+ {
+ "path": "ntn_ce/utils/__init__.py",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "ntn_ce/utils/checkpoint.py",
+ "sha256": "e6259ff05afe6460adb570546856b64f694d54a2cf08a7ca2c60eaaa9e32ebcd"
+ },
+ {
+ "path": "ntn_ce/utils/logging.py",
+ "sha256": "bd33ca11fe9ae71b64f28d1924cd3536289980b672b93033f845084a355ff660"
+ },
+ {
+ "path": "ntn_ce/utils/metrics.py",
+ "sha256": "8f764713aa7194b02e8a40aed3314c5ad9daa0eb6d8d8d617d7845777268af2b"
+ },
+ {
+ "path": "ntn_ce/utils/seeding.py",
+ "sha256": "25bc4c63a25b1f19ba599f9bfbfedd5ba539df142482e8cd2ceca5a95c0b7061"
+ }
+ ]
+ },
+ "HELENA_serialized_configuration": {
+ "module": "keras.src.engine.functional",
+ "class_name": "Functional",
+ "config": {
+ "name": "HELENA",
+ "trainable": true,
+ "layers": [
+ {
+ "module": "keras.layers",
+ "class_name": "InputLayer",
+ "config": {
+ "batch_input_shape": [
+ null,
+ 612,
+ 14,
+ 2
+ ],
+ "dtype": "float32",
+ "sparse": false,
+ "ragged": false,
+ "name": "input_1"
+ },
+ "registered_name": null,
+ "name": "input_1",
+ "inbound_nodes": []
+ },
+ {
+ "module": "keras.layers",
+ "class_name": "Conv2D",
+ "config": {
+ "name": "conv2d",
+ "trainable": true,
+ "dtype": "float32",
+ "filters": 32,
+ "kernel_size": [
+ 12,
+ 2
+ ],
+ "strides": [
+ 1,
+ 1
+ ],
+ "padding": "same",
+ "data_format": "channels_last",
+ "dilation_rate": [
+ 1,
+ 1
+ ],
+ "groups": 1,
+ "activation": "relu",
+ "use_bias": true,
+ "kernel_initializer": {
+ "module": "keras.initializers",
+ "class_name": "GlorotUniform",
+ "config": {
+ "seed": null
+ },
+ "registered_name": null
+ },
+ "bias_initializer": {
+ "module": "keras.initializers",
+ "class_name": "Zeros",
+ "config": {},
+ "registered_name": null
+ },
+ "kernel_regularizer": null,
+ "bias_regularizer": null,
+ "activity_regularizer": null,
+ "kernel_constraint": null,
+ "bias_constraint": null
+ },
+ "registered_name": null,
+ "build_config": {
+ "input_shape": [
+ null,
+ 612,
+ 14,
+ 2
+ ]
+ },
+ "name": "conv2d",
+ "inbound_nodes": [
+ [
+ [
+ "input_1",
+ 0,
+ 0,
+ {}
+ ]
+ ]
+ ]
+ },
+ {
+ "module": "keras.layers",
+ "class_name": "Conv2D",
+ "config": {
+ "name": "conv2d_1",
+ "trainable": true,
+ "dtype": "float32",
+ "filters": 2,
+ "kernel_size": [
+ 6,
+ 7
+ ],
+ "strides": [
+ 1,
+ 1
+ ],
+ "padding": "same",
+ "data_format": "channels_last",
+ "dilation_rate": [
+ 1,
+ 1
+ ],
+ "groups": 1,
+ "activation": "relu",
+ "use_bias": true,
+ "kernel_initializer": {
+ "module": "keras.initializers",
+ "class_name": "GlorotUniform",
+ "config": {
+ "seed": null
+ },
+ "registered_name": null
+ },
+ "bias_initializer": {
+ "module": "keras.initializers",
+ "class_name": "Zeros",
+ "config": {},
+ "registered_name": null
+ },
+ "kernel_regularizer": null,
+ "bias_regularizer": null,
+ "activity_regularizer": null,
+ "kernel_constraint": null,
+ "bias_constraint": null
+ },
+ "registered_name": null,
+ "build_config": {
+ "input_shape": [
+ null,
+ 612,
+ 14,
+ 32
+ ]
+ },
+ "name": "conv2d_1",
+ "inbound_nodes": [
+ [
+ [
+ "conv2d",
+ 0,
+ 0,
+ {}
+ ]
+ ]
+ ]
+ },
+ {
+ "module": "keras.layers",
+ "class_name": "Dropout",
+ "config": {
+ "name": "dropout",
+ "trainable": true,
+ "dtype": "float32",
+ "rate": 0.1,
+ "noise_shape": null,
+ "seed": null
+ },
+ "registered_name": null,
+ "build_config": {
+ "input_shape": [
+ null,
+ 612,
+ 14,
+ 2
+ ]
+ },
+ "name": "dropout",
+ "inbound_nodes": [
+ [
+ [
+ "conv2d_1",
+ 0,
+ 0,
+ {}
+ ]
+ ]
+ ]
+ },
+ {
+ "module": "keras.layers",
+ "class_name": "Reshape",
+ "config": {
+ "name": "reshape",
+ "trainable": true,
+ "dtype": "float32",
+ "target_shape": [
+ 51,
+ 336
+ ]
+ },
+ "registered_name": null,
+ "build_config": {
+ "input_shape": [
+ null,
+ 612,
+ 14,
+ 2
+ ]
+ },
+ "name": "reshape",
+ "inbound_nodes": [
+ [
+ [
+ "dropout",
+ 0,
+ 0,
+ {}
+ ]
+ ]
+ ]
+ },
+ {
+ "module": "keras.layers",
+ "class_name": "Dense",
+ "config": {
+ "name": "dense",
+ "trainable": true,
+ "dtype": "float32",
+ "units": 64,
+ "activation": "linear",
+ "use_bias": true,
+ "kernel_initializer": {
+ "module": "keras.initializers",
+ "class_name": "GlorotUniform",
+ "config": {
+ "seed": null
+ },
+ "registered_name": null
+ },
+ "bias_initializer": {
+ "module": "keras.initializers",
+ "class_name": "Zeros",
+ "config": {},
+ "registered_name": null
+ },
+ "kernel_regularizer": null,
+ "bias_regularizer": null,
+ "activity_regularizer": null,
+ "kernel_constraint": null,
+ "bias_constraint": null
+ },
+ "registered_name": null,
+ "build_config": {
+ "input_shape": [
+ null,
+ 51,
+ 336
+ ]
+ },
+ "name": "dense",
+ "inbound_nodes": [
+ [
+ [
+ "reshape",
+ 0,
+ 0,
+ {}
+ ]
+ ]
+ ]
+ },
+ {
+ "module": "keras.layers",
+ "class_name": "MultiHeadAttention",
+ "config": {
+ "name": "multi_head_attention",
+ "trainable": true,
+ "dtype": "float32",
+ "num_heads": 4,
+ "key_dim": 64,
+ "value_dim": 64,
+ "dropout": 0.0,
+ "use_bias": true,
+ "output_shape": null,
+ "attention_axes": [
+ 1
+ ],
+ "kernel_initializer": {
+ "module": "keras.initializers",
+ "class_name": "GlorotUniform",
+ "config": {
+ "seed": null
+ },
+ "registered_name": null
+ },
+ "bias_initializer": {
+ "module": "keras.initializers",
+ "class_name": "Zeros",
+ "config": {},
+ "registered_name": null
+ },
+ "kernel_regularizer": null,
+ "bias_regularizer": null,
+ "activity_regularizer": null,
+ "kernel_constraint": null,
+ "bias_constraint": null,
+ "query_shape": [
+ null,
+ 51,
+ 64
+ ],
+ "key_shape": [
+ null,
+ 51,
+ 64
+ ],
+ "value_shape": [
+ null,
+ 51,
+ 64
+ ]
+ },
+ "registered_name": null,
+ "build_config": {
+ "input_shape": [
+ null,
+ 51,
+ 64
+ ]
+ },
+ "name": "multi_head_attention",
+ "inbound_nodes": [
+ [
+ [
+ "dense",
+ 0,
+ 0,
+ {
+ "value": [
+ "dense",
+ 0,
+ 0
+ ]
+ }
+ ]
+ ]
+ ]
+ },
+ {
+ "module": "keras.layers",
+ "class_name": "Add",
+ "config": {
+ "name": "add",
+ "trainable": true,
+ "dtype": "float32"
+ },
+ "registered_name": null,
+ "build_config": {
+ "input_shape": [
+ [
+ null,
+ 51,
+ 64
+ ],
+ [
+ null,
+ 51,
+ 64
+ ]
+ ]
+ },
+ "name": "add",
+ "inbound_nodes": [
+ [
+ [
+ "dense",
+ 0,
+ 0,
+ {}
+ ],
+ [
+ "multi_head_attention",
+ 0,
+ 0,
+ {}
+ ]
+ ]
+ ]
+ },
+ {
+ "module": "keras.layers",
+ "class_name": "LayerNormalization",
+ "config": {
+ "name": "layer_normalization",
+ "trainable": true,
+ "dtype": "float32",
+ "axis": [
+ 2
+ ],
+ "epsilon": 0.001,
+ "center": true,
+ "scale": true,
+ "beta_initializer": {
+ "module": "keras.initializers",
+ "class_name": "Zeros",
+ "config": {},
+ "registered_name": null
+ },
+ "gamma_initializer": {
+ "module": "keras.initializers",
+ "class_name": "Ones",
+ "config": {},
+ "registered_name": null
+ },
+ "beta_regularizer": null,
+ "gamma_regularizer": null,
+ "beta_constraint": null,
+ "gamma_constraint": null
+ },
+ "registered_name": null,
+ "build_config": {
+ "input_shape": [
+ null,
+ 51,
+ 64
+ ]
+ },
+ "name": "layer_normalization",
+ "inbound_nodes": [
+ [
+ [
+ "add",
+ 0,
+ 0,
+ {}
+ ]
+ ]
+ ]
+ },
+ {
+ "module": "keras.src.layers.core.tf_op_layer",
+ "class_name": "TFOpLambda",
+ "config": {
+ "name": "tf.math.reduce_mean",
+ "trainable": true,
+ "dtype": "float32",
+ "function": "math.reduce_mean"
+ },
+ "registered_name": "TFOpLambda",
+ "build_config": {
+ "input_shape": [
+ null,
+ 51,
+ 64
+ ]
+ },
+ "name": "tf.math.reduce_mean",
+ "inbound_nodes": [
+ [
+ "layer_normalization",
+ 0,
+ 0,
+ {
+ "axis": 1,
+ "keepdims": true
+ }
+ ]
+ ]
+ },
+ {
+ "module": "keras.layers",
+ "class_name": "Dense",
+ "config": {
+ "name": "dense_1",
+ "trainable": true,
+ "dtype": "float32",
+ "units": 16,
+ "activation": "relu",
+ "use_bias": true,
+ "kernel_initializer": {
+ "module": "keras.initializers",
+ "class_name": "GlorotUniform",
+ "config": {
+ "seed": null
+ },
+ "registered_name": null
+ },
+ "bias_initializer": {
+ "module": "keras.initializers",
+ "class_name": "Zeros",
+ "config": {},
+ "registered_name": null
+ },
+ "kernel_regularizer": null,
+ "bias_regularizer": null,
+ "activity_regularizer": null,
+ "kernel_constraint": null,
+ "bias_constraint": null
+ },
+ "registered_name": null,
+ "build_config": {
+ "input_shape": [
+ null,
+ 1,
+ 64
+ ]
+ },
+ "name": "dense_1",
+ "inbound_nodes": [
+ [
+ [
+ "tf.math.reduce_mean",
+ 0,
+ 0,
+ {}
+ ]
+ ]
+ ]
+ },
+ {
+ "module": "keras.layers",
+ "class_name": "Dense",
+ "config": {
+ "name": "dense_2",
+ "trainable": true,
+ "dtype": "float32",
+ "units": 64,
+ "activation": "sigmoid",
+ "use_bias": true,
+ "kernel_initializer": {
+ "module": "keras.initializers",
+ "class_name": "GlorotUniform",
+ "config": {
+ "seed": null
+ },
+ "registered_name": null
+ },
+ "bias_initializer": {
+ "module": "keras.initializers",
+ "class_name": "Zeros",
+ "config": {},
+ "registered_name": null
+ },
+ "kernel_regularizer": null,
+ "bias_regularizer": null,
+ "activity_regularizer": null,
+ "kernel_constraint": null,
+ "bias_constraint": null
+ },
+ "registered_name": null,
+ "build_config": {
+ "input_shape": [
+ null,
+ 1,
+ 16
+ ]
+ },
+ "name": "dense_2",
+ "inbound_nodes": [
+ [
+ [
+ "dense_1",
+ 0,
+ 0,
+ {}
+ ]
+ ]
+ ]
+ },
+ {
+ "module": "keras.layers",
+ "class_name": "Multiply",
+ "config": {
+ "name": "multiply",
+ "trainable": true,
+ "dtype": "float32"
+ },
+ "registered_name": null,
+ "build_config": {
+ "input_shape": [
+ [
+ null,
+ 51,
+ 64
+ ],
+ [
+ null,
+ 1,
+ 64
+ ]
+ ]
+ },
+ "name": "multiply",
+ "inbound_nodes": [
+ [
+ [
+ "layer_normalization",
+ 0,
+ 0,
+ {}
+ ],
+ [
+ "dense_2",
+ 0,
+ 0,
+ {}
+ ]
+ ]
+ ]
+ },
+ {
+ "module": "keras.layers",
+ "class_name": "Dense",
+ "config": {
+ "name": "dense_3",
+ "trainable": true,
+ "dtype": "float32",
+ "units": 336,
+ "activation": "linear",
+ "use_bias": true,
+ "kernel_initializer": {
+ "module": "keras.initializers",
+ "class_name": "GlorotUniform",
+ "config": {
+ "seed": null
+ },
+ "registered_name": null
+ },
+ "bias_initializer": {
+ "module": "keras.initializers",
+ "class_name": "Zeros",
+ "config": {},
+ "registered_name": null
+ },
+ "kernel_regularizer": null,
+ "bias_regularizer": null,
+ "activity_regularizer": null,
+ "kernel_constraint": null,
+ "bias_constraint": null
+ },
+ "registered_name": null,
+ "build_config": {
+ "input_shape": [
+ null,
+ 51,
+ 64
+ ]
+ },
+ "name": "dense_3",
+ "inbound_nodes": [
+ [
+ [
+ "multiply",
+ 0,
+ 0,
+ {}
+ ]
+ ]
+ ]
+ },
+ {
+ "module": "keras.layers",
+ "class_name": "Reshape",
+ "config": {
+ "name": "reshape_1",
+ "trainable": true,
+ "dtype": "float32",
+ "target_shape": [
+ 612,
+ 14,
+ 2
+ ]
+ },
+ "registered_name": null,
+ "build_config": {
+ "input_shape": [
+ null,
+ 51,
+ 336
+ ]
+ },
+ "name": "reshape_1",
+ "inbound_nodes": [
+ [
+ [
+ "dense_3",
+ 0,
+ 0,
+ {}
+ ]
+ ]
+ ]
+ },
+ {
+ "module": "keras.layers",
+ "class_name": "Add",
+ "config": {
+ "name": "add_1",
+ "trainable": true,
+ "dtype": "float32"
+ },
+ "registered_name": null,
+ "build_config": {
+ "input_shape": [
+ [
+ null,
+ 612,
+ 14,
+ 2
+ ],
+ [
+ null,
+ 612,
+ 14,
+ 2
+ ]
+ ]
+ },
+ "name": "add_1",
+ "inbound_nodes": [
+ [
+ [
+ "input_1",
+ 0,
+ 0,
+ {}
+ ],
+ [
+ "reshape_1",
+ 0,
+ 0,
+ {}
+ ]
+ ]
+ ]
+ }
+ ],
+ "input_layers": [
+ [
+ "input_1",
+ 0,
+ 0
+ ]
+ ],
+ "output_layers": [
+ [
+ "add_1",
+ 0,
+ 0
+ ]
+ ]
+ },
+ "registered_name": "Functional",
+ "build_config": {
+ "input_shape": [
+ null,
+ 612,
+ 14,
+ 2
+ ]
+ },
+ "compile_config": {
+ "optimizer": {
+ "module": "keras.optimizers",
+ "class_name": "Adam",
+ "config": {
+ "name": "Adam",
+ "weight_decay": null,
+ "clipnorm": null,
+ "global_clipnorm": null,
+ "clipvalue": null,
+ "use_ema": false,
+ "ema_momentum": 0.99,
+ "ema_overwrite_frequency": null,
+ "jit_compile": true,
+ "is_legacy_optimizer": false,
+ "learning_rate": 0.00032768002711236477,
+ "beta_1": 0.9,
+ "beta_2": 0.999,
+ "epsilon": 1e-07,
+ "amsgrad": false
+ },
+ "registered_name": null
+ },
+ "loss": "mse",
+ "metrics": [
+ "mae"
+ ],
+ "loss_weights": null,
+ "weighted_metrics": null,
+ "run_eagerly": null,
+ "steps_per_execution": null,
+ "jit_compile": null
+ }
+ },
+ "Channelformer_selected_checkpoint": {
+ "file": "parameters_frame_3_decode.mat",
+ "heads": 2,
+ "encoder_blocks": 1,
+ "decoder_blocks": 3,
+ "native_forward_parity": "not performed; mandatory independent operator checks specified; no native parity claim"
+ },
+ "conflict_resolutions": {
+ "FortiTran": "Released upsampler 136080 parameters exceeds historical approximately 0.12M entire model count; label released-code variant",
+ "HELENA": "4 heads, each key/value dimension 64; preserve serialized QKV projections and epsilon 0.001",
+ "Channelformer": "selected 2-head/3-decoder offline variant; do not combine HA03 or 6-head scripts",
+ "reference_generator": "canonical independent Python reproduction; historical MATLAB numerical replication unverified",
+ "ReEsNet": "supplied project adaptation; original-author parity not certified",
+ "Sionna": "2.0.1 PyTorch engine requires torch>=2.9.1; isolated revision environment"
+ },
+ "bibliography": {
+ "filename": "PACE_Phase1_References.bib",
+ "sha256": "87cd065dffa6cc846bc60fa8e8632c1f9b07749570dca6115281121b95e8c252",
+ "citation_keys": [
+ "guler2025adafortitran",
+ "camelo2026helena",
+ "liu2025pdcevit",
+ "wang2026adagpmt",
+ "qi2026dance",
+ "shi2026perl",
+ "pratik2025requestnet",
+ "chen2025continual",
+ "wang2026extrapolation",
+ "okoyeigbo2026chanest",
+ "nie2026delaydoppler",
+ "li2020reesnet",
+ "luan2023channelformer",
+ "liu2023cevit",
+ "zemen2005dpss",
+ "mathworks_nrtdlchannel",
+ "mathworks_nrofdminfo",
+ "edfors1998svd"
+ ]
+ },
+ "protocol_sha256": "b754df9fad1d2967aea20741926caaba0a99df248a9e0414d8ab345a06de6e72",
+ "config_sha256": "f238850ca3d81b076f182f7737542df9147005abf6ec2e410f65f0b2091d912e"
+}
diff --git a/pace_revision_2/pyproject.toml b/pace_revision_2/pyproject.toml
new file mode 100644
index 0000000000000000000000000000000000000000..0c0fa197aab69b3509d02e44a8f3b59f03fbe9c3
--- /dev/null
+++ b/pace_revision_2/pyproject.toml
@@ -0,0 +1,17 @@
+[build-system]
+requires = ["setuptools>=68"]
+build-backend = "setuptools.build_meta"
+[project]
+name = "pace-revision"
+version = "3.0.0"
+requires-python = ">=3.11"
+dependencies = ["numpy==2.2.6", "scipy==1.15.3", "h5py==3.15.1", "matplotlib==3.10.8", "importlib-resources==6.5.2", "pandas>=2.2,<3", "tqdm>=4.66", "fsspec>=2025.2", "pydantic>=2,<3", "pyyaml>=6"]
+[project.optional-dependencies]
+test = ["pytest>=8"]
+notebook = ["marimo>=0.18"]
+[project.scripts]
+pace = "pace.cli:main"
+[tool.setuptools.packages.find]
+include = ["pace*"]
+[tool.setuptools.package-data]
+pace = ["tables/*.json"]
diff --git a/pace_revision_2/repair_backups/cuda_device_fix/pace/physics.py b/pace_revision_2/repair_backups/cuda_device_fix/pace/physics.py
new file mode 100644
index 0000000000000000000000000000000000000000..44b54e04670e58c473b7f0aa09ba4c0bc8aebf7f
--- /dev/null
+++ b/pace_revision_2/repair_backups/cuda_device_fix/pace/physics.py
@@ -0,0 +1,70 @@
+"""Exact within-CP LTV operator; pinned Sionna supplies path gains."""
+import numpy as np
+from .config import seed,Condition
+PILOT=(1+1j)/np.sqrt(2)
+
+class Channel:
+ def __init__(self,grid,device='cpu'):
+ self.grid=grid;self.device=device;self.models={}
+ def paths(self,condition,bank,family,i):
+ import torch
+ from sionna.phy import config
+ from sionna.phy.channel.tr38901 import TDL
+ key=condition.key
+ if key not in self.models:
+ v=condition.fd*299792458/2e9
+ self.models[key]=TDL(condition.profile,delay_spread=condition.ds_ns*1e-9,carrier_frequency=2e9,min_speed=v,max_speed=v,num_sinusoids=32,precision='double',device=self.device)
+ config.seed=seed(bank,family,i,'channel')
+ with torch.no_grad():
+ a,tau=self.models[key](batch_size=1,num_time_steps=int(sum(self.grid.cp+self.grid.N)),sampling_frequency=self.grid.fs)
+ a=a.reshape(-1,a.shape[-1]).detach().cpu().numpy();tau=tau.reshape(-1).detach().cpu().numpy()
+ if max(tau)>=min(self.grid.cp)/self.grid.fs:raise ValueError('CP exceeded: continuous ISI implementation required')
+ useful=np.stack([a[:,s:s+self.grid.N] for s in self.grid.starts])
+ return useful,tau
+
+def label(a,tau,g):
+ phase=np.exp(-2j*np.pi*g.active[:,None]*g.scs*tau[None,:])
+ return a.mean(-1)@phase.T
+
+def waveform(x,a,tau,g):
+ bins=np.fft.fftfreq(g.N)*g.N
+ phase=np.exp(-2j*np.pi*bins[None,:]*g.scs*tau[:,None])
+ full=np.zeros((g.S,g.N),complex);full[:,g.active%g.N]=x
+ delayed=np.fft.ifft(full[:,None,:]*phase[None,:,:],axis=-1,norm='ortho')
+ y=np.fft.fft((delayed*a).sum(1),axis=-1,norm='ortho')
+ return y[:,g.active%g.N]
+
+def operator(a,tau,g,s):
+ # Full FFT-domain G, with actual unshifted FFT-bin ordering.
+ phase=np.exp(-2j*np.pi*(np.fft.fftfreq(g.N)*g.N)[None,:]*g.scs*tau[:,None])
+ delta=(np.arange(g.N)[:,None]-np.arange(g.N)[None,:])%g.N
+ spectrum=np.fft.fft(a[s],axis=-1)/g.N
+ return np.sum(spectrum[:,delta]*phase[:,None,:],axis=0)
+
+def random_grid(g,rng):
+ amp=np.array([-3,-1,3,1])/np.sqrt(10)
+ x=amp[rng.integers(0,4,(g.S,g.F))]+1j*amp[rng.integers(0,4,(g.S,g.F))]
+ x[g.mask]=PILOT;return x
+
+def sample(recipe,bank,i,condition=None,device='cpu',engine=None):
+ g=recipe.grid
+ # Physical family excludes fd and mode: Doppler and DIAG/WAVE pairs share latent paths.
+ c=condition or recipe.source
+ if condition is None and (recipe.broad or recipe.reference):
+ rng=np.random.default_rng(seed(bank,recipe.name,i,'settings'))
+ if recipe.reference:c=Condition('A',float(rng.choice(np.arange(25,301,25))),float(rng.choice(np.arange(50,1001,50))))
+ else:c=Condition(str(rng.choice(['A','C'])),float(rng.choice([100,300])),float(rng.choice([10,100,500])))
+ family=f'{g.scs:g}:{g.comb}:{g.pilot_symbols}:{c.profile}:{c.ds_ns:g}'
+ # Different source domains/bank recipes must be disjoint, while their TEST draws stay paired.
+ bankkey=bank if bank in ('TEST','QC','RECEIVER') else f'{recipe.name}:{bank}'
+ a,tau=(engine or Channel(g,device)).paths(c,bankkey,family,i)
+ h=label(a,tau,g)
+ rng=np.random.default_rng(seed(bankkey,family,i,'data_bits'));x=random_grid(g,rng)
+ y0=h*x if recipe.mode=='DIAG' else waveform(x,a,tau,g)
+ rng=np.random.default_rng(seed(bankkey,family,i,'pilot_noise'))
+ noise=(rng.standard_normal(g.P)+1j*rng.standard_normal(g.P))/np.sqrt(2)
+ z0=y0.reshape(-1)[g.pilots]/PILOT
+ # Balanced source strata are fixed; reference recipe samples SNR independently.
+ snr=float((0,5,10,15,20,25)[i%6])
+ if recipe.reference:snr=float(rng.choice([0,5,10,15,20,25]))
+ return dict(h=h.astype(np.complex64),z0=z0.astype(np.complex64),noise=noise.astype(np.complex64),snr=np.float32(snr),fd=np.float32(c.fd),ds=np.float32(c.ds_ns),profile=np.int8(c.profile=='C'),id=np.int64(i))
diff --git a/pace_revision_2/repair_backups/cuda_device_fix/pace/receiver.py b/pace_revision_2/repair_backups/cuda_device_fix/pace/receiver.py
new file mode 100644
index 0000000000000000000000000000000000000000..754ba634dabd065870844d257ea86fd3e9b910d6
--- /dev/null
+++ b/pace_revision_2/repair_backups/cuda_device_fix/pace/receiver.py
@@ -0,0 +1,117 @@
+from pathlib import Path
+import numpy as np
+import torch
+from .config import Condition,seed
+from .physics import Channel,label,waveform,operator,PILOT
+from .io import atomic_npz,atomic_json,read_json,sha
+from .classical import gains
+from .training import load_model,move
+from .experiments import recipes
+
+class Codec:
+ def __init__(self,device='cpu'):
+ from sionna.phy.fec.ldpc import LDPC5GEncoder,LDPC5GDecoder
+ self.device=device
+ self.encoder=LDPC5GEncoder(k=3200,n=6400,num_bits_per_symbol=4,bg='bg2',precision='single',device=device)
+ self.decoder=LDPC5GDecoder(self.encoder,cn_update='boxplus-phi',vn_update='sum',cn_schedule='flooding',hard_out=True,return_infobits=True,num_iter=40,llr_max=20,prune_pcm=True,return_state=False,harq_mode=False,precision='single',device=device)
+ assert self.encoder.z==320 and self.encoder.k==3200 and self.encoder.n==6400
+ def encode(self,bits):
+ with torch.no_grad():return self.encoder(torch.as_tensor(bits,device=self.device,dtype=torch.float32))
+ def decode(self,llr):
+ with torch.no_grad():return self.decoder(llr.clamp(-20,20)).to(torch.int8)
+
+def constellation(mod,device):
+ m=4 if mod=='16qam' else 2;labels=((torch.arange(2**m,device=device)[:,None]>>torch.arange(m-1,-1,-1,device=device))&1).bool()
+ if mod=='16qam':
+ amp=torch.tensor([-3.,-1.,3.,1.],device=device)/np.sqrt(10);idx=labels.long();symbols=torch.complex(amp[2*idx[:,0]+idx[:,1]],amp[2*idx[:,2]+idx[:,3]])
+ else:symbols=torch.complex(1-2*labels[:,0].float(),1-2*labels[:,1].float())/np.sqrt(2)
+ return symbols,labels
+
+def map_bits(bits,mod):
+ points,_=constellation(mod,bits.device);m=4 if mod=='16qam' else 2;b=bits.long().reshape(len(bits),-1,m);idx=(b*2**torch.arange(m-1,-1,-1,device=b.device)).sum(-1);return points[idx]
+
+def app_llr(y,h,n0,mod='16qam'):
+ points,labels=constellation(mod,y.device);dist=-abs(y[...,None]-h[...,None]*points)**2/torch.as_tensor(n0,device=y.device)[...,None]
+ llr=torch.stack([torch.logsumexp(dist[...,labels[:,i]],-1)-torch.logsumexp(dist[...,~labels[:,i]],-1) for i in range(labels.shape[1])],-1)
+ llr=torch.where((abs(h)<1e-12)[...,None],0.,llr)
+ return llr.reshape(len(y),-1).clamp(-20,20)
+
+def receiver_bank(root,condition,snr,mode='WAVE',mod='16qam',frames=5000,device='cuda',shard=64):
+ r=recipes()['main'];g=r.grid;out=Path(root)/'receiver_banks'/mode/mod/condition.key/f'snr{snr:g}'
+ spec=dict(condition=condition.__dict__,snr=snr,mode=mode,mod=mod,frames=frames)
+ if (out/'manifest.json').exists():
+ old=read_json(out/'manifest.json')
+ if old['spec']!=spec:raise ValueError('Receiver bank configuration mismatch')
+ if any(sha(out/e['file'])!=e['sha256'] for e in old['shards']):raise RuntimeError('Receiver bank hash mismatch')
+ return out
+ engine=Channel(g,device);codec=Codec(device) if mod=='16qam' else None;entries=[]
+ family=f'{condition.profile}:{condition.ds_ns:g}'
+ for start in range(0,frames,shard):
+ file=out/f'{start:06d}.npz';rows=[];ids=range(start,min(start+shard,frames))
+ bits=np.stack([np.random.default_rng(seed('RECEIVER',family,i,f'{mod}_data_bits')).integers(0,2,3200,dtype=np.int8) for i in ids])
+ coded=codec.encode(bits) if codec else torch.tensor(bits,device=device);symbols=map_bits(coded,mod).cpu().numpy()
+ for j,i in enumerate(ids):
+ a,tau=engine.paths(condition,'RECEIVER',family,i);h=label(a,tau,g);x=np.full((g.S,g.F),PILOT,complex);x[~g.mask]=symbols[j]
+ y0=waveform(x,a,tau,g) if mode=='WAVE' else h*x
+ rng=np.random.default_rng(seed('RECEIVER',family,i,'waveform_noise'));nt=(rng.standard_normal((g.S,g.N))+1j*rng.standard_normal((g.S,g.N)))/np.sqrt(2)
+ nf=np.fft.fft(nt,axis=-1,norm='ortho')[:,g.active%g.N];y=y0+10**(-snr/20)*nf
+ rows.append(dict(h=h.astype(np.complex64),y=y.astype(np.complex64),bits=bits[j],id=np.int64(i)))
+ atomic_npz(file,**{k:np.stack([x[k] for x in rows]) for k in rows[0]});entries.append({'file':file.name,'sha256':sha(file),'n':len(rows)})
+ atomic_json(out/'manifest.json',dict(spec=spec,shards=entries));return out
+
+def evaluate_receiver(root,job=None,kind=None,source_recipe='main',device='cuda',frames=5000,modes=('WAVE',),modulations=('16qam','qpsk'),gate=None,gate_seed=None):
+ r=recipes()[source_recipe];g=r.grid
+ if job and job.get('anchor')=='oracle':raise ValueError('PH is a label oracle, excluded from receiver ranking')
+ model=load_model(root,job,device) if job else None;cov=np.load(Path(root)/'priors'/f'{source_recipe}.npz')['cov']
+ name=job['id'] if job else (kind if kind in ('perfect','full_G') else f'{source_recipe}_{kind}')
+ if gate:
+ from .interventions import parents
+ from .models import ResourceGate
+ d,a=[load_model(root,j,device) for j in parents(source_recipe,gate_seed)];folder=Path(root)/'gates'/source_recipe/str(gate_seed)
+ alpha=read_json(folder/'scalar.json')['alpha'];rg=ResourceGate().to(device);rg.load_state_dict(torch.load(folder/'best.pt',map_location=device,weights_only=True));rg.eval();name=f'{source_recipe}_{gate}_s{gate_seed}'
+ for fd in (10,100,500,1000):
+ condition=Condition(fd=fd);snrs=range(0,25,2) if fd in (10,100) else (0,5,10,15,20,25)
+ for snr in snrs:
+ if kind=='full_G' and (fd!=1000 or snr not in (10,20)):continue
+ for mode in modes:
+ for mod in modulations:
+ out=Path(root)/'receiver'/name/mode/mod/condition.key/f'snr{snr:g}'
+ if (out/'summary.json').exists():continue
+ bank=receiver_bank(root,condition,snr,mode,mod,frames,device);manifest=read_json(bank/'manifest.json');codec=Codec(device) if mod=='16qam' else None
+ K=None if model or gate or kind in ('perfect','full_G') else torch.tensor(gains(g,cov,r.bem,kind,10**(-snr/10)),device=device,dtype=torch.complex64)
+ rows=[];engine=Channel(g,device) if kind=='full_G' else None
+ with torch.no_grad():
+ for entry in manifest['shards']:
+ with np.load(bank/entry['file']) as raw:b={k:torch.as_tensor(raw[k],device=device) for k in raw.files}
+ z=b['y'].flatten(1)[:,g.pilots]/PILOT;n0=torch.full((len(z),),10**(-snr/10),device=device)
+ batch=dict(z=z,h=b['h'],n0=n0,snr=torch.full_like(n0,snr),ds=torch.full_like(n0,100),fd=torch.full_like(n0,fd))
+ if model:estimate=model(batch)
+ elif gate:
+ dp=d(batch);ap=a(batch)
+ if gate=='scalar':estimate=dp+alpha*(ap-dp)
+ else:
+ u,_,q=d.inputs(batch);mask=torch.tensor(g.mask,device=device,dtype=torch.float32)[None,None];estimate=rg(u,dp,ap,mask,q)[0]
+ elif kind in ('perfect','full_G'):estimate=b['h']
+ else:estimate=(z@K.T).reshape(-1,g.S,g.F)
+ ydata=b['y'][:,~g.mask];hdata=estimate[:,~g.mask]
+ if kind=='full_G':
+ ydata,variance=full_g_outputs(b,condition,engine,g,10**(-snr/10),device);hdata=torch.ones_like(ydata);noise=variance
+ else:noise=n0[:,None]
+ llr=app_llr(ydata,hdata,noise,mod);decoded=codec.decode(llr) if codec else (llr>0).to(torch.int8)
+ errors=(decoded!=b['bits']).sum(1);nmse_num=abs(estimate.to(torch.complex128)-b['h']).square().sum((1,2));nmse_den=abs(b['h'].to(torch.complex128)).square().sum((1,2))
+ rows.append(dict(id=b['id'].cpu().numpy(),bit_errors=errors.cpu().numpy(),block_errors=(errors>0).cpu().numpy(),bits=np.full(len(z),3200),nmse_error=nmse_num.cpu().numpy(),nmse_denominator=nmse_den.cpu().numpy()))
+ raw={k:np.concatenate([p[k] for p in rows]) for k in rows[0]};atomic_npz(out/'raw.npz',**raw)
+ errors=int(raw['block_errors'].sum());be=int(raw['bit_errors'].sum());n=len(raw['id']);p=errors/n;z95=1.95996398454;center=(p+z95*z95/(2*n))/(1+z95*z95/n);half=z95*np.sqrt(p*(1-p)/n+z95*z95/(4*n*n))/(1+z95*z95/n)
+ atomic_json(out/'summary.json',dict(name=name,source_recipe=source_recipe,fd=fd,snr=snr,mode=mode,modulation=mod,blocks=n,block_errors=errors,bit_errors=be,bler=p,ber=be/(n*3200),bler_low=center-half,bler_high=center+half,zero_error_upper=1-.05**(1/n) if errors==0 else None,smoke_only=frames!=5000))
+
+def full_g_outputs(batch,c,engine,g,n0,device):
+ outputs=[];variances=[];family=f'{c.profile}:{c.ds_ns:g}'
+ for index,i in enumerate(batch['id'].cpu().tolist()):
+ a,tau=engine.paths(c,'RECEIVER',family,i);ys=[];vs=[]
+ for s in range(g.S):
+ G=operator(a,tau,g,s)[np.ix_(g.active%g.N,g.active%g.N)];G=torch.tensor(G,device=device,dtype=torch.complex128);mask=torch.tensor(g.mask[s],device=device);GD=G[:,~mask]
+ y=batch['y'][index,s].to(torch.complex128)-G[:,mask].sum(1)*PILOT
+ W=torch.linalg.solve(GD.mH@GD+n0*torch.eye(GD.shape[1],device=device,dtype=torch.complex128),GD.mH)
+ bias=torch.diagonal(W@GD).real;safe=bias>1e-12;ys.append(torch.where(safe,(W@y)/bias.clamp_min(1e-12),0));vs.append(torch.where(safe,(1/bias.clamp_min(1e-12)-1).clamp_min(1e-12),1e12))
+ outputs.append(torch.cat(ys));variances.append(torch.cat(vs))
+ return torch.stack(outputs).to(torch.complex64),torch.stack(variances).float()
diff --git a/pace_revision_2/repair_backups/cuda_device_fix/scripts/run_all.py b/pace_revision_2/repair_backups/cuda_device_fix/scripts/run_all.py
new file mode 100644
index 0000000000000000000000000000000000000000..3142961d2db4cd09a7bc7468cb5ce7f2c5cdec87
--- /dev/null
+++ b/pace_revision_2/repair_backups/cuda_device_fix/scripts/run_all.py
@@ -0,0 +1,130 @@
+"""Synchronous, restartable full campaign. No background launch or shortened runs."""
+from pathlib import Path
+import argparse
+import fcntl
+import hashlib
+import json
+import os
+import subprocess
+import sys
+from datetime import datetime, timezone
+
+PROJECT = Path(__file__).resolve().parents[1]
+
+def timestamp():
+ return datetime.now(timezone.utc).isoformat()
+
+def write_json(path, data):
+ temporary = path.with_suffix('.tmp')
+ temporary.write_text(json.dumps(data, indent=2) + '\n')
+ temporary.replace(path)
+
+def fingerprint(project):
+ digest = hashlib.sha256()
+ paths = [project / 'pyproject.toml']
+ for folder in ('pace', 'scripts', 'tests', 'protocols', 'vendor'):
+ paths.extend(p for p in (project / folder).rglob('*')
+ if p.is_file() and '__pycache__' not in p.parts and p.suffix != '.pyc')
+ for path in sorted(paths):
+ digest.update(str(path.relative_to(project)).encode())
+ digest.update(path.read_bytes())
+ return digest.hexdigest()
+
+def commands(python, project, root):
+ cli = [str(python), '-u', '-m', 'pace.cli', '--root', str(root), '--device', 'cuda']
+ smoke = root.parent / (root.name + '_smoke')
+ stages = [('environment', [str(python), '-u', '-c',
+ 'import sys,torch,sionna,importlib.metadata as m; '
+ 'assert sys.version_info[:3]==(3,11,11), sys.version; '
+ 'assert torch.__version__.split("+")[0]=="2.9.1", torch.__version__; '
+ 'assert torch.version.cuda=="12.8", torch.version.cuda; '
+ 'assert m.version("sionna")=="2.0.1"; '
+ 'assert torch.cuda.is_available(), "CUDA GPU required"; '
+ 'x=torch.ones(16,device="cuda",requires_grad=True); (x*x).sum().backward(); '
+ 'torch.cuda.synchronize(); print(torch.__version__,torch.cuda.get_device_name())']),
+ ('unit_tests', [str(python), '-u', '-m', 'pytest', 'tests', '-q']),
+ ('smoke', [str(python), '-u', 'scripts/smoke.py', '--root', str(smoke), '--device', 'cuda']),
+ ('smoke_interventions', [str(python), '-u', 'scripts/smoke_interventions.py', '--root', str(smoke), '--device', 'cuda']),
+ ('init', cli + ['init']), ('qc', cli + ['qc'])]
+ for stage in ('fidelity', 'source', 'core', 'coverage', 'receivers', 'reports'):
+ stages.append((stage, [str(python), '-u', 'scripts/run_study.py', '--root', str(root),
+ '--device', 'cuda', '--stage', stage]))
+ stages.append(('benchmark', cli + ['benchmark', '--experiments', 'E01,E02', '--seeds', '41001']))
+ return stages
+
+def execute(command, log_path, project):
+ env = dict(os.environ, PYTHONUNBUFFERED='1', MPLBACKEND='Agg', CUBLAS_WORKSPACE_CONFIG=':4096:8')
+ # Inherit the launcher's process group, so cancelling the cell kills descendants too.
+ with log_path.open('a') as log:
+ process = subprocess.Popen(command, cwd=project, env=env, stdout=subprocess.PIPE,
+ stderr=subprocess.STDOUT, text=True, bufsize=1)
+ try:
+ for line in process.stdout:
+ log.write(line); log.flush()
+ print(line, end='', flush=True)
+ code = process.wait()
+ if code:
+ raise subprocess.CalledProcessError(code, command)
+ finally:
+ if process.poll() is None:
+ process.terminate(); process.wait()
+ process.stdout.close()
+
+def main():
+ parser = argparse.ArgumentParser()
+ parser.add_argument('--root', default=os.environ.get('PACE_OUTPUT_ROOT', str(PROJECT / 'outputs/pace21')))
+ args = parser.parse_args()
+ root = Path(args.root).resolve()
+ root.mkdir(parents=True, exist_ok=True)
+ logs = root / 'launcher'; logs.mkdir(exist_ok=True)
+ with (logs / 'run.lock').open('a') as lock:
+ try:
+ fcntl.flock(lock, fcntl.LOCK_EX | fcntl.LOCK_NB)
+ except BlockingIOError:
+ raise RuntimeError('This output directory already has an active full-study runner.')
+ digest = fingerprint(PROJECT)
+ state_path = logs / 'progress.json'
+ state = json.loads(state_path.read_text()) if state_path.exists() else {
+ 'source_sha256': digest, 'completed': [], 'started_at': timestamp()}
+ if state['source_sha256'] != digest:
+ raise RuntimeError('Project changed since this campaign started. Preserve these results and select a new PACE_OUTPUT_ROOT.')
+ from importlib.metadata import distributions
+ inventory = sorted(f"{d.metadata['Name']}=={d.version}" for d in distributions())
+ (logs / 'resolved-environment.txt').write_text('\n'.join(inventory) + '\n')
+ completion = root / 'ALL_DONE.json'
+ completion.unlink(missing_ok=True)
+ plan = commands(sys.executable, PROJECT, root)
+ for index, (name, command) in enumerate(plan, 1):
+ # Always recheck hardware, even on restart on a different host.
+ if name in state['completed'] and name != 'environment':
+ print(f'[{index}/{len(plan)}] {name}: already completed', flush=True)
+ continue
+ state.update(current=name, status='running', updated_at=timestamp())
+ write_json(state_path, state)
+ print(f'\n[{index}/{len(plan)}] {name} — {timestamp()}\nResults: {root}', flush=True)
+ try:
+ execute(command, logs / f'{name}.log', PROJECT)
+ except BaseException as error:
+ state.update(status='failed', error=repr(error), updated_at=timestamp())
+ write_json(state_path, state)
+ raise RuntimeError(f'{name} failed. Results are preserved. Log: {logs / (name + ".log")}') from error
+ if name not in state['completed']:
+ state['completed'].append(name)
+ state.update(status='stage_complete', updated_at=timestamp())
+ write_json(state_path, state)
+ # Successful processes alone are insufficient if primary coverage is incomplete.
+ report = json.loads((root / 'reports/report_status.json').read_text())
+ secondary = json.loads((root / 'reports/secondary_family.json').read_text())
+ if report['incomplete'] or not secondary['complete']:
+ state.update(status='incomplete_reports', updated_at=timestamp())
+ write_json(state_path, state)
+ raise RuntimeError('Reports indicate incomplete study coverage. No ALL_DONE marker was written.')
+ state.update(status='complete', current=None, completed_at=timestamp())
+ write_json(state_path, state)
+ write_json(completion, {'completed_at': timestamp(), 'source_sha256': digest,
+ 'stages': state['completed'], 'results': str(root),
+ 'meaning': 'All declared launcher commands succeeded; not a claim of scientific superiority.'})
+ print(f'\nALL DONE. Results, checkpoints, tables and figures: {root}\nCompletion record: {completion}', flush=True)
+
+if __name__ == '__main__':
+ main()
diff --git a/pace_revision_2/scripts/__pycache__/run_all.cpython-311.pyc b/pace_revision_2/scripts/__pycache__/run_all.cpython-311.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..0afece912c393693da7f58f3be9139fdd009b713
Binary files /dev/null and b/pace_revision_2/scripts/__pycache__/run_all.cpython-311.pyc differ
diff --git a/pace_revision_2/scripts/debug_helena_layers.py b/pace_revision_2/scripts/debug_helena_layers.py
new file mode 100644
index 0000000000000000000000000000000000000000..1038e992d5d65a52c49b3757523882abec117623
--- /dev/null
+++ b/pace_revision_2/scripts/debug_helena_layers.py
@@ -0,0 +1,8 @@
+"""Optional native intermediate fixture for investigating port discrepancies."""
+import os
+os.environ['CUDA_VISIBLE_DEVICES']='';os.environ['TF_ENABLE_ONEDNN_OPTS']='0'
+import tensorflow as tf,numpy as np,argparse
+p=argparse.ArgumentParser();p.add_argument('--model',default='vendor/helena/model.keras');p.add_argument('--fixture',default='vendor/helena/native_fixture.npz');p.add_argument('--out',default='helena_layers.npz');a=p.parse_args()
+m=tf.keras.models.load_model(a.model,compile=False,safe_mode=False);x=np.load(a.fixture)['input'];values={}
+for layer in m.layers:values[layer.name]=tf.keras.Model(m.inputs,layer.output)(x,training=False).numpy()
+np.savez_compressed(a.out,**values)
diff --git a/pace_revision_2/scripts/export_helena.py b/pace_revision_2/scripts/export_helena.py
new file mode 100644
index 0000000000000000000000000000000000000000..67330bbaa2634f904e69eecea1a452c6ab572f98
--- /dev/null
+++ b/pace_revision_2/scripts/export_helena.py
@@ -0,0 +1,15 @@
+"""Run in isolated Python 3.10/3.11 + TF-CPU 2.15.1/Keras 2.15.
+The adaptation contract accepts sparse LS observations, with zero off-pilot REs.
+"""
+import os
+os.environ['CUDA_VISIBLE_DEVICES']=''
+os.environ['TF_ENABLE_ONEDNN_OPTS']='0'
+import argparse,numpy as np,tensorflow as tf
+p=argparse.ArgumentParser();p.add_argument('--model',default='vendor/helena/model.keras');p.add_argument('--out',default='helena_native_fixture.npz');p.add_argument('--dense-stress',action='store_true',help='Out-of-contract numerical stress diagnostic; not the sparse-input acceptance fixture');a=p.parse_args()
+model=tf.keras.models.load_model(a.model,compile=False,safe_mode=False)
+rng=np.random.default_rng(90221);x=rng.normal(size=(3,612,14,2)).astype(np.float32)
+if not a.dense_stress:
+ mask=np.zeros((612,14),bool);mask[1::3,2]=True;mask[1::3,11]=True;x[:,~mask]=0
+ # Fixed nonsymmetric real/imaginary values at pilots; off-pilot values exactly zero.
+y=model(x,training=False).numpy();np.savez_compressed(a.out,input=x,output=y)
+print('Saved native HELENA fixture:',a.out)
diff --git a/pace_revision_2/scripts/install_gpu.sh b/pace_revision_2/scripts/install_gpu.sh
new file mode 100644
index 0000000000000000000000000000000000000000..a0ee672847c01286aa9ff9a87f176f9d21a73834
--- /dev/null
+++ b/pace_revision_2/scripts/install_gpu.sh
@@ -0,0 +1,12 @@
+#!/usr/bin/env bash
+set -euo pipefail
+# Run from extracted project root. Dedicated environment avoids changing Molab's kernel.
+PACE_ENV="${PACE_ENV:-$PWD/.venv-pace}"
+if ! command -v uv >/dev/null; then python -m pip install uv; fi
+uv python install 3.11.11
+uv venv --python 3.11.11 "$PACE_ENV"
+uv pip install --python "$PACE_ENV/bin/python" torch==2.9.1 --index-url https://download.pytorch.org/whl/cu128
+uv pip install --python "$PACE_ENV/bin/python" -e '.[test,notebook]'
+uv pip install --python "$PACE_ENV/bin/python" sionna==2.0.1 --no-deps
+"$PACE_ENV/bin/python" -c 'import torch,sionna; assert torch.cuda.is_available(); print(torch.__version__,torch.cuda.get_device_name())'
+"$PACE_ENV/bin/python" -m pip freeze > resolved-environment.txt || uv pip freeze --python "$PACE_ENV/bin/python" > resolved-environment.txt
diff --git a/pace_revision_2/scripts/run_all.py b/pace_revision_2/scripts/run_all.py
new file mode 100644
index 0000000000000000000000000000000000000000..8bfccdddb338dae8301c6e5678e75d113934f46d
--- /dev/null
+++ b/pace_revision_2/scripts/run_all.py
@@ -0,0 +1,136 @@
+"""Synchronous, restartable full campaign. No background launch or shortened runs."""
+from pathlib import Path
+import argparse
+import fcntl
+import hashlib
+import json
+import os
+import subprocess
+import sys
+from datetime import datetime, timezone
+
+PROJECT = Path(__file__).resolve().parents[1]
+
+def timestamp():
+ return datetime.now(timezone.utc).isoformat()
+
+def write_json(path, data):
+ temporary = path.with_suffix('.tmp')
+ temporary.write_text(json.dumps(data, indent=2) + '\n')
+ temporary.replace(path)
+
+def fingerprint(project):
+ digest = hashlib.sha256()
+ paths = [project / 'pyproject.toml']
+ for folder in ('pace', 'scripts', 'tests', 'protocols', 'vendor'):
+ paths.extend(p for p in (project / folder).rglob('*')
+ if p.is_file() and '__pycache__' not in p.parts and p.suffix != '.pyc')
+ for path in sorted(paths):
+ digest.update(str(path.relative_to(project)).encode())
+ digest.update(path.read_bytes())
+ return digest.hexdigest()
+
+def commands(python, project, root):
+ cli = [str(python), '-u', '-m', 'pace.cli', '--root', str(root), '--device', 'cuda']
+ smoke = root.parent / (root.name + '_smoke')
+ stages = [('environment', [str(python), '-u', '-c',
+ 'import sys,torch,sionna,importlib.metadata as m; '
+ 'assert sys.version_info[:3]==(3,11,11), sys.version; '
+ 'assert torch.__version__.split("+")[0]=="2.9.1", torch.__version__; '
+ 'assert torch.version.cuda=="12.8", torch.version.cuda; '
+ 'assert m.version("sionna")=="2.0.1"; '
+ 'assert torch.cuda.is_available(), "CUDA GPU required"; '
+ 'x=torch.ones(16,device="cuda",requires_grad=True); (x*x).sum().backward(); '
+ 'torch.cuda.synchronize(); print(torch.__version__,torch.cuda.get_device_name()); '
+ 'from pace.physics import Channel; from pace.experiments import recipes; '
+ 'from pace.receiver import Codec; r=recipes()["main"]; '
+ 'Channel(r.grid,"cuda").paths(r.source,"QC","device_probe",0); '
+ 'codec=Codec("cuda"); bits=torch.zeros((1,3200),device="cuda"); '
+ 'cw=codec.encode(bits); decoded=codec.decode((2*cw-1)*20); '
+ 'assert torch.equal(decoded,bits); print("Sionna CUDA channel and LDPC probe passed")']),
+ ('unit_tests', [str(python), '-u', '-m', 'pytest', 'tests', '-q']),
+ ('smoke', [str(python), '-u', 'scripts/smoke.py', '--root', str(smoke), '--device', 'cuda']),
+ ('smoke_interventions', [str(python), '-u', 'scripts/smoke_interventions.py', '--root', str(smoke), '--device', 'cuda']),
+ ('init', cli + ['init']), ('qc', cli + ['qc'])]
+ for stage in ('fidelity', 'source', 'core', 'coverage', 'receivers', 'reports'):
+ stages.append((stage, [str(python), '-u', 'scripts/run_study.py', '--root', str(root),
+ '--device', 'cuda', '--stage', stage]))
+ stages.append(('benchmark', cli + ['benchmark', '--experiments', 'E01,E02', '--seeds', '41001']))
+ return stages
+
+def execute(command, log_path, project):
+ env = dict(os.environ, PYTHONUNBUFFERED='1', MPLBACKEND='Agg', CUBLAS_WORKSPACE_CONFIG=':4096:8')
+ # Inherit the launcher's process group, so cancelling the cell kills descendants too.
+ with log_path.open('a') as log:
+ process = subprocess.Popen(command, cwd=project, env=env, stdout=subprocess.PIPE,
+ stderr=subprocess.STDOUT, text=True, bufsize=1)
+ try:
+ for line in process.stdout:
+ log.write(line); log.flush()
+ print(line, end='', flush=True)
+ code = process.wait()
+ if code:
+ raise subprocess.CalledProcessError(code, command)
+ finally:
+ if process.poll() is None:
+ process.terminate(); process.wait()
+ process.stdout.close()
+
+def main():
+ parser = argparse.ArgumentParser()
+ parser.add_argument('--root', default=os.environ.get('PACE_OUTPUT_ROOT', str(PROJECT / 'outputs/pace21')))
+ args = parser.parse_args()
+ root = Path(args.root).resolve()
+ root.mkdir(parents=True, exist_ok=True)
+ logs = root / 'launcher'; logs.mkdir(exist_ok=True)
+ with (logs / 'run.lock').open('a') as lock:
+ try:
+ fcntl.flock(lock, fcntl.LOCK_EX | fcntl.LOCK_NB)
+ except BlockingIOError:
+ raise RuntimeError('This output directory already has an active full-study runner.')
+ digest = fingerprint(PROJECT)
+ state_path = logs / 'progress.json'
+ state = json.loads(state_path.read_text()) if state_path.exists() else {
+ 'source_sha256': digest, 'completed': [], 'started_at': timestamp()}
+ if state['source_sha256'] != digest:
+ raise RuntimeError('Project changed since this campaign started. Preserve these results and select a new PACE_OUTPUT_ROOT.')
+ from importlib.metadata import distributions
+ inventory = sorted(f"{d.metadata['Name']}=={d.version}" for d in distributions())
+ (logs / 'resolved-environment.txt').write_text('\n'.join(inventory) + '\n')
+ completion = root / 'ALL_DONE.json'
+ completion.unlink(missing_ok=True)
+ plan = commands(sys.executable, PROJECT, root)
+ for index, (name, command) in enumerate(plan, 1):
+ # Always recheck hardware, even on restart on a different host.
+ if name in state['completed'] and name != 'environment':
+ print(f'[{index}/{len(plan)}] {name}: already completed', flush=True)
+ continue
+ state.update(current=name, status='running', updated_at=timestamp())
+ write_json(state_path, state)
+ print(f'\n[{index}/{len(plan)}] {name} — {timestamp()}\nResults: {root}', flush=True)
+ try:
+ execute(command, logs / f'{name}.log', PROJECT)
+ except BaseException as error:
+ state.update(status='failed', error=repr(error), updated_at=timestamp())
+ write_json(state_path, state)
+ raise RuntimeError(f'{name} failed. Results are preserved. Log: {logs / (name + ".log")}') from error
+ if name not in state['completed']:
+ state['completed'].append(name)
+ state.update(status='stage_complete', updated_at=timestamp())
+ write_json(state_path, state)
+ # Successful processes alone are insufficient if primary coverage is incomplete.
+ report = json.loads((root / 'reports/report_status.json').read_text())
+ secondary = json.loads((root / 'reports/secondary_family.json').read_text())
+ if report['incomplete'] or not secondary['complete']:
+ state.update(status='incomplete_reports', updated_at=timestamp())
+ write_json(state_path, state)
+ raise RuntimeError('Reports indicate incomplete study coverage. No ALL_DONE marker was written.')
+ state.update(status='complete', current=None, completed_at=timestamp())
+ write_json(state_path, state)
+ write_json(completion, {'completed_at': timestamp(), 'source_sha256': digest,
+ 'stages': state['completed'], 'results': str(root),
+ 'meaning': 'All declared launcher commands succeeded; not a claim of scientific superiority.'})
+ print(f'\nALL DONE. Results, checkpoints, tables and figures: {root}\nCompletion record: {completion}', flush=True)
+
+if __name__ == '__main__':
+ main()
diff --git a/pace_revision_2/scripts/run_study.py b/pace_revision_2/scripts/run_study.py
new file mode 100644
index 0000000000000000000000000000000000000000..d111e6102373d3c66ca9b972ce287b71ae02745e
--- /dev/null
+++ b/pace_revision_2/scripts/run_study.py
@@ -0,0 +1,40 @@
+"""Resumable sequential phase runner. Does NOT run on import.
+Use --stage source first, then core, coverage, receivers, reports.
+"""
+import argparse,subprocess,sys,os
+from pathlib import Path
+from pace.experiments import jobs
+p=argparse.ArgumentParser();p.add_argument('--root',required=True);p.add_argument('--device',default='cuda');p.add_argument('--stage',choices=['fidelity','source','core','coverage','receivers','reports'],required=True);p.add_argument('--backup');a=p.parse_args()
+base=[sys.executable,'-m','pace.cli','--root',a.root,'--device',a.device]
+def run(*args):
+ print('[study command] '+' '.join(args),flush=True)
+ subprocess.run([*base,*args],check=True)
+ print('[study finished] '+' '.join(args),flush=True)
+ if a.backup:subprocess.run([*base,'backup','--destination',a.backup],check=True)
+if a.stage=='fidelity':
+ for arch in ('fortitran','adafortitran','channelformer'):run('fidelity','--arch',arch)
+ run('fidelity','--arch','helena','--fixture','vendor/helena/native_fixture.npz')
+elif a.stage=='source':
+ run('prepare','--recipes','main');run('tune')
+elif a.stage=='core':
+ run('train','--experiments','E01,E02,E03');run('test-banks','--recipes','main');run('evaluate','--experiments','E01,E02,E03');run('classical','--recipes','main');run('gates','--evaluate');run('report')
+elif a.stage=='coverage':
+ names='reverse,target,broad,comb6,timepilot,scs30,wave,reference';run('prepare','--recipes',names)
+ run('train','--experiments','E04,E05,E06,E07,E08,E09,E10,E11,E12,E13,E14,R');run('test-banks','--recipes',names)
+ run('evaluate','--experiments','E04,E05,E06,E07,E08,E09,E10,E11,E12,E13,E14,R');run('classical','--recipes',names)
+ run('gates','--recipe','wave','--evaluate');run('adapt');run('sweep');run('oracle');run('wave-diagnostics');run('reference-transfer')
+ for offset in ('-3','3'):
+ run('evaluate','--experiments','E01,E02','--noise-offset',offset);run('classical','--recipes','main','--noise-offset',offset)
+ run('report')
+elif a.stage=='receivers':
+ # Main panel: ten common seeds for the WAVE-trained and DIAG-transfer panels.
+ selected=[j for j in jobs() if j['seed']<=41010 and ((j['experiment']=='E01' and j['arm'] in ('D','A-res','A-raw')) or j['experiment'] in ('E02','E13'))]
+ for j in selected:run('receiver','--id',j['id'],'--source',j['recipe'],'--modes','DIAG,WAVE')
+ for source in ('main','wave'):
+ for kind in ('ls','bem','lmmse'):run('receiver','--kind',kind,'--source',source,'--modes','DIAG,WAVE')
+ for sd in range(41001,41011):
+ for gate in ('scalar','resource'):run('receiver','--gate',gate,'--seed',str(sd),'--source',source,'--modes','DIAG,WAVE')
+ for kind in ('perfect','full_G'):run('receiver','--kind',kind,'--modes','WAVE')
+ run('report')
+else:
+ run('statistics');run('report')
diff --git a/pace_revision_2/scripts/smoke.py b/pace_revision_2/scripts/smoke.py
new file mode 100644
index 0000000000000000000000000000000000000000..ce9e4220c376ef11c24eb081e9201d2de886e8bb
--- /dev/null
+++ b/pace_revision_2/scripts/smoke.py
@@ -0,0 +1,20 @@
+"""Tiny end-to-end wiring run. Never usable as a research result."""
+import argparse
+from pathlib import Path
+import torch
+from pace.cli import init,prepare,test_banks
+from pace.io import atomic_json,deterministic
+from pace.experiments import jobs
+from pace.training import train
+from pace.evaluation import evaluate,classical_evaluate
+from pace.experiments import recipes
+from pace.reporting import report
+p=argparse.ArgumentParser();p.add_argument('--root',default='outputs/smoke');p.add_argument('--device',default='cpu');a=p.parse_args()
+torch.set_num_threads(2);deterministic(0);root=Path(a.root);init(root,True);prepare(root,['main'],a.device,12)
+atomic_json(root/'selected_lr.json',{k:.001 for k in ('compact','wide','cnn16','reesnet','channelformer','fortitran','helena')})
+selected=[j for j in jobs() if j['seed']==41001 and j['experiment'] in ('E01','E02')]
+for j in selected:train(root,j,a.device,epochs=1,limit=12)
+test_banks(root,['main'],a.device,12)
+for j in selected:evaluate(root,j,a.device,limit=12)
+classical_evaluate(root,recipes()['main'],a.device,limit=12);report(root,100)
+print('SMOKE COMPLETE: development artifacts only, not publication results')
diff --git a/pace_revision_2/scripts/smoke_interventions.py b/pace_revision_2/scripts/smoke_interventions.py
new file mode 100644
index 0000000000000000000000000000000000000000..69205485b88963c7ce411027be48b1731a643cea
--- /dev/null
+++ b/pace_revision_2/scripts/smoke_interventions.py
@@ -0,0 +1,22 @@
+"""Optional tiny integration check after scripts/smoke.py; CPU/GPU, never research."""
+import argparse
+from pathlib import Path
+import torch
+from pace.cli import prepare
+from pace.io import read_json,atomic_json
+from pace.interventions import calibrate_gate,evaluate_gates,adapt
+from pace.experiments import jobs
+from pace.diagnostics import benchmark,run
+from pace.reporting import report
+p=argparse.ArgumentParser();p.add_argument('--root',required=True);p.add_argument('--device',default='cpu');a=p.parse_args();root=Path(a.root)
+if not read_json(root/'study.json')['smoke_only']:raise RuntimeError('Integration smoke requires an explicitly smoke-only root')
+torch.set_num_threads(2)
+calibrate_gate(root,'main',41001,a.device,limit=12);evaluate_gates(root,'main',41001,a.device,limit=12)
+prepare(root,['target'],a.device,limit=4)
+j=next(j for j in jobs() if j['experiment']=='E01' and j['arm']=='A-res' and j['seed']==41001)
+adapt(root,j,128,a.device,limit=4)
+benchmark(root,j,a.device,smoke=True)
+run(root,'oracle',a.device,limit=4)
+report(root,100)
+atomic_json(root/'intervention_smoke.json',dict(passed=True,smoke_only=True,checks=['scalar and resource gate fit/evaluation','limited target adaptation','complexity and timing plumbing','target-covariance and recalibrated-BEM oracle','standalone supplement report']))
+print('INTERVENTION SMOKE COMPLETE — NOT RESEARCH RESULTS')
diff --git a/pace_revision_2/tests/__pycache__/test_contracts.cpython-311-pytest-9.1.1.pyc b/pace_revision_2/tests/__pycache__/test_contracts.cpython-311-pytest-9.1.1.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..49ef8cbd01b53110bc8fe5a5816460e0ddeb86f3
Binary files /dev/null and b/pace_revision_2/tests/__pycache__/test_contracts.cpython-311-pytest-9.1.1.pyc differ
diff --git a/pace_revision_2/tests/__pycache__/test_devices.cpython-311-pytest-9.1.1.pyc b/pace_revision_2/tests/__pycache__/test_devices.cpython-311-pytest-9.1.1.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..5a667f13dcd3ff9d6caa249cf3a4116c9dd62807
Binary files /dev/null and b/pace_revision_2/tests/__pycache__/test_devices.cpython-311-pytest-9.1.1.pyc differ
diff --git a/pace_revision_2/tests/__pycache__/test_launcher.cpython-311-pytest-9.1.1.pyc b/pace_revision_2/tests/__pycache__/test_launcher.cpython-311-pytest-9.1.1.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..4bb5967a24c98327ccaf81e54303716ed68618e4
Binary files /dev/null and b/pace_revision_2/tests/__pycache__/test_launcher.cpython-311-pytest-9.1.1.pyc differ
diff --git a/pace_revision_2/tests/test_contracts.py b/pace_revision_2/tests/test_contracts.py
new file mode 100644
index 0000000000000000000000000000000000000000..bf09368a26c8251cc3c4c474c00ee2d45ab6a78c
--- /dev/null
+++ b/pace_revision_2/tests/test_contracts.py
@@ -0,0 +1,186 @@
+import numpy as np
+import pytest
+import torch
+from pace.config import Grid,Bem,Condition
+from pace.classical import basis,interpolation,solve_gain,gains
+from pace.models.compact import hybrid,CNN
+from pace.models.channelformer import Channelformer
+from pace.models.helena import Helena
+from pace.models.fortitran import FortiTran
+from pace.models import Estimator
+from pace.physics import Channel,label,waveform,operator
+from pace.metrics import energies
+
+def test_grid():
+ for g in (Grid(),Grid(scs=30000)):
+ assert sum(g.cp+g.N)==3840
+ assert g.P==80 and (~g.mask).sum()==1600
+ assert np.allclose(interpolation(g)[g.pilots],np.eye(80))
+ assert Grid(comb=6).P==40
+
+def test_parameters_and_shapes():
+ torch.set_num_threads(2);g=Grid()
+ for m,c in [(hybrid(g),34858),(hybrid(g,True),268930),(hybrid(g,planes=5),35002),(CNN(16),19298),(Channelformer(14,120,80),185181)]:
+ assert sum(p.numel() for p in m.parameters())==c
+ assert hybrid(g)(torch.randn(2,3,14,120)).shape==(2,2,14,120)
+ for m,x in [(Helena(),torch.randn(2,14,120,dtype=torch.complex64)),(FortiTran(g),torch.randn(2,80,dtype=torch.complex64))]:
+ y=m(x);assert y.shape==(2,14,120);abs(y).square().mean().backward();assert all(p.grad is not None for p in m.parameters())
+
+def test_projectors_and_decomposition():
+ rng=np.random.default_rng(33);g=Grid();B,_,_=basis(g,Bem());P=B@B.conj().T
+ np.testing.assert_allclose(P,P.conj().T,atol=1e-12)
+ np.testing.assert_allclose(B@(B.conj().T@B)@B.conj().T,P,atol=1e-12)
+ h=rng.normal(size=(9,g.M))+1j*rng.normal(size=(9,g.M));coeff=rng.normal(size=(9,8))+1j*rng.normal(size=(9,8));b=coeff@B.T;ph=(h@B.conj())@B.T
+ np.testing.assert_allclose((b@B.conj())@B.T,b,atol=1e-12)
+ np.testing.assert_allclose(np.sum(abs(h-b)**2,1),np.sum(abs(h-ph)**2,1)+np.sum(abs(ph-b)**2,1),rtol=1e-12)
+ nonorth=rng.normal(size=(12,4))+1j*rng.normal(size=(12,4));nonorth[:,-1]=nonorth[:,0]+nonorth[:,1];p=nonorth@np.linalg.pinv(nonorth,rcond=1e-12)
+ np.testing.assert_allclose(p,p.conj().T,atol=1e-12);np.testing.assert_allclose(p@p,p,atol=1e-12)
+
+def test_covariance_orientation_and_noise_limits():
+ R=np.array([[2,1j],[-1j,3]],complex);K,_=solve_gain(R[:,[1]],R[np.ix_([1],[1])],.2)
+ np.testing.assert_allclose(K[:,0],np.array([1j,3])/3.2,rtol=1e-9)
+ k,_=solve_gain(R,R,1e-12);np.testing.assert_allclose(k,np.eye(2),atol=1e-9)
+ k,_=solve_gain(R,R,1e10);assert np.linalg.norm(k)<1e-9
+
+def test_zero_anchor_gradients():
+ g=Grid();cov=np.eye(g.M,dtype=complex);torch.manual_seed(12);d=Estimator(g,cov,Bem(),arm='D');torch.manual_seed(12);a=Estimator(g,cov,Bem(),arm='A-res',anchor='zero');a.net.load_state_dict(d.net.state_dict())
+ b={'h':torch.randn(2,14,120,dtype=torch.complex64),'z':torch.randn(2,80,dtype=torch.complex64),'n0':torch.ones(2)*.1}
+ od=torch.optim.Adam(d.parameters(),lr=.001);oa=torch.optim.Adam(a.parameters(),lr=.001)
+ for _ in range(3):
+ od.zero_grad();oa.zero_grad();yd=d(b);ya=a(b);torch.testing.assert_close(yd,ya,rtol=0,atol=0)
+ abs(yd-b['h']).square().mean().backward();abs(ya-b['h']).square().mean().backward()
+ for p,q in zip(d.net.parameters(),a.net.parameters()):torch.testing.assert_close(p.grad,q.grad,rtol=0,atol=0)
+ od.step();oa.step()
+
+def test_metric_batch_invariance():
+ rng=np.random.default_rng(7);g=Grid();B=basis(g,Bem())[0];h=rng.normal(size=(263,14,120))+1j*rng.normal(size=(263,14,120));p=h+(1+2j);b=np.zeros_like(h)
+ base=energies(h,p,b,B);assert np.allclose(base['error'],5*g.M)
+ for batch in (1,7,256):
+ rec=[energies(h[i:i+batch],p[i:i+batch],b[i:i+batch],B) for i in range(0,len(h),batch)]
+ np.testing.assert_allclose(sum(x['error'].sum() for x in rec)/sum(x['denominator'].sum() for x in rec),base['error'].sum()/base['denominator'].sum(),rtol=1e-12)
+
+def test_waveform_and_truth():
+ g=Grid();ch=Channel(g);a,tau=ch.paths(Condition(fd=0),'QC','unit',2);h=label(a,tau,g);x=np.random.default_rng(5).normal(size=(14,120))+1j
+ np.testing.assert_allclose(waveform(x,a,tau,g),h*x,rtol=1e-10,atol=1e-10)
+ a,tau=ch.paths(Condition(fd=500),'QC','unit',2);a2,tau2=ch.paths(Condition(fd=500),'QC','unit',2);np.testing.assert_array_equal(a,a2)
+ G=operator(a,tau,g,0);h=label(a,tau,g);np.testing.assert_allclose(np.diag(G)[g.active%g.N],h[0],rtol=1e-10,atol=1e-10)
+ y=waveform(x,a,tau,g);np.testing.assert_allclose(G[np.ix_(g.active%g.N,g.active%g.N)]@x[0],y[0],rtol=1e-10,atol=1e-10)
+
+def test_code_and_mapping():
+ from pace.receiver import Codec,map_bits,app_llr,constellation
+ codec=Codec('cpu');bits=torch.randint(0,2,(2,3200));cw=codec.encode(bits);x=map_bits(cw,'16qam');llr=app_llr(x,torch.ones_like(x),.001);decoded=codec.decode(llr)
+ assert torch.equal(decoded,bits)
+ pts,labels=constellation('16qam','cpu');torch.testing.assert_close(abs(pts).square().mean(),torch.tensor(1.))
+ q=torch.randint(0,2,(2,3200));x=map_bits(q,'qpsk');assert torch.equal((app_llr(x,torch.ones_like(x),.001,'qpsk')>0).long(),q)
+
+def test_manifest_counts():
+ from pace.experiments import jobs,tuning_jobs
+ assert len(jobs())==446 and len({x['id'] for x in jobs()})==446 and len(tuning_jobs())==99
+
+def test_deterministic_replication_pad():
+ from pace.models.deterministic import ReplicateConv2d
+ a=ReplicateConv2d(8,2).double();b=torch.nn.Conv2d(8,2,3,padding=1,padding_mode='replicate').double();b.load_state_dict(a.state_dict())
+ x=torch.randn(2,8,14,120,dtype=torch.float64,requires_grad=True);y=x.detach().clone().requires_grad_(True)
+ out=a(x);reference=b(y);torch.testing.assert_close(out,reference,rtol=0,atol=0)
+ out.square().sum().backward();reference.square().sum().backward();torch.testing.assert_close(x.grad,y.grad,rtol=1e-12,atol=1e-12)
+
+def test_device_staging_matches_stream(tmp_path):
+ from pace.io import atomic_npz,atomic_json
+ from pace.data import Bank,DeviceBank
+ from pace.training import loader
+ rng=np.random.default_rng(44);n=13;g=Grid();p=tmp_path/'000.npz'
+ atomic_npz(p,h=(rng.normal(size=(n,14,120))+1j).astype(np.complex64),z0=(rng.normal(size=(n,80))+1j).astype(np.complex64),noise=(rng.normal(size=(n,80))+2j).astype(np.complex64),snr=np.resize(np.array([0,5,10,15,20,25],np.float32),n),fd=np.ones(n,np.float32)*10,ds=np.ones(n,np.float32)*100,id=np.arange(n))
+ atomic_json(tmp_path/'manifest.json',{'spec':{'n':n},'shards':[{'file':p.name,'n':n}]})
+ ds=Bank(tmp_path);staged=DeviceBank(ds,'cpu')
+ a=list(loader(ds,batch=7,shuffle=True,generator=torch.Generator().manual_seed(33)));b=list(loader(staged,batch=7,shuffle=True,generator=torch.Generator().manual_seed(33)))
+ for first,second in zip(a,b):
+ for k in first:torch.testing.assert_close(first[k],second[k],rtol=0,atol=0)
+
+def test_explicit_wave_operator_independent():
+ # Dense time-domain definition independently checks the FFT-index-difference implementation.
+ g=Grid(N=32,F=12);rng=np.random.default_rng(33);a=rng.normal(size=(14,2,32))+1j*rng.normal(size=(14,2,32));tau=np.array([0,.2e-6]);F=np.fft.fft(np.eye(32),axis=0,norm='ortho');bins=np.fft.fftfreq(32)*32
+ T=sum(np.diag(a[0,p])@F.conj().T@np.diag(np.exp(-2j*np.pi*bins*g.scs*tau[p]))@F for p in range(2))
+ np.testing.assert_allclose(operator(a,tau,g,0),F@T@F.conj().T,rtol=1e-10,atol=1e-10)
+
+def test_checkpoint_roundtrip(tmp_path):
+ from pace.io import torch_save
+ g=Grid();m=hybrid(g).eval();x=torch.randn(2,3,14,120)
+ with torch.no_grad():before=m(x)
+ torch_save(tmp_path/'test.pt',m.state_dict());clone=hybrid(g).eval();clone.load_state_dict(torch.load(tmp_path/'test.pt',weights_only=True))
+ with torch.no_grad():torch.testing.assert_close(before,clone(x),rtol=0,atol=0)
+
+def test_receiver_banks_and_full_operator(tmp_path):
+ from pace.receiver import receiver_bank,full_g_outputs
+ from pace.io import read_json
+ g=Grid();c=Condition(fd=0)
+ paths=[receiver_bank(tmp_path,c,10,mode,'qpsk',frames=2,device='cpu',shard=2) for mode in ('DIAG','WAVE')]
+ with np.load(paths[0]/'000000.npz') as a,np.load(paths[1]/'000000.npz') as b:
+ for k in ('h','bits','id'):np.testing.assert_array_equal(a[k],b[k])
+ np.testing.assert_allclose(a['y'],b['y'],rtol=1e-6,atol=1e-6)
+ batch={k:torch.tensor(b[k]) for k in b.files}
+ y,var=full_g_outputs(batch,c,Channel(g),g,.1,'cpu')
+ torch.testing.assert_close(y,batch['y'][:,~g.mask]/batch['h'][:,~g.mask],rtol=2e-5,atol=2e-5)
+ torch.testing.assert_close(var,.1/abs(batch['h'][:,~g.mask]).square(),rtol=2e-5,atol=2e-5)
+ assert receiver_bank(tmp_path,c,10,'WAVE','qpsk',2,'cpu',2)==paths[1]
+
+def test_one_sided_degenerate_and_holm():
+ from pace.metrics import paired_summary,holm
+ assert paired_summary([-1,-1],alternative='greater')['p']==1
+ assert paired_summary([1,1],alternative='greater')['p']==0
+ np.testing.assert_allclose(holm([.01,.04,.02]),[.03,.04,.04])
+
+def test_residual_information_and_metric_closures(tmp_path):
+ from pace.classical import residual_information
+ # Small grid retains valid pilot geometry while avoiding redundant large solves.
+ g=Grid(F=12,N=32);b=Bem(kf=2,kt=2);cov=np.eye(g.M);path=tmp_path/'map.npz'
+ residual_information(g,cov,b,path)
+ with np.load(path) as d:
+ assert np.all(d['residual_map_singular'][:,-1]>0)
+ assert d['residual_map_singular'].shape==(6,g.P)
+ B=basis(g,b)[0];rng=np.random.default_rng(2);h=rng.normal(size=(5,14,12))+1j*rng.normal(size=(5,14,12));a=((h.reshape(5,-1)@B.conj())@B.T).reshape(h.shape).astype(np.complex64)
+ raw=energies(h,a,a,B)
+ assert raw['projection_identity_applicable'].all()
+ np.testing.assert_allclose(raw['error'],raw['projection_outside']+raw['anchor_inspace'],rtol=1e-6)
+
+def test_training_resume_matches_uninterrupted(tmp_path,monkeypatch):
+ import shutil
+ from pace import training
+ from pace.io import atomic_npz,atomic_json
+ from pace.data import bank_path
+ from pace.experiments import recipes,jobs
+ g=Grid();r=recipes()['main'];rng=np.random.default_rng(710);root=tmp_path/'uninterrupted';root.mkdir();n=4
+ job=next(j for j in jobs() if j['experiment']=='E01' and j['arm']=='D' and j['seed']==41001)
+ atomic_npz(root/'priors/main.npz',cov=np.eye(g.M,dtype=complex));atomic_json(root/'selected_lr.json',{'compact':.001})
+ for bank in ('TRAIN','VAL'):
+ folder=bank_path(root,r,bank)
+ atomic_npz(folder/'000.npz',h=(rng.normal(size=(n,14,120))+1j).astype(np.complex64),z0=(rng.normal(size=(n,80))+1j).astype(np.complex64),noise=(rng.normal(size=(n,80))+1j).astype(np.complex64),snr=np.full(n,10,np.float32),fd=np.full(n,10,np.float32),ds=np.full(n,100,np.float32),id=np.arange(n))
+ atomic_json(folder/'manifest.json',{'spec':{'n':n},'shards':[{'file':'000.npz','n':n}]})
+ resumed=tmp_path/'resumed';shutil.copytree(root,resumed)
+ training.train(root,job,'cpu',epochs=2,limit=n)
+ save=training.torch_save
+ def interrupted(path,obj):
+ save(path,obj)
+ if Path(path).name=='last.pt':raise InterruptedError('Simulated after completed epoch')
+ from pathlib import Path
+ monkeypatch.setattr(training,'torch_save',interrupted)
+ with pytest.raises(InterruptedError):training.train(resumed,job,'cpu',epochs=2,limit=n)
+ monkeypatch.setattr(training,'torch_save',save);training.train(resumed,job,'cpu',epochs=2,limit=n)
+ a=torch.load(root/'runs'/job['id']/'last.pt',weights_only=False);b=torch.load(resumed/'runs'/job['id']/'last.pt',weights_only=False)
+ assert a['history']==b['history']
+ for k in a['model']:torch.testing.assert_close(a['model'][k],b['model'][k],rtol=0,atol=0)
+
+def test_paired_receiver_statistics(tmp_path):
+ from pace.io import atomic_npz,read_json
+ from pace.experiments import jobs
+ from pace.diagnostics import receiver_contrasts
+ out=tmp_path/'statistics'
+ for seed in (41001,41002):
+ j=next(j for j in jobs() if j['experiment']=='E01' and j['arm']=='D' and j['seed']==seed)
+ for arm,errors in [('D',[1,0]),('A-res',[0,0])]:
+ name=j['id'].replace('_D_',f'_{arm}_')
+ atomic_npz(tmp_path/'receiver'/name/'WAVE'/'16qam'/'C_ds100_fd100'/'snr10'/'raw.npz',id=np.arange(2),bits=np.full(2,3200),block_errors=np.asarray(errors,bool),bit_errors=np.asarray(errors))
+ receiver_contrasts(tmp_path,out)
+ d=read_json(out/'receiver_contrasts/main_A-res_WAVE_16qam_fd100.json')
+ assert d['bler_seed_effect']['mean']==.5
+ assert d['ber_seed_effect']['mean']==.5/3200
+ assert len(d['crossed_seed_slot_95'])==2
diff --git a/pace_revision_2/tests/test_devices.py b/pace_revision_2/tests/test_devices.py
new file mode 100644
index 0000000000000000000000000000000000000000..ae90fb50b2580347abaccc94b0a05d46233f8335
--- /dev/null
+++ b/pace_revision_2/tests/test_devices.py
@@ -0,0 +1,41 @@
+"""Device normalization regression, plus real Sionna CUDA coverage when available."""
+import importlib.util
+from pathlib import Path
+import sys
+import types
+import unittest
+from unittest.mock import patch
+
+spec=importlib.util.spec_from_file_location('pace_devices',Path(__file__).resolve().parents[1]/'pace/devices.py')
+module=importlib.util.module_from_spec(spec);spec.loader.exec_module(module)
+class Device:
+ def __init__(self,value):
+ text=str(value); parts=text.split(':'); self.type=parts[0]
+ self.index=int(parts[1]) if len(parts)>1 else None
+ def __str__(self):return self.type+(f':{self.index}' if self.index is not None else '')
+
+class DeviceTests(unittest.TestCase):
+ def test_alias_cpu_and_explicit_gpu(self):
+ torch=types.SimpleNamespace(device=Device,cuda=types.SimpleNamespace(current_device=lambda:2))
+ with patch.dict(sys.modules,{'torch':torch}):
+ self.assertEqual(module.sionna_device('cuda'),'cuda:2')
+ self.assertEqual(module.sionna_device(Device('cuda')),'cuda:2')
+ self.assertEqual(module.sionna_device('cuda:0'),'cuda:0')
+ self.assertEqual(module.sionna_device('cpu'),'cpu')
+ self.assertEqual(module.sionna_device('cpu:0'),'cpu')
+ def test_cuda_channel_and_codec(self):
+ try:import torch
+ except ImportError:self.skipTest('PyTorch unavailable')
+ if not torch.cuda.is_available():self.skipTest('CUDA unavailable')
+ from pace.physics import Channel
+ from pace.experiments import recipes
+ from pace.receiver import Codec
+ r=recipes()['main'];ch=Channel(r.grid,'cuda')
+ self.assertEqual(ch.device,f'cuda:{torch.cuda.current_device()}')
+ a,tau=ch.paths(r.source,'QC','device_probe',0)
+ self.assertGreater(a.size,0)
+ codec=Codec(torch.device('cuda'))
+ bits=torch.zeros((1,3200),device='cuda')
+ self.assertTrue(torch.equal(codec.decode((2*codec.encode(bits)-1)*20),bits))
+
+if __name__=='__main__':unittest.main()
diff --git a/pace_revision_2/tests/test_launcher.py b/pace_revision_2/tests/test_launcher.py
new file mode 100644
index 0000000000000000000000000000000000000000..64524e7d7a84b034e73e3f143213982a69eee85e
--- /dev/null
+++ b/pace_revision_2/tests/test_launcher.py
@@ -0,0 +1,80 @@
+"""Launcher tests use stub commands; they never install dependencies or train."""
+import importlib.util
+import json
+from pathlib import Path
+import subprocess
+import sys
+import tempfile
+import unittest
+from unittest.mock import patch
+
+spec = importlib.util.spec_from_file_location('pace_run_all', Path(__file__).resolve().parents[1] / 'scripts/run_all.py')
+runner = importlib.util.module_from_spec(spec)
+spec.loader.exec_module(runner)
+
+class LauncherTests(unittest.TestCase):
+ def test_full_stage_order(self):
+ plan = runner.commands('/python', Path('/project'), Path('/results'))
+ self.assertEqual([name for name, _ in plan], ['environment', 'unit_tests', 'smoke',
+ 'smoke_interventions', 'init', 'qc', 'fidelity', 'source', 'core',
+ 'coverage', 'receivers', 'reports', 'benchmark'])
+ for _, command in plan:
+ self.assertNotIn('--smoke', command)
+ self.assertIn('/results_smoke', plan[2][1])
+
+ def fixture(self, root):
+ (root / 'reports').mkdir()
+ (root / 'reports/report_status.json').write_text('{"incomplete":false}')
+ (root / 'reports/secondary_family.json').write_text('{"complete":true}')
+
+ def test_complete_and_restart(self):
+ with tempfile.TemporaryDirectory() as tmp:
+ root = Path(tmp); self.fixture(root)
+ plan = [('environment', ['env']), ('source', ['source']), ('reports', ['reports'])]
+ with patch.object(sys, 'argv', ['run_all', '--root', tmp]), patch.object(runner, 'commands', return_value=plan), patch.object(runner, 'execute') as execute:
+ runner.main()
+ self.assertEqual(execute.call_count, 3)
+ self.assertTrue((root / 'ALL_DONE.json').exists())
+ execute.reset_mock(); runner.main()
+ self.assertEqual(execute.call_count, 1) # hardware always checked
+
+ def test_failure_stops_and_can_resume(self):
+ with tempfile.TemporaryDirectory() as tmp:
+ root = Path(tmp); self.fixture(root)
+ plan = [('environment', ['env']), ('source', ['source']), ('reports', ['reports'])]
+ with patch.object(sys, 'argv', ['run_all', '--root', tmp]), patch.object(runner, 'commands', return_value=plan), patch.object(runner, 'execute', side_effect=[None, RuntimeError('failure')]) as execute:
+ with self.assertRaisesRegex(RuntimeError, 'source failed'):
+ runner.main()
+ self.assertEqual(execute.call_count, 2)
+ self.assertFalse((root / 'ALL_DONE.json').exists())
+ self.assertEqual(json.loads((root / 'launcher/progress.json').read_text())['completed'], ['environment'])
+ with patch.object(sys, 'argv', ['run_all', '--root', tmp]), patch.object(runner, 'commands', return_value=plan), patch.object(runner, 'execute') as execute:
+ runner.main(); self.assertEqual(execute.call_count, 3)
+
+ def test_incomplete_reports_do_not_claim_success(self):
+ with tempfile.TemporaryDirectory() as tmp:
+ root = Path(tmp); self.fixture(root)
+ (root / 'reports/report_status.json').write_text('{"incomplete":true}')
+ with patch.object(sys, 'argv', ['run_all', '--root', tmp]), patch.object(runner, 'commands', return_value=[]):
+ with self.assertRaisesRegex(RuntimeError, 'incomplete study'):
+ runner.main()
+ self.assertFalse((root / 'ALL_DONE.json').exists())
+
+ def test_source_change_rejected(self):
+ with tempfile.TemporaryDirectory() as tmp:
+ root = Path(tmp); (root / 'launcher').mkdir()
+ (root / 'launcher/progress.json').write_text('{"source_sha256":"old","completed":[]}')
+ with patch.object(sys, 'argv', ['run_all', '--root', tmp]):
+ with self.assertRaisesRegex(RuntimeError, 'Project changed'):
+ runner.main()
+
+ def test_process_logs_and_exit_status(self):
+ with tempfile.TemporaryDirectory() as tmp:
+ root = Path(tmp); log = root / 'command.log'
+ runner.execute([sys.executable, '-c', 'print("hello")'], log, root)
+ self.assertIn('hello', log.read_text())
+ with self.assertRaises(subprocess.CalledProcessError):
+ runner.execute([sys.executable, '-c', 'raise SystemExit(7)'], log, root)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/pace_revision_2/vendor/channelformer/LICENSE b/pace_revision_2/vendor/channelformer/LICENSE
new file mode 100644
index 0000000000000000000000000000000000000000..d159169d1050894d3ea3b98e1c965c4058208fe1
--- /dev/null
+++ b/pace_revision_2/vendor/channelformer/LICENSE
@@ -0,0 +1,339 @@
+ GNU GENERAL PUBLIC LICENSE
+ Version 2, June 1991
+
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+ Preamble
+
+ The licenses for most software are designed to take away your
+freedom to share and change it. By contrast, the GNU General Public
+License is intended to guarantee your freedom to share and change free
+software--to make sure the software is free for all its users. This
+General Public License applies to most of the Free Software
+Foundation's software and to any other program whose authors commit to
+using it. (Some other Free Software Foundation software is covered by
+the GNU Lesser General Public License instead.) You can apply it to
+your programs, too.
+
+ When we speak of free software, we are referring to freedom, not
+price. Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+this service if you wish), that you receive source code or can get it
+if you want it, that you can change the software or use pieces of it
+in new free programs; and that you know you can do these things.
+
+ To protect your rights, we need to make restrictions that forbid
+anyone to deny you these rights or to ask you to surrender the rights.
+These restrictions translate to certain responsibilities for you if you
+distribute copies of the software, or if you modify it.
+
+ For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must give the recipients all the rights that
+you have. You must make sure that they, too, receive or can get the
+source code. And you must show them these terms so they know their
+rights.
+
+ We protect your rights with two steps: (1) copyright the software, and
+(2) offer you this license which gives you legal permission to copy,
+distribute and/or modify the software.
+
+ Also, for each author's protection and ours, we want to make certain
+that everyone understands that there is no warranty for this free
+software. If the software is modified by someone else and passed on, we
+want its recipients to know that what they have is not the original, so
+that any problems introduced by others will not reflect on the original
+authors' reputations.
+
+ Finally, any free program is threatened constantly by software
+patents. We wish to avoid the danger that redistributors of a free
+program will individually obtain patent licenses, in effect making the
+program proprietary. To prevent this, we have made it clear that any
+patent must be licensed for everyone's free use or not licensed at all.
+
+ The precise terms and conditions for copying, distribution and
+modification follow.
+
+ GNU GENERAL PUBLIC LICENSE
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+ 0. This License applies to any program or other work which contains
+a notice placed by the copyright holder saying it may be distributed
+under the terms of this General Public License. The "Program", below,
+refers to any such program or work, and a "work based on the Program"
+means either the Program or any derivative work under copyright law:
+that is to say, a work containing the Program or a portion of it,
+either verbatim or with modifications and/or translated into another
+language. (Hereinafter, translation is included without limitation in
+the term "modification".) Each licensee is addressed as "you".
+
+Activities other than copying, distribution and modification are not
+covered by this License; they are outside its scope. The act of
+running the Program is not restricted, and the output from the Program
+is covered only if its contents constitute a work based on the
+Program (independent of having been made by running the Program).
+Whether that is true depends on what the Program does.
+
+ 1. You may copy and distribute verbatim copies of the Program's
+source code as you receive it, in any medium, provided that you
+conspicuously and appropriately publish on each copy an appropriate
+copyright notice and disclaimer of warranty; keep intact all the
+notices that refer to this License and to the absence of any warranty;
+and give any other recipients of the Program a copy of this License
+along with the Program.
+
+You may charge a fee for the physical act of transferring a copy, and
+you may at your option offer warranty protection in exchange for a fee.
+
+ 2. You may modify your copy or copies of the Program or any portion
+of it, thus forming a work based on the Program, and copy and
+distribute such modifications or work under the terms of Section 1
+above, provided that you also meet all of these conditions:
+
+ a) You must cause the modified files to carry prominent notices
+ stating that you changed the files and the date of any change.
+
+ b) You must cause any work that you distribute or publish, that in
+ whole or in part contains or is derived from the Program or any
+ part thereof, to be licensed as a whole at no charge to all third
+ parties under the terms of this License.
+
+ c) If the modified program normally reads commands interactively
+ when run, you must cause it, when started running for such
+ interactive use in the most ordinary way, to print or display an
+ announcement including an appropriate copyright notice and a
+ notice that there is no warranty (or else, saying that you provide
+ a warranty) and that users may redistribute the program under
+ these conditions, and telling the user how to view a copy of this
+ License. (Exception: if the Program itself is interactive but
+ does not normally print such an announcement, your work based on
+ the Program is not required to print an announcement.)
+
+These requirements apply to the modified work as a whole. If
+identifiable sections of that work are not derived from the Program,
+and can be reasonably considered independent and separate works in
+themselves, then this License, and its terms, do not apply to those
+sections when you distribute them as separate works. But when you
+distribute the same sections as part of a whole which is a work based
+on the Program, the distribution of the whole must be on the terms of
+this License, whose permissions for other licensees extend to the
+entire whole, and thus to each and every part regardless of who wrote it.
+
+Thus, it is not the intent of this section to claim rights or contest
+your rights to work written entirely by you; rather, the intent is to
+exercise the right to control the distribution of derivative or
+collective works based on the Program.
+
+In addition, mere aggregation of another work not based on the Program
+with the Program (or with a work based on the Program) on a volume of
+a storage or distribution medium does not bring the other work under
+the scope of this License.
+
+ 3. You may copy and distribute the Program (or a work based on it,
+under Section 2) in object code or executable form under the terms of
+Sections 1 and 2 above provided that you also do one of the following:
+
+ a) Accompany it with the complete corresponding machine-readable
+ source code, which must be distributed under the terms of Sections
+ 1 and 2 above on a medium customarily used for software interchange; or,
+
+ b) Accompany it with a written offer, valid for at least three
+ years, to give any third party, for a charge no more than your
+ cost of physically performing source distribution, a complete
+ machine-readable copy of the corresponding source code, to be
+ distributed under the terms of Sections 1 and 2 above on a medium
+ customarily used for software interchange; or,
+
+ c) Accompany it with the information you received as to the offer
+ to distribute corresponding source code. (This alternative is
+ allowed only for noncommercial distribution and only if you
+ received the program in object code or executable form with such
+ an offer, in accord with Subsection b above.)
+
+The source code for a work means the preferred form of the work for
+making modifications to it. For an executable work, complete source
+code means all the source code for all modules it contains, plus any
+associated interface definition files, plus the scripts used to
+control compilation and installation of the executable. However, as a
+special exception, the source code distributed need not include
+anything that is normally distributed (in either source or binary
+form) with the major components (compiler, kernel, and so on) of the
+operating system on which the executable runs, unless that component
+itself accompanies the executable.
+
+If distribution of executable or object code is made by offering
+access to copy from a designated place, then offering equivalent
+access to copy the source code from the same place counts as
+distribution of the source code, even though third parties are not
+compelled to copy the source along with the object code.
+
+ 4. You may not copy, modify, sublicense, or distribute the Program
+except as expressly provided under this License. Any attempt
+otherwise to copy, modify, sublicense or distribute the Program is
+void, and will automatically terminate your rights under this License.
+However, parties who have received copies, or rights, from you under
+this License will not have their licenses terminated so long as such
+parties remain in full compliance.
+
+ 5. You are not required to accept this License, since you have not
+signed it. However, nothing else grants you permission to modify or
+distribute the Program or its derivative works. These actions are
+prohibited by law if you do not accept this License. Therefore, by
+modifying or distributing the Program (or any work based on the
+Program), you indicate your acceptance of this License to do so, and
+all its terms and conditions for copying, distributing or modifying
+the Program or works based on it.
+
+ 6. Each time you redistribute the Program (or any work based on the
+Program), the recipient automatically receives a license from the
+original licensor to copy, distribute or modify the Program subject to
+these terms and conditions. You may not impose any further
+restrictions on the recipients' exercise of the rights granted herein.
+You are not responsible for enforcing compliance by third parties to
+this License.
+
+ 7. If, as a consequence of a court judgment or allegation of patent
+infringement or for any other reason (not limited to patent issues),
+conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot
+distribute so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you
+may not distribute the Program at all. For example, if a patent
+license would not permit royalty-free redistribution of the Program by
+all those who receive copies directly or indirectly through you, then
+the only way you could satisfy both it and this License would be to
+refrain entirely from distribution of the Program.
+
+If any portion of this section is held invalid or unenforceable under
+any particular circumstance, the balance of the section is intended to
+apply and the section as a whole is intended to apply in other
+circumstances.
+
+It is not the purpose of this section to induce you to infringe any
+patents or other property right claims or to contest validity of any
+such claims; this section has the sole purpose of protecting the
+integrity of the free software distribution system, which is
+implemented by public license practices. Many people have made
+generous contributions to the wide range of software distributed
+through that system in reliance on consistent application of that
+system; it is up to the author/donor to decide if he or she is willing
+to distribute software through any other system and a licensee cannot
+impose that choice.
+
+This section is intended to make thoroughly clear what is believed to
+be a consequence of the rest of this License.
+
+ 8. If the distribution and/or use of the Program is restricted in
+certain countries either by patents or by copyrighted interfaces, the
+original copyright holder who places the Program under this License
+may add an explicit geographical distribution limitation excluding
+those countries, so that distribution is permitted only in or among
+countries not thus excluded. In such case, this License incorporates
+the limitation as if written in the body of this License.
+
+ 9. The Free Software Foundation may publish revised and/or new versions
+of the General Public License from time to time. Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+Each version is given a distinguishing version number. If the Program
+specifies a version number of this License which applies to it and "any
+later version", you have the option of following the terms and conditions
+either of that version or of any later version published by the Free
+Software Foundation. If the Program does not specify a version number of
+this License, you may choose any version ever published by the Free Software
+Foundation.
+
+ 10. If you wish to incorporate parts of the Program into other free
+programs whose distribution conditions are different, write to the author
+to ask for permission. For software which is copyrighted by the Free
+Software Foundation, write to the Free Software Foundation; we sometimes
+make exceptions for this. Our decision will be guided by the two goals
+of preserving the free status of all derivatives of our free software and
+of promoting the sharing and reuse of software generally.
+
+ NO WARRANTY
+
+ 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
+FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
+OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
+PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
+OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
+TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
+PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
+REPAIR OR CORRECTION.
+
+ 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
+REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
+INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
+OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
+TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
+YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
+PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGES.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Programs
+
+ If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+ To do so, attach the following notices to the program. It is safest
+to attach them to the start of each source file to most effectively
+convey the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+
+ Copyright (C)
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License along
+ with this program; if not, write to the Free Software Foundation, Inc.,
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+Also add information on how to contact you by electronic and paper mail.
+
+If the program is interactive, make it output a short notice like this
+when it starts in an interactive mode:
+
+ Gnomovision version 69, Copyright (C) year name of author
+ Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+ This is free software, and you are welcome to redistribute it
+ under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License. Of course, the commands you use may
+be called something other than `show w' and `show c'; they could even be
+mouse-clicks or menu items--whatever suits your program.
+
+You should also get your employer (if you work as a programmer) or your
+school, if any, to sign a "copyright disclaimer" for the program, if
+necessary. Here is a sample; alter the names:
+
+ Yoyodyne, Inc., hereby disclaims all copyright interest in the program
+ `Gnomovision' (which makes passes at compilers) written by James Hacker.
+
+ , 1 April 1989
+ Ty Coon, President of Vice
+
+This General Public License does not permit incorporating your program into
+proprietary programs. If your program is a subroutine library, you may
+consider it more useful to permit linking proprietary applications with the
+library. If this is what you want to do, use the GNU Lesser General
+Public License instead of this License.
diff --git a/pace_revision_2/vendor/channelformer/SOURCE.json b/pace_revision_2/vendor/channelformer/SOURCE.json
new file mode 100644
index 0000000000000000000000000000000000000000..680c4ed46bc0a729f5c336975289594e0b4e96b3
--- /dev/null
+++ b/pace_revision_2/vendor/channelformer/SOURCE.json
@@ -0,0 +1,4 @@
+{
+ "repo": "dianixn/Channelformer",
+ "commit": "6312c79e103422178ab4cc3d698aeae0731c308f"
+}
\ No newline at end of file
diff --git a/pace_revision_2/vendor/fortitran/LICENSE b/pace_revision_2/vendor/fortitran/LICENSE
new file mode 100644
index 0000000000000000000000000000000000000000..97649e3ea86acb3030f3fb7dcc8f050eaddf23bb
--- /dev/null
+++ b/pace_revision_2/vendor/fortitran/LICENSE
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2025 Berkay Guler
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/pace_revision_2/vendor/fortitran/SOURCE.json b/pace_revision_2/vendor/fortitran/SOURCE.json
new file mode 100644
index 0000000000000000000000000000000000000000..51273c0bd1c241d607a67c527d81c266498ed370
--- /dev/null
+++ b/pace_revision_2/vendor/fortitran/SOURCE.json
@@ -0,0 +1,4 @@
+{
+ "repo": "BerkIGuler/AdaFortiTran",
+ "commit": "fa49e60f25579f59ba1815a27399e999b1382d5c"
+}
\ No newline at end of file
diff --git a/pace_revision_2/vendor/fortitran/src/__init__.py b/pace_revision_2/vendor/fortitran/src/__init__.py
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/pace_revision_2/vendor/fortitran/src/__pycache__/__init__.cpython-311.pyc b/pace_revision_2/vendor/fortitran/src/__pycache__/__init__.cpython-311.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..e5129d8b061ff0ac6dbd827524f4dc717542fece
Binary files /dev/null and b/pace_revision_2/vendor/fortitran/src/__pycache__/__init__.cpython-311.pyc differ
diff --git a/pace_revision_2/vendor/fortitran/src/config/__init__.py b/pace_revision_2/vendor/fortitran/src/config/__init__.py
new file mode 100644
index 0000000000000000000000000000000000000000..f7c1a5f270349ff742dd4d37727402c006742987
--- /dev/null
+++ b/pace_revision_2/vendor/fortitran/src/config/__init__.py
@@ -0,0 +1,5 @@
+"""This module provides a clean interface for loading and validating configuration files."""
+
+from .config_loader import load_config
+
+__all__ = ["load_config"]
\ No newline at end of file
diff --git a/pace_revision_2/vendor/fortitran/src/config/__pycache__/__init__.cpython-311.pyc b/pace_revision_2/vendor/fortitran/src/config/__pycache__/__init__.cpython-311.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..bfd647e9cd71da35ce59aa10ae38b1a6838c4089
Binary files /dev/null and b/pace_revision_2/vendor/fortitran/src/config/__pycache__/__init__.cpython-311.pyc differ
diff --git a/pace_revision_2/vendor/fortitran/src/config/__pycache__/config_loader.cpython-311.pyc b/pace_revision_2/vendor/fortitran/src/config/__pycache__/config_loader.cpython-311.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..f590d20b26ee80e0f21ba69c793741dc642e70e2
Binary files /dev/null and b/pace_revision_2/vendor/fortitran/src/config/__pycache__/config_loader.cpython-311.pyc differ
diff --git a/pace_revision_2/vendor/fortitran/src/config/__pycache__/schemas.cpython-311.pyc b/pace_revision_2/vendor/fortitran/src/config/__pycache__/schemas.cpython-311.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..3e654b315c9978d6e23b36fd70e21d72bbad93b3
Binary files /dev/null and b/pace_revision_2/vendor/fortitran/src/config/__pycache__/schemas.cpython-311.pyc differ
diff --git a/pace_revision_2/vendor/fortitran/src/config/config_loader.py b/pace_revision_2/vendor/fortitran/src/config/config_loader.py
new file mode 100644
index 0000000000000000000000000000000000000000..566c4c15c62bcee5e173cf6ad3f399024a316d1e
--- /dev/null
+++ b/pace_revision_2/vendor/fortitran/src/config/config_loader.py
@@ -0,0 +1,97 @@
+import yaml
+import logging
+from pathlib import Path
+from typing import Union, Tuple, Optional
+from pydantic import ValidationError
+
+from .schemas import SystemConfig, ModelConfig
+
+
+class ConfigLoader:
+ """Simple configuration loader with validation"""
+
+ def __init__(self):
+ self.logger = logging.getLogger(__name__)
+
+ def load_and_validate(self, system_config_path: Union[str, Path], model_config_path: Optional[Union[str, Path]]) -> Tuple[SystemConfig, ModelConfig]:
+ """
+ Load and validate configuration files from YAML files.
+
+ Args:
+ system_config_path: Path to YAML configuration file for OFDM-related parameters
+ model_config_path: Path to YAML configuration file for model-related parameters (None for linear model)
+
+ Returns:
+ Tuple of (SystemConfig, ModelConfig): Validated configuration objects
+
+ Raises:
+ FileNotFoundError: If either config file doesn't exist
+ ValueError: If configuration validation fails
+ """
+ if isinstance(system_config_path, str):
+ system_config_path = Path(system_config_path)
+ if isinstance(model_config_path, str):
+ model_config_path = Path(model_config_path)
+
+ if not system_config_path.exists():
+ raise FileNotFoundError(f"System configuration file not found: {system_config_path}")
+
+ if not system_config_path.suffix == '.yaml':
+ raise ValueError(f"System configuration file must be a .yaml file: {system_config_path}")
+
+ # Validate model config path if provided
+ if model_config_path is not None:
+ if not model_config_path.exists():
+ raise FileNotFoundError(f"Model configuration file not found: {model_config_path}")
+
+ if not model_config_path.suffix == '.yaml':
+ raise ValueError(f"Model configuration file must be a .yaml file: {model_config_path}")
+
+ try:
+ with open(system_config_path, 'r') as f:
+ system_raw_config = yaml.safe_load(f)
+ except yaml.YAMLError as e:
+ raise ValueError(f"Failed to parse YAML file {system_config_path}: {e}")
+
+ try:
+ system_config = SystemConfig(**system_raw_config)
+ self.logger.info(f"Successfully loaded system config from {system_config_path}")
+ except ValidationError as e:
+ raise ValueError(f"System configuration validation for {system_config_path} failed:\n{e}")
+
+ # Load model config if provided (for non-linear models)
+ if model_config_path is not None:
+ try:
+ with open(model_config_path, 'r') as f:
+ model_raw_config = yaml.safe_load(f)
+ except yaml.YAMLError as e:
+ raise ValueError(f"Failed to parse YAML file {model_config_path}: {e}")
+
+ try:
+ model_config = ModelConfig(**model_raw_config)
+ self.logger.info(f"Successfully loaded model config from {model_config_path}")
+ except ValidationError as e:
+ raise ValueError(f"Model configuration validation for {model_config_path} failed:\n{e}")
+ else:
+ # For linear model, create minimal ModelConfig (device will be set from args)
+ self.logger.info("No model config provided (linear model); creating minimal config")
+ try:
+ model_config = ModelConfig(model_type="linear")
+ except ValidationError as e:
+ raise ValueError(f"Model configuration validation failed:\n{e}")
+
+ return system_config, model_config
+
+
+def load_config(system_config_path: Union[str, Path], model_config_path: Optional[Union[str, Path]]) -> Tuple[SystemConfig, ModelConfig]:
+ """Convenience function to load and validate config.
+
+ Args:
+ system_config_path: Path to OFDM system configuration file
+ model_config_path: Path to model configuration file (None for linear model)
+
+ Returns:
+ Tuple of (SystemConfig, ModelConfig): Validated configuration objects
+ """
+ config_loader = ConfigLoader()
+ return config_loader.load_and_validate(system_config_path, model_config_path)
diff --git a/pace_revision_2/vendor/fortitran/src/config/schemas.py b/pace_revision_2/vendor/fortitran/src/config/schemas.py
new file mode 100644
index 0000000000000000000000000000000000000000..3b87eaec8da33f93fe81242adbb72258340a222b
--- /dev/null
+++ b/pace_revision_2/vendor/fortitran/src/config/schemas.py
@@ -0,0 +1,129 @@
+from pydantic import BaseModel, Field, model_validator
+from typing import Self, Tuple, List, Optional, Literal
+
+
+class OFDMParams(BaseModel):
+ # ... means required (i.e. no default value)
+ # gt=0 means greater than 0
+ num_scs: int = Field(..., gt=0, description="Number of OFDM subcarriers")
+ num_symbols: int = Field(..., gt=0, description="Number of OFDM symbols")
+
+
+class PilotParams(BaseModel):
+ # ... means required (i.e. no default value)
+ # gt=0 means greater than 0
+ num_scs: int = Field(..., gt=0, description="Number of pilots across sub-carriers")
+ num_symbols: int = Field(..., gt=0, description="Number of pilots across OFDM symbols")
+
+
+class SystemConfig(BaseModel):
+ """System configuration for OFDM and pilot parameters.
+
+ Validates that pilot parameters (subcarriers and symbols) do not exceed
+ the corresponding OFDM parameters.
+ """
+ ofdm: OFDMParams
+ pilot: PilotParams
+
+ @model_validator(mode='after') # validates after all fields are initialized
+ def validate_pilot_constraints(self) -> Self:
+ """Ensure pilot parameters don't exceed OFDM parameters."""
+ if self.pilot.num_scs > self.ofdm.num_scs:
+ raise ValueError(
+ f"Pilot sub-carriers ({self.pilot.num_scs}) cannot exceed "
+ f"OFDM sub-carriers ({self.ofdm.num_scs})"
+ )
+
+ if self.pilot.num_symbols > self.ofdm.num_symbols:
+ raise ValueError(
+ f"Pilot symbols ({self.pilot.num_symbols}) cannot exceed "
+ f"OFDM symbols ({self.ofdm.num_symbols})"
+ )
+ return self
+
+ model_config = {"extra": "forbid"} # forbid extra fields
+
+
+class BaseConfig(BaseModel):
+ """Base configuration class for model configurations.
+
+ Note: This class contains only model-specific parameters.
+ Experiment-specific parameters (device, batch_size, etc.) are handled
+ separately in TrainingArguments and passed via command line.
+ """
+ pass
+
+
+class ModelConfig(BaseConfig):
+ """Configuration for model architecture and training parameters.
+
+ Validates model-specific requirements (e.g., AdaFortiTran requires
+ adaptive_token_length and channel_adaptivity_hidden_sizes).
+ """
+
+ model_type: Literal["linear", "fortitran", "adafortitran"] = Field(
+ default="linear",
+ description="Type of model (linear, fortitran, or adafortitran)"
+ )
+ # Optional fields for transformer-based models (not required for linear)
+ patch_size: Optional[Tuple[int, int]] = Field(default=None, description="Patch size as (subcarriers_per_patch, symbols_per_patch)")
+ num_layers: Optional[int] = Field(default=None, gt=0, description="Number of transformer layers")
+ model_dim: Optional[int] = Field(default=None, gt=0, description="Model dimension")
+ num_head: Optional[int] = Field(default=None, gt=0, description="Number of attention heads")
+ activation: Literal["relu", "gelu"] = Field(
+ default="gelu",
+ description="Activation function used within the transformer's MLP block"
+ )
+ dropout: float = Field(default=0.1, ge=0.0, le=1.0, description="Dropout rate used within the transformer's FFN")
+ max_seq_len: int = Field(default=512, gt=0, description="Maximum sequence length")
+ pos_encoding_type: Literal["learnable", "sinusoidal"] = Field(
+ default="learnable",
+ description="Positional encoding type"
+ )
+ adaptive_token_length: Optional[int] = Field(
+ default=None,
+ gt=0,
+ description="Adaptive token length (required for AdaFortiTran)"
+ )
+ channel_adaptivity_hidden_sizes: Optional[List[int]] = Field(
+ default=None,
+ description="Hidden sizes for channel adaptation MLP (required for AdaFortiTran)"
+ )
+
+ @model_validator(mode='after')
+ def validate_model_specific_requirements(self) -> Self:
+ """Validate model-specific configuration requirements."""
+ if self.model_type == "linear":
+ # Linear model only needs device, no additional validation required
+ pass
+ elif self.model_type in ["fortitran", "adafortitran"]:
+ # Transformer-based models require these fields
+ required_fields = ["patch_size", "num_layers", "model_dim", "num_head"]
+ for field in required_fields:
+ if getattr(self, field) is None:
+ raise ValueError(f"{field} is required for {self.model_type} model")
+
+ # AdaFortiTran-specific requirements
+ if self.model_type == "adafortitran":
+ if self.channel_adaptivity_hidden_sizes is None:
+ raise ValueError(
+ "channel_adaptivity_hidden_sizes is required for AdaFortiTran model"
+ )
+ if self.adaptive_token_length is None:
+ raise ValueError(
+ "adaptive_token_length is required for AdaFortiTran model"
+ )
+ # FortiTran-specific constraints
+ elif self.model_type == "fortitran":
+ if self.channel_adaptivity_hidden_sizes is not None:
+ raise ValueError(
+ "channel_adaptivity_hidden_sizes should not be provided for FortiTran model"
+ )
+ if self.adaptive_token_length is not None:
+ raise ValueError(
+ "adaptive_token_length should not be provided for FortiTran model"
+ )
+
+ return self
+
+ model_config = {"extra": "forbid"} # forbid extra fields
diff --git a/pace_revision_2/vendor/fortitran/src/data/__init__.py b/pace_revision_2/vendor/fortitran/src/data/__init__.py
new file mode 100644
index 0000000000000000000000000000000000000000..d1195d50e992e8a512a5e8d96368f729b988be99
--- /dev/null
+++ b/pace_revision_2/vendor/fortitran/src/data/__init__.py
@@ -0,0 +1,6 @@
+"""Data module for loading and processing channel estimation datasets."""
+
+from .dataset import MatDataset, get_test_dataloaders
+
+__all__ = ['MatDataset', 'get_test_dataloaders']
+
diff --git a/pace_revision_2/vendor/fortitran/src/data/dataset.py b/pace_revision_2/vendor/fortitran/src/data/dataset.py
new file mode 100644
index 0000000000000000000000000000000000000000..49913d88d15402e7f24aaccab6f2cd1b55a2bb67
--- /dev/null
+++ b/pace_revision_2/vendor/fortitran/src/data/dataset.py
@@ -0,0 +1,265 @@
+"""Module for loading and processing .mat files containing channel matrices for PyTorch.
+
+This module expects .mat files with a specific naming convention and internal structure:
+
+File Naming Convention:
+ Files must follow the pattern: {file_number}_SNR-{snr}_DS-{delay_spread}_DOP-{doppler}_N-{pilot_freq}_{channel_type}.mat
+
+ Example: 1_SNR-20_DS-50_DOP-500_N-3_TDL-A.mat
+ - file_number: Sequential file identifier
+ - SNR: Signal-to-Noise Ratio in dB
+ - DS: Delay Spread in nanoseconds
+ - DOP: Maximum Doppler Shift in Hz
+ - pilot_freq: Pilot placement frequency (i.e. every Nth subcarrier is a pilot)
+ - channel_type: Channel model type (e.g., TDL-A, TDL-B, etc.)
+
+File Content Structure:
+ Each .mat file must contain a variable 'H' with shape [subcarriers, symbols, 2]:
+ - H[:, :, 0]: Complex valued ground truth channel
+ - H[:, :, 1]: Complex valued least squares (LS) channel estimate at pilot positions with zeros at non-pilot positions
+
+The dataset extracts pilot values from the LS estimates and provides metadata from the filename for adaptive channel estimation models.
+"""
+from pathlib import Path
+from typing import Callable, List, Optional, Tuple, Union
+
+import scipy.io as sio
+import torch
+from torch.utils.data import Dataset, DataLoader
+
+from src.config.schemas import PilotParams
+from src.utils import extract_values
+
+__all__ = ['MatDataset', 'get_test_dataloaders']
+
+
+class MatDataset(Dataset):
+ """Dataset for loading and formatting .mat files containing channel matrices.
+
+ Processes .mat files containing channel estimation data and converts them into
+ PyTorch complex tensors for channel estimation tasks.
+
+ Expected File Format:
+ - Files must be named according to the pattern:
+ {file_number}_SNR-{snr}_DS-{delay_spread}_DOP-{doppler}_N-{pilot_freq}_{channel_type}.mat
+ - Each .mat file must contain a variable 'H' with shape [subcarriers, symbols, 2]
+ - H[:, :, 0]: complex valued ground truth channel matrix
+ - H[:, :, 1]: complex valued least-squares (LS) channel estimate at pilot positions with zeros at non-pilot positions
+
+ Returns:
+ For each sample, returns a tuple of:
+ - LS channel estimate at pilot positions(complex tensor, shape [pilot_subcarriers, pilot_symbols])
+ - Ground truth channel estimate (complex tensor, shape [ofdm_subcarriers, ofdm_symbols])
+ - Metadata tuple: (file_number, snr, delay_spread, doppler, pilot_freq, channel_type)
+ """
+
+ def __init__(
+ self,
+ data_dir: Union[str, Path],
+ pilot_params: PilotParams,
+ transform: Optional[Callable] = None
+ ) -> None:
+ """Initialize the MatDataset.
+
+ Args:
+ data_dir: Path to the directory containing the dataset (should contain .mat files).
+ pilot_params: PilotParams object containing validated pilot dimensions.
+ transform: Optional transformation to apply to samples.
+
+ Raises:
+ FileNotFoundError: If data_dir doesn't exist.
+ ValueError: If no .mat files are found in data_dir.
+ """
+ if isinstance(data_dir, str):
+ data_dir = Path(data_dir)
+
+ self.data_dir = data_dir
+ self.pilot_params = pilot_params
+ self.transform = transform
+
+ if not self.data_dir.exists():
+ raise FileNotFoundError(f"Data directory not found: {self.data_dir}")
+
+ self.file_list = [
+ f for f in self.data_dir.glob("*.mat")
+ if not f.name.startswith(".")
+ ]
+ if not self.file_list:
+ raise ValueError(f"No .mat files found in {self.data_dir}")
+
+ def __len__(self) -> int:
+ """Return the total number of files in the dataset.
+
+ Returns:
+ Integer count of .mat files in the dataset directory
+ """
+ return len(self.file_list)
+
+ def _process_channel_data(
+ self,
+ mat_data: dict
+ ) -> Tuple[torch.Tensor, torch.Tensor]:
+ """Process channel data and extract pilot values from sparse (pilot positions only) LS-estimated channel matrix.
+
+ Extracts pilot values (non-zero entries) from LS channel estimates,
+ returning complex-valued tensors for both estimate and ground truth.
+
+ Args:
+ mat_data: Loaded .mat file data containing 'H' variable with shape [subcarriers, symbols, 2]
+
+ Returns:
+ Tuple of (pilot LS estimate at pilot positions (complex tensor, shape [pilot_scs, pilot_symbols]),
+ ground truth channel matrix (complex tensor, shape [ofdm_scs, ofdm_symbols]))
+
+ Raises:
+ ValueError: If the data format is unexpected or processing fails
+ """
+ try:
+ # Extract ground truth channel
+ h_ideal = torch.tensor(mat_data['H'][:, :, 0], dtype=torch.cfloat)
+
+ # LS channel estimate at pilot positions with zeros at non-pilot positions
+ hzero_ls = torch.tensor(mat_data['H'][:, :, 1], dtype=torch.cfloat)
+
+ # Remove zero entries, keep only channel at pilot values
+ zero_complex = torch.complex(torch.tensor(0.0), torch.tensor(0.0))
+ # Boolean masking extracts in row-major order: all OFDM symbols for subcarrier 0, then subcarrier 1, etc.
+ # Extracted order: [sc0_sym0, sc0_sym1, ..., sc0_symN, sc1_sym0, sc1_sym1, ..., sc1_symN, ...]
+ hp_ls = hzero_ls[hzero_ls != zero_complex]
+
+ # Validate expected number of pilot values (number of non-zero entries)
+ expected_pilots = self.pilot_params.num_scs * self.pilot_params.num_symbols
+ if hp_ls.numel() != expected_pilots:
+ raise ValueError(
+ f"Expected {expected_pilots} pilot values, got {hp_ls.numel()}"
+ )
+
+ # Reshape to pilot grid dimensions [subcarriers, symbols]
+ # Row-major extraction matches [subcarriers x symbols] layout directly
+ hp_ls = hp_ls.view(
+ self.pilot_params.num_scs,
+ self.pilot_params.num_symbols
+ )
+
+ return hp_ls, h_ideal
+
+ except Exception as e:
+ raise ValueError(f"Error processing channel data: {str(e)}")
+
+ def __getitem__(
+ self,
+ idx: int
+ ) -> Tuple[torch.Tensor, torch.Tensor, Tuple]:
+ """Load and process a .mat file at the given index.
+
+ Args:
+ idx: Index of the file to load.
+
+ Returns:
+ Tuple containing:
+ - Pilot LS channel estimate (complex tensor, shape [pilot_subcarriers, pilot_symbols])
+ - Ground truth channel estimate (complex tensor, shape [ofdm_subcarriers, ofdm_symbols])
+ - Metadata tuple: (file_number, snr, delay_spread, doppler, pilot_freq, channel_type)
+ All metadata values are torch.Tensor except channel_type which is a list
+
+ Raises:
+ ValueError: If file format is invalid or processing fails.
+ IndexError: If idx is out of range.
+ """
+ if not 0 <= idx < len(self):
+ raise IndexError(f"Index {idx} out of range for dataset of size {len(self)}")
+
+ try:
+ mat_data = sio.loadmat(self.file_list[idx])
+ if 'H' not in mat_data or mat_data['H'].shape[-1] != 2:
+ raise ValueError("Invalid .mat file format: missing required key 'H' or data has incorrect shape")
+
+ # Process channel data to extract pilot estimates
+ h_est, h_ideal = self._process_channel_data(mat_data)
+
+ # Extract metadata from filename
+ meta_data = extract_values(self.file_list[idx].name)
+ if meta_data is None:
+ raise ValueError(f"Unrecognized filename format: {self.file_list[idx].name}")
+
+ # Apply optional transforms
+ if self.transform:
+ h_est = self.transform(h_est)
+ h_ideal = self.transform(h_ideal)
+
+ return h_est, h_ideal, meta_data
+
+ except Exception as e:
+ raise ValueError(f"Error processing file {self.file_list[idx]}: {str(e)}")
+
+
+def get_test_dataloaders(
+ dataset_dir: Union[str, Path],
+ pilot_params: PilotParams,
+ batch_size: int
+) -> List[Tuple[str, DataLoader]]:
+ """Create DataLoaders for each subdirectory in the dataset directory.
+
+ Automatically discovers and creates appropriate DataLoader instances for
+ all subdirectories in the specified dataset directory, useful for testing
+ across multiple test conditions or scenarios.
+
+ Expected Directory Structure:
+ dataset_dir/
+ ├── DS_50/ # Delay Spread = 50
+ │ ├── 1_SNR-20_DS-50_DOP-500_N-3_TDL-A.mat
+ │ ├── 2_SNR-20_DS-50_DOP-500_N-3_TDL-A.mat
+ │ └── ...
+ ├── DS_100/ # Delay Spread = 100
+ │ ├── 1_SNR-20_DS-100_DOP-500_N-3_TDL-A.mat
+ │ └── ...
+ ├── SNR_10/ # SNR = 10 dB
+ │ ├── 1_SNR-10_DS-50_DOP-500_N-3_TDL-A.mat
+ │ └── ...
+ └── ...
+
+ Each subdirectory should contain .mat files with the naming convention:
+ {file_number}_SNR-{snr}_DS-{delay_spread}_DOP-{doppler}_N-{pilot_freq}_{channel_type}.mat
+
+ Args:
+ dataset_dir: Path to main directory containing dataset subdirectories
+ pilot_params: PilotParams object containing validated pilot dimensions
+ batch_size: Number of samples per batch
+
+ Returns:
+ List of tuples containing (subdirectory_name, corresponding_dataloader)
+
+ Raises:
+ FileNotFoundError: If dataset_dir doesn't exist
+ ValueError: If no valid subdirectories are found
+ """
+ if isinstance(dataset_dir, str):
+ dataset_dir = Path(dataset_dir)
+
+ if not dataset_dir.exists():
+ raise FileNotFoundError(f"Dataset directory not found: {dataset_dir}")
+
+ subdirs = [d for d in dataset_dir.iterdir() if d.is_dir()]
+ if not subdirs:
+ raise ValueError(f"No subdirectories found in {dataset_dir}")
+
+ test_datasets = [
+ (
+ subdir.name,
+ MatDataset(
+ subdir,
+ pilot_params
+ )
+ )
+ for subdir in subdirs
+ ]
+
+ return [
+ (name, DataLoader(
+ dataset,
+ batch_size=batch_size,
+ shuffle=False, # no shuffling for testing
+ num_workers=0
+ ))
+ for name, dataset in test_datasets
+ ]
\ No newline at end of file
diff --git a/pace_revision_2/vendor/fortitran/src/evaluate.py b/pace_revision_2/vendor/fortitran/src/evaluate.py
new file mode 100644
index 0000000000000000000000000000000000000000..65bd5a50d4b3e5df67798a1b8d38419e1ee56db1
--- /dev/null
+++ b/pace_revision_2/vendor/fortitran/src/evaluate.py
@@ -0,0 +1,481 @@
+#!/usr/bin/env python3
+"""
+Standalone evaluation script for OFDM channel estimation models.
+
+This script evaluates a trained model checkpoint on the test set. It should ONLY be run
+once you have finalized your model selection based on validation performance. This ensures
+proper separation between model development and final evaluation.
+
+Best Practice:
+ 1. Train multiple models using src/train.py
+ 2. Select the best model based on VALIDATION performance
+ 3. Run this evaluation script ONCE on the selected model to get final test metrics
+
+Usage:
+ python src/evaluate.py \\
+ --checkpoint_path runs/adafortitran_experiment/best/checkpoint_epoch_50.pt \\
+ --test_set data/test \\
+ --batch_size 128 \\
+ --output_dir results/final_evaluation
+
+The script will:
+ - Load the model checkpoint and configuration
+ - Evaluate on DS (Delay Spread), MDS (Doppler), and SNR test sets
+ - Generate performance plots and error visualizations
+ - Save results to the specified output directory
+"""
+
+import argparse
+import logging
+import torch
+from pathlib import Path
+from torch import nn
+from torch.utils.data import DataLoader
+from typing import Dict, List, Tuple, Optional
+import matplotlib.pyplot as plt
+from tqdm import tqdm
+
+from src.data import get_test_dataloaders
+from src.models import LinearEstimator, AdaFortiTranEstimator, FortiTranEstimator
+from src.utils import (
+ get_ls_mse_per_folder,
+ get_test_stats_plot,
+ get_error_images,
+ concat_complex_channel,
+ to_db
+)
+from src.config.schemas import SystemConfig, ModelConfig
+
+
+# Model registry
+MODEL_REGISTRY = {
+ "linear": LinearEstimator,
+ "adafortitran": AdaFortiTranEstimator,
+ "fortitran": FortiTranEstimator,
+}
+
+
+def setup_logging() -> logging.Logger:
+ """Set up logging configuration."""
+ logging.basicConfig(
+ level=logging.INFO,
+ format='%(asctime)s - %(name)s - %(levelname)s - %(message)s',
+ handlers=[logging.StreamHandler()]
+ )
+ return logging.getLogger(__name__)
+
+
+def load_checkpoint(checkpoint_path: Path, device: torch.device) -> Tuple[nn.Module, SystemConfig, ModelConfig, str]:
+ """Load model checkpoint and configurations.
+
+ Args:
+ checkpoint_path: Path to checkpoint file
+ device: Device to load model on
+
+ Returns:
+ Tuple of (model, system_config, model_config, model_name)
+ """
+ checkpoint = torch.load(checkpoint_path, map_location=device)
+
+ system_config = checkpoint['system_config']
+ model_config = checkpoint['model_config']
+
+ # Get model name from args or model_config
+ if 'args' in checkpoint and hasattr(checkpoint['args'], 'model_name'):
+ model_name = checkpoint['args'].model_name
+ elif hasattr(model_config, 'model_type'):
+ model_name = model_config.model_type
+ else:
+ raise ValueError("Cannot determine model type from checkpoint")
+
+ # Initialize model
+ if model_name not in MODEL_REGISTRY:
+ raise ValueError(f"Unknown model name: {model_name}. Available: {list(MODEL_REGISTRY.keys())}")
+
+ model_class = MODEL_REGISTRY[model_name]
+ model = model_class(system_config, model_config)
+
+ # Load state dict
+ model.load_state_dict(checkpoint['model_state_dict'])
+ model.eval()
+
+ return model, system_config, model_config, model_name
+
+
+def forward_pass(coarse_estimated_channel: torch.Tensor,
+ model: nn.Module,
+ meta_data: Optional[Tuple] = None) -> torch.Tensor:
+ """Perform forward pass through the model.
+
+ Args:
+ coarse_estimated_channel: LS channel estimate at pilot positions
+ model: Model to perform forward pass with
+ meta_data: Optional metadata for AdaFortiTran models
+
+ Returns:
+ Estimated channel after forward pass
+ """
+ if isinstance(model, AdaFortiTranEstimator):
+ if meta_data is not None:
+ return model(coarse_estimated_channel, meta_data)
+ else:
+ raise ValueError("AdaFortiTranEstimator requires meta_data but it was not provided")
+ else:
+ return model(coarse_estimated_channel)
+
+
+def evaluate_dataloader(model: nn.Module,
+ dataloader: DataLoader,
+ loss_fn: nn.Module,
+ device: torch.device) -> float:
+ """Evaluate model on a single dataloader.
+
+ Args:
+ model: Model to evaluate
+ dataloader: DataLoader to evaluate on
+ loss_fn: Loss function
+ device: Device to run evaluation on
+
+ Returns:
+ Average loss over the dataset
+ """
+ total_loss = 0.0
+ num_samples = 0
+ model.eval()
+
+ with torch.no_grad():
+ for batch in dataloader:
+ estimated_channel_input, ideal_channel, meta_data = batch
+
+ # Move tensors to device
+ estimated_channel_input = estimated_channel_input.to(device)
+ ideal_channel = ideal_channel.to(device)
+
+ estimated_channel = forward_pass(estimated_channel_input, model, meta_data)
+ loss = loss_fn(
+ concat_complex_channel(estimated_channel),
+ concat_complex_channel(ideal_channel)
+ )
+
+ batch_size = batch[0].size(0)
+ # Multiply by 2: complex_MSE = 2 * real_concatenated_MSE
+ total_loss += (2 * loss.item() * batch_size)
+ num_samples += batch_size
+
+ return total_loss / num_samples
+
+
+def get_test_stats(model: nn.Module,
+ test_dataloaders: List[Tuple[str, DataLoader]],
+ loss_fn: nn.Module,
+ device: torch.device,
+ logger: logging.Logger) -> Dict[int, float]:
+ """Get test statistics for a set of dataloaders.
+
+ Args:
+ model: Model to evaluate
+ test_dataloaders: List of (name, dataloader) tuples
+ loss_fn: Loss function
+ device: Device to run evaluation on
+ logger: Logger instance
+
+ Returns:
+ Dictionary mapping condition values to test errors (in dB)
+ """
+ stats = {}
+ sorted_loaders = sorted(
+ test_dataloaders,
+ key=lambda x: int(x[0].split("_")[1])
+ )
+
+ for name, test_dataloader in tqdm(sorted_loaders, desc="Evaluating conditions"):
+ var, val = name.split("_")
+ test_loss = evaluate_dataloader(model, test_dataloader, loss_fn, device)
+ db_error = to_db(test_loss)
+ logger.info(f"{var}:{val} Test MSE: {db_error:.4f} dB")
+ stats[int(val)] = db_error
+
+ return stats
+
+
+def predict_channels(model: nn.Module,
+ test_dataloaders: List[Tuple[str, DataLoader]],
+ device: torch.device) -> Dict[int, Dict]:
+ """Predict channels for visualization.
+
+ Args:
+ model: Model to use for prediction
+ test_dataloaders: List of (name, dataloader) tuples
+ device: Device to run prediction on
+
+ Returns:
+ Dictionary mapping condition values to channel predictions
+ """
+ channels = {}
+ sorted_loaders = sorted(
+ test_dataloaders,
+ key=lambda x: int(x[0].split("_")[1])
+ )
+
+ model.eval()
+ with torch.no_grad():
+ for name, test_dataloader in sorted_loaders:
+ batch = next(iter(test_dataloader))
+ estimated_channel_input, ideal_channels, meta_data = batch
+
+ # Move tensors to device
+ estimated_channel_input = estimated_channel_input.to(device)
+
+ estimated_channels = forward_pass(estimated_channel_input, model, meta_data)
+
+ var, val = name.split("_")
+ channels[int(val)] = {
+ "estimated_channel": estimated_channels[0],
+ "ideal_channel": ideal_channels[0]
+ }
+
+ return channels
+
+
+def save_results(output_dir: Path,
+ model_name: str,
+ ds_stats: Dict[int, float],
+ mds_stats: Dict[int, float],
+ snr_stats: Dict[int, float],
+ test_set: Path,
+ ds_dataloaders: List[Tuple[str, DataLoader]],
+ mds_dataloaders: List[Tuple[str, DataLoader]],
+ snr_dataloaders: List[Tuple[str, DataLoader]],
+ model: nn.Module,
+ device: torch.device,
+ logger: logging.Logger) -> None:
+ """Save evaluation results and visualizations.
+
+ Args:
+ output_dir: Directory to save results
+ model_name: Name of the model
+ ds_stats: Delay Spread test statistics
+ mds_stats: Multi-Doppler Shift test statistics
+ snr_stats: SNR test statistics
+ test_set: Path to test set directory
+ ds_dataloaders: Delay Spread dataloaders
+ mds_dataloaders: Multi-Doppler dataloaders
+ snr_dataloaders: SNR dataloaders
+ model: Model instance
+ device: Device
+ logger: Logger instance
+ """
+ output_dir.mkdir(parents=True, exist_ok=True)
+
+ # Save statistics to text file
+ with open(output_dir / "test_results.txt", "w") as f:
+ f.write("=" * 80 + "\n")
+ f.write("FINAL TEST SET EVALUATION RESULTS\n")
+ f.write("=" * 80 + "\n\n")
+
+ f.write(f"Model: {model_name}\n\n")
+
+ f.write("Delay Spread (DS) Test Results (dB MSE):\n")
+ f.write("-" * 40 + "\n")
+ for val, error in sorted(ds_stats.items()):
+ f.write(f"DS={val:3d} ns: {error:7.4f} dB\n")
+
+ f.write("\nMulti-Doppler Shift (MDS) Test Results (dB MSE):\n")
+ f.write("-" * 40 + "\n")
+ for val, error in sorted(mds_stats.items()):
+ f.write(f"DOP={val:4d} Hz: {error:7.4f} dB\n")
+
+ f.write("\nSignal-to-Noise Ratio (SNR) Test Results (dB MSE):\n")
+ f.write("-" * 40 + "\n")
+ for val, error in sorted(snr_stats.items()):
+ f.write(f"SNR={val:2d} dB: {error:7.4f} dB\n")
+
+ logger.info(f"Test results saved to {output_dir / 'test_results.txt'}")
+
+ # Get LS baseline statistics
+ try:
+ ls_ds_stats = get_ls_mse_per_folder(test_set / "DS_test_set")
+ ls_mds_stats = get_ls_mse_per_folder(test_set / "MDS_test_set")
+ ls_snr_stats = get_ls_mse_per_folder(test_set / "SNR_test_set")
+ include_ls = True
+ except Exception as e:
+ logger.warning(f"Could not compute LS baseline: {e}")
+ include_ls = False
+
+ # Generate and save plots
+ test_configs = [
+ ("DS", ds_stats, ds_dataloaders, ls_ds_stats if include_ls else None),
+ ("MDS", mds_stats, mds_dataloaders, ls_mds_stats if include_ls else None),
+ ("SNR", snr_stats, snr_dataloaders, ls_snr_stats if include_ls else None),
+ ]
+
+ for key, stats, dataloaders, ls_stats in test_configs:
+ # Plot performance comparison
+ methods = [model_name]
+ all_stats = [stats]
+
+ if include_ls and ls_stats is not None:
+ methods.insert(0, "LS")
+ all_stats.insert(0, ls_stats)
+
+ fig = get_test_stats_plot(
+ x_name=key,
+ stats=all_stats,
+ methods=methods
+ )
+ fig.savefig(output_dir / f"{key}_performance.png", dpi=300, bbox_inches='tight')
+ plt.close(fig)
+ logger.info(f"Saved {key} performance plot to {output_dir / f'{key}_performance.png'}")
+
+ # Plot error images
+ predicted_channels = predict_channels(model, dataloaders, device)
+ fig = get_error_images(key, predicted_channels, show=False)
+ fig.savefig(output_dir / f"{key}_error_images.png", dpi=300, bbox_inches='tight')
+ plt.close(fig)
+ logger.info(f"Saved {key} error images to {output_dir / f'{key}_error_images.png'}")
+
+
+def parse_args() -> argparse.Namespace:
+ """Parse command-line arguments."""
+ parser = argparse.ArgumentParser(
+ description='Evaluate a trained OFDM channel estimation model on the test set',
+ formatter_class=argparse.ArgumentDefaultsHelpFormatter
+ )
+
+ parser.add_argument(
+ '--checkpoint_path',
+ type=Path,
+ required=True,
+ help='Path to model checkpoint (.pt file)'
+ )
+ parser.add_argument(
+ '--test_set',
+ type=Path,
+ required=True,
+ help='Path to test dataset directory (should contain DS_test_set, MDS_test_set, SNR_test_set)'
+ )
+ parser.add_argument(
+ '--batch_size',
+ type=int,
+ default=128,
+ help='Batch size for evaluation'
+ )
+ parser.add_argument(
+ '--output_dir',
+ type=Path,
+ default=Path('results/evaluation'),
+ help='Directory to save evaluation results'
+ )
+ parser.add_argument(
+ '--device',
+ type=str,
+ default='auto',
+ help='Device to use (cpu, cuda, cuda:N, mps, or auto)'
+ )
+ parser.add_argument(
+ '--num_workers',
+ type=int,
+ default=4,
+ help='Number of data loading workers'
+ )
+
+ return parser.parse_args()
+
+
+def resolve_device(device_str: str) -> torch.device:
+ """Resolve device string to torch.device."""
+ if device_str == 'auto':
+ if torch.cuda.is_available():
+ return torch.device('cuda')
+ elif hasattr(torch.backends, 'mps') and torch.backends.mps.is_available():
+ return torch.device('mps')
+ else:
+ return torch.device('cpu')
+ return torch.device(device_str)
+
+
+def main():
+ """Main evaluation function."""
+ args = parse_args()
+ logger = setup_logging()
+
+ # Validate paths
+ if not args.checkpoint_path.exists():
+ raise FileNotFoundError(f"Checkpoint not found: {args.checkpoint_path}")
+ if not args.test_set.exists():
+ raise FileNotFoundError(f"Test set not found: {args.test_set}")
+
+ # Resolve device
+ device = resolve_device(args.device)
+ logger.info(f"Using device: {device}")
+
+ # Load checkpoint
+ logger.info(f"Loading checkpoint from {args.checkpoint_path}")
+ model, system_config, model_config, model_name = load_checkpoint(args.checkpoint_path, device)
+ logger.info(f"Loaded model: {model_name}")
+
+ # Load test dataloaders
+ logger.info("Loading test datasets...")
+ ds_dataloaders = get_test_dataloaders(
+ args.test_set / "DS_test_set",
+ system_config.pilot,
+ args.batch_size,
+ num_workers=args.num_workers
+ )
+ mds_dataloaders = get_test_dataloaders(
+ args.test_set / "MDS_test_set",
+ system_config.pilot,
+ args.batch_size,
+ num_workers=args.num_workers
+ )
+ snr_dataloaders = get_test_dataloaders(
+ args.test_set / "SNR_test_set",
+ system_config.pilot,
+ args.batch_size,
+ num_workers=args.num_workers
+ )
+ logger.info("Test datasets loaded successfully")
+
+ # Define loss function
+ loss_fn = nn.MSELoss()
+
+ # Run evaluation
+ logger.info("=" * 80)
+ logger.info("Starting Test Set Evaluation")
+ logger.info("=" * 80)
+
+ logger.info("\nEvaluating Delay Spread (DS) robustness...")
+ ds_stats = get_test_stats(model, ds_dataloaders, loss_fn, device, logger)
+
+ logger.info("\nEvaluating Multi-Doppler Shift (MDS) robustness...")
+ mds_stats = get_test_stats(model, mds_dataloaders, loss_fn, device, logger)
+
+ logger.info("\nEvaluating Signal-to-Noise Ratio (SNR) robustness...")
+ snr_stats = get_test_stats(model, snr_dataloaders, loss_fn, device, logger)
+
+ # Save results
+ logger.info("\nSaving results...")
+ save_results(
+ output_dir=args.output_dir,
+ model_name=model_name,
+ ds_stats=ds_stats,
+ mds_stats=mds_stats,
+ snr_stats=snr_stats,
+ test_set=args.test_set,
+ ds_dataloaders=ds_dataloaders,
+ mds_dataloaders=mds_dataloaders,
+ snr_dataloaders=snr_dataloaders,
+ model=model,
+ device=device,
+ logger=logger
+ )
+
+ logger.info("=" * 80)
+ logger.info("Evaluation Complete!")
+ logger.info(f"Results saved to: {args.output_dir}")
+ logger.info("=" * 80)
+
+
+if __name__ == "__main__":
+ main()
+
diff --git a/pace_revision_2/vendor/fortitran/src/main/__init__.py b/pace_revision_2/vendor/fortitran/src/main/__init__.py
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/pace_revision_2/vendor/fortitran/src/main/parser.py b/pace_revision_2/vendor/fortitran/src/main/parser.py
new file mode 100644
index 0000000000000000000000000000000000000000..92da0ea5778704ce55a223a7e4a1e406bed0265f
--- /dev/null
+++ b/pace_revision_2/vendor/fortitran/src/main/parser.py
@@ -0,0 +1,380 @@
+"""
+Command line argument parser for OFDM channel estimation model training.
+
+This module provides functionality for parsing and validating command-line arguments
+used in training OFDM channel estimation models. It defines the available parameters,
+their types, default values, and validation rules to ensure proper configuration
+of training runs.
+"""
+
+from pathlib import Path
+import argparse
+from pydantic import BaseModel, Field, model_validator
+from typing import Self, Optional, Literal
+import torch
+
+
+class TrainingArguments(BaseModel):
+ """Container for OFDM model training arguments.
+
+ Stores, validates, and provides access to all parameters needed for
+ training an OFDM channel estimation model.
+
+ Attributes:
+ # Model Configuration
+ model_name: Supports linear, adafortitran, or fortitran training
+ system_config_path: Path to OFDM system configuration file
+ model_config_path: Path to model configuration file (not required for linear model)
+ device: Computing device (cpu, cuda, cuda:N, mps, or auto)
+
+ # Dataset Paths
+ train_set: Path to training dataset directory
+ val_set: Path to validation dataset directory
+
+ # Experiment Settings
+ exp_id: Experiment identifier string used for logging and checkpointing
+ python_log_level: Logging verbosity level for python logging module
+ tensorboard_log_dir: Directory for tensorboard logs
+ python_log_dir: Directory for python logging files
+
+ # Training Hyperparameters
+ batch_size: Number of samples per mini-batch
+ lr: Learning rate for optimizer
+ max_epoch: Maximum number of training epochs
+ patience: Early stopping patience in epochs
+ weight_decay: Weight decay for optimizer (i.e. lambda for L2 regularization on the model weights)
+ gradient_clip_val: Gradient clipping value (i.e. max norm for gradient clipping)
+ use_mixed_precision: Whether to use mixed precision training
+
+ # Checkpointing
+ save_checkpoints: Whether to save model checkpoints
+ save_best_only: Whether to save only the best model
+ save_every_n_epochs: Save checkpoint every N training epochs
+ resume_from_checkpoint: Path to checkpoint to resume training from
+
+ # Data Loading
+ num_workers: Number of data loading workers for parallel data loading
+ pin_memory: Whether to pin memory for faster GPU data transfer
+ """
+
+ # Model Configuration
+ model_name: Literal['linear', 'adafortitran', 'fortitran'] = Field(..., description="Model type to train (linear, adafortitran, or fortitran)")
+ system_config_path: Path = Field(..., description="Path to OFDM system configuration file (YAML file)")
+ model_config_path: Optional[Path] = Field(default=None, description="Path to model configuration file (YAML file); not required for linear model")
+ device: str = Field(default="auto", description="Computing device (cpu, cuda, cuda:0, mps, or auto)")
+
+ # Dataset Paths
+ train_set: Path = Field(..., description="Training dataset folder path")
+ val_set: Path = Field(..., description="Validation dataset folder path")
+
+ # Experiment Settings
+ exp_id: str = Field(..., description="Experiment identifier for log folder naming")
+ python_log_level: Literal['DEBUG', 'INFO', 'WARNING', 'ERROR', 'CRITICAL'] = Field(default="INFO", description="Logger level for python logging module")
+ tensorboard_log_dir: Path = Field(default=Path("runs"), description="Directory for tensorboard logs")
+ python_log_dir: Path = Field(default=Path("logs"), description="Directory for python logging files")
+
+ # Training Hyperparameters
+ batch_size: int = Field(default=64, gt=0, description="Training batch size")
+ lr: float = Field(default=1e-3, gt=0, description="Initial learning rate")
+ max_epoch: int = Field(default=10, gt=0, description="Maximum number of training epochs")
+ patience: int = Field(default=3, gt=0, description="Early stopping patience (epochs)")
+ weight_decay: float = Field(default=0.0, ge=0.0, description="Weight decay for optimizer (L2 regularization on the model weights)")
+ gradient_clip_val: Optional[float] = Field(default=None, gt=0, description="Gradient clipping value")
+ use_mixed_precision: bool = Field(default=False, description="Whether to use mixed precision training")
+
+ # Checkpointing
+ save_checkpoints: bool = Field(default=True, description="Whether to save model checkpoints")
+ save_best_only: bool = Field(default=True, description="Whether to save only the best model")
+ save_every_n_epochs: Optional[int] = Field(default=None, gt=0, description="Save checkpoint every N training epochs")
+ resume_from_checkpoint: Optional[Path] = Field(default=None, description="Path to checkpoint to resume training from")
+
+ # Data Loading
+ num_workers: int = Field(default=4, ge=0, description="Number of data loading workers")
+ pin_memory: bool = Field(default=True, description="Whether to pin memory for faster GPU data transfer")
+
+ @model_validator(mode='after')
+ def validate_arguments(self) -> Self:
+ """Validate training arguments.
+
+ Checks paths, device, hyperparameters, and logical consistency.
+
+ Raises:
+ ValueError: If validation fails
+ """
+ # Validate system config path
+ if not self.system_config_path.exists():
+ raise ValueError(f"System configuration file not found: {self.system_config_path}")
+ if not self.system_config_path.suffix == '.yaml':
+ raise ValueError(f"System configuration file must be a .yaml file: {self.system_config_path}")
+
+ # Model config is required for non-linear models
+ if self.model_name != 'linear':
+ if self.model_config_path is None:
+ raise ValueError("model_config_path is required unless model_name is 'linear'")
+ if not self.model_config_path.exists():
+ raise ValueError(f"Model configuration file not found: {self.model_config_path}")
+ if not self.model_config_path.suffix == '.yaml':
+ raise ValueError(f"Model configuration file must be a .yaml file: {self.model_config_path}")
+
+ # Validate checkpoint path if provided
+ if self.resume_from_checkpoint is not None:
+ if not self.resume_from_checkpoint.exists():
+ raise ValueError(f"Checkpoint file not found: {self.resume_from_checkpoint}")
+ if not self.resume_from_checkpoint.suffix == '.pt':
+ raise ValueError(f"Checkpoint file must be a .pt file: {self.resume_from_checkpoint}")
+
+ # Validate dataset paths exist
+ if not self.train_set.exists():
+ raise ValueError(f"Training dataset not found: {self.train_set}")
+ if not self.val_set.exists():
+ raise ValueError(f"Validation dataset not found: {self.val_set}")
+
+ # Validate and resolve device
+ self._validate_and_resolve_device()
+
+ return self
+
+ def _validate_and_resolve_device(self) -> None:
+ """Validate and resolve the device string.
+
+ Handles 'auto' selection, validates CUDA and MPS availability,
+ and checks CUDA device IDs.
+
+ Raises:
+ ValueError: If device is invalid or unavailable
+ """
+ device_str = self.device.lower()
+
+ # Handle 'auto' - automatically select best available device
+ if device_str == 'auto':
+ if torch.cuda.is_available():
+ self.device = 'cuda'
+ elif hasattr(torch.backends, 'mps') and torch.backends.mps.is_available():
+ self.device = 'mps' # Apple Silicon (MPS)
+ else:
+ self.device = 'cpu'
+ return
+
+ # CPU is always valid
+ if device_str == 'cpu':
+ return
+
+ # Validate CUDA devices
+ if device_str.startswith('cuda'):
+ if not torch.cuda.is_available():
+ raise ValueError("CUDA is not available on this system")
+
+ # Handle specific CUDA device (e.g., 'cuda:0', 'cuda:1')
+ if ':' in device_str:
+ try:
+ device_id = int(device_str.split(':')[1])
+ if device_id >= torch.cuda.device_count():
+ available_devices = list(range(torch.cuda.device_count()))
+ raise ValueError(
+ f"CUDA device {device_id} not available. "
+ f"Available CUDA devices: {available_devices}"
+ )
+ except (ValueError, IndexError) as e:
+ if "invalid literal" in str(e):
+ raise ValueError(f"Invalid CUDA device format: {device_str}")
+ raise
+ return
+
+ # Validate MPS (Apple Silicon)
+ if device_str == 'mps':
+ if not (hasattr(torch.backends, 'mps') and torch.backends.mps.is_available()):
+ raise ValueError("MPS is not available/detected on this system")
+ return
+
+ # If we get here, the device is not recognized
+ available_devices = ['cpu']
+ if torch.cuda.is_available():
+ cuda_devices = [f'cuda:{i}' for i in range(torch.cuda.device_count())]
+ available_devices.extend(['cuda'] + cuda_devices)
+ if hasattr(torch.backends, 'mps') and torch.backends.mps.is_available():
+ available_devices.append('mps')
+
+ raise ValueError(
+ f"Unsupported device: '{self.device}'. "
+ f"Available devices: {available_devices}"
+ )
+
+
+def parse_arguments() -> TrainingArguments:
+ """Parse command-line arguments for training an OFDM channel estimation model.
+
+ Sets up an argument parser with all required and optional arguments,
+ processes the command line input, and returns a validated TrainingArguments
+ object with all parameters needed for model training.
+
+ Returns:
+ TrainingArguments: Validated arguments for model training
+
+ Raises:
+ ValueError: If validation fails for any arguments
+ SystemExit: If argument parsing fails (raised by argparse)
+ """
+
+ parser = argparse.ArgumentParser(
+ description='Train an OFDM channel estimation model',
+ formatter_class=argparse.ArgumentDefaultsHelpFormatter
+ )
+
+ # Required arguments
+ required = parser.add_argument_group('required arguments')
+ required.add_argument(
+ '--model_name',
+ type=str,
+ required=True,
+ choices=['linear', 'adafortitran', 'fortitran'],
+ help='Model type to train (linear, adafortitran, or fortitran)'
+ )
+ required.add_argument(
+ '--system_config_path',
+ type=Path,
+ required=True,
+ help='Path to YAML file containing OFDM system parameters'
+ )
+
+ required.add_argument(
+ '--train_set',
+ type=Path,
+ required=True,
+ help='Training dataset folder path'
+ )
+ required.add_argument(
+ '--val_set',
+ type=Path,
+ required=True,
+ help='Validation dataset folder path'
+ )
+ required.add_argument(
+ '--exp_id',
+ type=str,
+ required=True,
+ help='Experiment identifier for log folder naming'
+ )
+
+ # Optional argument; path for model configuration file
+ # required for non-linear models in TrainingArguments class
+ parser.add_argument(
+ '--model_config_path',
+ type=Path,
+ default=None,
+ help='Path to YAML with model architecture (required for fortitran/adafortitran; optional for linear)'
+ )
+
+ parser.add_argument(
+ '--device',
+ type=str,
+ default='auto',
+ help='Computing device: cpu, cuda, cuda:N, mps, or auto (default: auto selects best available)'
+ )
+
+ # Training hyperparameters
+ training = parser.add_argument_group('training hyperparameters')
+ training.add_argument(
+ '--batch_size',
+ type=int,
+ default=64,
+ help='Training batch size'
+ )
+ training.add_argument(
+ '--lr',
+ type=float,
+ default=1e-3,
+ help='Initial learning rate'
+ )
+ training.add_argument(
+ '--max_epoch',
+ type=int,
+ default=10,
+ help='Maximum number of training epochs'
+ )
+ training.add_argument(
+ '--patience',
+ type=int,
+ default=3,
+ help='Early stopping patience (epochs)'
+ )
+ training.add_argument(
+ '--weight_decay',
+ type=float,
+ default=0.0,
+ help='Weight decay for optimizer (L2 regularization on the model weights)'
+ )
+ training.add_argument(
+ '--gradient_clip_val',
+ type=float,
+ default=None,
+ help='Gradient clipping value (disabled if not specified); recommended value: 1.0'
+ )
+ training.add_argument(
+ '--use_mixed_precision',
+ action='store_true',
+ default=False,
+ help='Use mixed precision training'
+ )
+
+ # Checkpointing settings
+ checkpointing = parser.add_argument_group('checkpointing settings')
+ checkpointing.add_argument(
+ '--save_best_only',
+ action='store_true',
+ default=False,
+ help='Save only the best model based on validation loss (default: save all models)'
+ )
+ checkpointing.add_argument(
+ '--save_every_n_epochs',
+ type=int,
+ default=10,
+ help='Save checkpoint every N training epochs (in addition to best model)'
+ )
+ checkpointing.add_argument(
+ '--resume_from_checkpoint',
+ type=Path,
+ default=None,
+ help='Path to checkpoint file to resume training from'
+ )
+
+ # Data loading settings
+ data_loading = parser.add_argument_group('data loading settings')
+ data_loading.add_argument(
+ '--num_workers',
+ type=int,
+ default=4,
+ help='Number of data loading workers'
+ )
+ data_loading.add_argument(
+ '--pin_memory',
+ action='store_true',
+ default=True,
+ help='Pin memory for faster GPU transfer'
+ )
+
+ # Logging settings
+ logging_group = parser.add_argument_group('logging settings')
+ logging_group.add_argument(
+ '--python_log_level',
+ type=str,
+ default="INFO",
+ choices=['DEBUG', 'INFO', 'WARNING', 'ERROR', 'CRITICAL'],
+ help='Logger level for python logging module'
+ )
+ logging_group.add_argument(
+ '--tensorboard_log_dir',
+ type=Path,
+ default="runs",
+ help='Directory for tensorboard logs'
+ )
+ logging_group.add_argument(
+ '--python_log_dir',
+ type=Path,
+ default="logs",
+ help='Directory for python logging files'
+ )
+
+ args = parser.parse_args()
+
+ # Create and validate TrainingArguments
+ return TrainingArguments(**vars(args))
diff --git a/pace_revision_2/vendor/fortitran/src/main/trainer.py b/pace_revision_2/vendor/fortitran/src/main/trainer.py
new file mode 100644
index 0000000000000000000000000000000000000000..7f6725b9934d5b1a8c26af4e65313aab8d59b423
--- /dev/null
+++ b/pace_revision_2/vendor/fortitran/src/main/trainer.py
@@ -0,0 +1,589 @@
+"""
+OFDM channel estimation model training module.
+
+This module provides functionality for training and evaluating deep learning models
+for OFDM channel estimation tasks. It includes a ModelTrainer class that handles
+the complete training workflow, including model initialization, data loading,
+training loop management, evaluation, and result logging.
+"""
+from __future__ import annotations
+import torch
+from torch import nn, optim
+from torch.utils.data import DataLoader
+from torch.utils.tensorboard.writer import SummaryWriter
+from typing import Dict, Tuple, Type, Union, Optional, List
+import logging
+from tqdm import tqdm
+from dataclasses import dataclass
+from pathlib import Path
+from abc import ABC, abstractmethod
+
+from .parser import TrainingArguments
+from src.data import MatDataset
+from src.models import LinearEstimator, AdaFortiTranEstimator, FortiTranEstimator
+from src.utils import (
+ EarlyStopping,
+ get_model_details,
+ concat_complex_channel
+)
+from src.config.schemas import SystemConfig, ModelConfig
+
+# A union type representing supported model classes
+ModelType = Union[LinearEstimator, AdaFortiTranEstimator, FortiTranEstimator]
+
+
+@dataclass
+class TrainingMetrics:
+ """Container for training metrics."""
+ train_loss: float
+ val_loss: float
+ epoch: int
+ learning_rate: float
+
+
+class Callback(ABC):
+ """Base class for training callbacks."""
+
+ @abstractmethod
+ def on_epoch_begin(self, epoch: int) -> None:
+ """Called at the beginning of each epoch."""
+ pass
+
+ @abstractmethod
+ def on_epoch_end(self, epoch: int, metrics: TrainingMetrics) -> None:
+ """Called at the end of each epoch."""
+ pass
+
+ @abstractmethod
+ def on_training_begin(self) -> None:
+ """Called at the beginning of training."""
+ pass
+
+ @abstractmethod
+ def on_training_end(self) -> None:
+ """Called at the end of training."""
+ pass
+
+
+class CheckpointCallback(Callback):
+ """Callback for saving model checkpoints."""
+
+ def __init__(self, save_dir: Path, save_best_only: bool = True,
+ save_every_n_epochs: Optional[int] = None):
+ self.save_dir = save_dir
+ self.save_best_only = save_best_only
+ self.save_every_n_epochs = save_every_n_epochs
+ self.best_val_loss = float('inf')
+ self.trainer = None
+
+ def set_trainer(self, trainer: ModelTrainer) -> None:
+ """Set the trainer reference."""
+ self.trainer = trainer
+
+ def on_epoch_begin(self, epoch: int) -> None:
+ pass
+
+ def on_epoch_end(self, epoch: int, metrics: TrainingMetrics) -> None:
+ if self.trainer is None:
+ return
+
+ # Save best model
+ if self.save_best_only and metrics.val_loss < self.best_val_loss:
+ self.best_val_loss = metrics.val_loss
+ self.trainer.save_checkpoint(
+ epoch, metrics,
+ checkpoint_dir=self.save_dir / "best"
+ )
+
+ # Save every N epochs
+ if (self.save_every_n_epochs is not None and
+ (epoch + 1) % self.save_every_n_epochs == 0):
+ self.trainer.save_checkpoint(
+ epoch, metrics,
+ checkpoint_dir=self.save_dir / "periodic"
+ )
+
+ def on_training_begin(self) -> None:
+ self.save_dir.mkdir(parents=True, exist_ok=True)
+
+ def on_training_end(self) -> None:
+ pass
+
+
+class TensorBoardCallback(Callback):
+ """Callback for TensorBoard logging."""
+
+ def __init__(self, writer: SummaryWriter):
+ self.writer = writer
+
+ def on_epoch_begin(self, epoch: int) -> None:
+ pass
+
+ def on_epoch_end(self, epoch: int, metrics: TrainingMetrics) -> None:
+ self.writer.add_scalar('Loss/Train', metrics.train_loss, metrics.epoch + 1)
+ self.writer.add_scalar('Loss/Val', metrics.val_loss, metrics.epoch + 1)
+ self.writer.add_scalar('Learning_Rate', metrics.learning_rate, metrics.epoch + 1)
+
+ def on_training_begin(self) -> None:
+ pass
+
+ def on_training_end(self) -> None:
+ self.writer.close()
+
+
+class TrainingLoop:
+ """Handles the core training loop logic."""
+
+ def __init__(self, model: ModelType, optimizer: optim.Optimizer,
+ scheduler: optim.lr_scheduler.LRScheduler,
+ loss_fn: nn.Module, device: torch.device, scaler: Optional[torch.cuda.amp.GradScaler] = None,
+ gradient_clip_val: Optional[float] = None):
+ self.model = model
+ self.optimizer = optimizer
+ self.scheduler = scheduler
+ self.loss_fn = loss_fn
+ self.device = device
+ self.scaler = scaler
+ self.gradient_clip_val = gradient_clip_val
+
+ def _compute_loss(self, estimated_channel: torch.Tensor,
+ ideal_channel: torch.Tensor) -> torch.Tensor:
+ """Compute loss between estimated and ideal channels."""
+ # since torch loss functions expect real-valued tensors,
+ # we need to concatenate the real and imaginary parts of
+ # the channel matrices and compute the loss on the concatenated tensor.
+ return self.loss_fn(
+ concat_complex_channel(estimated_channel),
+ concat_complex_channel(ideal_channel)
+ )
+
+ def _forward_pass(self, coarse_estimated_channel: torch.Tensor,
+ model: ModelType,
+ meta_data: Optional[Tuple] = None) -> torch.Tensor:
+ """Perform forward pass through the model.
+
+ Args:
+ coarse_estimated_channel: LS channel estimate at pilot positions (coarse estimate)
+ model: Model to perform forward pass with
+ meta_data: Optional metadata, only used by AdaFortiTran models
+
+ Returns:
+ Estimated channel after forward pass through the model (refined estimate).
+ """
+ if isinstance(model, AdaFortiTranEstimator):
+ # AdaFortiTran uses meta_data for channel adaptation
+ if meta_data is not None:
+ return model(coarse_estimated_channel, meta_data)
+ else:
+ raise ValueError("AdaFortiTranEstimator requires meta_data but it was not provided")
+ else:
+ # Linear and FortiTran models don't use meta_data
+ return model(coarse_estimated_channel)
+
+ def train_epoch(self, train_loader: DataLoader) -> float:
+ """Train for one epoch."""
+ train_loss = 0.0
+ self.model.train()
+ num_samples = 0
+
+ for batch in train_loader:
+ self.optimizer.zero_grad()
+ estimated_channel_input, ideal_channel, meta_data = batch
+
+ # Move tensors to device
+ estimated_channel_input = estimated_channel_input.to(self.device)
+ ideal_channel = ideal_channel.to(self.device)
+
+ estimated_channel = self._forward_pass(estimated_channel_input, self.model, meta_data)
+
+ if self.scaler:
+ with torch.cuda.amp.autocast():
+ loss = self._compute_loss(estimated_channel, ideal_channel)
+ self.scaler.scale(loss).backward()
+
+ # Gradient clipping
+ if self.gradient_clip_val:
+ self.scaler.unscale_(self.optimizer)
+ torch.nn.utils.clip_grad_norm_(self.model.parameters(), self.gradient_clip_val)
+
+ self.scaler.step(self.optimizer)
+ self.scaler.update()
+ else:
+ loss = self._compute_loss(estimated_channel, ideal_channel)
+ loss.backward()
+
+ # Gradient clipping
+ if self.gradient_clip_val:
+ torch.nn.utils.clip_grad_norm_(self.model.parameters(), self.gradient_clip_val)
+
+ self.optimizer.step()
+
+ batch_size = batch[0].size(0)
+ # Multiply by 2 because concat_complex_channel doubles the tensor size,
+ # so MSE on concatenated real+imag gives half the true complex MSE
+ train_loss += (2 * loss.item() * batch_size)
+ num_samples += batch_size
+
+ self.scheduler.step()
+ return train_loss / num_samples
+
+ def evaluate(self, eval_loader: DataLoader) -> float:
+ """Evaluate the model."""
+ val_loss = 0.0
+ self.model.eval()
+ num_samples = 0
+
+ with torch.no_grad():
+ for batch in eval_loader:
+ estimated_channel_input, ideal_channel, meta_data = batch
+
+ # Move tensors to device
+ estimated_channel_input = estimated_channel_input.to(self.device)
+ ideal_channel = ideal_channel.to(self.device)
+
+ estimated_channel = self._forward_pass(estimated_channel_input, self.model, meta_data)
+
+ if self.scaler:
+ with torch.cuda.amp.autocast():
+ loss = self._compute_loss(estimated_channel, ideal_channel)
+ else:
+ loss = self._compute_loss(estimated_channel, ideal_channel)
+
+ batch_size = batch[0].size(0)
+ # Multiply by 2: complex_MSE = 2 * real_concatenated_MSE
+ val_loss += (2 * loss.item() * batch_size)
+ num_samples += batch_size
+
+ return val_loss / num_samples
+
+
+class ModelTrainer:
+ """Handles the training and evaluation of deep learning models.
+
+ This class manages the complete lifecycle of model training, including:
+ - Model initialization and configuration
+ - Optimizer and loss function setup
+ - Data loading and preprocessing
+ - Training loop execution
+ - Performance evaluation
+ - Result logging and visualization via TensorBoard
+
+ Attributes:
+ MODEL_REGISTRY: Dictionary mapping model names to model classes
+ system_config: OFDM system configuration
+ model_config: OFDM model configuration
+ args: Training arguments parsed from command line
+ device: PyTorch device for computation
+ writer: TensorBoard SummaryWriter for logging
+ model: Initialized Torch model instance
+ optimizer: Torch optimizer for training
+ scheduler: Learning rate scheduler for training
+ early_stopper: Helper for early stopping
+ train_loader: DataLoader for training set (used for training)
+ val_loader: DataLoader for validation set (used for validation)
+ logger: Logger instance for logging messages
+ training_loop: TrainingLoop instance for core training logic
+ callbacks: List of training callbacks
+ """
+
+ MODEL_REGISTRY: Dict[str, Type[ModelType]] = {
+ "linear": LinearEstimator,
+ "adafortitran": AdaFortiTranEstimator,
+ "fortitran": FortiTranEstimator,
+ }
+
+ EXP_LR_GAMMA = 0.995
+
+ def __init__(self, system_config: SystemConfig, model_config: ModelConfig, args: TrainingArguments, run_name: str):
+ """
+ Initialize the ModelTrainer.
+
+ Args:
+ system_config: OFDM system configuration dictionary from YAML file
+ model_config: OFDM model configuration dictionary from YAML file
+ args: Validated training arguments parsed from command line
+ run_name: Unique run identifier (model_name_exp_id_timestamp) for logs and checkpoints
+ """
+ self.system_config = system_config
+ self.model_config = model_config
+ self.args = args
+ self.run_name = run_name
+ self.device = torch.device(args.device)
+ self.writer = self._setup_tensorboard()
+ self.logger = logging.getLogger(__name__)
+
+ self.model = self._initialize_model()
+
+ # Initialize optimizer with weight decay
+ self.optimizer = optim.Adam(
+ self.model.parameters(),
+ lr=args.lr,
+ weight_decay=args.weight_decay
+ )
+
+ self.scheduler = optim.lr_scheduler.ExponentialLR(self.optimizer, gamma=self.EXP_LR_GAMMA)
+ self.early_stopper = EarlyStopping(patience=args.patience)
+ self.training_loss = nn.MSELoss()
+
+ # Initialize mixed precision training if requested
+ self.scaler = None
+ if args.use_mixed_precision and self.device.type == 'cuda':
+ self.scaler = torch.cuda.amp.GradScaler()
+ self.logger.info("Mixed precision training enabled")
+
+ self.train_loader, self.val_loader = self._get_dataloaders()
+
+ # Initialize components
+ self.training_loop = TrainingLoop(
+ self.model, self.optimizer, self.scheduler, self.training_loss,
+ self.device, self.scaler, self.args.gradient_clip_val
+ )
+
+ # Initialize callbacks
+ self.callbacks = self._setup_callbacks()
+
+ # Resume from checkpoint if specified
+ if args.resume_from_checkpoint is not None:
+ self._resume_from_checkpoint(args.resume_from_checkpoint)
+
+ def _setup_callbacks(self) -> List[Callback]:
+ """Set up training callbacks."""
+ callbacks = []
+
+ # TensorBoard callback
+ callbacks.append(TensorBoardCallback(self.writer))
+
+ # Checkpoint callback (only if checkpointing is enabled)
+ if self.args.save_checkpoints:
+ checkpoint_dir = self.args.tensorboard_log_dir / self.run_name
+ checkpoint_callback = CheckpointCallback(
+ save_dir=checkpoint_dir,
+ save_best_only=self.args.save_best_only,
+ save_every_n_epochs=self.args.save_every_n_epochs
+ )
+ checkpoint_callback.set_trainer(self)
+ callbacks.append(checkpoint_callback)
+
+ return callbacks
+
+ def _setup_tensorboard(self) -> SummaryWriter:
+ """Set up TensorBoard logging.
+
+ Creates a unique log directory based on the run name.
+
+ Returns:
+ Initialized SummaryWriter for TensorBoard logging
+ """
+ log_path = self.args.tensorboard_log_dir / self.run_name
+ return SummaryWriter(str(log_path))
+
+ def _initialize_model(self) -> ModelType:
+ """Initialize the model based on configuration.
+
+ Creates an instance of the appropriate model class from the registry,
+ logs model summary information, and returns the initialized model.
+
+ Returns:
+ Initialized model instance of the specified type
+ """
+ if self.args.model_name not in self.MODEL_REGISTRY:
+ raise ValueError(f"Unknown model name: {self.args.model_name}. Available: {list(self.MODEL_REGISTRY.keys())}")
+
+ model_class = self.MODEL_REGISTRY[self.args.model_name]
+ model = model_class(self.system_config, self.model_config, device=self.args.device)
+
+ num_params, model_summary = get_model_details(model)
+ self.logger.info("\n" + str(model_summary))
+ self.logger.info(f"Model name: {self.args.model_name} | Number of parameters: {num_params}")
+ self.writer.add_text("Model Summary", str(model_summary))
+ self.writer.add_text("Number of Parameters", str(num_params))
+ return model
+
+ def _get_dataloaders(self) -> Tuple[DataLoader, DataLoader]:
+ """Get training and validation dataloaders."""
+ # Training and validation dataloaders
+ train_dataset = MatDataset(self.args.train_set, self.system_config.pilot)
+ val_dataset = MatDataset(self.args.val_set, self.system_config.pilot)
+
+ train_loader = DataLoader(
+ train_dataset,
+ batch_size=self.args.batch_size,
+ shuffle=True,
+ num_workers=self.args.num_workers,
+ pin_memory=self.args.pin_memory and self.device.type == 'cuda'
+ )
+
+ val_loader = DataLoader(
+ val_dataset,
+ batch_size=self.args.batch_size,
+ shuffle=False, # No need to shuffle validation data
+ num_workers=self.args.num_workers,
+ pin_memory=self.args.pin_memory and self.device.type == 'cuda'
+ )
+
+ return train_loader, val_loader
+
+ def _log_final_metrics(self, final_epoch: int) -> None:
+ """Log final training metrics and hyperparameters.
+
+ Records hyperparameters used in training for experiment tracking.
+
+ Args:
+ final_epoch: The index of the final training epoch
+ """
+ str_params = {k: str(v) for k, v in vars(self.args).items()}
+ self.writer.add_hparams(
+ hparam_dict=str_params,
+ metric_dict={"last_epoch": final_epoch + 1},
+ run_name="."
+ )
+
+ def save_checkpoint(self, epoch: int, metrics: TrainingMetrics,
+ checkpoint_dir: Optional[Path] = None) -> None:
+ """Save model checkpoint.
+
+ Args:
+ epoch: Current epoch number
+ metrics: Current training metrics
+ checkpoint_dir: Directory to save checkpoint (defaults to tensorboard log dir)
+ """
+ if checkpoint_dir is None:
+ checkpoint_dir = self.args.tensorboard_log_dir / f"{self.args.model_name}_{self.args.exp_id}"
+
+ checkpoint_dir.mkdir(parents=True, exist_ok=True)
+ checkpoint_path = checkpoint_dir / f"checkpoint_epoch_{epoch}.pt"
+
+ checkpoint = {
+ 'epoch': epoch,
+ 'model_state_dict': self.model.state_dict(),
+ 'optimizer_state_dict': self.optimizer.state_dict(),
+ 'scheduler_state_dict': self.scheduler.state_dict(),
+ 'train_loss': metrics.train_loss,
+ 'val_loss': metrics.val_loss,
+ 'learning_rate': metrics.learning_rate,
+ 'system_config': self.system_config,
+ 'model_config': self.model_config,
+ 'args': self.args
+ }
+
+ # Save scaler state if using mixed precision
+ if self.scaler:
+ checkpoint['scaler_state_dict'] = self.scaler.state_dict()
+
+ torch.save(checkpoint, checkpoint_path)
+ self.logger.info(f"Checkpoint saved to {checkpoint_path}")
+
+ def load_checkpoint(self, checkpoint_path: Path) -> int:
+ """Load model checkpoint.
+
+ Args:
+ checkpoint_path: Path to checkpoint file
+
+ Returns:
+ Epoch number of loaded checkpoint
+ """
+ checkpoint = torch.load(checkpoint_path, map_location=self.device)
+
+ self.model.load_state_dict(checkpoint['model_state_dict'])
+ self.optimizer.load_state_dict(checkpoint['optimizer_state_dict'])
+ self.scheduler.load_state_dict(checkpoint['scheduler_state_dict'])
+
+ # Load scaler state if it exists
+ if self.scaler and 'scaler_state_dict' in checkpoint:
+ self.scaler.load_state_dict(checkpoint['scaler_state_dict'])
+
+ self.logger.info(f"Loaded checkpoint from epoch {checkpoint['epoch']}")
+ return checkpoint['epoch']
+
+ def _resume_from_checkpoint(self, checkpoint_path: Path) -> None:
+ """Resume training from a checkpoint.
+
+ Args:
+ checkpoint_path: Path to checkpoint file
+ """
+ start_epoch = self.load_checkpoint(checkpoint_path)
+ self.logger.info(f"Resuming training from epoch {start_epoch}")
+
+ # Update the early stopper with the best loss from checkpoint
+ checkpoint = torch.load(checkpoint_path, map_location=self.device)
+ if 'val_loss' in checkpoint:
+ self.early_stopper.min_loss = checkpoint['val_loss']
+ self.logger.info(f"Early stopper initialized with validation loss: {checkpoint['val_loss']:.4f}")
+
+ def train(self) -> None:
+ """Execute the training loop.
+
+ Runs the complete training process including:
+ - Training and validation for each epoch
+ - Early stopping when validation loss plateaus
+ - Logging final metrics
+
+ Note: Test set evaluation should be performed separately using the evaluation script
+ after training is complete and model selection is finalized.
+ """
+ # Notify callbacks that training is beginning
+ for callback in self.callbacks:
+ callback.on_training_begin()
+
+ last_epoch = 0
+ pbar = tqdm(range(self.args.max_epoch), desc="Training")
+
+ for epoch in pbar:
+ last_epoch = epoch
+
+ # Notify callbacks that epoch is beginning
+ for callback in self.callbacks:
+ callback.on_epoch_begin(epoch)
+
+ # Training step
+ train_loss = self.training_loop.train_epoch(self.train_loader)
+
+ # Validation step
+ val_loss = self.training_loop.evaluate(self.val_loader)
+
+ # Create metrics object
+ metrics = TrainingMetrics(
+ train_loss=train_loss,
+ val_loss=val_loss,
+ epoch=epoch,
+ learning_rate=self.optimizer.param_groups[0]['lr']
+ )
+
+ # Notify callbacks that epoch has ended
+ for callback in self.callbacks:
+ callback.on_epoch_end(epoch, metrics)
+
+ # Update progress bar with loss info
+ pbar.set_description(
+ f"Epoch {epoch + 1}/{self.args.max_epoch} - "
+ f"Train Loss: {train_loss:.4f}, Val Loss: {val_loss:.4f}"
+ )
+
+ if self.early_stopper.early_stop(val_loss):
+ pbar.write(f"Early stopping triggered at epoch {epoch + 1}")
+ break
+
+ self._log_final_metrics(last_epoch)
+
+ # Notify callbacks that training has ended
+ for callback in self.callbacks:
+ callback.on_training_end()
+
+
+def train(system_config: SystemConfig, model_config: ModelConfig, args: TrainingArguments, run_name: str) -> None:
+ """
+ Train an OFDM channel estimation model.
+
+ This is the main entry point for model training. It initializes a ModelTrainer
+ with the specified configuration and runs the training process.
+
+ Args:
+ system_config: OFDM system configuration dictionary from YAML file
+ model_config: OFDM model configuration dictionary from YAML file
+ args: Validated training arguments containing all necessary parameters
+ for model training, including dataset paths, hyperparameters,
+ and logging configuration
+ run_name: Unique run identifier (model_name_exp_id_timestamp) for logs and checkpoints
+ """
+ trainer = ModelTrainer(system_config, model_config, args, run_name)
+ trainer.train()
diff --git a/pace_revision_2/vendor/fortitran/src/models/__init__.py b/pace_revision_2/vendor/fortitran/src/models/__init__.py
new file mode 100644
index 0000000000000000000000000000000000000000..d61d85a44ca68876912b4524af958f809a760886
--- /dev/null
+++ b/pace_revision_2/vendor/fortitran/src/models/__init__.py
@@ -0,0 +1,3 @@
+from src.models.fortitran import FortiTranEstimator
+from src.models.adafortitran import AdaFortiTranEstimator
+from src.models.linear import LinearEstimator
\ No newline at end of file
diff --git a/pace_revision_2/vendor/fortitran/src/models/__pycache__/__init__.cpython-311.pyc b/pace_revision_2/vendor/fortitran/src/models/__pycache__/__init__.cpython-311.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..f2f072c779c7ec765490286f1cf63014dad5aead
Binary files /dev/null and b/pace_revision_2/vendor/fortitran/src/models/__pycache__/__init__.cpython-311.pyc differ
diff --git a/pace_revision_2/vendor/fortitran/src/models/__pycache__/adafortitran.cpython-311.pyc b/pace_revision_2/vendor/fortitran/src/models/__pycache__/adafortitran.cpython-311.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..1d5c3d16ad5a752cbd5615426f6fda5a2350533e
Binary files /dev/null and b/pace_revision_2/vendor/fortitran/src/models/__pycache__/adafortitran.cpython-311.pyc differ
diff --git a/pace_revision_2/vendor/fortitran/src/models/__pycache__/fortitran.cpython-311.pyc b/pace_revision_2/vendor/fortitran/src/models/__pycache__/fortitran.cpython-311.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..95b05ad44ba3572616a25ff71ca44689b52fbc4f
Binary files /dev/null and b/pace_revision_2/vendor/fortitran/src/models/__pycache__/fortitran.cpython-311.pyc differ
diff --git a/pace_revision_2/vendor/fortitran/src/models/__pycache__/linear.cpython-311.pyc b/pace_revision_2/vendor/fortitran/src/models/__pycache__/linear.cpython-311.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..aafc6afdf2328e1d2a1982f306ae353548bf54df
Binary files /dev/null and b/pace_revision_2/vendor/fortitran/src/models/__pycache__/linear.cpython-311.pyc differ
diff --git a/pace_revision_2/vendor/fortitran/src/models/adafortitran.py b/pace_revision_2/vendor/fortitran/src/models/adafortitran.py
new file mode 100644
index 0000000000000000000000000000000000000000..6296624f21235bfb4f3a49eaba31620af62fdefb
--- /dev/null
+++ b/pace_revision_2/vendor/fortitran/src/models/adafortitran.py
@@ -0,0 +1,23 @@
+from .fortitran import BaseFortiTranEstimator
+from src.config.schemas import SystemConfig, ModelConfig
+
+
+class AdaFortiTranEstimator(BaseFortiTranEstimator):
+ """
+ Adaptive Hybrid CNN-Transformer Channel Estimator for OFDM Systems with channel adaptation.
+
+ This model extends the base estimator with channel adaptation capabilities,
+ incorporating channel conditions (SNR, delay spread, Doppler shift) into
+ the estimation process through conditional attention mechanisms.
+ """
+
+ def __init__(self, system_config: SystemConfig, model_config: ModelConfig, device: str = 'cpu') -> None:
+ """
+ Initialize the AdaFortiTranEstimator.
+
+ Args:
+ system_config: OFDM system configuration (subcarriers, symbols, pilot arrangement)
+ model_config: Model architecture configuration (patch size, layers, etc.)
+ device: Computing device string (e.g., 'cpu', 'cuda', 'cuda:0'). Default: 'cpu'.
+ """
+ super().__init__(system_config, model_config, device=device, use_channel_adaptation=True)
\ No newline at end of file
diff --git a/pace_revision_2/vendor/fortitran/src/models/blocks/__init__.py b/pace_revision_2/vendor/fortitran/src/models/blocks/__init__.py
new file mode 100644
index 0000000000000000000000000000000000000000..985b08cc5a99b16bc6a69d25edc8ea7d0955a576
--- /dev/null
+++ b/pace_revision_2/vendor/fortitran/src/models/blocks/__init__.py
@@ -0,0 +1,15 @@
+from .channel_adaptivity import ChannelAdapter
+from .encoders import TransformerEncoderForChannels
+from .enhancers import ConvEnhancer
+from .patch_processors import PatchEmbedding, InversePatchEmbedding
+from .positional_encodings import SinusoidalPositionalEncoding, LearnablePositionalEncoding
+
+__all__ = [
+ "ChannelAdapter",
+ "TransformerEncoderForChannels",
+ "ConvEnhancer",
+ "PatchEmbedding",
+ "InversePatchEmbedding",
+ "SinusoidalPositionalEncoding",
+ "LearnablePositionalEncoding",
+]
diff --git a/pace_revision_2/vendor/fortitran/src/models/blocks/__pycache__/__init__.cpython-311.pyc b/pace_revision_2/vendor/fortitran/src/models/blocks/__pycache__/__init__.cpython-311.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..2650d55d7d1df18945146d40c883c66716c01ddd
Binary files /dev/null and b/pace_revision_2/vendor/fortitran/src/models/blocks/__pycache__/__init__.cpython-311.pyc differ
diff --git a/pace_revision_2/vendor/fortitran/src/models/blocks/__pycache__/channel_adaptivity.cpython-311.pyc b/pace_revision_2/vendor/fortitran/src/models/blocks/__pycache__/channel_adaptivity.cpython-311.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..454e7f79013f15e410783495a059d92e95a7f2b3
Binary files /dev/null and b/pace_revision_2/vendor/fortitran/src/models/blocks/__pycache__/channel_adaptivity.cpython-311.pyc differ
diff --git a/pace_revision_2/vendor/fortitran/src/models/blocks/__pycache__/encoders.cpython-311.pyc b/pace_revision_2/vendor/fortitran/src/models/blocks/__pycache__/encoders.cpython-311.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..778d19abb83f9d4beb7b35e57f6014721ef89985
Binary files /dev/null and b/pace_revision_2/vendor/fortitran/src/models/blocks/__pycache__/encoders.cpython-311.pyc differ
diff --git a/pace_revision_2/vendor/fortitran/src/models/blocks/__pycache__/enhancers.cpython-311.pyc b/pace_revision_2/vendor/fortitran/src/models/blocks/__pycache__/enhancers.cpython-311.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..0e052ea66ebcd21061a58dfb33d21779a59c34dc
Binary files /dev/null and b/pace_revision_2/vendor/fortitran/src/models/blocks/__pycache__/enhancers.cpython-311.pyc differ
diff --git a/pace_revision_2/vendor/fortitran/src/models/blocks/__pycache__/patch_processors.cpython-311.pyc b/pace_revision_2/vendor/fortitran/src/models/blocks/__pycache__/patch_processors.cpython-311.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..f112477f07ffba20d5ab03421dcd488291555e10
Binary files /dev/null and b/pace_revision_2/vendor/fortitran/src/models/blocks/__pycache__/patch_processors.cpython-311.pyc differ
diff --git a/pace_revision_2/vendor/fortitran/src/models/blocks/__pycache__/positional_encodings.cpython-311.pyc b/pace_revision_2/vendor/fortitran/src/models/blocks/__pycache__/positional_encodings.cpython-311.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..063667937d23c5dfe0a9a129342bb860bf2e76c3
Binary files /dev/null and b/pace_revision_2/vendor/fortitran/src/models/blocks/__pycache__/positional_encodings.cpython-311.pyc differ
diff --git a/pace_revision_2/vendor/fortitran/src/models/blocks/channel_adaptivity.py b/pace_revision_2/vendor/fortitran/src/models/blocks/channel_adaptivity.py
new file mode 100644
index 0000000000000000000000000000000000000000..43cdb05a5586dc9dc13188fca9e17ea5b87563a3
--- /dev/null
+++ b/pace_revision_2/vendor/fortitran/src/models/blocks/channel_adaptivity.py
@@ -0,0 +1,63 @@
+from torch import nn
+from typing import Tuple
+import torch
+
+
+class ChannelAdapter(nn.Module):
+ """Nonlinear encoder for channel condition tokens.
+
+ Creates token embeddings for SNR, delay spread, and Doppler shift parameters.
+ Each embedding is conditioned on a single real value and is the output of an MLP
+ """
+
+ def __init__(self, hidden_sizes: Tuple[int, int, int]) -> None:
+ """Initialize the token encoder modules.
+
+ Args:
+ hidden_sizes: Tuple of hidden layer dimensions (h1, h2, h3) for the MLP encoders
+ """
+ super().__init__()
+ self.snr_encoder = self._create_mlp(hidden_sizes)
+ self.ds_encoder = self._create_mlp(hidden_sizes)
+ self.dop_encoder = self._create_mlp(hidden_sizes)
+
+ @staticmethod
+ def _create_mlp(hidden_sizes: Tuple[int, int, int]) -> nn.Sequential:
+ """Create a multi-layer perceptron with specified dimensions.
+
+ Args:
+ hidden_sizes: Tuple of hidden layer dimensions (h1, h2, h3)
+
+ Returns:
+ Sequential MLP model with ReLU activations between linear layers
+ """
+ return nn.Sequential(
+ nn.Linear(1, hidden_sizes[0]),
+ nn.ReLU(),
+ nn.Linear(hidden_sizes[0], hidden_sizes[1]),
+ nn.ReLU(),
+ nn.Linear(hidden_sizes[1], hidden_sizes[2])
+ )
+
+ def forward(
+ self,
+ snr: torch.Tensor,
+ delay_spread: torch.Tensor,
+ doppler_shift: torch.Tensor
+ ) -> torch.Tensor:
+ """Create token embeddings from channel conditions.
+
+ Args:
+ snr: Signal-to-Noise Ratio tensor of shape (batch_size, 1)
+ delay_spread: Delay spread tensor of shape (batch_size, 1)
+ doppler_shift: Doppler shift tensor of shape (batch_size, 1)
+
+ Returns:
+ Concatenated token embeddings of shape (batch_size, h3/2, 6)
+ where h3 is the third element of hidden_sizes
+ """
+ batch_size = snr.shape[0]
+ snr_emb = torch.reshape(self.snr_encoder(snr), (batch_size, -1, 2))
+ ds_emb = torch.reshape(self.ds_encoder(delay_spread), (batch_size, -1, 2))
+ dop_emb = torch.reshape(self.dop_encoder(doppler_shift), (batch_size, -1, 2))
+ return torch.cat((snr_emb, ds_emb, dop_emb), dim=2)
diff --git a/pace_revision_2/vendor/fortitran/src/models/blocks/encoders.py b/pace_revision_2/vendor/fortitran/src/models/blocks/encoders.py
new file mode 100644
index 0000000000000000000000000000000000000000..5bfd99ebdcc12bc4d9db7ee7ebcfe9464ea31ff2
--- /dev/null
+++ b/pace_revision_2/vendor/fortitran/src/models/blocks/encoders.py
@@ -0,0 +1,70 @@
+from torch import nn
+import torch
+
+from .positional_encodings import LearnablePositionalEncoding, SinusoidalPositionalEncoding
+
+
+class TransformerEncoderForChannels(nn.Module):
+ """Transformer encoder for channels"""
+
+ def __init__(
+ self,
+ input_dim: int,
+ output_dim: int,
+ model_dim: int = 128,
+ num_head: int = 4,
+ activation: str = "gelu",
+ dropout: float = 0.1,
+ num_layers: int = 3,
+ max_len: int = 512,
+ pos_encoding_type: str = "learnable"
+ ) -> None:
+ """Initialize the encoder.
+
+ Args:
+ input_dim: Input dimension
+ output_dim: Output dimension
+ model_dim: Model dimension
+ num_head: Number of attention heads
+ activation: Activation function name
+ dropout: Dropout rate
+ num_layers: Number of transformer layers
+ max_len: Maximum sequence length
+ pos_encoding_type: Type of positional encoding
+ """
+ super().__init__()
+ self.linear_1 = nn.Linear(input_dim, model_dim)
+ if pos_encoding_type == "learnable":
+ self.positional_encoding = LearnablePositionalEncoding(max_len, model_dim)
+ elif pos_encoding_type == "sinusoidal":
+ self.positional_encoding = SinusoidalPositionalEncoding(max_len, model_dim)
+ else:
+ raise ValueError("pos_encoding_type must be 'learnable' or 'sinusoidal'")
+
+ transformer_layer = nn.TransformerEncoderLayer(
+ d_model=model_dim,
+ nhead=num_head,
+ dim_feedforward=2 * model_dim,
+ activation=activation,
+ dropout=dropout,
+ batch_first=True
+ )
+ self.transformer = nn.TransformerEncoder(
+ transformer_layer,
+ num_layers=num_layers
+ )
+ self.linear_2 = nn.Linear(model_dim, output_dim)
+
+ def forward(self, x: torch.Tensor) -> torch.Tensor:
+ """Process input through the encoder.
+
+ Args:
+ x: Input tensor (batch_size, seq_length, input_dim)
+
+ Returns:
+ Processed tensor (batch_size, seq_length, output_dim)
+ """
+ x = self.linear_1(x)
+ x = self.positional_encoding(x)
+ x = self.transformer(x)
+ return self.linear_2(x)
diff --git a/pace_revision_2/vendor/fortitran/src/models/blocks/enhancers.py b/pace_revision_2/vendor/fortitran/src/models/blocks/enhancers.py
new file mode 100644
index 0000000000000000000000000000000000000000..7bcd56b8749a0aae0e3c23821e01825f2a4edd7f
--- /dev/null
+++ b/pace_revision_2/vendor/fortitran/src/models/blocks/enhancers.py
@@ -0,0 +1,31 @@
+import torch
+import torch.nn as nn
+
+
+class ConvEnhancer(nn.Module):
+ """Convolutional enhancement network with 1->8->32->8->1 channel pattern."""
+
+ def __init__(self) -> None:
+ """Initialize the ConvEnhancer with convolutional blocks."""
+ super().__init__()
+
+ self.conv_block = nn.Sequential(
+ nn.Conv2d(1, 8, kernel_size=3, padding=1),
+ nn.ReLU(),
+ nn.Conv2d(8, 32, kernel_size=3, padding=1),
+ nn.ReLU(),
+ nn.Conv2d(32, 8, kernel_size=3, padding=1),
+ nn.ReLU(),
+ nn.Conv2d(8, 1, kernel_size=3, padding=1),
+ )
+
+ def forward(self, x: torch.Tensor) -> torch.Tensor:
+ """Forward pass through the convolutional enhancement network.
+
+ Args:
+ x (torch.Tensor): Input tensor of shape (batch_size, 1, num_subcarriers, num_symbols)
+
+ Returns:
+ torch.Tensor: Enhanced tensor of shape (batch_size, 1, num_subcarriers, num_symbols)
+ """
+ return self.conv_block(x)
\ No newline at end of file
diff --git a/pace_revision_2/vendor/fortitran/src/models/blocks/patch_processors.py b/pace_revision_2/vendor/fortitran/src/models/blocks/patch_processors.py
new file mode 100644
index 0000000000000000000000000000000000000000..88c94e67e58f0d78444f6d9c95906707cc8bb7a7
--- /dev/null
+++ b/pace_revision_2/vendor/fortitran/src/models/blocks/patch_processors.py
@@ -0,0 +1,71 @@
+from torch import nn
+from typing import Tuple
+import torch
+
+
+class PatchEmbedding(nn.Module):
+ """Transform channel matrix into patch embeddings (sequence of flattened vectors)
+
+ Extracts non-overlapping 2D regions from the matrix, flattens them
+ and outputs a sequence of flattened vectors in row-major order.
+
+ """
+
+ def __init__(self, patch_size: Tuple[int, int] = (3, 2)) -> None:
+ """Initialize the PatchEmbedding layer.
+
+ Args:
+ patch_size: Size of patches to extract (subcarriers_per_patch, symbols_per_patch)
+ """
+ super().__init__()
+ self.patch_size = patch_size
+ self.unfold = nn.Unfold(kernel_size=patch_size, stride=patch_size)
+
+ def forward(self, x: torch.Tensor) -> torch.Tensor:
+ """Transform input tensor into patch embeddings.
+
+ Args:
+ x: Input tensor of shape (batch_size, num_subcarriers, num_symbols)
+
+ Returns:
+ Tensor of shape (batch_size, num_patches, patch_size[0]*patch_size[1])
+ where num_patches = (num_subcarriers // patch_size[0]) * (num_symbols // patch_size[1])
+ """
+ x = self.unfold(torch.unsqueeze(x, dim=1))
+ return torch.permute(x, dims=(0, 2, 1))
+
+
+class InversePatchEmbedding(nn.Module):
+ """Transform patch embeddings back to original matrix format."""
+
+ def __init__(
+ self,
+ output_size: Tuple[int, int] = (120, 14),
+ patch_size: Tuple[int, int] = (3, 2)
+ ) -> None:
+ """Initialize the InversePatchEmbedding layer.
+
+ Args:
+ output_size: Size of output matrix (num_subcarriers, num_symbols)
+ patch_size: Size of input patches (subcarriers_per_patch, symbols_per_patch)
+ """
+ super().__init__()
+ self.fold = nn.Fold(
+ output_size=output_size,
+ kernel_size=patch_size,
+ stride=patch_size
+ )
+
+ def forward(self, x: torch.Tensor) -> torch.Tensor:
+ """Transform patch embeddings back to matrix format.
+
+ Args:
+ x: Input tensor of shape (batch_size, num_patches, patch_size[0]*patch_size[1])
+ where num_patches = (output_size[0] // patch_size[0]) * (output_size[1] // patch_size[1])
+
+ Returns:
+ Tensor of shape (batch_size, num_subcarriers, num_symbols)
+ """
+ x = torch.permute(x, dims=(0, 2, 1))
+ x = self.fold(x)
+ return torch.squeeze(x, dim=1)
\ No newline at end of file
diff --git a/pace_revision_2/vendor/fortitran/src/models/blocks/positional_encodings.py b/pace_revision_2/vendor/fortitran/src/models/blocks/positional_encodings.py
new file mode 100644
index 0000000000000000000000000000000000000000..25b5a253f4a74b1c63d68b5032bf7745521fa5be
--- /dev/null
+++ b/pace_revision_2/vendor/fortitran/src/models/blocks/positional_encodings.py
@@ -0,0 +1,64 @@
+from torch import nn
+import torch
+
+
+class SinusoidalPositionalEncoding(nn.Module):
+ """Fixed sinusoidal positional encoding"""
+
+ def __init__(self, max_len: int, d_model: int) -> None:
+ """Initialize the positional encoding.
+
+ Args:
+ max_len: Maximum sequence length
+ d_model: Model dimension
+ """
+ super().__init__()
+ position = torch.arange(0, max_len).unsqueeze(1)
+ div_term = torch.exp(
+ torch.arange(0, d_model, 2) *
+ (-torch.log(torch.tensor(10000.0)) / d_model)
+ )
+
+ pe = torch.zeros(1, max_len, d_model)
+ pe[0, :, 0::2] = torch.sin(position * div_term)
+ pe[0, :, 1::2] = torch.cos(position * div_term)
+
+ self.register_buffer('pe', pe) # store the positional encoding in the model's state_dict
+ # (i.e. self.to(device) moves it to the correct device) while keeping it non-trainable
+
+ def forward(self, x: torch.Tensor) -> torch.Tensor:
+ """Add positional encoding to input tensor.
+
+ Args:
+ x: Input tensor (batch_size, seq_length, d_model)
+
+ Returns:
+ Tensor with added positional encodings (batch_size, seq_length, d_model)
+ """
+ return x + self.pe[:, :x.size(1), :]
+
+
+class LearnablePositionalEncoding(nn.Module):
+ """Learnable positional encoding for transformers."""
+
+ def __init__(self, max_len: int, d_model: int) -> None:
+ """Initialize the learnable encoding.
+
+ Args:
+ max_len: Maximum sequence length
+ d_model: Model dimension
+ """
+ super().__init__()
+ self.position_embeddings = nn.Parameter(torch.zeros(1, max_len, d_model))
+ nn.init.trunc_normal_(self.position_embeddings, std=0.02) # initialize the learnable positional encoding with a truncated normal distribution
+
+ def forward(self, x: torch.Tensor) -> torch.Tensor:
+ """Add learnable positional encoding to input tensor.
+
+ Args:
+ x: Input tensor (batch_size, seq_length, d_model)
+
+ Returns:
+ Tensor with added positional encodings (batch_size, seq_length, d_model)
+ """
+ return x + self.position_embeddings[:, :x.size(1), :]
diff --git a/pace_revision_2/vendor/fortitran/src/models/fortitran.py b/pace_revision_2/vendor/fortitran/src/models/fortitran.py
new file mode 100644
index 0000000000000000000000000000000000000000..5ce579001ea8499b03e54be61199713bb7cc7171
--- /dev/null
+++ b/pace_revision_2/vendor/fortitran/src/models/fortitran.py
@@ -0,0 +1,270 @@
+import torch
+from torch import nn
+import logging
+from typing import Tuple, List, Optional
+
+from src.config.schemas import SystemConfig, ModelConfig
+from src.models.blocks import ConvEnhancer, PatchEmbedding, InversePatchEmbedding, TransformerEncoderForChannels, ChannelAdapter
+
+
+class BaseFortiTranEstimator(nn.Module):
+ """
+ Base Hybrid CNN-Transformer Channel Estimator for OFDM Systems.
+
+ This model performs channel estimation by:
+ 1. Upsampling pilot symbols to full OFDM grid size (with linear layer)
+ 2. Applying convolutional enhancement for subcarrier-symbol features
+ 3. Converting to patch embeddings for transformer processing
+ 4. Using transformer encoder to capture long-range dependencies
+ 5. Reconstructing subcarrier-symbol representation and applying residual connections
+ 6. Final convolutional refinement for high-quality channel estimates
+ """
+
+ def __init__(self, system_config: SystemConfig, model_config: ModelConfig,
+ device: str = 'cpu', use_channel_adaptation: bool = False) -> None:
+ """
+ Initialize the BaseFortiTranEstimator.
+
+ Args:
+ system_config: OFDM system configuration (subcarriers, symbols, pilot arrangement)
+ model_config: Model architecture configuration (patch size, layers, etc.)
+ device: Computing device string (e.g., 'cpu', 'cuda', 'cuda:0'). Default: 'cpu'.
+ use_channel_adaptation: Whether to enable channel adaptation features (disabled for FortiTran)
+ """
+ super().__init__()
+
+ self.system_config = system_config
+ self.model_config = model_config
+ self.use_channel_adaptation = use_channel_adaptation
+ self.device = torch.device(device)
+ self.logger = logging.getLogger(self.__class__.__name__)
+
+ # Cache key dimensions for efficiency
+ self._setup_dimensions()
+
+ # Initialize model components
+ self._build_architecture()
+
+ # Move model to specified device
+ self.to(self.device)
+
+ self._log_initialization_info()
+
+ def _setup_dimensions(self) -> None:
+ """Calculate and cache key dimensions from configuration."""
+ # OFDM grid dimensions
+ self.ofdm_size = (
+ self.system_config.ofdm.num_scs,
+ self.system_config.ofdm.num_symbols
+ )
+
+ # Pilot arrangement dimensions
+ self.pilot_size = (
+ self.system_config.pilot.num_scs,
+ self.system_config.pilot.num_symbols
+ )
+
+ # Feature dimensions for linear layers
+ self.pilot_features = self.pilot_size[0] * self.pilot_size[1]
+ self.ofdm_features = self.ofdm_size[0] * self.ofdm_size[1]
+
+ # Patch processing dimensions
+ self.patch_length = (
+ self.model_config.patch_size[0] * self.model_config.patch_size[1]
+ )
+
+ # Transformer input dimension (includes channel tokens if adaptation is enabled)
+ if self.use_channel_adaptation:
+ if self.model_config.adaptive_token_length is None:
+ raise ValueError("adaptive_token_length must be set when channel adaptation is enabled")
+ self.transformer_input_dim = self.patch_length + self.model_config.adaptive_token_length
+ else:
+ self.transformer_input_dim = self.patch_length
+
+ def _build_architecture(self) -> None:
+ """Construct the model architecture components."""
+ # 1. Pilot-to-OFDM upsampling
+ self.pilot_upsampler = nn.Linear(self.pilot_features, self.ofdm_features)
+
+ # 2. Initial convolutional enhancement
+ self.initial_enhancer = ConvEnhancer()
+
+ # 3. Patch embedding for transformer processing
+ self.patch_embedder = PatchEmbedding(self.model_config.patch_size)
+
+ # 4. Channel adapter (conditional on use_channel_adaptation)
+ if self.use_channel_adaptation:
+ if self.model_config.channel_adaptivity_hidden_sizes is None:
+ raise ValueError("channel_adaptivity_hidden_sizes must be set when channel adaptation is enabled")
+ # Convert list to tuple as expected by ChannelAdapter (exactly 3 values)
+ hidden_sizes = tuple(self.model_config.channel_adaptivity_hidden_sizes)
+ if len(hidden_sizes) != 3:
+ raise ValueError("channel_adaptivity_hidden_sizes must have exactly 3 values")
+ self.channel_adapter = ChannelAdapter(hidden_sizes)
+
+ # 5. Transformer encoder for sequence modeling
+ transformer_output_dim = self.patch_length # Always output standard patch length
+
+ self.transformer_encoder = TransformerEncoderForChannels(
+ input_dim=self.transformer_input_dim,
+ output_dim=transformer_output_dim,
+ model_dim=self.model_config.model_dim,
+ num_head=self.model_config.num_head,
+ activation=self.model_config.activation,
+ dropout=self.model_config.dropout,
+ num_layers=self.model_config.num_layers,
+ max_len=self.model_config.max_seq_len,
+ pos_encoding_type=self.model_config.pos_encoding_type
+ )
+
+ # 6. Patch reconstruction
+ self.patch_reconstructor = InversePatchEmbedding(
+ self.ofdm_size,
+ self.model_config.patch_size
+ )
+
+ # 7. Final convolutional refinement
+ self.final_refiner = ConvEnhancer()
+
+ def _log_initialization_info(self) -> None:
+ """Log model initialization details."""
+ adaptation_status = "enabled" if self.use_channel_adaptation else "disabled"
+ self.logger.info(f"{self.__class__.__name__} initialized successfully:")
+ self.logger.info(f" Channel adaptation: {adaptation_status}")
+ self.logger.info(f" OFDM grid: {self.ofdm_size[0]}×{self.ofdm_size[1]} = {self.ofdm_features} elements")
+ self.logger.info(f" Pilot grid: {self.pilot_size[0]}×{self.pilot_size[1]} = {self.pilot_features} elements")
+ self.logger.info(f" Patch size: {self.model_config.patch_size}")
+ self.logger.info(f" Model dimension: {self.model_config.model_dim}")
+ self.logger.info(f" Transformer layers: {self.model_config.num_layers}")
+ self.logger.info(f" Device: {self.device}")
+
+ total_params = sum(p.numel() for p in self.parameters())
+ trainable_params = sum(p.numel() for p in self.parameters() if p.requires_grad)
+ self.logger.info(f" Total parameters: {total_params:,}")
+ self.logger.info(f" Trainable parameters: {trainable_params:,}")
+
+ def forward(self, pilot_symbols: torch.Tensor, meta_data: Optional[Tuple] = None) -> torch.Tensor:
+ """
+ Forward pass for channel estimation.
+
+ Args:
+ pilot_symbols: Complex pilot symbols of shape [batch, pilot_scs, pilot_symbols]
+ meta_data: Channel conditions (only used if channel adaptation is enabled)
+
+ Returns:
+ Estimated channel matrix of shape [batch, ofdm_scs, ofdm_symbols]
+ """
+ # Validate inputs based on adaptation mode
+ if self.use_channel_adaptation and meta_data is None:
+ raise ValueError("meta_data is required when channel adaptation is enabled")
+
+ if not self.use_channel_adaptation and meta_data is not None:
+ self.logger.warning("meta_data provided but channel adaptation is disabled - ignoring meta_data")
+
+ # Extract channel conditions if adaptation is enabled
+ channel_conditions = None
+ if self.use_channel_adaptation and meta_data is not None:
+ _, snr, delay_spread, max_dop_shift, _, _ = meta_data
+ channel_conditions = [
+ tensor.to(self.device)
+ for tensor in (snr, delay_spread, max_dop_shift)
+ ]
+
+ # Ensure input is on correct device
+ pilot_symbols = pilot_symbols.to(self.device)
+
+ # Process real and imaginary parts separately
+ real_estimate = self._forward_real_valued(pilot_symbols.real, channel_conditions)
+ imag_estimate = self._forward_real_valued(pilot_symbols.imag, channel_conditions)
+
+ # Combine into complex tensor
+ channel_estimate = torch.complex(real_estimate, imag_estimate)
+
+ return channel_estimate
+
+ def _forward_real_valued(self, x: torch.Tensor,
+ channel_conditions: Optional[List[torch.Tensor]] = None) -> torch.Tensor:
+ """
+ Process real-valued input through the estimation pipeline.
+
+ Args:
+ x: Real-valued input tensor [batch, pilot_features] or [batch, pilot_scs, pilot_symbols]
+ channel_conditions: Channel conditions for adaptation (optional)
+
+ Returns:
+ Real-valued channel estimate [batch, ofdm_scs, ofdm_symbols]
+ """
+ batch_size = x.shape[0]
+
+ # Flatten subcarrier and symbol dimensions for linear upsampling
+ if x.dim() > 2:
+ x = x.view(batch_size, -1)
+
+ # Stage 1: Upsample from pilot grid to OFDM grid
+ upsampled = self.pilot_upsampler(x)
+
+ # Reshape for convolutional processing
+ upsampled_2d = upsampled.view(batch_size, 1, *self.ofdm_size)
+
+ # Stage 2: Initial convolutional enhancement
+ conv_enhanced = torch.squeeze(self.initial_enhancer(upsampled_2d), dim=1)
+
+ # Stage 3: Convert to patch embeddings
+ patch_embeddings = self.patch_embedder(conv_enhanced)
+
+ # Stage 4: Apply channel adaptation if enabled
+ if self.use_channel_adaptation and channel_conditions is not None:
+ encoded_channel_condition = self.channel_adapter(*channel_conditions)
+ transformer_input = torch.cat((patch_embeddings, encoded_channel_condition), dim=2)
+ else:
+ transformer_input = patch_embeddings
+
+ # Stage 5: Transformer processing for long-range dependencies
+ transformer_output = self.transformer_encoder(transformer_input)
+
+ # Stage 6: Reconstruct subcarrier-symbol representation
+ reconstructed = self.patch_reconstructor(transformer_output)
+
+ # Stage 7: Apply residual connection
+ residual_combined = conv_enhanced + reconstructed
+
+ # Stage 8: Final convolutional refinement
+ refined_output = torch.squeeze(self.final_refiner(torch.unsqueeze(residual_combined, dim=1)), dim=1)
+
+ return refined_output
+
+ def get_model_info(self) -> dict:
+ """Return model configuration and statistics."""
+ return {
+ 'model_name': self.__class__.__name__,
+ 'channel_adaptation': self.use_channel_adaptation,
+ 'ofdm_size': self.ofdm_size,
+ 'pilot_size': self.pilot_size,
+ 'patch_size': self.model_config.patch_size,
+ 'patch_length': self.patch_length,
+ 'transformer_input_dim': self.transformer_input_dim,
+ 'model_dim': self.model_config.model_dim,
+ 'num_layers': self.model_config.num_layers,
+ 'device': str(self.device),
+ 'total_parameters': sum(p.numel() for p in self.parameters()),
+ 'trainable_parameters': sum(p.numel() for p in self.parameters() if p.requires_grad)
+ }
+
+
+class FortiTranEstimator(BaseFortiTranEstimator):
+ """
+ Standard Hybrid CNN-Transformer Channel Estimator for OFDM Systems.
+
+ This is the base version without channel adaptation features.
+ """
+
+ def __init__(self, system_config: SystemConfig, model_config: ModelConfig, device: str = 'cpu') -> None:
+ """
+ Initialize the FortiTranEstimator.
+
+ Args:
+ system_config: OFDM system configuration (subcarriers, symbols, pilot arrangement)
+ model_config: Model architecture configuration (patch size, layers, etc.)
+ device: Computing device string (e.g., 'cpu', 'cuda', 'cuda:0'). Default: 'cpu'.
+ """
+ super().__init__(system_config, model_config, device=device, use_channel_adaptation=False)
diff --git a/pace_revision_2/vendor/fortitran/src/models/linear.py b/pace_revision_2/vendor/fortitran/src/models/linear.py
new file mode 100644
index 0000000000000000000000000000000000000000..df2336dfaaf71f1f78f39dbf072ce4e26fe23865
--- /dev/null
+++ b/pace_revision_2/vendor/fortitran/src/models/linear.py
@@ -0,0 +1,128 @@
+"""
+Learned linear estimator module for OFDM channel estimation.
+
+This module implements an estimator for transforming channel estimates at
+pilot signals to complete channel estimates using a learned linear transformation (i.e. W*h_pilot = h_hat).
+"""
+
+import logging
+import torch
+import torch.nn as nn
+
+from src.config.schemas import SystemConfig, ModelConfig
+
+
+class LinearEstimator(nn.Module):
+ """Fully-connected linear estimator.
+
+ Find W such that W*h_pilot = h_hat, where h_hat is the estimated channel by stochastic gradient descent on |h_hat - h_ideal|^2
+
+ Attributes:
+ device (torch.device): Target device for computation
+ system_config (SystemConfig): Validated configuration object for OFDM system parameters
+ model_config (ModelConfig): Validated configuration object for model parameters
+ ofdm_size (Tuple[int, int]): Dimensions of OFDM frame as (num_subcarriers, num_symbols)
+ num_subcarriers (int): number of sub-carriers
+ num_symbols (int): number of OFDM symbols
+ pilot_size (Tuple[int, int]): Dimensions of pilot signal as (num_subcarriers, num_symbols)
+ num_subcarriers (int): number of pilots across sub-carriers
+ num_symbols (int): number of pilots across OFDM symbols
+ """
+
+ def __init__(self, system_config: SystemConfig, model_config: ModelConfig, device: str = 'cpu') -> None:
+ """Initialize the MMSE estimator.
+
+ Args:
+ system_config: Validated SystemConfig object containing OFDM system parameters
+ model_config: Validated ModelConfig object containing model parameters
+ device: Computing device string (e.g., 'cpu', 'cuda', 'cuda:0'). Default: 'cpu'.
+ """
+ super().__init__()
+
+ self.system_config = system_config
+ self.model_config = model_config
+ self.device = torch.device(device)
+ self.logger = logging.getLogger(__name__)
+
+ # Extract dimensions from validated config
+ self.ofdm_size = (system_config.ofdm.num_scs, system_config.ofdm.num_symbols)
+ self.pilot_size = (system_config.pilot.num_scs, system_config.pilot.num_symbols)
+
+ # Calculate feature dimensions
+ in_feature_dim = system_config.pilot.num_scs * system_config.pilot.num_symbols
+ out_feature_dim = system_config.ofdm.num_scs * system_config.ofdm.num_symbols
+
+ self.logger.info(f"Initializing LinearEstimator:")
+ self.logger.info(f" OFDM size: {self.ofdm_size}")
+ self.logger.info(f" Pilot size: {self.pilot_size}")
+ self.logger.info(f" Input features: {in_feature_dim}")
+ self.logger.info(f" Output features: {out_feature_dim}")
+ self.logger.info(f" Device: {self.device}")
+
+ # Create linear layer
+ self.linear = nn.Linear(in_feature_dim, out_feature_dim)
+ self.to(self.device)
+
+ def forward(self, x: torch.Tensor) -> torch.Tensor:
+ """Forward pass of the MMSE estimator.
+
+ Args:
+ x: Input tensor containing pilot signals with shape
+ (batch_size, pilot_size[0], pilot_size[1])
+ Can be complex-valued.
+
+ Returns:
+ Estimated OFDM signal tensor with shape
+ (batch_size, ofdm_size[0], ofdm_size[1])
+ """
+ self.logger.debug(f"Input shape: {x.size()}")
+
+ # Validate input shape
+ expected_shape = (x.size(0), self.pilot_size[0], self.pilot_size[1])
+ if x.size() != expected_shape:
+ raise ValueError(
+ f"Expected input shape {expected_shape}, got {x.size()}"
+ )
+
+ # Handle complex input by processing real and imaginary parts separately
+ if x.is_complex():
+ real_output = self._forward_real(x.real)
+ imag_output = self._forward_real(x.imag)
+ return torch.complex(real_output, imag_output)
+ else:
+ return self._forward_real(x)
+
+ def _forward_real(self, x: torch.Tensor) -> torch.Tensor:
+ """Forward pass for real-valued input.
+
+ Args:
+ x: Real-valued input tensor with shape
+ (batch_size, pilot_size[0], pilot_size[1])
+
+ Returns:
+ Real-valued output tensor with shape
+ (batch_size, ofdm_size[0], ofdm_size[1])
+ """
+ # Flatten input for linear transformation
+ x = torch.flatten(x, start_dim=1)
+ self.logger.debug(f"Flattened shape: {x.size()}")
+
+ # Apply linear transformation
+ x = self.linear(x)
+ self.logger.debug(f"Linear output shape: {x.size()}")
+
+ # Reshape to OFDM dimensions
+ x = x.reshape(-1, self.ofdm_size[0], self.ofdm_size[1])
+ self.logger.debug(f"Reshaped output shape: {x.size()}")
+
+ return x
+
+ def __repr__(self) -> str:
+ """String representation of the estimator."""
+ return (
+ f"LinearEstimator(\n"
+ f" ofdm_size={self.ofdm_size},\n"
+ f" pilot_size={self.pilot_size},\n"
+ f" device={self.device}\n"
+ f")"
+ )
\ No newline at end of file
diff --git a/pace_revision_2/vendor/fortitran/src/train.py b/pace_revision_2/vendor/fortitran/src/train.py
new file mode 100644
index 0000000000000000000000000000000000000000..eb10c6699635e4fb6ac7a0cb5d08e3185fee77ff
--- /dev/null
+++ b/pace_revision_2/vendor/fortitran/src/train.py
@@ -0,0 +1,151 @@
+#!/usr/bin/env python3
+"""
+Main entry point for OFDM channel estimation model training.
+
+This script provides the command-line interface for training OFDM channel estimation
+models. It loads configuration files, parses command-line arguments, and initiates
+the training process.
+
+Dataset Requirements:
+ The training script expects datasets with the following structure:
+
+ Training/Validation Sets:
+ Directory containing .mat files with naming convention:
+ {file_number}_SNR-{snr}_DS-{delay_spread}_DOP-{doppler}_N-{pilot_every_nth_subcarrier}_{channel_type}.mat
+
+ Example: 1_SNR-20_DS-50_DOP-500_N-3_TDL-A.mat
+
+ Test Sets:
+ Directory with subdirectories for different test conditions:
+ test_set/
+ ├── DS_test_set/ # Delay Spread tests
+ │ ├── DS_50/
+ │ ├── DS_100/
+ │ └── ...
+ ├── SNR_test_set/ # SNR tests
+ │ ├── SNR_10/
+ │ ├── SNR_20/
+ │ └── ...
+ └── MDS_test_set/ # Multi-Doppler tests
+ ├── DOP_200/
+ ├── DOP_400/
+ └── ...
+
+ Each .mat file must contain variable 'H' with shape [subcarriers, symbols, 2]:
+ - H[:, :, 0]: Ground truth channel (complex-valued)
+ - H[:, :, 1]: LS channel estimate with zeros for non-pilot positions (complex-valued)
+"""
+
+import logging
+import sys
+from datetime import datetime
+from pathlib import Path
+
+from src.main.parser import parse_arguments
+from src.main.trainer import train
+from src.config import load_config
+
+
+def setup_logging(log_level: str, log_dir: Path, run_name: str) -> None:
+ """Set up logging configuration.
+
+ Args:
+ log_level: Logging level string (DEBUG, INFO, WARNING, ERROR, CRITICAL)
+ log_dir: Directory path for log files
+ run_name: Run name for log file naming (includes model, exp_id, and timestamp)
+ """
+ # Create logs directory if it doesn't exist
+ log_dir.mkdir(parents=True, exist_ok=True)
+
+ # Create log file path using run_name for easy matching with TensorBoard runs
+ log_file = log_dir / f"training_{run_name}.log"
+
+ logging.basicConfig(
+ level=getattr(logging, log_level.upper()),
+ format='%(asctime)s - %(name)s - %(levelname)s - %(message)s',
+ handlers=[
+ logging.StreamHandler(sys.stdout),
+ logging.FileHandler(log_file)
+ ]
+ )
+
+
+def main() -> None:
+ """Main entry point for the training script."""
+ try:
+ # Parse and validate command-line arguments
+ # Device is validated and resolved (e.g., 'auto' -> 'cuda') in parse_arguments
+ args = parse_arguments()
+
+ # Generate timestamp for this run (shared between logs and tensorboard)
+ timestamp = datetime.now().strftime("%Y%m%d_%H%M%S")
+ run_name = f"{args.model_name}_{args.exp_id}_{timestamp}"
+
+ # Set up logging with run_name for easy matching with TensorBoard
+ setup_logging(args.python_log_level, args.python_log_dir, run_name)
+ logger = logging.getLogger(__name__)
+
+ logger.info("Starting OFDM channel estimation model training")
+ logger.info(f"Model: {args.model_name}")
+ logger.info(f"Device: {args.device}")
+ logger.info(f"System config: {args.system_config_path}")
+ if args.model_config_path is not None:
+ logger.info(f"Model config: {args.model_config_path}")
+ else:
+ logger.info("Model config: Not applicable for linear model")
+ logger.info(f"Experiment ID: {args.exp_id}")
+
+ # Load configuration files
+ logger.info("Loading configuration files...")
+ system_config, model_config = load_config(
+ args.system_config_path,
+ args.model_config_path
+ )
+
+ # Validate model type consistency
+ expected_model_types = {
+ "linear": "linear",
+ "fortitran": "fortitran",
+ "adafortitran": "adafortitran"
+ }
+
+ if args.model_name not in expected_model_types:
+ raise ValueError(f"Unknown model name: {args.model_name}. Expected one of: {list(expected_model_types.keys())}")
+
+ if model_config.model_type != expected_model_types[args.model_name]:
+ raise ValueError(f"Model type mismatch: config specifies '{model_config.model_type}' but model name is '{args.model_name}'")
+
+ logger.info("Configuration loaded successfully")
+ logger.info(f"OFDM dimensions: {system_config.ofdm.num_scs} subcarriers x {system_config.ofdm.num_symbols} symbols")
+ logger.info(f"Pilot dimensions: {system_config.pilot.num_scs} subcarriers x {system_config.pilot.num_symbols} symbols")
+
+ # Log model-specific information
+ if model_config.model_type == "linear":
+ logger.info("Linear model configuration loaded")
+ elif model_config.model_type == "fortitran":
+ logger.info(f"FortiTran model: {model_config.num_layers} layers, {model_config.model_dim} dimensions")
+ logger.info(f"Channel adaptation: disabled")
+ elif model_config.model_type == "adafortitran":
+ logger.info(f"AdaFortiTran model: {model_config.num_layers} layers, {model_config.model_dim} dimensions")
+ logger.info(f"Channel adaptation: enabled")
+ logger.info(f"Adaptive token length: {model_config.adaptive_token_length}")
+ else:
+ logger.warning(f"Unknown model type: {model_config.model_type}")
+
+ # Start training
+ logger.info("Initializing training...")
+ logger.info(f"Run name: {run_name}")
+ train(system_config, model_config, args, run_name)
+
+ logger.info("Training completed successfully")
+
+ except KeyboardInterrupt:
+ logger.info("Training interrupted by user")
+ sys.exit(1)
+ except Exception as e:
+ logger.error(f"Training failed with error: {str(e)}")
+ sys.exit(1)
+
+
+if __name__ == "__main__":
+ main()
\ No newline at end of file
diff --git a/pace_revision_2/vendor/fortitran/src/utils.py b/pace_revision_2/vendor/fortitran/src/utils.py
new file mode 100644
index 0000000000000000000000000000000000000000..fa4b8bfc10034ac4dce4112ce4e320a0d90dd6db
--- /dev/null
+++ b/pace_revision_2/vendor/fortitran/src/utils.py
@@ -0,0 +1,330 @@
+"""
+Utility functions for OFDM channel estimation.
+
+This module provides various utility functions for processing, visualizing,
+and analyzing OFDM channel estimation data, including complex channel matrices,
+error calculations, model statistics, and visualization tools for
+performance evaluation.
+"""
+
+from pathlib import Path
+from typing import Optional, Union
+import re
+import os
+
+import numpy as np
+import scipy.io as sio
+import matplotlib.pyplot as plt
+from prettytable import PrettyTable
+import torch
+
+
+class EarlyStopping:
+ """Handles early stopping logic for training.
+
+ Monitors validation loss during training and signals when to stop
+ training if the loss has not improved for a specified number of epochs.
+
+ Attributes:
+ patience: Number of epochs to wait before stopping training
+ remaining_patience: Current remaining patience counter
+ min_loss: Minimum validation loss observed so far
+ """
+
+ def __init__(self, patience: int = 3):
+ """
+ Initialize early stopping.
+
+ Args:
+ patience: Number of epochs to wait before stopping
+ """
+ self.patience = patience
+ self.remaining_patience = patience
+ self.min_loss: Optional[float] = None
+
+ def early_stop(self, loss: float) -> bool:
+ """
+ Check if training should stop.
+
+ Args:
+ loss: Current validation loss
+
+ Returns:
+ Whether to stop training
+ """
+ if self.min_loss is None:
+ self.min_loss = loss
+ return False
+
+ if loss < self.min_loss:
+ self.min_loss = loss
+ self.remaining_patience = self.patience
+ return False
+
+ self.remaining_patience -= 1
+ return self.remaining_patience == 0
+
+
+def extract_values(file_name):
+ """
+ Extract channel information from a file name.
+
+ Parses file names with format:
+ '{file_number}_SNR-{snr}_DS-{delay_spread}_DOP-{doppler}_N-{pilot_freq}_{channel_type}.mat'
+
+ Example:
+ For filename "1_SNR-20_DS-50_DOP-500_N-3_TDL-A.mat":
+ - file_number: 1
+ - snr: 20 (Signal-to-Noise Ratio in dB)
+ - delay_spread: 50 (Delay Spread)
+ - doppler: 500 (Maximum Doppler Shift)
+ - pilot_freq: 3 (Pilot placement frequency)
+ - channel_type: TDL-A (Channel model type)
+
+ Args:
+ file_name: The file name from which to extract channel information
+
+ Returns:
+ tuple: A tuple containing:
+ - file_number (torch.Tensor): The file number (sequential identifier)
+ - snr (torch.Tensor): Signal-to-noise ratio value in dB
+ - delay_spread (torch.Tensor): Delay spread value
+ - max_doppler_shift (torch.Tensor): Maximum Doppler shift value
+ - pilot_placement_frequency (torch.Tensor): Pilot placement frequency
+ - channel_type (list): The channel type (e.g., ['TDL-A'])
+
+ Raises:
+ ValueError: If the file name does not match the expected pattern
+ """
+ pattern = r'(\d+)_SNR-(\d+)_DS-(\d+)_DOP-(\d+)_N-(\d+)_([A-Z\-]+)\.mat'
+ match = re.match(pattern, file_name)
+ if match:
+ file_no = torch.tensor([int(match.group(1))], dtype=torch.float)
+ snr_value = torch.tensor([int(match.group(2))], dtype=torch.float)
+ ds_value = torch.tensor([int(match.group(3))], dtype=torch.float)
+ dop_value = torch.tensor([int(match.group(4))], dtype=torch.float)
+ n = torch.tensor([int(match.group(5))], dtype=torch.float)
+ channel_type = [match.group(6)]
+ return file_no, snr_value, ds_value, dop_value, n, channel_type
+ else:
+ raise ValueError("Cannot extract file information.")
+
+
+def get_error_images(variable, channel_data, show=False):
+ """
+ Create visualizations of channel estimation errors.
+
+ Generates a figure with error heatmaps for different channel conditions,
+ showing the absolute difference between estimated and ideal channels.
+
+ Args:
+ variable: Name of the variable being visualized (e.g., 'SNR', 'DS')
+ channel_data: Dictionary mapping parameter values to dictionaries
+ containing 'estimated_channel' and 'ideal_channel'
+ show: Whether to display the figure immediately (default: False)
+
+ Returns:
+ matplotlib.figure.Figure: The generated figure with error heatmaps
+ """
+ # Create a figure with 7 subplots
+ fig, axes = plt.subplots(1, len(channel_data), figsize=(20, 6))
+
+ # Plot each subplot with consistent color scaling
+ for i, (key, channels) in enumerate(channel_data.items()):
+ # Calculate absolute error between estimated and ideal channels
+
+ estimated_channel = channels['estimated_channel']
+ ideal_channel = channels['ideal_channel']
+
+ error_matrix = torch.abs(estimated_channel - ideal_channel)
+ error_numpy = error_matrix.detach().cpu().numpy()
+
+ # Plot in the corresponding subplot with shared colormap limits
+ ax = axes[i]
+ cax = ax.imshow(error_numpy, cmap='viridis', aspect=14 / 120, vmin=0, vmax=1)
+ ax.set_title(f"{variable} = {key}")
+ ax.set_xlabel('Columns (14)')
+ ax.set_ylabel('Rows (120)')
+
+ # Create a new axis for the color bar to the right of the subplots
+ cbar_ax = fig.add_axes((0.92, 0.15, 0.02, 0.7)) # [left, bottom, width, height]
+ fig.colorbar(cax, cax=cbar_ax, label='Error Magnitude')
+
+ # Adjust layout to prevent overlapping labels
+ fig.tight_layout(rect=(0, 0, 0.9, 1)) # Leave space for the color bar on the right
+
+ # Show the figure if `show` is True
+ if show:
+ plt.show()
+
+ # Return the main figure
+ return fig
+
+
+def concat_complex_channel(channel_matrix):
+ """
+ Convert a complex channel matrix into a real matrix by concatenating real and imaginary parts.
+
+ Transforms a complex tensor into a real-valued tensor by concatenating
+ the real and imaginary components along the specified dimension.
+
+ Args:
+ channel_matrix: Complex channel matrix
+
+ Returns:
+ Real-valued channel matrix with concatenated real and imaginary parts
+ """
+ real_channel_m = torch.real(channel_matrix)
+ imag_channel_m = torch.imag(channel_matrix)
+ cat_channel_m = torch.cat((real_channel_m, imag_channel_m), dim=1)
+ return cat_channel_m
+
+
+
+
+
+def get_test_stats_plot(x_name, stats, methods, show=False):
+ """
+ Plot test statistics for multiple methods as line graphs.
+
+ Creates a line plot comparing performance metrics (e.g., MSE) across
+ different conditions or parameters for multiple methods.
+
+ Args:
+ x_name: Label for the x-axis (e.g., 'SNR', 'DS', 'Epoch')
+ stats: List of dictionaries where each dictionary maps x-values to
+ performance metrics for a specific method
+ methods: List of method names corresponding to each entry in stats
+ show: Whether to display the plot immediately (default: False)
+
+ Returns:
+ matplotlib.figure.Figure: The generated figure object
+
+ Raises:
+ AssertionError: If stats and methods lists have different lengths
+ """
+ assert len(stats) == len(methods), "Provided stats and methods do not have the same length."
+ fig = plt.figure()
+ symbols = iter(["*", "x", "+", "D", "v", "^"])
+ for stat in stats:
+ try:
+ symbol = next(symbols)
+ except StopIteration:
+ symbols = iter(["o", "*", "x", "+", "D", "v", "^"])
+ symbol = next(symbols)
+
+ kv_pairs = sorted(list(stat.items()), key=lambda x: x[0])
+ x_vals = []
+ y_vals = []
+ for key, value in kv_pairs:
+ x_vals.append(key)
+ y_vals.append(value)
+
+ plt.plot(x_vals, y_vals, f"{symbol}--")
+ plt.xlabel(x_name)
+ plt.ylabel("MSE Error (dB)")
+ plt.grid()
+ plt.legend(methods)
+ if show:
+ plt.show()
+ return fig
+
+
+def to_db(val):
+ """
+ Convert values to decibels (dB).
+
+ Applies the formula 10 * log10(val) to convert values to the decibel scale.
+
+ Args:
+ val: Input value or array to convert to dB (must be positive)
+
+ Returns:
+ The input value(s) converted to decibels
+ """
+ return 10 * np.log10(val)
+
+
+def mse(x, y):
+ """
+ Calculate mean squared error (MSE) in dB between two complex arrays.
+
+ Computes the average squared magnitude of the difference between
+ two complex arrays and converts the result to decibels.
+
+ Args:
+ x: First complex numpy array
+ y: Second complex numpy array (same shape as x)
+
+ Returns:
+ MSE in decibels (dB) between the two arrays
+ """
+ mse_xy = np.mean(np.square(np.abs(x - y)))
+ mse_xy_db = to_db(mse_xy)
+ return mse_xy_db
+
+
+def get_ls_mse_per_folder(folders_dir: Union[Path, str]):
+ """
+ Calculate average MSE for LS estimates in each subfolder.
+
+ For each subfolder in the specified directory, calculates the average
+ mean squared error between least-squares channel estimates and ideal
+ channel values across all .mat files in that subfolder.
+
+ Args:
+ folders_dir: Path to directory containing subfolders with .mat files
+ Each subfolder should be named 'prefix_val' where val is an integer
+
+ Returns:
+ Dictionary mapping integer values from subfolder names to average MSE values in dB
+
+ Notes:
+ - Each .mat file should contain a 3D matrix 'H' where:
+ - H[:,:,0] is the ideal channel
+ - H[:,:,2] is the LS channel estimate
+ - Subfolders are sorted by the integer in their names
+ """
+
+ mse_sums = {}
+ folders = os.listdir(folders_dir)
+ folders = sorted(folders, key=lambda x: int(x.split("_")[1]))
+ for folder in folders:
+ _, val = folder.split("_")
+ mse_sum = 0
+ folder_size = len(os.listdir(os.path.join(folders_dir, folder)))
+ for file in os.listdir(os.path.join(folders_dir, folder)):
+ mat_data = sio.loadmat(os.path.join(folders_dir, folder, file))['H']
+ ls_estimate = mat_data[:, :, 2]
+ ideal = mat_data[:, :, 0]
+ mse_sum += mse(ls_estimate, ideal)
+ mse_sum /= folder_size
+ mse_sums[int(val)] = mse_sum
+ return mse_sums
+
+def get_model_details(model):
+ """
+ Get parameter counts and structure details for a PyTorch model.
+
+ Analyzes a PyTorch model to determine the total number of trainable
+ parameters and creates a formatted table showing the parameter count
+ for each named parameter in the model.
+
+ Args:
+ model: PyTorch model to analyze
+
+ Returns:
+ tuple containing:
+ - total_params: Total number of trainable parameters
+ - table: PrettyTable showing parameter counts by module
+ """
+
+ table = PrettyTable(["Modules", "Parameters"])
+ total_params = 0
+ for name, parameter in model.named_parameters():
+ if not parameter.requires_grad:
+ continue
+ params = parameter.numel()
+ table.add_row([name, params])
+ total_params += params
+ return total_params, table
diff --git a/pace_revision_2/vendor/helena/LICENSE b/pace_revision_2/vendor/helena/LICENSE
new file mode 100644
index 0000000000000000000000000000000000000000..269ae432ad4d45a3d08a3b2d46996dcc29b94d74
--- /dev/null
+++ b/pace_revision_2/vendor/helena/LICENSE
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2025 miguelhdo
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/pace_revision_2/vendor/helena/SOURCE.json b/pace_revision_2/vendor/helena/SOURCE.json
new file mode 100644
index 0000000000000000000000000000000000000000..79136163e7e8cd415e03bdf978d7e164462ba1c4
--- /dev/null
+++ b/pace_revision_2/vendor/helena/SOURCE.json
@@ -0,0 +1,4 @@
+{
+ "repo": "miguelhdo/HELENA_Channel_Estimation",
+ "commit": "af601ec272fc566bac1c47c97e820fc796b6fdfc"
+}
\ No newline at end of file
diff --git a/pace_revision_2/vendor/helena/dense_stress_fixture.npz b/pace_revision_2/vendor/helena/dense_stress_fixture.npz
new file mode 100644
index 0000000000000000000000000000000000000000..2ff73bde5375097af921ee386d71e93cb00f1e9e
--- /dev/null
+++ b/pace_revision_2/vendor/helena/dense_stress_fixture.npz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:6f1ce1308168c310a34c3bc1138f3f431067dd74fd4e4644451f513a1b775ca3
+size 380932
diff --git a/pace_revision_2/vendor/helena/model.keras b/pace_revision_2/vendor/helena/model.keras
new file mode 100644
index 0000000000000000000000000000000000000000..a4a4cd57cbc627a9cc8bcf400a18efa3c127c0b5
--- /dev/null
+++ b/pace_revision_2/vendor/helena/model.keras
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:7f432fd3a8521eaf0f5d5d894e39547f3712de8c0d72404b5b86456d4dda4408
+size 1481193
diff --git a/pace_revision_2/vendor/helena/native_fixture.npz b/pace_revision_2/vendor/helena/native_fixture.npz
new file mode 100644
index 0000000000000000000000000000000000000000..de8c1d2c5549ce5ab650d15474241fb4f0d6d128
--- /dev/null
+++ b/pace_revision_2/vendor/helena/native_fixture.npz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:4c62921b12295bcae76b6247c952587bf7f23690222d0c80560c18b2d0550b58
+size 202293
diff --git a/pace_revision_2/vendor/sionna/LICENSE b/pace_revision_2/vendor/sionna/LICENSE
new file mode 100644
index 0000000000000000000000000000000000000000..7d986f03342b8e6ae4741dfb94e179d829631108
--- /dev/null
+++ b/pace_revision_2/vendor/sionna/LICENSE
@@ -0,0 +1,14 @@
+SPDX-FileCopyrightText: Copyright (c) 2021-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+SPDX-License-Identifier: Apache-2.0
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
\ No newline at end of file
diff --git a/pace_revision_2/verification/cpu-resolved-environment.txt b/pace_revision_2/verification/cpu-resolved-environment.txt
new file mode 100644
index 0000000000000000000000000000000000000000..1bbb113a7f9dea5eb9f702e2aa5a071241c743f8
--- /dev/null
+++ b/pace_revision_2/verification/cpu-resolved-environment.txt
@@ -0,0 +1,61 @@
+annotated-types==0.8.0
+anyio==4.15.1
+click==8.5.0
+contourpy==1.4.0
+cycler==0.12.1
+docutils==0.23
+filelock==3.32.3
+fonttools==4.66.0
+fsspec==2026.7.0
+h11==0.16.0
+h5py==3.15.1
+idna==3.20
+importlib-resources==6.5.2
+iniconfig==2.3.0
+itsdangerous==2.2.0
+jedi==0.19.2
+jinja2==3.1.6
+kiwisolver==1.5.1
+loro==1.16.2
+marimo==0.24.2
+markdown==3.10.3
+markupsafe==3.0.3
+matplotlib==3.10.8
+mpmath==1.3.0
+msgspec==0.21.1
+narwhals==2.26.0
+networkx==3.6.1
+numpy==2.2.6
+-e file:///workspace/scratch/4c9175818ceb/pace_revision
+packaging==26.3
+pandas==2.3.3
+parso==0.8.7
+pillow==12.3.0
+pip==25.0.1
+pluggy==1.6.0
+psutil==7.2.2
+pydantic==2.13.5
+pydantic-core==2.46.5
+pygments==2.21.0
+pymdown-extensions==11.0.2
+pyparsing==3.3.3
+pytest==9.1.1
+python-dateutil==2.9.0.post0
+python-multipart==0.0.32
+pytz==2026.3.post1
+pyyaml==6.0.3
+pyzmq==27.2.0
+scipy==1.15.3
+setuptools==78.1.0
+sionna==2.0.1
+six==1.17.0
+starlette==1.7.0
+sympy==1.14.0
+tomlkit==0.15.1
+torch==2.9.1+cpu
+tqdm==4.70.1
+typing-extensions==4.16.0
+typing-inspection==0.4.4
+tzdata==2026.4
+uvicorn==0.53.0
+websockets==17.1
diff --git a/pace_revision_2/verification/cpu_environment.json b/pace_revision_2/verification/cpu_environment.json
new file mode 100644
index 0000000000000000000000000000000000000000..0f79758cdbc66226898740d239b21ddf6d62635a
--- /dev/null
+++ b/pace_revision_2/verification/cpu_environment.json
@@ -0,0 +1,16 @@
+{
+ "python": "3.12.14 (main, Aug 25 2026, 14:00:49) [Clang 22.1.3 ]",
+ "platform": "Linux-6.18.44-x86_64-with-glibc2.39",
+ "versions": {
+ "torch": "2.9.1+cpu",
+ "sionna": "2.0.1",
+ "numpy": "2.2.6",
+ "scipy": "1.15.3",
+ "h5py": "3.15.1",
+ "matplotlib": "3.10.8",
+ "marimo": null
+ },
+ "cuda": null,
+ "gpu": null,
+ "driver": null
+}
diff --git a/pace_revision_2/verification/helena_dense_stress.json b/pace_revision_2/verification/helena_dense_stress.json
new file mode 100644
index 0000000000000000000000000000000000000000..b020c5c00d52679c620945002a126178ff6c39a5
--- /dev/null
+++ b/pace_revision_2/verification/helena_dense_stress.json
@@ -0,0 +1,9 @@
+{
+ "passed": false,
+ "acceptance_gate": false,
+ "scope": "Out-of-contract dense unit-normal inputs; valid sparse LS gate reported separately, unchanged FP32 tolerance",
+ "violating_values": 11,
+ "total_values": 51408,
+ "max_absolute_error": 0.00023543834686279297,
+ "fixture_sha256": "6f1ce1308168c310a34c3bc1138f3f431067dd74fd4e4644451f513a1b775ca3"
+}
diff --git a/pace_revision_2/verification/intervention_smoke.log b/pace_revision_2/verification/intervention_smoke.log
new file mode 100644
index 0000000000000000000000000000000000000000..47b9b7d6530542d0b0754a9b478a09e4ba97bdb2
--- /dev/null
+++ b/pace_revision_2/verification/intervention_smoke.log
@@ -0,0 +1,8 @@
+
target/TRAIN: 0%| | 0/1 [00:00, ?it/s]
target/TRAIN: 100%|██████████| 1/1 [00:02<00:00, 2.10s/it]
target/TRAIN: 100%|██████████| 1/1 [00:02<00:00, 2.10s/it]
+
target/TUNE: 0%| | 0/1 [00:00, ?it/s]
target/TUNE: 100%|██████████| 1/1 [00:01<00:00, 1.68s/it]
target/TUNE: 100%|██████████| 1/1 [00:01<00:00, 1.68s/it]
+
target/VAL: 0%| | 0/1 [00:00, ?it/s]
target/VAL: 100%|██████████| 1/1 [00:01<00:00, 1.66s/it]
target/VAL: 100%|██████████| 1/1 [00:01<00:00, 1.66s/it]
+
target/GATE_FIT: 0%| | 0/1 [00:00, ?it/s]
target/GATE_FIT: 100%|██████████| 1/1 [00:01<00:00, 1.68s/it]
target/GATE_FIT: 100%|██████████| 1/1 [00:01<00:00, 1.68s/it]
+
target/GATE_VAL: 0%| | 0/1 [00:00, ?it/s]
target/GATE_VAL: 100%|██████████| 1/1 [00:01<00:00, 1.67s/it]
target/GATE_VAL: 100%|██████████| 1/1 [00:01<00:00, 1.67s/it]
+
target/ADAPT: 0%| | 0/1 [00:00, ?it/s]
target/ADAPT: 100%|██████████| 1/1 [00:01<00:00, 1.86s/it]
target/ADAPT: 100%|██████████| 1/1 [00:01<00:00, 1.86s/it]
+
target/ADAPT_VAL: 0%| | 0/1 [00:00, ?it/s]
target/ADAPT_VAL: 100%|██████████| 1/1 [00:01<00:00, 1.82s/it]
target/ADAPT_VAL: 100%|██████████| 1/1 [00:01<00:00, 1.82s/it]
+INTERVENTION SMOKE COMPLETE — NOT RESEARCH RESULTS
diff --git a/pace_revision_2/verification/keras-resolved-environment.txt b/pace_revision_2/verification/keras-resolved-environment.txt
new file mode 100644
index 0000000000000000000000000000000000000000..205f347d6cf75959d358e64bcdb8c51813c1a23e
--- /dev/null
+++ b/pace_revision_2/verification/keras-resolved-environment.txt
@@ -0,0 +1,42 @@
+absl-py==2.5.0
+astunparse==1.6.3
+certifi==2026.7.22
+cffi==2.1.1
+charset-normalizer==3.5.1
+cryptography==50.0.1
+flatbuffers==25.12.19
+gast==0.7.0
+google-auth==2.58.0
+google-auth-oauthlib==1.4.1
+google-pasta==0.2.0
+grpcio==1.84.0
+h5py==3.10.0
+idna==3.20
+keras==2.15.0
+libclang==18.1.1
+markdown==3.10.3
+markupsafe==3.0.3
+ml-dtypes==0.3.2
+numpy==1.26.4
+oauthlib==3.3.1
+opt-einsum==3.4.0
+packaging==26.3
+protobuf==4.25.9
+pyasn1==0.6.4
+pyasn1-modules==0.4.2
+pycparser==3.0
+requests==2.34.2
+requests-oauthlib==2.0.0
+setuptools==84.0.0
+six==1.17.0
+tensorboard==2.15.2
+tensorboard-data-server==0.7.2
+tensorflow-cpu==2.15.1
+tensorflow-estimator==2.15.0
+tensorflow-io-gcs-filesystem==0.37.1
+termcolor==3.3.0
+typing-extensions==4.16.0
+urllib3==2.8.0
+werkzeug==3.1.8
+wheel==0.48.0
+wrapt==1.14.2
diff --git a/pace_revision_2/verification/marimo_check.log b/pace_revision_2/verification/marimo_check.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/pace_revision_2/verification/model_inventory.json b/pace_revision_2/verification/model_inventory.json
new file mode 100644
index 0000000000000000000000000000000000000000..1b950e8db50fad334e379deb50da01f764466ba8
--- /dev/null
+++ b/pace_revision_2/verification/model_inventory.json
@@ -0,0 +1,58 @@
+{
+ "compact": {
+ "parameters": 34858,
+ "real_neural_macs_per_slot": 2031232,
+ "convention": "One real multiply-accumulate = one MAC; excludes biases, nonlinearities, normalization and classical preprocessing; transposed convolution counts full kernel support before edge cropping",
+ "interpolation_complex_macs_per_slot": 134400,
+ "anchor_complex_macs_per_slot": 0
+ },
+ "wide": {
+ "parameters": 268930,
+ "real_neural_macs_per_slot": 21457408,
+ "convention": "One real multiply-accumulate = one MAC; excludes biases, nonlinearities, normalization and classical preprocessing; transposed convolution counts full kernel support before edge cropping",
+ "interpolation_complex_macs_per_slot": 134400,
+ "anchor_complex_macs_per_slot": 0
+ },
+ "cnn16": {
+ "parameters": 19298,
+ "real_neural_macs_per_slot": 32175360,
+ "convention": "One real multiply-accumulate = one MAC; excludes biases, nonlinearities, normalization and classical preprocessing; transposed convolution counts full kernel support before edge cropping",
+ "interpolation_complex_macs_per_slot": 134400,
+ "anchor_complex_macs_per_slot": 0
+ },
+ "reesnet": {
+ "parameters": 33010,
+ "real_neural_macs_per_slot": 3087360,
+ "convention": "One real multiply-accumulate = one MAC; excludes biases, nonlinearities, normalization and classical preprocessing; transposed convolution counts full kernel support before edge cropping",
+ "interpolation_complex_macs_per_slot": 0,
+ "anchor_complex_macs_per_slot": 0
+ },
+ "channelformer": {
+ "parameters": 185181,
+ "real_neural_macs_per_slot": 7803840,
+ "convention": "One real multiply-accumulate = one MAC; excludes biases, nonlinearities, normalization and classical preprocessing; transposed convolution counts full kernel support before edge cropping",
+ "interpolation_complex_macs_per_slot": 0,
+ "anchor_complex_macs_per_slot": 0
+ },
+ "fortitran": {
+ "parameters": 188120,
+ "real_neural_macs_per_slot": 76285440,
+ "convention": "One real multiply-accumulate = one MAC; excludes biases, nonlinearities, normalization and classical preprocessing; transposed convolution counts full kernel support before edge cropping",
+ "interpolation_complex_macs_per_slot": 0,
+ "anchor_complex_macs_per_slot": 0
+ },
+ "helena": {
+ "parameters": 116290,
+ "real_neural_macs_per_slot": 8235008,
+ "convention": "One real multiply-accumulate = one MAC; excludes biases, nonlinearities, normalization and classical preprocessing; transposed convolution counts full kernel support before edge cropping",
+ "interpolation_complex_macs_per_slot": 0,
+ "anchor_complex_macs_per_slot": 0
+ },
+ "adafortitran": {
+ "parameters": 287234,
+ "real_neural_macs_per_slot": 120404046,
+ "convention": "One real multiply-accumulate = one MAC; excludes biases, nonlinearities, normalization and classical preprocessing; transposed convolution counts full kernel support before edge cropping",
+ "interpolation_complex_macs_per_slot": 0,
+ "anchor_complex_macs_per_slot": 0
+ }
+}
diff --git a/pace_revision_2/verification/pytest.log b/pace_revision_2/verification/pytest.log
new file mode 100644
index 0000000000000000000000000000000000000000..3b4f2090378d91ecd3bc3c124dd0d1935773c7a8
--- /dev/null
+++ b/pace_revision_2/verification/pytest.log
@@ -0,0 +1,2 @@
+.................. [100%]
+18 passed in 19.85s
diff --git a/pace_revision_2/verification/smoke.log b/pace_revision_2/verification/smoke.log
new file mode 100644
index 0000000000000000000000000000000000000000..e05ce516409b5195b32a64d21d0e88f0dbe86a37
--- /dev/null
+++ b/pace_revision_2/verification/smoke.log
@@ -0,0 +1,20 @@
+
main/TRAIN: 0%| | 0/1 [00:00, ?it/s]
main/TRAIN: 100%|██████████| 1/1 [00:07<00:00, 7.75s/it]
main/TRAIN: 100%|██████████| 1/1 [00:07<00:00, 7.75s/it]
+
main/TUNE: 0%| | 0/1 [00:00, ?it/s]
main/TUNE: 100%|██████████| 1/1 [00:04<00:00, 4.82s/it]
main/TUNE: 100%|██████████| 1/1 [00:04<00:00, 4.82s/it]
+
main/VAL: 0%| | 0/1 [00:00, ?it/s]
main/VAL: 100%|██████████| 1/1 [00:05<00:00, 5.28s/it]
main/VAL: 100%|██████████| 1/1 [00:05<00:00, 5.28s/it]
+
main/GATE_FIT: 0%| | 0/1 [00:00, ?it/s]
main/GATE_FIT: 100%|██████████| 1/1 [00:05<00:00, 5.34s/it]
main/GATE_FIT: 100%|██████████| 1/1 [00:05<00:00, 5.34s/it]
+
main/GATE_VAL: 0%| | 0/1 [00:00, ?it/s]
main/GATE_VAL: 100%|██████████| 1/1 [00:04<00:00, 4.95s/it]
main/GATE_VAL: 100%|██████████| 1/1 [00:04<00:00, 4.95s/it]
+E01_main_compact_D_base_s41001 epoch 1/1: val=-0.0556 dB
+E01_main_compact_A-raw_base_s41001 epoch 1/1: val=-19.1176 dB
+E01_main_compact_A-res_base_s41001 epoch 1/1: val=-19.1412 dB
+E02_main_reesnet_D_base_s41001 epoch 1/1: val=-0.0398 dB
+E02_main_channelformer_D_base_s41001 epoch 1/1: val=0.1597 dB
+E02_main_fortitran_D_base_s41001 epoch 1/1: val=0.1415 dB
+E02_main_helena_D_base_s41001 epoch 1/1: val=-0.1077 dB
+
main/TEST: 0%| | 0/1 [00:00, ?it/s]
main/TEST: 100%|██████████| 1/1 [00:00<00:00, 2.43it/s]
main/TEST: 100%|██████████| 1/1 [00:00<00:00, 2.42it/s]
+
main/TEST: 0%| | 0/1 [00:00, ?it/s]
main/TEST: 100%|██████████| 1/1 [00:00<00:00, 2.38it/s]
main/TEST: 100%|██████████| 1/1 [00:00<00:00, 2.38it/s]
+
main/TEST: 0%| | 0/1 [00:00, ?it/s]
main/TEST: 100%|██████████| 1/1 [00:00<00:00, 2.78it/s]
main/TEST: 100%|██████████| 1/1 [00:00<00:00, 2.78it/s]
+
main/TEST: 0%| | 0/1 [00:00, ?it/s]
main/TEST: 100%|██████████| 1/1 [00:00<00:00, 2.01it/s]
main/TEST: 100%|██████████| 1/1 [00:00<00:00, 2.01it/s]
+
main/TEST: 0%| | 0/1 [00:00, ?it/s]
main/TEST: 100%|██████████| 1/1 [00:00<00:00, 2.97it/s]
main/TEST: 100%|██████████| 1/1 [00:00<00:00, 2.96it/s]
+
main/TEST: 0%| | 0/1 [00:00, ?it/s]
main/TEST: 100%|██████████| 1/1 [00:00<00:00, 2.52it/s]
main/TEST: 100%|██████████| 1/1 [00:00<00:00, 2.52it/s]
+
main/TEST: 0%| | 0/1 [00:00, ?it/s]
main/TEST: 100%|██████████| 1/1 [00:00<00:00, 2.29it/s]
main/TEST: 100%|██████████| 1/1 [00:00<00:00, 2.29it/s]
+SMOKE COMPLETE: development artifacts only, not publication results
diff --git a/pace_revision_2/verification/smoke_source_identity_audit.json b/pace_revision_2/verification/smoke_source_identity_audit.json
new file mode 100644
index 0000000000000000000000000000000000000000..9578289aba7ba9b992a3b9c9488ee0efe34a2984
--- /dev/null
+++ b/pace_revision_2/verification/smoke_source_identity_audit.json
@@ -0,0 +1,4 @@
+{
+ "passed": true,
+ "independent_channels": 88
+}
diff --git a/pace_revision_2/verification/validation/adafortitran_fidelity.json b/pace_revision_2/verification/validation/adafortitran_fidelity.json
new file mode 100644
index 0000000000000000000000000000000000000000..47073f6af32eee55e0a51768fbbba1d3c35f414c
--- /dev/null
+++ b/pace_revision_2/verification/validation/adafortitran_fidelity.json
@@ -0,0 +1,6 @@
+{
+ "passed": true,
+ "max_abs_error": 0.0,
+ "method": "pinned released source versus independent port",
+ "fixture_sha256": null
+}
diff --git a/pace_revision_2/verification/validation/channelformer_fidelity.json b/pace_revision_2/verification/validation/channelformer_fidelity.json
new file mode 100644
index 0000000000000000000000000000000000000000..552d49ac65fdfb586ecc02baa26e6346dc254f84
--- /dev/null
+++ b/pace_revision_2/verification/validation/channelformer_fidelity.json
@@ -0,0 +1,6 @@
+{
+ "passed": true,
+ "max_abs_error": 5.551115123125783e-16,
+ "method": "independent NumPy implementation of MATLAB-defined operators; not native MATLAB checkpoint parity",
+ "fixture_sha256": null
+}
diff --git a/pace_revision_2/verification/validation/fortitran_fidelity.json b/pace_revision_2/verification/validation/fortitran_fidelity.json
new file mode 100644
index 0000000000000000000000000000000000000000..47073f6af32eee55e0a51768fbbba1d3c35f414c
--- /dev/null
+++ b/pace_revision_2/verification/validation/fortitran_fidelity.json
@@ -0,0 +1,6 @@
+{
+ "passed": true,
+ "max_abs_error": 0.0,
+ "method": "pinned released source versus independent port",
+ "fixture_sha256": null
+}
diff --git a/pace_revision_2/verification/validation/helena_fidelity.json b/pace_revision_2/verification/validation/helena_fidelity.json
new file mode 100644
index 0000000000000000000000000000000000000000..35d07c73d549d9a6ac756f5f1fa6020534a8d7b6
--- /dev/null
+++ b/pace_revision_2/verification/validation/helena_fidelity.json
@@ -0,0 +1,6 @@
+{
+ "passed": true,
+ "max_abs_error": 9.059906005859375e-06,
+ "method": "native Keras saved weights, 612x14 sparse-pilot forward parity",
+ "fixture_sha256": "4c62921b12295bcae76b6247c952587bf7f23690222d0c80560c18b2d0550b58"
+}