Skip to content

feat: default --xla_gpu_autotune_level=0 in jax_wrapper (#131) - #132

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/autotune-off-default
Jul 17, 2026
Merged

Jammy2211 merged 1 commit into
mainfrom
feature/autotune-off-default

Conversation

@Jammy2211

Copy link
Copy Markdown
Collaborator

Overview

Rollout of autolens_profiling#74 verdict 2 (closes #131): default --xla_gpu_autotune_level=0 in jax_wrapper.py. GPU autotuning dominates cold JAX compile times (up to ~7m30 for a single fusion on the A100 pathological case) while giving no measurable evaluation speed-up on PyAuto likelihoods (steady-eval parity across the measured matrix; the 4800-eval full fit was 40 % faster end-to-end with it off; fixed-input logL bit-identical). Stacked with the default compilation cache (#128): worst-case first-fit UX ~70 min → ~30 s.

API Changes

None (public Python API untouched). Environment behavior at import:

Tests

  • 3 new tests in test_autoconf/test_jax_wrapper.py (default applied; preset level respected and default suppressed; composes with user flags); 2 pre-feat: default --xla_gpu_autotune_level=0 in jax_wrapper (env-respecting) #131 exact-equality tests updated for the new default.
  • Full PyAutoConf suite: 151 passed.
  • Downstream PyAutoFit suite against this branch: 1496 passed, 1 skipped.
  • Fresh-process verification of both paths (default appended after constant_folding; preset --xla_gpu_autotune_level=2 survives and suppresses the default).

Heart

RED at ship time — the same 5 pre-existing unrelated reasons as autolens_profiling#76's ship; human-acknowledged for this PR-open (merge stays human).

🤖 Generated with Claude Code

GPU autotuning dominates cold JAX compiles (up to ~7min for one fusion, autolens_profiling#74: 17x cold probe, -40% cold full fit off) with no measured eval speed-up on PyAuto likelihoods. Appended to XLA_FLAGS unless the user already sets an autotune level. Stacks with the default compilation cache (#128): worst-case first-fit ~70min -> ~30s.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@Jammy2211 Jammy2211 added the pending-release PR queued for the next release build label Jul 17, 2026
@Jammy2211
Jammy2211 merged commit ef59924 into main Jul 17, 2026
4 checks passed
@Jammy2211
Jammy2211 deleted the feature/autotune-off-default branch July 17, 2026 08:27
@Jammy2211 Jammy2211 removed the pending-release PR queued for the next release build label Sep 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: default --xla_gpu_autotune_level=0 in jax_wrapper (env-respecting)

1 participant