Jeremy Howard: Deep Learning Frameworks - TensorFlow, PyTorch, fast.ai | AI Podcast Clips

Поделиться
HTML-код
  • Опубликовано: 11 сен 2024
  • This is a clip from a conversation with Jeremy Howard from Aug 2019. New full episodes every Mon & Thu and 1-2 new clips or a new non-podcast video on all other days. You can watch the full conversation here: • Jeremy Howard: fast.ai...
    (more links below)
    Podcast full episodes playlist:
    • Lex Fridman Podcast
    Podcasts clips playlist:
    • Lex Fridman Podcast Clips
    Podcast website:
    lexfridman.com/ai
    Podcast on iTunes:
    apple.co/2lwqZIr
    Podcast on Spotify:
    spoti.fi/2nEwCF8
    Podcast RSS:
    lexfridman.com...
    Note: I select clips with insights from these much longer conversation with the hope of helping make these ideas more accessible and discoverable. Ultimately, this podcast is a small side hobby for me with the goal of sharing and discussing ideas. For now, I post a few clips every Tue & Fri. I did a poll and 92% of people either liked or loved the posting of daily clips, 2% were indifferent, and 6% hated it, some suggesting that I post them on a separate RUclips channel. I hear the 6% and partially agree, so am torn about the whole thing. I tried creating a separate clips channel but the RUclips algorithm makes it very difficult for that channel to grow unless the main channel is already very popular. So for a little while, I'll keep posting clips on the main channel. I ask for your patience and to see these clips as supporting the dissemination of knowledge contained in nuanced discussion. If you enjoy it, consider subscribing, sharing, and commenting.
    Jeremy Howard is the founder of fast.ai, a research institute dedicated to make deep learning more accessible. He is also a Distinguished Research Scientist at the University of San Francisco, a former president of Kaggle as well a top-ranking competitor there, and in general, he's a successful entrepreneur, educator, research, and an inspiring personality in the AI community.
    Subscribe to this RUclips channel or connect on:
    - Twitter: / lexfridman
    - LinkedIn: / lexfridman
    - Facebook: / lexfridman
    - Instagram: / lexfridman
    - Medium: / lexfridman
    - Support on Patreon: / lexfridman

