r/MachineLearning • u/libreland • Sep 28 '17
Discussion [D] Theano's Dead
https://groups.google.com/forum/#!topic/theano-users/7Poq8BZutbY189
u/Descates Sep 28 '17 edited Sep 28 '17
Its important to think about the impact which theano actually created. Many people approached deep learning(thanks to Theano) I feel debt of gratitude towards those who contributed to it over the years, making it such a great tool. I remember reading the tutorials at deeplearning.net which was probably the starting point for me.
These guys paved the way to deep learning!
We should take this moment to thank all the open source contributions to all the existing libraries.
7
u/zitterbewegung Sep 29 '17
Yea, I think Theano was the first Deep Learning project that I was successful enough to run someone elses Deep Learning model. Thanks to them all.
2
u/spurious_recollectio Sep 29 '17
Can anyone suggest what the best framework would be for someone who really wishes theano was not gone? I'm leaning toward TF but have never really dug into it since I already new theano well. I'm not interested in high-level frameworks like keras. I want theano-like mathematical expresivity. Before theano I built my own NN library on top of a numpy-like GPU library so I really want that level of control. Is TF the closest option? I do need something production friendly/ready.
7
u/libreland Sep 29 '17 edited Sep 29 '17
Pytorch. I loved Theano when it was young. Shifted to pytorch few months back. Never missed Theano, pytorch is easier to debug as well.
2
u/spurious_recollectio Sep 29 '17
So why pytorch over TF? TF seems like the natural successor to theano.
2
u/libreland Sep 29 '17
TF is too much boilerplate. I don't find it a lot better than theano. Pytorch is easy to debug, and you can mix regular python and pytorch and write very complex networks very fast. Plus you get the low level control (which is also in tensorflow). If I switch, i would want to switch to something that ia more productive and fun for me. TF has some advantages as well like keras.on top and phone ecosystem, but pytorch will reach there eventually.
→ More replies (2)
79
u/VordeMan Sep 28 '17
Sad in a sense, though I never used it, but good to see that their team was the right kind of introspective and saw what I agree is the best way forward.
27
u/Phylliida Sep 29 '17
Dang I programmed exclusively in theano for about a year and a half until I understood keras, but still often kept coming back to theano for low level stuff it couldn't do.
Now I mostly use pytorch but theano will always have a special place in my heart <3 Thanks my dudes for making it and doing such a good job :)
3
u/rowanobrian Sep 29 '17
i am just starting deep learning in python. i see tf being used most. why would u say is pytorch better? and can u guide me to some good tutorial which teaches eerything in pytorch from scratch? (cant find any good tutorial for pytorch, while tf has many)
4
4
u/TheMiamiWhale Sep 29 '17
Personally I think it really depends on what you want to do/learn. If you are trying to replicate network architectures or just build a network to do some kind of classification task, I'd recommend using Keras and Tensorflow. On the other hand, if you are doing research and want to write a new optimization algorithm, PyTorch is probably the better tool. I find it much easier to add new optimization algorithms in PyTorch due to its simplicity versus trying to do the same in Tensorflow.
→ More replies (2)2
u/saucysassy Oct 01 '17
I'm sure you checked out 60 min blitz pytorch tutorial. Just curious to know, what did you not like about it? What do you think is missing in pytorch tutorials?
9
u/bbsome Sep 28 '17
Out of curiosity what is the best way forward (not for the team, but generally for choosing a framework)?
34
u/VordeMan Sep 28 '17
I don't mean to suggest I know which framework to pick, just that I would concur with MILA's leadership that maintaining Theano was probably not the best use of time for a very talented group of people.
8
Sep 29 '17
Yeah, while I can imagine that this decision was maybe a bit upsetting considering all the work that was put into this project over the years, I am also sure that it can be seen as something positive for the current developers in the sense that they can now spend more time on actual research vs maintaining such a huge framework (and let other people worry about providing the tools)
-6
u/mimighost Sep 28 '17
Don't know whether it will be a good idea to contribute Theano to the community for maintain.
16
u/gin_and_toxic Sep 28 '17
It's open source: https://github.com/Theano/Theano
3
u/mimighost Sep 29 '17
What I meant is something like officially donating theano to organization like Apache Foundation, where they will pick up the future maintaince job from there.
9
u/tagneuron Sep 29 '17
Legally that's not even necessary. Theano's license is BSD, so any organization could continue working on it, either through their own fork or by sending pull requests to a pool of volunteer mainainers.
65
u/hapemask Sep 28 '17 edited Sep 28 '17
I was very disappointed to hear the news, especially because Theano is so much more than just a "deep learning framework". It's a complete symbolic math library that just happens to have convolutions and batchnorm implemented in it.
It's a shame because the deep learning frameworks like pytorch are still so far behind in basic things like stability optimizations and even things like advanced indexing (which exists in an incomplete state in pytorch).
18
u/jstrong Sep 28 '17
Agreed. Also found theano the most ergonomic to use, despite some rough edges.
3
2
u/stillworkin Sep 29 '17
what do you mean by ergonomic? i've never heard the word used in this context.
→ More replies (1)20
u/jstrong Sep 29 '17
maybe I picked that up from rust programmers, who use it to mean the language/api makes it natural/easy/elegant to express what you want the computer to do.
10
8
u/gabrielgoh Sep 29 '17
so is tensorflow, i believe, and I think they're (almost?) at feature parity.
5
u/bbsome Sep 29 '17
So on this, I think tensorflow still does not the same level of graph optimizations - e.g. https://github.com/tensorflow/tensorflow/issues/3610
14
u/hapemask Sep 29 '17
I really really strongly dislike tensorflow for some silly reasons, so I tend to avoid it. I'm in the process of switching most of my research code over to pytorch just for the sake of the future.
19
u/duschendestroyer Sep 29 '17
I think tensorflow and pytorch do different things well. My recommendation would roughly be pytorch for research and tensorflow for more production oriented environments. But I also agree that tensorflow is all kinds of ugly. The only way you can find any elegance in tensorflow is when you compare it to theano.
21
2
u/lynnharry Sep 29 '17
I may not have as much experience as you in these frameworks, but I don't think there's a need to switch old codes if they are working. You just have to use new frameworks when you are building new networks?
4
u/hapemask Sep 29 '17
If anyone needs to use or maintain my code in the future, chances are better they'll have learned pytorch than Theano (given this news).
→ More replies (1)2
u/Phylliida Sep 29 '17
Honestly what I don't like about tensorflow is that for most open source code, if I run someone's model (after making a session with using) and then leave the using and try to make another model it says the variables can't be reused. Is there an easy way to fix this? I can just name my scope something and that can work but it is a hassle.
The problem is I do most of my tinkering in the interpreter and tensorflow makes it hard to tinker with things when I keep having to restart python for anything to work
3
u/eypandabear Sep 29 '17
You don't need to restart Python, just do
tf.reset_default_graph().→ More replies (2)
100
u/siblbombs Sep 28 '17 edited Sep 28 '17
I can't thank the developers and contributors enough, when I first started to get into machine learning it was such a surprise that deep learning not only was accessible in python, but had a rich community of tutorials and available code. I can certainly say I would not be doing what I am today without all the effort the Theano community put in over time both to make a great framework and help those who made it to their google groups pages.
Edit:
when were you when theano dies?
i was sat at desk adding more layers when pascal ring
'theano is kill'
'no'
26
u/alexmlamb Sep 28 '17
Ultimately it probably wasn't sustainable to keep theano going unless it found an industrial sponsor or MILA hired a big software engineering group just dedicated to theano. Neither happened.
MILA is an academic research lab focused on ML algorithms, and I don't think many people wanted to focus their PhD on maintaining a library, especially in a space which is now fairly well understood (so it's sort of just a matter of keeping up with others).
Hopefully in the future MILA will come up with more "avant garde" software, which can then inspire development from industry.
14
21
u/qacek Sep 28 '17
I wonder if this will spur pymc to switch to tensorflow?
14
u/richardweiss Sep 28 '17
I’d love to see it use pytorch or autograd, I find it much easier to debug and manipulate.
5
u/qacek Sep 28 '17
I would be on board with that. I also find the pytorch model easier and more fun to work with. Hadn't considered it since I figured switching from theano to tensorflow would be more straightforward.
2
u/richardweiss Sep 28 '17
Yeah, you’re right that they have totally different approaches to the problem, I’m not sure they could be reconciled.
I’ve noticed that pymc3 abstracts some of its backend in the same way as keras, in the pymc3.math module.
20
u/Thors_Son Sep 28 '17
But...I just got theano+gpu set up for the new features in PyMC3 :(
Where do we go from here...
2
u/eypandabear Sep 29 '17
Where do we go from here...
Theano's done, Google kind of won
Backend choice is now more clear
Where do we go from here?
1
1
u/bbsome Sep 29 '17
Actually, if you are doing a single GPU project, as long as the guys still add the cuDNN support for newer versions, IMHO there are very rare occasions were current Theano would not suffice.
0
Sep 29 '17
[deleted]
5
u/Thors_Son Sep 29 '17
Yeah, unfortunately PyMC3 can't use tf right now. Though I might hit up their discourse eventually to see if that changes.
→ More replies (1)
16
18
u/pianomano8 Sep 29 '17
Soo.. Theano is still the fastest framework for RNNs, at least my particular ones, and still by far the easiest to setup. I know it's impossible to compete with huge industry players in an arms race for hearts and minds, so this outcome is a bit inevitable, but...dang.
7
u/evc123 Sep 28 '17
Is MILA mostly using PyTorch or TF now? I've seen Ishaan release stuff in TF, and Alex Lamb release stuff in PyTorch more recently.
12
u/ankeshanand Sep 29 '17 edited Sep 29 '17
I would say the majority still use TensorFlow but more and more people are shifting to Pytorch.
7
u/sidsig Sep 29 '17
Just wanted to add that I would not have been able to do my PhD if it wasn't for theano and the theano-users/theano-dev group. I was a complete amateur when I started, but reading all the discussions and posting on the group and the general enthusiasm from the community ensured that I learnt very quickly. Thank you for all your help and support over the years and I hope we all make even better tools together in the future! :)
6
u/jiayq84 Sep 29 '17
Thanks so much Theano and the team. I learned deep learning via Theano and then wrote caffe for performance, but Theano has always been the greatest academic framework that inspired many to learn and advance deep learning. Its legacy probably lives in every deep learning framework today - just like lisp, it's no longer used but its philosophy lasts forever.
22
u/Mandrathax Sep 28 '17
Press F to pay respect
40
u/PayRespects-Bot Sep 28 '17
F
24
u/Mandrathax Sep 28 '17
Good bot
4
u/GoodBot_BadBot Sep 28 '17
Thank you Mandrathax for voting on PayRespects-Bot.
This bot wants to find the best and worst bots on Reddit. You can view results here.
Even if I don't reply to your comment, I'm still listening for votes. Check the webpage to see if your vote registered!
4
1
u/FellowOfHorses Sep 29 '17 edited Sep 29 '17
Does anybody knows how to install TF on windows? I spent a week trying to install it but I gave up and ended with Theano. Most online tutorial strongly suggest me to install a Linux OS
1
1
u/hegman12 Sep 30 '17
I have installed it with mini conda, conda install tensorflow works fine. I had also tried installing python and tensorflow following TF installation guide, got lot of issues.
1
3
3
4
2
u/SpaceRoboto Sep 29 '17
This must have been known within the group for a while. I was wondering why there was nothing on AMD's ROCm/MIopen roadmap concerning Theano, now I have an explanation.
1
1
1
1
u/sfx Sep 29 '17
This really disappoints me greatly. I'd happily switch to Keras, but it's much slower for the neural networks I'm running.
1
u/realSatanAMA Sep 29 '17
Have you tried recently? TF has been increasing speed and have a lot of hardware specific speed enhancements now if you manually compile it.
1
u/sfx Sep 29 '17
The problem has nothing to do with the backend Keras uses (I was using the Theano backend when I tried Keras). The problem I have is that the entire dataset I'm training on fits in memory (though it's not small enough to allow me to train on the entire dataset without using batches). With using Theano directly, I can just load my dataset into a shared variable and use that for training. With Keras, it will repeatedly load my dataset in batches when training. It's the difference between 15 minute training time vs a 45 minute training time.
1
1
1
1
u/trcytony Sep 29 '17
Anyone can tell me what Theano means to the machine learning/deep learning community?
5
u/trenyrky Sep 29 '17
It was the first framework that enabled rapid experimentation with neural network architectures: mainly because it computed gradients automatically, but also because it translated easy-to-write python code to fast and optimized C/CUDA code. Plus, all this was open-source, and the theano team provided nice tutorials. All in all, it made deep learning easily accessible.
-5
u/kjearns Sep 28 '17
I'm Yoshua delegating the sending of his emails to other people.
2
u/alexmlamb Sep 28 '17
Not sure why this was downvoted - it seems to be what happened here.
9
u/tagneuron Sep 29 '17
Because Pascal's email is an edited version of a previous (internal) email sent by Yoshua, thus the signature. I don't think it has to do with Yoshua "delegating" sending emails.
In any case, I think we can agree it's not really a quality comment...
-3
0
Sep 28 '17
[deleted]
13
Sep 28 '17
Theano's dead.
0
Sep 28 '17
[deleted]
8
3
6
Sep 28 '17
There's nothing technical or complicated in OP's link that needs to be ELI5'd. You just have the attention span of a 5-year-old, and I'm not going to spoon-feed you information from a forum post that's only 6 small paragraphs long. The best I will do is tell you that the authors themselves sum things up in paragraph 3, and like I said, in no complicated terms.
This is why you're being downvoted.
4
Sep 28 '17
Tensorflow (often via Keras) is one of the better options. There's also Torch and some others but personally people seem to be favouring Keras.
1
u/JustFinishedBSG Sep 28 '17
People who were still using Theanos are definitely not going to move to Tensorflow
3
u/dire_faol Sep 28 '17
You mind explaining why not?
1
u/JustFinishedBSG Sep 29 '17
I assume that people that were on Theano until now while it was already quickly losing favor stayed because they preferred pure python, liked the symbolic capacities, had a single GPU... ie for one of Theano strength which aren’t at all the strengths of Tensorflow.
1
Sep 28 '17
Probably true. Its definitely not a drop in replacement but it's an alternative that gets used very often and is one of the ones being used most often (as far as I know).
3
u/jayjaymz Sep 28 '17 edited Sep 28 '17
A previously popular tool for machine learning will stop growing. It set a lot of foundations but now its successors are more evolved.
1
u/VordeMan Sep 28 '17
(begins spanish accent) I do not think that word means what you think it means.
1
28
u/MeAlonePlz Sep 28 '17
Anyone knows what thats means for Lasagne?