Skip to content

docs: tutorial 8 — numba remains the CPU route for pixelized sources (#506) - #75

Merged
Jammy2211 merged 2 commits into
mainfrom
feature/pixelization-fit-cpu-users-docs
Aug 28, 2026
Merged

Jammy2211 merged 2 commits into
mainfrom
feature/pixelization-fit-cpu-users-docs

Conversation

@Jammy2211

Copy link
Copy Markdown
Collaborator

Summary

Chapter 2, tutorial 8 (the need for speed) tells the reader that JAX supersedes numba outright.
That is true for the light-profile likelihood, but not for pixelized-source modeling on a CPU, where
the numba sparse-operator path is still the faster route on many-core machines — leaving the
tutorial's claim unqualified sends CPU users down the slower path.

One sentence is appended in the same voice, pointing at
autolens_workspace/scripts/imaging/features/pixelization/cpu_fast_modeling.py and chapter 3.

Prose only — no code or behaviour change.

Scripts Changed

  • scripts/chapter_2_lens_modeling/tutorial_8_need_for_speed.py — one sentence appended to the
    JAX-supersedes-numba paragraph noting the pixelized-source CPU exception.

Test Plan

  • python -c "import ast; ast.parse(open(...).read())" on the edited script — parses.
  • Docstring-only edit inside an existing markdown block; notebooks deliberately not regenerated.

Part of PyAutoLabs/autolens_workspace#506.

Generated by the PyAutoLabs agent workflow.

…(#506)

Chapter 2 tutorial 8 said JAX supersedes `numba` outright. True for the
light-profile likelihood, but not for pixelized-source modeling on a CPU,
where the `numba` sparse-operator path is still faster on many-core
machines. One sentence appended noting the exception and pointing at
`autolens_workspace/scripts/imaging/features/pixelization/cpu_fast_modeling.py`
and chapter 3.

Prose only; no code or behaviour change.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XySQZP6Npj4adZMkYZ96Bo
@Jammy2211
Jammy2211 merged commit 527543f into main Aug 28, 2026
7 checks passed
@Jammy2211
Jammy2211 deleted the feature/pixelization-fit-cpu-users-docs branch August 28, 2026 16:51
@Jammy2211 Jammy2211 removed the pending-release PR queued for the next release build label Oct 7, 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.

1 participant