Skip to content

Feature/jax production#1149

Merged
Jammy2211 merged 8 commits intofeature/jax_wrapperfrom
feature/jax_production
Jun 24, 2025
Merged

Feature/jax production#1149
Jammy2211 merged 8 commits intofeature/jax_wrapperfrom
feature/jax_production

Conversation

@Jammy2211
Copy link
Copy Markdown
Collaborator

Makes JAX a requirement and adapts and simplifies source code using this.

However, JAX can still be disabled using the use_jax input of general.yaml, and most unit tests assume this to be the case.

More simplifications and refactors will be necessary, but for now all unit tests and I can proceed testing things with autolens.

Copy link
Copy Markdown
Collaborator

@rhayes777 rhayes777 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like all the failures are coming from core mp functionality

@matthewghgriffiths

assert grad[a] == pytest.approx(6)
assert grad[b] == pytest.approx(2)
assert grad[c] == pytest.approx(3)
# def test_nested_factor_jax():
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why does this fail?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure, I am working my way through the graphical module indepedently so figure I'll come back to this down the line.

The failure message relates to a jax factor so it'll be due to me messing around with the JAX imports, maybe that I disabled JAX in the config for unit tests but this test is still trying to use it. PRobably that, tbh.

@Jammy2211 Jammy2211 changed the base branch from main to feature/jax_wrapper June 23, 2025 16:07
@Jammy2211 Jammy2211 merged commit a7bcebc into feature/jax_wrapper Jun 24, 2025
0 of 4 checks passed
@Jammy2211 Jammy2211 deleted the feature/jax_production branch June 24, 2025 13:48
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.

2 participants