# PyMC3.2 on bleeding edge theano has significantly slower compilation time

**URL:** <https://discourse.pymc.io/t/pymc3-2-on-bleeding-edge-theano-has-significantly-slower-compilation-time/499>\
**Category:** Development\
**Created:** [October 26, 2017, 12:09pm UTC](https://discourse.pymc.io/t/pymc3-2-on-bleeding-edge-theano-has-significantly-slower-compilation-time/499 "2017-10-26T12:09:24Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![kpei](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.pymc.io/kpei/32/318_2.png) [@kpei](https://discourse.pymc.io/u/kpei)\
**Post date:** [October 26, 2017, 12:09pm UTC](https://discourse.pymc.io/t/pymc3-2-on-bleeding-edge-theano-has-significantly-slower-compilation-time/499/1 "2017-10-26T12:09:24Z")

</div>

Did not try to replicate but here are some details on what happened, not a large issue but could perhaps be part of something bigger with theano backend

**My Specs** : Windows 10 with Jupyter notebook running Pymc.

**Before** : Fresh install of anaconda + PyMC3.2 from Conda forge. compilation time was reasonable.  
**After** :

1. Was getting dynamic library warnings from BLAS (as well as blas flag errors) when using `tt.dot`
2. Scared that all my current computations are numpy based, I decided to update theano to bleeding edge (suggested by many others) and install pymc3.2 (release vers) through pip.
3. Compilation time for the exact same models are now significantly longer (about 5-10x longer)

---

<div class="post-metadata">

**Author:** ![junpenglao](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.pymc.io/junpenglao/32/8_2.png) [@junpenglao](https://discourse.pymc.io/u/junpenglao)\
**Post date:** [October 26, 2017, 12:14pm UTC](https://discourse.pymc.io/t/pymc3-2-on-bleeding-edge-theano-has-significantly-slower-compilation-time/499/2 "2017-10-26T12:14:08Z")

</div>

Thanks for reporting - anybody else has the same issue?

---

<div class="post-metadata">

**Author:** ![aseyboldt](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.pymc.io/aseyboldt/32/5795_2.png) [@aseyboldt](https://discourse.pymc.io/u/aseyboldt)\
**Post date:** [October 26, 2017, 9:03pm UTC](https://discourse.pymc.io/t/pymc3-2-on-bleeding-edge-theano-has-significantly-slower-compilation-time/499/3 "2017-10-26T21:03:19Z")

</div>

I didn’t investigate, but the last couple of days I was pretty surprised that theano seemed to take ages for a couple of things. Not sure it was 5-10x however, and I didn’t compare directly.

---

<div class="post-metadata">

**Author:** ![pwl](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.pymc.io/pwl/32/212_2.png) [@pwl](https://discourse.pymc.io/u/pwl)\
**Post date:** [November 20, 2017, 3:58pm UTC](https://discourse.pymc.io/t/pymc3-2-on-bleeding-edge-theano-has-significantly-slower-compilation-time/499/4 "2017-11-20T15:58:55Z")

</div>

I just upgraded to 3.2 and I am experiencing a similar slowdown. Should we post an issue?

---

<div class="post-metadata">

**Author:** ![junpenglao](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.pymc.io/junpenglao/32/8_2.png) [@junpenglao](https://discourse.pymc.io/u/junpenglao)\
**Post date:** [November 21, 2017, 8:10am UTC](https://discourse.pymc.io/t/pymc3-2-on-bleeding-edge-theano-has-significantly-slower-compilation-time/499/5 "2017-11-21T08:10:34Z")

</div>

Did you also upgrade to theano 1.0?  
I opened an issue here: [https://github.com/pymc-devs/pymc3/issues/2723](https://github.com/pymc-devs/pymc3/issues/2723)  
If you recently also upgrade theano please post your theano version to there 😉

---

<div class="post-metadata">

**Author:** ![pwl](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.pymc.io/pwl/32/212_2.png) [@pwl](https://discourse.pymc.io/u/pwl)\
**Post date:** [November 21, 2017, 8:39am UTC](https://discourse.pymc.io/t/pymc3-2-on-bleeding-edge-theano-has-significantly-slower-compilation-time/499/6 "2017-11-21T08:39:09Z")

</div>

Yest, I upgraded to theano 1.0, sorry I forgot to mention that.
