How to speed the sampling up on windows #335
Replies: 2 comments 3 replies
-
Hi @TeaforTwo1011, sorry for the delayed response on this. I would do two sanity check here.
Lastly, to narrow in on what might be the reason behind the slowdown, can you provide the printout after importing hssm? Does this mention something about 'using numpy c as backend for blas'? |
Beta Was this translation helpful? Give feedback.
-
Hello. I am also experiencing a super long run time. My sample is 770 people and its going on 13 hours. I am running a hierarchical model with 3 trials per participant. When I was initially setting up the environment, I was getting errors about blas and numpy. To set-up my environment, I had to use numpy 1.25.2 and pymc 5.11. I am just wondering if this is normal? The nuts sampler is using 4 chains in 4 jobs and it says 0 divergences so far. I am going to try your suggestion running a smaller sample and also specifying the sampler to use ('nuts_numpyro' and 'nuts_blackjax') to see if this improves. |
Beta Was this translation helpful? Give feedback.
-
Hi team,
I am running a simulation study, where I simulated 100 participants (variable: Sub), 5 different conditions (variable: S), 30 trials per condition for each participants, and assume a hierarchical structure for all the parameters.
The model graph looks like this:
Then I started sampling with this line of code, let the .sample() decide the specific sampler to use:
infer_model = model_ddm.sample(chains=3, cores=1, draws=2000, tune=1000)
And this is what I got:
It took already 19hrs to draw 1790 samples from chain 0 and I really do not know whether it is normal speed and what can I do to speed it up.
It would be really helpful if I can get some suggestions from your side.
Many thanks!
Beta Was this translation helpful? Give feedback.
All reactions