Repository navigation
feat(v0.5.3): Pre-GPU engineering & scientific methodology hardening - #5
Merged
jameslehoux merged 1 commit intoDec 2, 2026
Conversation
…SSA & strict Gate 1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Addresses the 2 Dec 2026 review of
feature/paper-ready-conditional(72e02c3,v0.5.2) prior to launching Isambard-AI GH200 GPU runs:v0.5.3):monai==1.6.2and[email protected]across.github/workflows/ci.yml,requirements-isambard.txt, andenvironment.yml, and alignspyproject.toml(monai>=1.4,<1.7,safetensors>=0.4).SIGUSR1Preemption & Throughput Probe:--max-train-stepswith linear warmup + cosine LR decay (compute_lr_multiplier) so Sparse, Few-Shot, and Oracle arms receive identical optimizer updates and predictable GPU cost.#SBATCH --signal=B:USR1@600(exec/ child-PID signal forwarding traps), immediate mid-epochlatest.pth+ema_weights.safetensorssaving, step-exact--resume, and a 20-minute GH200 throughput/memory probe (slurm/benchmark_carbon_conditional_96.slurm->throughput_summary.json).resolve_checkpoint_pathto("best_sample.pth", "latest.pth", "ema_weights.safetensors", "best_val.pth")and adds--sample-val-every-stepsso single-timestep denoising MSE never overrides converged EMA weights.slurm/(removing hardcoded/projects/u6uc/asifpaths) and archives 24 superseded binary scripts/Slurm files intolegacy/.fourier_max_periodfrom16.0to1.5([0.25π, 1.5π], avoiding both high-frequency hash memorization across3–5loads andcos(±π) = -1endpoint aliasing; retains16.0fallback for legacy checkpoints), addsconditioning_mode="smooth_mlp", and adds optional--use-z-coord-channel.allow_z_flip=Falseto preserve plunger-to-base compaction asymmetry and adds--no-xy-rot90(D_2(XY)180° + X/Y flips) paired with Gate 0X/Ychord isotropy warnings.ssa_*_mc, including exact 3-phase binary inclusion–exclusion for0–2,0–1,1–2interfaces) as the default Newman ASR kinetic area (kinetic_area_convention = "marching_cubes"), alongsidessa_*_cc(OpenImpalaparity) andssa_mc_over_cc_ratio.*_6and*_26explicitly.strip_partial_volume_carbon_haloto isotropic 3D3 × 3 × 3structuring elements acrossprepare_local_drive_bundle.pyandsegment_carbon_xct.py(audit_halo_anisotropy_preservation).guidance_scale_invto matchguidance_scaleinvirtual_compress_volumesfor symmetric DDIM ODE inversion.affine_z_squash_pchip, side-by-side XY/XZ/YZ orthoslices, tiled>96³vsval/tall_patches.npyREV audits, strict--assert-gate1checks, a Gate 1 CFG sweep (w in {1.0, 1.25, 1.5, 2.0}),STAGE=loo_virginacross every interior Virgin Felt load, and Newman ASR contact-resistance sensitivity (heuristic_pinch,constant,zero) with explicitn = 1specimen framing.tests/test_overfit_single_patch.py,tests/test_step_budget_and_preemption.py, andtests/test_conditioning_and_stereology.py, splits monolithictest_next_level_novelty.pyby behaviour, and alignsREADME.md,AGENTS.md, andexperiments.md.Verification
python -m compileall -q porousdiff porousdiff_workflows scripts tests— Passpython -m basecoat.layers— Pass (0 banned imports)ruff check porousdiff porousdiff_workflows scripts tests— Passbash -n slurm/*.slurm— PassOMP_NUM_THREADS=1 MKL_NUM_THREADS=1 OPENBLAS_NUM_THREADS=1 TORCH_NUM_THREADS=1 pytest -v—56 passed, 1 skipped(OpenImpala v5.2.0,basecoat v0.3.0,MONAI 1.6.2,safetensors 0.8.0)