Комментарии • 111

  • @lexfridman
    @lexfridman  5 лет назад +30

    This is a clip from a conversation with Jeremy Howard from Aug 2019. New full episodes every Mon & Thu and 1-2 new clips or a new non-podcast video on all other days. If you enjoy it, subscribe, comment, and share. You can watch the full conversation here: ruclips.net/video/J6XcP4JOHmk/видео.html
    (more links below)
    Podcast full episodes playlist:
    ruclips.net/p/PLrAXtmErZgOdP_8GztsuKi9nrraNbKKp4
    Podcasts clips playlist:
    ruclips.net/p/PLrAXtmErZgOeciFP3CBCIEElOJeitOr41
    Podcast website:
    lexfridman.com/ai
    Podcast on iTunes:
    apple.co/2lwqZIr
    Podcast on Spotify:
    spoti.fi/2nEwCF8
    Podcast RSS:
    lexfridman.com/category/ai/feed/

  • @clapton79
    @clapton79 3 года назад +161

    I wish I was on a level where I can say "I am limited by python" LOL

  • @DominicBrissette
    @DominicBrissette 4 года назад +84

    I totally did not expect to hear him mention Swift

    • @EhKurd
      @EhKurd 4 года назад +14

      I'm not sure what Jeremy is thinking. Swift doesn't support Windows and probably never will; I'm not even sure how good the Linux support is. He said it himself at the end: Apple doesn't care. I think Swift is just an awful choice especially considering FastAI's goal of making AI more accessible. Accessibility is the complete opposite of what Apple stands for.

    • @eastriverlee5296
      @eastriverlee5296 4 года назад +12

      Sub that is not true, swift 5.3 was just released and windows will be officially supported in the comming weeks.

    • @DragonKidPlaysMC
      @DragonKidPlaysMC 3 года назад +8

      Plus Swift is now open source.

  • @waqasaps
    @waqasaps 4 года назад +31

    "The whole model makes sense in PyTorch" beautiful words

  • @brunospasta
    @brunospasta 5 лет назад +72

    Tensorflow code is quite the mess. The whole tree structure of your model makes so much more sense in pytorch.

    • @sayantanmazumdar3
      @sayantanmazumdar3 2 года назад +2

      When TF engineers made their libraries, they did not expect it to be used by millions of people all around the world one day.

  • @tristunalekzander5608
    @tristunalekzander5608 4 года назад +118

    Who needs TensorFlow when you have assembly

    • @juliansuse1
      @juliansuse1 4 года назад +69

      Assembly is for pussies, I train my own biological neural network!

    • @jonathancauchi6457
      @jonathancauchi6457 4 года назад +1

      😅😂

    • @caiomatheus817
      @caiomatheus817 3 года назад

      @@juliansuse1 Personally, I don't like biological neural networks. They are too bised and half of the time they output gibberish.

    • @Scott-fd7zi
      @Scott-fd7zi 3 года назад +3

      @@juliansuse1 only takes 8 billion years

    • @lividpudding8565
      @lividpudding8565 3 года назад +3

      Who needs assembly when you can move electrons with your bare hands

  • @aigagror
    @aigagror 5 лет назад +63

    I've been using TF 2.0 for a while and after hearing this, I'm switching to PyTorch. I didn't know it was x10 slower...

    • @TheMazyProduction
      @TheMazyProduction 5 лет назад +35

      Eddie Huang I think he was specifically talking about eager executions in TF.

    • @binmosa
      @binmosa 5 лет назад +24

      This is a very quick decision :D

    • @amdenis
      @amdenis 5 лет назад +52

      Eddie Huang That would be a HUGE mistake! I develop in TF, FAI, Pytorch and Matlab, and for most things beyond eager experimentation and prototyping, or poorly written TF 2.0 function code, TF is on par with most things out there- and much better supported in several critical areas for GPU/TPU training. Now, the “best” choice depends on use case, and whether training, inference, maintainability, deployment, scaleability or something else is your bottleneck or overriding priority; but dropping Tensorflow at this time, is like dropping Java in the 90’s- a huge mistake.
      Also, forget about what he said about being able to migrate over to “pretty much any other library” within a few days. We work with a lot of new as well as seasoned AI and data science people, and it takes a seasoned AI person weeks to start to truly get a decent grip of how to use a modern, complex framework on a professional level (i.e. knowing the landscape of how to semi-optimally use that framework)- and we can definitely tell the difference in the development time and quality of the work done by a professional, let alone a newer AI developer, who has worked in something like TF for several months versus a few years. It takes several thousand hours of commitment in any of the major frameworks to begin to truly stsrt to master it. You can do great work well before that, but the real curve is long.
      The most important thing is to choose a good framework that (1) supports what you plan to do; (2) choose one that has legs, and will stay at least relevant and ideally dominant- as that will ensure a solid base of support on many levels. Tensorflow, especially with Google and Chris Lattner (the developer of Swift) definitely fits that bill. So, it is more important choose well and then go deep and long with a major framework first. Things like training time, inference performance, eager execution performance and such will be taken care of by the industry, as they have to be competitive to survive and thrive- and if you don’t think that Google has and will continue to make a major long term commitment of top resources, you’re mistaken.

    • @undisclosedmusic4969
      @undisclosedmusic4969 5 лет назад +12

      It is not. Tensorflow 2.0 is a fantastic, extremely fast framework without any kind of regression behind PyTorch. I don’t even understand that statement from Howard...

    • @thedeathstar420
      @thedeathstar420 4 года назад +1

      It's pretty good if you don't use eager execution.

  • @digital_down
    @digital_down 5 лет назад +60

    I’ve been noticing lately that Pytorch seems to be gaining popularity and Tensorflow is getting less so. Maybe just me though, idk.

    • @shulavkarki4253
      @shulavkarki4253 4 года назад +1

      Which one would u prefer,?

    • @wildreams
      @wildreams 4 года назад +1

      Yes.

    • @wildreams
      @wildreams 4 года назад +1

      @@WW-to5rc Why?

    • @billy818
      @billy818 4 года назад +4

      Industry is tensorflow research is pytorch.
      Trying to put pytorch into production is a hassle.

    • @forloop7713
      @forloop7713 3 года назад

      @@billy818 which one is for good for hobbyists

  • @awiewahh
    @awiewahh 4 года назад +7

    The only thing keeping me around TF is its compatibility with large TPUs. If PyTorch can start nicely interfacing with something like a V3-512 then that'd be great.

  • @adityaranigaon
    @adityaranigaon 3 года назад +6

    If you want advise as a new student, go to 6:16

  • @towardsgeneralintelligence
    @towardsgeneralintelligence 4 года назад +6

    Sir Jeremy Howard always reminds me of Gale Boetticher from Breaking Bad.

  • @vigneshrb1626
    @vigneshrb1626 4 года назад +13

    With the introduction of keras API tensorflow coding has become a lot easier and accessible

    • @MsFearco
      @MsFearco 4 года назад +4

      Yeah. Tf might be slow but in all honesty a beginner will see no difference. A 6 hour training for me in tf is still a 5.5 hour training in torch... 10% faster != 10x...

    • @viniciussantana8737
      @viniciussantana8737 4 года назад +1

      @@MsFearco you can take advatange of free gpu and tpu with tensorflow.

    • @kushagrachaturvedy2821
      @kushagrachaturvedy2821 3 года назад +2

      I agree. It's great for beginners to cut their teeth on but with Pytorch I feel you get a much better idea of what you're doing and your knowledge is tested and increased

  • @CapitanFantasma1776
    @CapitanFantasma1776 5 лет назад +3

    Gosh, Lex. I was just thinking. What are you doing with all this information you are receiving? The great minds of the modern era.

  • @aniruddhadatta925
    @aniruddhadatta925 3 года назад +2

    I learnt almost everything I know about deep reinforcement learning is due to reading code in Pytorch .....thanks Pytorch

  • @wolfisraging
    @wolfisraging 4 года назад +10

    I love MXNet more than any DL framework by far. It's the fastest framework I've ever used. Also it comes with both imperative(useful for research) as well as declarative (useful for production and deployment) paradigm.
    Not just that you can convert your code written in dynamic graph to static graph in just one line.
    Also...... It's got more pretrained models than any other framework.
    I'm glad that I made my switch to MXNet.

    • @StEvUgnIn
      @StEvUgnIn 2 года назад

      The problem is that the last version running on Windows is too ancient

    • @StEvUgnIn
      @StEvUgnIn 2 года назад +1

      Support for CUDA is also limited if you choose to run it in a container

  • @TheReidNantes
    @TheReidNantes 5 лет назад +4

    A Practical Deep Learning for Coders course focusing on Swift for TensorFlow would be amazing!

  • @proweiqi
    @proweiqi 5 лет назад +45

    "Swift does dumb things" and "Python isn't going to cut it". Julia it is! Please just invest your OSs time in Julia!

  • @normandblais5219
    @normandblais5219 5 лет назад +65

    After listening to that, I need some Advil.

    • @JousefM
      @JousefM 5 лет назад +11

      Right behind Jeremy :D

    • @justinmasters220
      @justinmasters220 5 лет назад +9

      With a nice cold bottle of Essentia water.

    • @seydoudia7828
      @seydoudia7828 4 года назад +2

      A great example of product placement ;)

  • @aryaakhil8147
    @aryaakhil8147 4 года назад +5

    I like the honesty. Hard to come by such people these days in the era of political correctness.

  • @temporarychannel4339
    @temporarychannel4339 Год назад +1

    The Advil in the background explains a lot

  • @tylersnard
    @tylersnard 3 года назад

    I'm happy to hear that Jeremy shares my opinion of Tensorflow.

  • @amdenis
    @amdenis Год назад

    He was correct then, but now Tensorflow kicks butt. Although we have used several of the major AI frameworks, 90% of what we and most others do in AI are more and more best done with TF. This video is a few years old, and it has only become more the case.

  • @amdenis
    @amdenis 2 года назад +2

    Mostly great information, but it seems like he was speaking about 4 year old TensorFlow and Keras about 2 years ago. We use 12 different frameworks, 4 on a regular basis. Many of the supporting libraries and extensions are able to be used across most of the frameworks in fairly equivalent form. The appropriate development frameworks and supporting libraries really depends on the specific problem space, requirements of the delivered solutions and other factors. Swift and various ancillary language environments, including Node.js (used correctly), enables amazing productivity and performance. I totally do NOT agree with starting on Fast and PyTorch, as it is like when they taught Pascal because it was a better learning language with fast ramp-up, even though it was built with a limited professional carry-forward in mind. The basis of PyTorch is somewhat self-limiting, and even Jeremy asserts the same in this and many videos.
    I have generally found that the best tool at the time is the one you know best that can solve the given problem. If that is the case, why not learn the most robust long-term viable solution set first, and become familiar with secondary environments like PyTorch along the way? That way you get the best possible long-term reusability of skills and are buying into an architecture that is not edging towards marginalization or end-of-life. You can and many should learn Py-based frameworks along the way, while they are building a development skill set that they can grow with for many years.

  • @michealhall7776
    @michealhall7776 4 года назад +5

    I didn't notice upspeak until watching Joe organ. The upspeak is strong here

  • @beyondmeaning
    @beyondmeaning 3 года назад +1

    Thanks Lex, very informative

  • @Trepetsky
    @Trepetsky 7 месяцев назад

    Jax, very flexible, but also fast, faster than PyTorch. And you can still run on TPU. Yes, now support for TPU has been added to PyTorch, but it was recently done, I tried it, it's still raw.

  • @amarthapa9768
    @amarthapa9768 4 года назад +4

    Isn't Swift from Apple? Why not take Kotlin which has support for native. It's open source too.

  • @andreinedelcu2005
    @andreinedelcu2005 4 года назад +3

    Why would you execute it with tf eager activated? I would use that only for debugging until I get a stable version. Then disable all sugarcoating and stay with the static graph that is so well optimized in TF 1.x

  • @Raven-bi3xn
    @Raven-bi3xn 3 года назад +1

    I wonder if Tensorflow customizable features has changed anything in tf vs torch equilibrium.

  • @pythgoreansassistant2789
    @pythgoreansassistant2789 3 года назад +2

    Tensorflow's eager execution is what bugs me. It limits what you can do in calculating gradients & layers.

  • @fgfanta
    @fgfanta 5 лет назад +4

    Super-informative, thank you!

  • @aniruddhadatta925
    @aniruddhadatta925 3 года назад +1

    Almost all Reinforcement Learning libraries are written in pytorch now .....I think it says something

  • @averageengineeer
    @averageengineeer 5 лет назад +4

    Any comments on Julia and it's future in machine learning ecosystem ?

  • @rahulsingh7508
    @rahulsingh7508 4 года назад +3

    PyTorch is a beast.

    • @jamespaz4333
      @jamespaz4333 2 года назад

      Sometimes when you cage the beast, the beast gets angry.

  • @karigucio
    @karigucio Год назад

    My experience usually was that splitting the definition of a computation from its execution is beneficial.
    Can someone shed light on why it wasn't the case with tensorflow? And how is tf.eager slow, when - given I understand correctly - the python overhead may only apply to the construction of a computation graph, which is not that crucial?

  • @kirtipandya4618
    @kirtipandya4618 3 года назад +1

    Even though TF is slower, it is okay as TF Lite is more useful but thing is TF is very difficult to debug. but TF is difficult to debug.
    I started with TF but later switched to PyTorch. Maybe Lex can improve that .

  • @knightvertrag
    @knightvertrag 4 года назад +15

    Use C bro.

    • @alefratat4018
      @alefratat4018 4 года назад

      What are the C Deep Learning Frameworks out there ?

    • @keedt
      @keedt 4 года назад +7

      @@alefratat4018 write your own, bro

    • @alefratat4018
      @alefratat4018 4 года назад

      @@keedt Nevermind, I found one that is really good

    • @quangho8120
      @quangho8120 4 года назад +1

      @@alefratat4018 PyTorch does have a C++ interface tho

  • @L4rsTrysToMakeTut
    @L4rsTrysToMakeTut 5 лет назад +12

    Does anyone use Julia programing language?

    • @proweiqi
      @proweiqi 5 лет назад +1

      Yeah. Flux.jl is more awesome than pytorch. Just needs more development!

    • @chrisrackauckasofficial
      @chrisrackauckasofficial 5 лет назад +3

      Yes, it works great for me to write non-standard neural networks from scratch for research purposes.

  • @bmoore813
    @bmoore813 Год назад

    Im assuming this is based on tensorflow 1 and not tensorflow 2

  • @fragnet7673
    @fragnet7673 4 года назад

    I used FANN a lot. Wich framework can do the same in an equal easy way?

  • @CapitanFantasma1776
    @CapitanFantasma1776 5 лет назад +2

    Man, I was interested in Python until now.

  • @sleeping4cat
    @sleeping4cat Год назад

    Umm! Tensorflow provides much more customisation than PyTorch.
    PyTorch is okay, if you're doing Engineering but in terms of experimentation Tensorflow is a gem!

  • @maxitube30
    @maxitube30 2 года назад

    can someone reassume what they say in video?
    I'm not english first language and i understood small piece of what they sayd.
    I understood that python is limited,and tensorlow is a mess.
    But,if he created fast ai in python,and he already saying that can be slow,what is the purpose of fastai? is fast? it can use speed of gpus?

  • @ciyoritana1740
    @ciyoritana1740 4 года назад +3

    Anyone can answer me? What deep learning framework should i install if my laptop is core i3 and my VGA is intel and nvidia 820m? Well, i want to work on my thesis but unfotunately i just realize that my laptop is not too good to train with some framework. Or anyone can suggest some advice for what should i do?😭

    • @mihirbhatia9658
      @mihirbhatia9658 4 года назад +4

      Just try using keras/tensorflow/pytorch in Google Colab. You can get quite a bit of work done using their GPUs. It's free upto a certain level.

    • @codecampbase1525
      @codecampbase1525 2 года назад +2

      Google collab

  • @ApPillon
    @ApPillon 11 месяцев назад

    I have tried both tf and pytorch, tf was easy to get in but hard to progress, I like and use pytorch these days

  • @wolfisraging
    @wolfisraging 4 года назад +2

    By now, I think a lot have been changed.

    • @udaylunawat2163
      @udaylunawat2163 4 года назад

      What do you think? Has tensorflow overcome the disadvantage?

  • @aayush_dutt
    @aayush_dutt Год назад

    Why Swift, why not Rust or Go?

  • @ayushtiwari8857
    @ayushtiwari8857 3 года назад +1

    Swift for Tensorflow is officially closed. Kind of disheartening tbh :/

  • @shairuno
    @shairuno 4 года назад +1

    Ouch! 3:58

  • @sibonelongobese8639
    @sibonelongobese8639 4 года назад +4

    This guy is honest. TensorFlow is still difficult to use, especially when you are a Data scientist with no solid programming background.

    • @MultiMediaUploads
      @MultiMediaUploads 4 года назад +22

      How are you a data scientist without a solid programming background?

    • @alvin3171997
      @alvin3171997 4 года назад +4

      MultiMediaUploads probably using just GUI data visualisation tool

    • @udaylunawat2163
      @udaylunawat2163 4 года назад

      Just say programming is hard.

    • @imdadood5705
      @imdadood5705 3 года назад

      I am an aspiring Data Scientist. I have invested a lot of time in coding. I have a seen a lot people telling that TensorFlow doesn’t help us understand what happens behind the scene. But PyTorch, the model is much more transparent. I am not an expert in both the libraries. But if this is true, I’d pick PyTorch.

  • @devawratvidhate9093
    @devawratvidhate9093 4 года назад

    Why you have not change u r suit in during quarantine ....!

  • @blackswaneleven
    @blackswaneleven 4 года назад +4

    TF 2.0 still suxx compared with PyTorch

  • @nbansal
    @nbansal Год назад

    Even after 3 years, Swift for Tensorflow hasn't caught up 😅

  • @datonefaridze1503
    @datonefaridze1503 4 года назад

    Pytorch is much simpler and more powerful rather than TF.

  • @sigmaroll9802
    @sigmaroll9802 3 года назад

    A new vista

  • @pixel7038
    @pixel7038 5 лет назад +6

    I feel sad he is working on Swift. Switch to flutter where the phone market shines :)

  • @satoshinakamoto171
    @satoshinakamoto171 4 года назад +1

    eww swift..