What’s new in TensorFlow 2.11
Key Takeaways
The video discusses the new features and updates in TensorFlow 2.11, including improvements to attention layers, DTensor, decision forests, and model building APIs.
Full Transcript
hi do you want to hear the latest updates from tensorflow well you're in the right place I'm Mark from the tensorflow team stay tuned to find out what's new in tensorflow including the latest 2.11 release we've got updates to attention layers detenter decision forests and even some tutorials let's check it out you're probably familiar with the Keras optimizers maybe you've used atom or SGD to train your models well starting from tensorflow 2.9 we have been carefully upgrading this API and introducing new optimizers in tensorflow 2.11 we've turned them on by default don't worry your existing code will still work the same for most users but now you can take advantage of new features like weight Decay and a brand new optimizer adafactor you might find Ada factor using NLP or large language models it uses less memory as it only saves partial information from previous gradients to recap the migration in 2.9 we added new optimizers into the experimental namespace in 2.10 we added the existing optimizers into the Legacy namespace and now in 211 we have turned the new optimizers on by default for everyone you can find more info on the new optimizers in the video description and check out the release notes for more info on how to migrate let us know how you go in the comments or file bugs on GitHub if you're building Transformer models we've made some improvements to the attention apis that should make your life a little easier when building an auto aggressive model you need to hide future training data so that your model only sees the outputs generated before the current time step otherwise it can learn from future data that won't be available at inference time using a mask this is called causal masking and is now automatic in Keras by enabling use causal mask when calling the attention layers Keras will add a mask that ensures that each location cannot attend to the locations in the future we've updated our machine translation tutorial to show this layer in action and you can find a link in the video description or search for it on tensorflow.org the attention layers now support implicit masking too when using the embedding layers enable mask 0 to ensure that any zero padded sequences are masked automatically and The Mask will be propagated through the model you can find an example in the same tutorial tree based models are excellent when you're working with tabular data they're faster trained accurate and interpretable our tree based framework tensorflow decision forests is now version 1.0 this Milestone means the tensorflow decision Forest is mature stable and ready for production use it also brings some new features including native support for tensorflow serving performance improvements and a preview of inference apis for JavaScript and go to learn more about tensorflow decision forests check out the links in the video description detenter provides a way for you to distribute the training of your model across devices to improve efficiency reliability and scalability tensorflow 2.11 packs a whole bunch of detenter updates to speed up and simplify your distributed architectures there's a new TF data data set wrapper to convert your existing data sets so that they emit detensors it supports automatically and efficiently packing the tensor components to devices based on the supplied layouts we've simplified some apis too we now have one function call for initializing any accelerator instead of separate apis for TPU and GPU and detanser now supports checkpointing via TF train checkpoint so you can use the same apis the classic tensorflow training process and get the benefit of efficient Multi-Device save and restore without any API change and we also have a performance boost we've turned on optimization for gpus and CPUs that combine independent all reducers we expect this to speed up small frequent gradient updates across devices and experimentally we have seen pretty big improvements while training bird tensorflow 2.11 introduces warm start embedding Matrix a Keras utility function that makes it easy to update your embedding vocabulary and continue training without missing a beat we've added a new guide to show you how it works search for warm start embedding on tensorflow.org be sure to check out the new Keras group normalization layer not to be confused with batch Norm where stats are computed across the whole batch or layer Norm where they're computed across the whole layer group normalization splits the incoming channels into groups and performs normalization independently within each Channel group group normalization has been shown to help when training with small batch sizes where batch Norm is less effective 2.11 also brings a new experimental structured tensor a collection of structures with the same schema it's suitable for storing tabular data like data frames or structured data like protocol buffers and lastly effective with the upcoming release of tensorflow 2.12 the tensorflow 1 estimator and feature column apis will be considered fully deprecated in favor of their equivalents in Keras we've updated the docs and you will soon start seeing runtime warnings follow the migration guides to get your code up to date tensorflow 2.11 will also be the last version to support python 3.7 this aligns with numpy's python support so make sure you jump ahead to a more recent python release to keep using tensorflow on top of all these exciting features our Doc's team has been busy with some new and improved tutorials I told you earlier about some updates to the Keras attention layers that make masking easier when building Transformers to see these in action and learn how to build your own transformer model check out the newly updated neural machine translation tutorial on tensorflow.org in this tutorial you'll build a machine translation model from scratch using the Keras apis you will learn how attention works and build self and cross attention layers you'll build up the encoder and decoder layers train the model and test it out all in Google collab we've also got a brand new tutorial that shows you how to implement question answering in a mobile app in this tutorial you'll use tensorflow Lite to load a pre-trained Bert model into an Android app then in the app you can pass a document and a question and get back answers all with the native easy to use API that will be familiar to Android developers all right that's enough for this video we've got more detail on these changes in the 2.11 blog post so check that out by the link in the video description or head straight to blog.tensorflow.org to try these new features out head over to tensorflow.org install and grab tensorflow 2.11 for yourself let the team and I know what you think of the latest updates and what else you want to hear about in the comments or over on the tensorflow Forum we'll be back with another update soon make sure you subscribe to stay informed
Original Description
Check out all the new features and highlights from the latest TensorFlow 2.11 release. We share updates to attention layers, DTensor, decision forests, model building APIs, and more!
Resources:
What’s new in TensorFlow 2.11? → https://goo.gle/3RHjARh
Release Notes → https://goo.gle/3RH1uia
tf.keras.optimizers.experimental.Adafactor → https://goo.gle/3YAW0rD
TensorFlow Decision Forests: goo.gle/tfdf
TF-DF Course: goo.gle/tfdf-edu
TF-DF Serving: goo.gle/tfdf-serve
TF-DF Prediction Colab: https://goo.gle/3JQmocK
TF-DF C++/JS/Go docs :https://goo.gle/3YdpYSr
DTensorDataset → https://goo.gle/3I6b8Yq
Migration guide → https://goo.gle/3I4tau0
Machine Translation with Transformers Tutorial → https://goo.gle/3JQoYzC
Question Answering with Android →https://goo.gle/3lh0G7A
TensorFlow Forum →https://goo.gle/discuss_tensorflow
Install Tensorflow → https://goo.gle/3lbRSQd
Mark’s Twitter → https://goo.gle/3Yh8dSl
Chapters:
0:00 - Introduction
0:17 - Optimizers
1:15 - Masking/Attention
2:10 - TensorFlow Decision Forests
2:36 - DTesnor
3:38 - Models and Core TF
4:55 - New docs and examples
5:48 - Wrap up
Watch more Inside TensorFlow → https://goo.gle/Inside-TensorFlow
Subscribe to the TensorFlow channel → https://goo.gle/TensorFlow
#TensorFlow
Products mentioned: TensorFlow - General, TensorFlow - TensorFlow Hub
Watch on YouTube ↗
(saves to browser)
Sign in to unlock AI tutor explanation · ⚡30
Playlist
Uploads from TensorFlow · TensorFlow · 0 of 60
← Previous
Next →
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
The TensorFlow YouTube Channel is Here!
TensorFlow
Answering Your TF Questions #AskTensorFlow
TensorFlow
Chatting With the TensorFlow Community (TensorFlow Meets)
TensorFlow
All About TensorFlow Code (Coding TensorFlow)
TensorFlow
TensorFlow: an ML platform for solving impactful and challenging problems
TensorFlow
Keynote (TensorFlow Dev Summit 2018)
TensorFlow
tf.data: Fast, flexible, and easy-to-use input pipelines (TensorFlow Dev Summit 2018)
TensorFlow
Eager Execution (TensorFlow Dev Summit 2018)
TensorFlow
Machine Learning in JavaScript (TensorFlow Dev Summit 2018)
TensorFlow
Training Performance: A user’s guide to converge faster (TensorFlow Dev Summit 2018)
TensorFlow
The Practitioner's Guide with TF High Level APIs (TensorFlow Dev Summit 2018)
TensorFlow
Distributed TensorFlow (TensorFlow Dev Summit 2018)
TensorFlow
Debugging TensorFlow with TensorBoard plugins (TensorFlow Dev Summit 2018)
TensorFlow
TensorFlow Lite (TensorFlow Dev Summit 2018)
TensorFlow
Searching Over Ideas (TensorFlow Dev Summit 2018)
TensorFlow
Reconstructing Fusion Plasmas (TensorFlow Dev Summit 2018)
TensorFlow
Nucleus: TensorFlow toolkit for Genomics (TensorFlow Dev Summit 2018)
TensorFlow
Open Source Collaboration (TensorFlow Dev Summit 2018)
TensorFlow
Swift for TensorFlow - TFiwS (TensorFlow Dev Summit 2018)
TensorFlow
TensorFlow Hub (TensorFlow Dev Summit 2018)
TensorFlow
Applied AI at The Coca-Cola Company (TensorFlow Dev Summit 2018)
TensorFlow
Real-World Robot Learning (TensorFlow Dev Summit 2018)
TensorFlow
TensorFlow Extended (TFX) (TensorFlow Dev Summit 2018)
TensorFlow
Project Magenta (TensorFlow Dev Summit 2018)
TensorFlow
TensorFlow Dev Summit 2018 - Livestream
TensorFlow
Introducing TensorFlow Lite (Coding TensorFlow)
TensorFlow
TensorFlow Dev Summit 2018 Highlights
TensorFlow
Jeff Dean, Head of AI at Google discusses the impact of ML (TensorFlow Meets)
TensorFlow
TensorFlow Mobile vs. TF Lite and More! #AskTensorFlow
TensorFlow
Using TensorFlow to enable research & production across many fields (TensorFlow Meets)
TensorFlow
Teaching TensorFlow for Deep Learning at Stanford University (TensorFlow Meets)
TensorFlow
TensorFlow Lite for Android (Coding TensorFlow)
TensorFlow
Using the tf.data API to build input pipelines (TensorFlow Meets)
TensorFlow
Training Models in the Cloud & the Benefits of AI Toolkits #AskTensorFlow
TensorFlow
Execute operations immediately with TensorFlow's Eager Execution (TensorFlow Meets)
TensorFlow
TensorFlow Lite for iOS (Coding TensorFlow)
TensorFlow
Get started with TensorFlow's High-Level APIs (Google I/O '18)
TensorFlow
TensorFlow for JavaScript (Google I/O '18)
TensorFlow
TensorFlow in production: TF Extended, TF Hub, and TF Serving (Google I/O '18)
TensorFlow
Get started with TensorFlow's High-Level APIs in 5 mins | Google I/O 2018
TensorFlow
TensorFlow and deep reinforcement learning, without a PhD (Google I/O '18)
TensorFlow
TensorFlow Lite for mobile developers (Google I/O '18)
TensorFlow
Advances in machine learning and TensorFlow (Google I/O '18)
TensorFlow
Distributed TensorFlow training (Google I/O '18)
TensorFlow
Classification using neural networks & ML regression models #AskTensorFlow
TensorFlow
TensorFlow and Keras in R - Josh Gordon meets with J.J. Allaire (TensorFlow Meets)
TensorFlow
Focus on your experiment with TensorFlow Estimators (TensorFlow Meets)
TensorFlow
How to get started with AI/ML, retraining models, & more! #AskTensorFlow
TensorFlow
TensorFlow - the deep learning solution for mobile platforms (TensorFlow Meets)
TensorFlow
MiniGo: TensorFlow Meets Andrew Jackson (TensorFlow Meets)
TensorFlow
The growth of TensorFlow with added support for JS & Swift (TensorFlow Meets)
TensorFlow
At the intersection of TensorFlow & nuclear physics (TensorFlow Meets)
TensorFlow
NVidia TensorRT: high-performance deep learning inference accelerator (TensorFlow Meets)
TensorFlow
Try TensorFlow.js in your browser (Coding TensorFlow)
TensorFlow
TensorFlow Hub: reusing machine learning modules (TensorFlow Meets)
TensorFlow
How to use TensorFlow in PyCharm (TensorFlow Tip of the Week)
TensorFlow
Training models faster with TensorFlow Hub (TensorFlow Meets)
TensorFlow
Prepare your dataset for machine learning (Coding TensorFlow)
TensorFlow
Using ML to predict insulin use for Type 1 Diabetes (TensorFlow Meets)
TensorFlow
TFX: an end-to-end machine learning platform for TensorFlow (TensorFlow Meets)
TensorFlow
More on: LLM Foundations
View skill →Related Reads
📰
📰
📰
📰
Running NVIDIA Nemotron 3.5 ASR Locally with parakeet.cpp (and how it beat Whisper on my laptop)
Medium · LLM
Building Production-Grade LLM Evaluation Pipelines: From Vibes to Metrics
Dev.to · Imus
Building Production-Grade LLM Evaluation Pipelines: From Vibes to Metrics
Dev.to AI
AI is more likely than humans to form biases when hiring
MIT Technology Review
Chapters (8)
Introduction
0:17
Optimizers
1:15
Masking/Attention
2:10
TensorFlow Decision Forests
2:36
DTesnor
3:38
Models and Core TF
4:55
New docs and examples
5:48
Wrap up
🎓
Tutor Explanation
DeepCamp AI