Skip to content

Conversation

@henrytdsimmons
Copy link
Contributor

@henrytdsimmons henrytdsimmons commented May 28, 2025

Using the docs example:

with model:
    trace = pm.sample(
        model,
        nuts_sampler="nutpie",
        nuts_sampler_kwargs={"backend": "jax"},
    )

Results in:
TypeError: '<' not supported between instances of 'Model' and 'int'

This is because model is not the first argument for pm.sample when in the with block.

Removed model positional argument from both examples.

@aseyboldt aseyboldt merged commit 00e6ced into pymc-devs:main May 28, 2025
8 checks passed
@aseyboldt
Copy link
Member

Thank you!

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