# \#nutpie

**URL:** https://discourse.pymc.io/tag/nutpie/104.md

[Latest](https://discourse.pymc.io/latest.md) · [Categories](https://discourse.pymc.io/categories.md) · [Tags](https://discourse.pymc.io/tags.md)

---

## [Bug in nutpie+numba: memory needed for LogNormal compilation scales superlinearly](https://discourse.pymc.io/t/bug-in-nutpie-numba-memory-needed-for-lognormal-compilation-scales-superlinearly/17911)

<div class="topic-metadata">

**Author:** [@bridgeland](https://discourse.pymc.io/u/bridgeland)\
**Replies:** 4\
**Last updated:** [August 17, 2026, 3:34pm UTC](https://discourse.pymc.io/t/bug-in-nutpie-numba-memory-needed-for-lognormal-compilation-scales-superlinearly/17911 "2026-08-17T15:34:29Z")

</div>

I discovered a bug in nutpie compilation. A model that conditions a LogNormal consumes far more memory in nutpie compilation than an otherwise identical model that conditions a Gamma. The ratio of memory usage between Lo…

---

## [Survival analysis example with Nutpie – odd results](https://discourse.pymc.io/t/survival-analysis-example-with-nutpie-odd-results/17444)

<div class="topic-metadata">

**Author:** [@simonm](https://discourse.pymc.io/u/simonm)\
**Replies:** 11\
**Last updated:** [December 10, 2025, 3:45am UTC](https://discourse.pymc.io/t/survival-analysis-example-with-nutpie-odd-results/17444 "2025-12-10T03:45:20Z")

</div>

I have been working through the Survival Analysis worked example notebook (the version updated for pymc5). It works as expected as downloaded, but if I change the sampling to use Nutpie then the calculation of beta is (t…

---

## [How to use stored divergences in nutpie.sample()?](https://discourse.pymc.io/t/how-to-use-stored-divergences-in-nutpie-sample/17389)

<div class="topic-metadata">

**Author:** [@bridgeland](https://discourse.pymc.io/u/bridgeland)\
**Replies:** 6\
**Last updated:** [October 29, 2025, 9:12am UTC](https://discourse.pymc.io/t/how-to-use-stored-divergences-in-nutpie-sample/17389 "2025-10-29T09:12:21Z")

</div>

My rather complex model sees a 5X speedup in sampling using nutpie instead of out-of-the-box NUTS. Thank you @aseyboldt . And thank you @cluhmann for alerting me to nutpie, by informing me of @AlexAndorra’s most excellen…

---

## [Nutpie sampling freezes](https://discourse.pymc.io/t/nutpie-sampling-freezes/17372)

<div class="topic-metadata">

**Author:** [@bridgeland](https://discourse.pymc.io/u/bridgeland)\
**Replies:** 12\
**Last updated:** [October 16, 2025, 9:16pm UTC](https://discourse.pymc.io/t/nutpie-sampling-freezes/17372 "2025-10-16T21:16:48Z")

</div>

I tried nutpie for the first time on my rather large model. nutpie compiled the model without reporting any difficulty. But sampling resulted in a curious failure: it starts sampling, but freezes after two minutes. No ne…

---

## [Convergence issue with finite mixture model with nutpie sampler](https://discourse.pymc.io/t/convergence-issue-with-finite-mixture-model-with-nutpie-sampler/17151)

<div class="topic-metadata">

**Author:** [@Fabio\_Setti](https://discourse.pymc.io/u/Fabio_Setti)\
**Replies:** 4\
**Last updated:** [July 15, 2025, 3:14pm UTC](https://discourse.pymc.io/t/convergence-issue-with-finite-mixture-model-with-nutpie-sampler/17151 "2025-07-15T15:14:25Z")

</div>

Hi there! I have recently switched from stan to pymc especially because of nutpie\`s speed compared to stan’s sampler. I was playing around with estimating some basic mixture models where the data come from two normal di…

---

## [Nutpie panel data events "moving"](https://discourse.pymc.io/t/nutpie-panel-data-events-moving/17046)

<div class="topic-metadata">

**Author:** [@KL\_Bean](https://discourse.pymc.io/u/KL_Bean)\
**Replies:** 7\
**Last updated:** [May 29, 2025, 2:43pm UTC](https://discourse.pymc.io/t/nutpie-panel-data-events-moving/17046 "2025-05-29T14:43:19Z")

</div>

pymc version: 5.21.1 nutpie version 0.14.3 When I try to incorporate event data into a model with multiple locations, and allow the coefficient to vary by location, I am noticing that the “date” of the event is shiftin…

---

## [Error using \`nutpie\` sampler with Latent GP](https://discourse.pymc.io/t/error-using-nutpie-sampler-with-latent-gp/16477)

<div class="topic-metadata">

**Author:** [@mathDR](https://discourse.pymc.io/u/mathDR)\
**Replies:** 3\
**Last updated:** [February 4, 2025, 3:37am UTC](https://discourse.pymc.io/t/error-using-nutpie-sampler-with-latent-gp/16477 "2025-02-04T03:37:31Z")

</div>

Hello, I am trying to sample a Latent GP model with numpie and getting the following error: AttributeError: 'JITCPUCodegen' object has no attribute '\_mpm\_cheap' (I can post the full stacktrace if that is more helpful). …

---

## [Nutpie Samples 1 chain much quicker than others](https://discourse.pymc.io/t/nutpie-samples-1-chain-much-quicker-than-others/16459)

<div class="topic-metadata">

**Author:** [@yahrMason](https://discourse.pymc.io/u/yahrMason)\
**Replies:** 5\
**Last updated:** [February 2, 2025, 10:31am UTC](https://discourse.pymc.io/t/nutpie-samples-1-chain-much-quicker-than-others/16459 "2025-02-02T10:31:11Z")

</div>

I have noticed that when sampling with nutpie, the sampler will be very quick to finish a single chain, and the remaining take considerably longer. Is this expected behavior?

---

## [Scan related error using nutpie for an autoregressive model](https://discourse.pymc.io/t/scan-related-error-using-nutpie-for-an-autoregressive-model/16395)

<div class="topic-metadata">

**Author:** [@Juan\_Martinez](https://discourse.pymc.io/u/Juan_Martinez)\
**Replies:** 4\
**Last updated:** [January 29, 2025, 10:53am UTC](https://discourse.pymc.io/t/scan-related-error-using-nutpie-for-an-autoregressive-model/16395 "2025-01-29T10:53:28Z")

</div>

Hi all, I’m getting the following error when trying to use nutpie (“standard” sampling works) for an autoregressive model. Any contribution is appreciated. ValueError: Argument Sigmoid.0 given to the scan node is not c…

---

## [Sample output object with Nutpie](https://discourse.pymc.io/t/sample-output-object-with-nutpie/16355)

<div class="topic-metadata">

**Author:** [@DaveD](https://discourse.pymc.io/u/DaveD)\
**Replies:** 2\
**Last updated:** [January 9, 2025, 1:45pm UTC](https://discourse.pymc.io/t/sample-output-object-with-nutpie/16355 "2025-01-09T13:45:14Z")

</div>

Hi, (Im using PyMC ver 5.19 and Windows 10) Im using nutpie to compile and sample a model (previously run fine with pm.sample etc). This works very well (much quicker) but the resulting trace object is different (previ…

---

## [What is the format for supplying init\_mean values to the nutpie sampler?](https://discourse.pymc.io/t/what-is-the-format-for-supplying-init-mean-values-to-the-nutpie-sampler/16216)

<div class="topic-metadata">

**Author:** [@kmiddleton](https://discourse.pymc.io/u/kmiddleton)\
**Replies:** 3\
**Last updated:** [December 12, 2024, 6:55pm UTC](https://discourse.pymc.io/t/what-is-the-format-for-supplying-init-mean-values-to-the-nutpie-sampler/16216 "2024-12-12T18:55:57Z")

</div>

For nutpie, non-zero starting values can be supplied through the init\_mean argument. The documentation says this is an ndarray, as opposed to the dictionary of parameter/value pairs that the pymc and other samplers use. …

---

## [Label switching for multicomponent model](https://discourse.pymc.io/t/label-switching-for-multicomponent-model/15937)

<div class="topic-metadata">

**Author:** [@Omendra\_Gangwar](https://discourse.pymc.io/u/Omendra_Gangwar)\
**Replies:** 3\
**Last updated:** [October 13, 2024, 7:20am UTC](https://discourse.pymc.io/t/label-switching-for-multicomponent-model/15937 "2024-10-13T07:20:08Z")

</div>

Hi, can any one tell suppose we have 2 component model like y(t)=A1cos(w1t)+B1sin(w1t)+A2cos(w2t)+B2sin(w2t) +e(t) suppose i take true parameter is A1=5=B1, A2=B2=3, w1=2, w2=1.5 where e(t) is gaussian noise where follow…

---

## [Nutpie sampler warning for Numba object mode (lower performance)](https://discourse.pymc.io/t/nutpie-sampler-warning-for-numba-object-mode-lower-performance/15079)

<div class="topic-metadata">

**Author:** [@uhur](https://discourse.pymc.io/u/uhur)\
**Replies:** 2\
**Last updated:** [September 15, 2024, 9:18am UTC](https://discourse.pymc.io/t/nutpie-sampler-warning-for-numba-object-mode-lower-performance/15079 "2024-09-15T09:18:27Z")

</div>

Hi, I have a model from which i sample with the nutpie sampler as this sampler was the fastest among two others. However, I think it can be even faster because I receive a warning that hints at this. I will give the mod…

---

## [Nuts-rs: meaning of the parameters in the CpuLogpFunc](https://discourse.pymc.io/t/nuts-rs-meaning-of-the-parameters-in-the-cpulogpfunc/14650)

<div class="topic-metadata">

**Author:** [@tmbb92](https://discourse.pymc.io/u/tmbb92)\
**Replies:** 25\
**Last updated:** [July 4, 2024, 10:48am UTC](https://discourse.pymc.io/t/nuts-rs-meaning-of-the-parameters-in-the-cpulogpfunc/14650 "2024-07-04T10:48:18Z")

</div>

I’m not sure this is the right place to ask this, but I can’t find a forum that’s specifically dedicated to nuts\_rs. Keep in mind that I’m a rust beginner. What’s the meaning of the parameters of the logp function below…
