What’s new in TensorFlow 2.11

TensorFlow · Beginner ·🧠 Large Language Models ·3y ago

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 The TensorFlow YouTube Channel is Here!
The TensorFlow YouTube Channel is Here!
TensorFlow
2 Answering Your TF Questions #AskTensorFlow
Answering Your TF Questions #AskTensorFlow
TensorFlow
3 Chatting With the TensorFlow Community (TensorFlow Meets)
Chatting With the TensorFlow Community (TensorFlow Meets)
TensorFlow
4 All About TensorFlow Code (Coding TensorFlow)
All About TensorFlow Code (Coding TensorFlow)
TensorFlow
5 TensorFlow: an ML platform for solving impactful and challenging problems
TensorFlow: an ML platform for solving impactful and challenging problems
TensorFlow
6 Keynote (TensorFlow Dev Summit 2018)
Keynote (TensorFlow Dev Summit 2018)
TensorFlow
7 tf.data: Fast, flexible, and easy-to-use input pipelines (TensorFlow Dev Summit 2018)
tf.data: Fast, flexible, and easy-to-use input pipelines (TensorFlow Dev Summit 2018)
TensorFlow
8 Eager Execution (TensorFlow Dev Summit 2018)
Eager Execution (TensorFlow Dev Summit 2018)
TensorFlow
9 Machine Learning in JavaScript (TensorFlow Dev Summit 2018)
Machine Learning in JavaScript (TensorFlow Dev Summit 2018)
TensorFlow
10 Training Performance: A user’s guide to converge faster (TensorFlow Dev Summit 2018)
Training Performance: A user’s guide to converge faster (TensorFlow Dev Summit 2018)
TensorFlow
11 The Practitioner's Guide with TF High Level APIs (TensorFlow Dev Summit 2018)
The Practitioner's Guide with TF High Level APIs (TensorFlow Dev Summit 2018)
TensorFlow
12 Distributed TensorFlow (TensorFlow Dev Summit 2018)
Distributed TensorFlow (TensorFlow Dev Summit 2018)
TensorFlow
13 Debugging TensorFlow with TensorBoard plugins (TensorFlow Dev Summit 2018)
Debugging TensorFlow with TensorBoard plugins (TensorFlow Dev Summit 2018)
TensorFlow
14 TensorFlow Lite (TensorFlow Dev Summit 2018)
TensorFlow Lite (TensorFlow Dev Summit 2018)
TensorFlow
15 Searching Over Ideas (TensorFlow Dev Summit 2018)
Searching Over Ideas (TensorFlow Dev Summit 2018)
TensorFlow
16 Reconstructing Fusion Plasmas (TensorFlow Dev Summit 2018)
Reconstructing Fusion Plasmas (TensorFlow Dev Summit 2018)
TensorFlow
17 Nucleus: TensorFlow toolkit for Genomics (TensorFlow Dev Summit 2018)
Nucleus: TensorFlow toolkit for Genomics (TensorFlow Dev Summit 2018)
TensorFlow
18 Open Source Collaboration (TensorFlow Dev Summit 2018)
Open Source Collaboration (TensorFlow Dev Summit 2018)
TensorFlow
19 Swift for TensorFlow - TFiwS (TensorFlow Dev Summit 2018)
Swift for TensorFlow - TFiwS (TensorFlow Dev Summit 2018)
TensorFlow
20 TensorFlow Hub (TensorFlow Dev Summit 2018)
TensorFlow Hub (TensorFlow Dev Summit 2018)
TensorFlow
21 Applied AI at The Coca-Cola Company (TensorFlow Dev Summit 2018)
Applied AI at The Coca-Cola Company (TensorFlow Dev Summit 2018)
TensorFlow
22 Real-World Robot Learning (TensorFlow Dev Summit 2018)
Real-World Robot Learning (TensorFlow Dev Summit 2018)
TensorFlow
23 TensorFlow Extended (TFX) (TensorFlow Dev Summit 2018)
TensorFlow Extended (TFX) (TensorFlow Dev Summit 2018)
TensorFlow
24 Project Magenta (TensorFlow Dev Summit 2018)
Project Magenta (TensorFlow Dev Summit 2018)
TensorFlow
25 TensorFlow Dev Summit 2018 - Livestream
TensorFlow Dev Summit 2018 - Livestream
TensorFlow
26 Introducing TensorFlow Lite (Coding TensorFlow)
Introducing TensorFlow Lite (Coding TensorFlow)
TensorFlow
27 TensorFlow Dev Summit 2018 Highlights
TensorFlow Dev Summit 2018 Highlights
TensorFlow
28 Jeff Dean, Head of AI at Google discusses the impact of ML (TensorFlow Meets)
Jeff Dean, Head of AI at Google discusses the impact of ML (TensorFlow Meets)
TensorFlow
29 TensorFlow Mobile vs. TF Lite and More! #AskTensorFlow
TensorFlow Mobile vs. TF Lite and More! #AskTensorFlow
TensorFlow
30 Using TensorFlow to enable research & production across many fields (TensorFlow Meets)
Using TensorFlow to enable research & production across many fields (TensorFlow Meets)
TensorFlow
31 Teaching TensorFlow for Deep Learning at Stanford University (TensorFlow Meets)
Teaching TensorFlow for Deep Learning at Stanford University (TensorFlow Meets)
TensorFlow
32 TensorFlow Lite for Android (Coding TensorFlow)
TensorFlow Lite for Android (Coding TensorFlow)
TensorFlow
33 Using the tf.data API to build input pipelines (TensorFlow Meets)
Using the tf.data API to build input pipelines (TensorFlow Meets)
TensorFlow
34 Training Models in the Cloud & the Benefits of AI Toolkits #AskTensorFlow
Training Models in the Cloud & the Benefits of AI Toolkits #AskTensorFlow
TensorFlow
35 Execute operations immediately with TensorFlow's Eager Execution (TensorFlow Meets)
Execute operations immediately with TensorFlow's Eager Execution (TensorFlow Meets)
TensorFlow
36 TensorFlow Lite for iOS (Coding TensorFlow)
TensorFlow Lite for iOS (Coding TensorFlow)
TensorFlow
37 Get started with TensorFlow's High-Level APIs (Google I/O '18)
Get started with TensorFlow's High-Level APIs (Google I/O '18)
TensorFlow
38 TensorFlow for JavaScript (Google I/O '18)
TensorFlow for JavaScript (Google I/O '18)
TensorFlow
39 TensorFlow in production: TF Extended, TF Hub, and TF Serving (Google I/O '18)
TensorFlow in production: TF Extended, TF Hub, and TF Serving (Google I/O '18)
TensorFlow
40 Get started with TensorFlow's High-Level APIs in 5 mins |  Google I/O 2018
Get started with TensorFlow's High-Level APIs in 5 mins | Google I/O 2018
TensorFlow
41 TensorFlow and deep reinforcement learning, without a PhD (Google I/O '18)
TensorFlow and deep reinforcement learning, without a PhD (Google I/O '18)
TensorFlow
42 TensorFlow Lite for mobile developers (Google I/O '18)
TensorFlow Lite for mobile developers (Google I/O '18)
TensorFlow
43 Advances in machine learning and TensorFlow (Google I/O '18)
Advances in machine learning and TensorFlow (Google I/O '18)
TensorFlow
44 Distributed TensorFlow training (Google I/O '18)
Distributed TensorFlow training (Google I/O '18)
TensorFlow
45 Classification using neural networks & ML regression models #AskTensorFlow
Classification using neural networks & ML regression models #AskTensorFlow
TensorFlow
46 TensorFlow and Keras in R - Josh Gordon meets with J.J. Allaire (TensorFlow Meets)
TensorFlow and Keras in R - Josh Gordon meets with J.J. Allaire (TensorFlow Meets)
TensorFlow
47 Focus on your experiment with TensorFlow Estimators (TensorFlow Meets)
Focus on your experiment with TensorFlow Estimators (TensorFlow Meets)
TensorFlow
48 How to get started with AI/ML, retraining models, & more! #AskTensorFlow
How to get started with AI/ML, retraining models, & more! #AskTensorFlow
TensorFlow
49 TensorFlow - the deep learning solution for mobile platforms (TensorFlow Meets)
TensorFlow - the deep learning solution for mobile platforms (TensorFlow Meets)
TensorFlow
50 MiniGo: TensorFlow Meets Andrew Jackson (TensorFlow Meets)
MiniGo: TensorFlow Meets Andrew Jackson (TensorFlow Meets)
TensorFlow
51 The growth of TensorFlow with added support for JS & Swift (TensorFlow Meets)
The growth of TensorFlow with added support for JS & Swift (TensorFlow Meets)
TensorFlow
52 At the intersection of TensorFlow & nuclear physics (TensorFlow Meets)
At the intersection of TensorFlow & nuclear physics (TensorFlow Meets)
TensorFlow
53 NVidia TensorRT: high-performance deep learning inference accelerator (TensorFlow Meets)
NVidia TensorRT: high-performance deep learning inference accelerator (TensorFlow Meets)
TensorFlow
54 Try TensorFlow.js in your browser (Coding TensorFlow)
Try TensorFlow.js in your browser (Coding TensorFlow)
TensorFlow
55 TensorFlow Hub: reusing machine learning modules (TensorFlow Meets)
TensorFlow Hub: reusing machine learning modules (TensorFlow Meets)
TensorFlow
56 How to use TensorFlow in PyCharm (TensorFlow Tip of the Week)
How to use TensorFlow in PyCharm (TensorFlow Tip of the Week)
TensorFlow
57 Training models faster with TensorFlow Hub (TensorFlow Meets)
Training models faster with TensorFlow Hub (TensorFlow Meets)
TensorFlow
58 Prepare your dataset for machine learning (Coding TensorFlow)
Prepare your dataset for machine learning (Coding TensorFlow)
TensorFlow
59 Using ML to predict insulin use for Type 1 Diabetes (TensorFlow Meets)
Using ML to predict insulin use for Type 1 Diabetes (TensorFlow Meets)
TensorFlow
60 TFX: an end-to-end machine learning platform for TensorFlow (TensorFlow Meets)
TFX: an end-to-end machine learning platform for TensorFlow (TensorFlow Meets)
TensorFlow

This video teaches the new features and updates in TensorFlow 2.11, including improvements to attention layers, DTensor, and decision forests. It also covers how to use these new features to build and train machine learning models.

Key Takeaways
  1. Update to TensorFlow 2.11
  2. Use new Keras optimizers, including AdaFactor
  3. Implement causal masking in Transformer models
  4. Use DTensor for distributed training
  5. Try out warm start embedding and group normalization
💡 The new features in TensorFlow 2.11, such as improved attention layers and DTensor, can significantly improve the performance and efficiency of machine learning models.

Related Reads

📰
Running NVIDIA Nemotron 3.5 ASR Locally with parakeet.cpp (and how it beat Whisper on my laptop)
Run NVIDIA Nemotron 3.5 ASR locally for offline speech-to-text capabilities without relying on cloud services or incurring API bills
Medium · LLM
📰
Building Production-Grade LLM Evaluation Pipelines: From Vibes to Metrics
Learn to build production-grade LLM evaluation pipelines by replacing subjective 'vibes' with quantitative metrics
Dev.to · Imus
📰
Building Production-Grade LLM Evaluation Pipelines: From Vibes to Metrics
Learn to build production-grade LLM evaluation pipelines to catch hallucinations before deployment, replacing manual 'vibe checks' with automated metrics
Dev.to AI
📰
AI is more likely than humans to form biases when hiring
AI hiring tools can form biases, even if trained on unbiased data, highlighting the need for careful evaluation and mitigation of these biases
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
Up next
5 Levels of AI Agents - From Simple LLM Calls to Multi-Agent Systems
Dave Ebbelaar (LLM Eng)
Watch →