SlideShare a Scribd company logo
Mariam Ali Aslam - GDE Firebase
TensorFlow
Google Cloud
Introduction
● Mariam Ali Aslam
● AI SDET Architect at RAKBank
● Google Developer Expert for Firebase
● Manager GDG Cloud Emirates
● Community Champion BrowserStack
● Ambassador Cypress.io
● Ambassador K6
● Community Leader WomenInTesting
● https://www.linkedin.com/in/mariam-aslam/
What is AI?
What is TensorFlow?
What is AI?
● AI stands for Artificial Intelligence.
● Teaching computers to think like us seemed like a good idea at the time.
Spoiler alert: They’re getting pretty good at it!
● The term "Artificial Intelligence" was coined in 1956 long before the
internet.
What is TensorFlow?
● Imagine teaching your computer to think (or at least pretend to).
● It's the secret sauce behind everything cool Google does (like suggesting
videos of cats).
● TensorFlow has over 160,000 stars on GitHub. That's more stars than
your last science project!
What is TensorFlow?
1. Open-source machine learning framework developed by Google.
2. Supports deep learning, neural networks, and a wide range of machine
learning tasks.
3. Extensive community and industry support.
4. Flexibility to run on various platforms (CPUs, GPUs, TPUs).
5. Comprehensive ecosystem with tools for model building, training, and
deployment.
What is TensorFlow?
Why Google Cloud for TensorFlow?
● Easily scale from a single machine to distributed systems.
● Seamless integration with Google Cloud services like BigQuery, cloud
storage, and AI platforms. (Lego Blocks)
● Pay-as-you-go model with options to reduce costs
● Fully managed services for TensorFlow, simplify deployment and scaling.
What does TensorFlow help with
What does TensorFlow help with
TensorFlow Architecture for Model Building
1. Data Preprocessing: prepare data for the purpose of feeding it to the model
that you need to build.
2. Model Building: start model building, create your model by using various
algorithms.
3. Model training & evaluation: start training and evaluating it to check
whether it generates accurate results or not.
TensorFlow Architecture
Using TensorFlow: Local vs. Cloud
Aspect TensorFlow Locally TensorFlow on Google Cloud
Setup &
Installation
Install via pip on your local
machine.
Set up using Google Cloud AI
Platform or Vertex AI.
Data Handling Load and preprocess datasets
locally.
Store and preprocess data using
Google Cloud Storage.
Model Training Train models using local
CPU/GPU resources.
Utilize Google Cloud GPUs/TPUs
for faster, scalable training.
Scalability Limited to local hardware
capabilities
Scalable with cloud resources,
including distributed training.
Flexibility Ideal for small projects or
development.
Best for large-scale, production-
level models.
Cost Free for local tasks; no cloud
costs.
Pay-as-you-go based on cloud
resource usage.
Setting Up TensorFlow on Google Cloud
● Create a Google Cloud Account.
● Set up a new project
● Install Google Cloud SDK.
● Launch a virtual machine (VM).
It can also be used with Python, and JavaScript.
Training Models on Google Cloud AI Platform
● AI Platform
○ It’s like a gym for your AI models. Let’s make them strong and smart!
● Steps to Train a Model
○ Upload your dataset—think of it as feeding your AI.
○ Write a training script—this is like planning your AI’s workout.
○ Configure the training job—select your machine (CPU? GPU? It’s like
choosing your AI’s treadmill).
○ Start the training job and cheer on your AI—go, little buddy, go!
Deploying TensorFlow Models with AI
Because keeping your AI to yourself is like making an amazing cake and not
sharing it. Deploy it so the world can enjoy!
● Steps to Deploy
○ Export your trained model—it’s like baking that cake.
○ Upload it to Google Cloud Storage—put it on display.
○ Deploy on AI Platform—now everyone can have a slice!
○ Use REST or gRPC APIs to interact with the deployed model.
Using TensorFlow Serving for Deployment
● TensorFlow Serving
○ A flexible, high-performance serving system for machine learning
models.
Imagine your AI model is a chef. TensorFlow Serving is the kitchen where
the chef works 24/7.
● Deploying on Compute Engine
○ Set up TensorFlow Serving on a Compute Engine VM - make sure your
kitchen is ready.
○ Serve the model via REST or gRPC APIs for real-time predictions —let the
chef cook and serve dishes to hungry customers!
Using TensorFlow Serving for Deployment
Integrating TensorFlow with Google Cloud Services
● BigQuery ML:
○ Train models directly in BigQuery on large datasets without data transfer.
○ Train models on huge datasets. It’s like taking your AI to a buffet—so much
data to chew on!
● Cloud Storage:
○ Store and manage training data and model artifacts in Google Cloud Storage.
○ Think of this as the fridge where you store all your ingredients (datasets and
models).
● TensorFlow Extended (TFX):
○ TFX is the conveyor belt that automates your AI kitchen—keeping everything
running smoothly.
Best Practices for TensorFlow on Google Cloud
● Optimize Model Performance:
○ Use TPUs for faster training on large models.
○ Implement hyperparameter tuning with AI Platform.
○ Use TPUs—they’re like the AI equivalent of a turbo boost!
● Cost Management:
○ Monitor resource usage and costs with Google Cloud Monitoring.
○ Use preemptible VMs for cost-effective training jobs.
○ Monitor usage to avoid a “Cloud Hangover” (aka bill shock).
● Security:
○ Keep your AI safe—like not letting your pet robot wander off on its own.
Best Practices for TensorFlow on Google Cloud
Real-World Use Cases
Healthcare:
AI doctors—because even doctors need a break (and a second opinion).
Finance:
AI money managers—ensuring you don’t spend all your money on AI puns.
Retail:
AI shopping assistants—because shopping is more fun with a helpful robot.
Thank you

More Related Content

Similar to Getting Started with TensorFlow on Google Cloud (20)

2017 arab wic marwa ayad machine learning
2017 arab wic marwa ayad machine learning2017 arab wic marwa ayad machine learning
2017 arab wic marwa ayad machine learning
marwa Ayad Mohamed
 
Going deep (learning) with tensor flow and quarkus
Going deep (learning) with tensor flow and quarkusGoing deep (learning) with tensor flow and quarkus
Going deep (learning) with tensor flow and quarkus
Red Hat Developers
 
Google cloud Study Jam 2023.pptx
Google cloud Study Jam 2023.pptxGoogle cloud Study Jam 2023.pptx
Google cloud Study Jam 2023.pptx
GDSCNiT
 
Scale with a smile with Google Cloud Platform At DevConTLV (June 2014)
Scale with a smile with Google Cloud Platform At DevConTLV (June 2014)Scale with a smile with Google Cloud Platform At DevConTLV (June 2014)
Scale with a smile with Google Cloud Platform At DevConTLV (June 2014)
Ido Green
 
2 day Deep Learning Workshop at Karunya - Session 2
2 day Deep Learning Workshop at Karunya - Session 22 day Deep Learning Workshop at Karunya - Session 2
2 day Deep Learning Workshop at Karunya - Session 2
Rajagopal A
 
AI hype or reality
AI  hype or realityAI  hype or reality
AI hype or reality
Awantik Das
 
TensorFlow Lite for mobile & IoT
TensorFlow Lite for mobile & IoT   TensorFlow Lite for mobile & IoT
TensorFlow Lite for mobile & IoT
Mia Chang
 
Machine learning at scale with Google Cloud Platform
Machine learning at scale with Google Cloud PlatformMachine learning at scale with Google Cloud Platform
Machine learning at scale with Google Cloud Platform
Matthias Feys
 
Machine learning in the wild deployment
Machine learning in the wild deploymentMachine learning in the wild deployment
Machine learning in the wild deployment
Birger Moell
 
ML Platform Q1 Meetup: Airbnb's End-to-End Machine Learning Infrastructure
ML Platform Q1 Meetup: Airbnb's End-to-End Machine Learning InfrastructureML Platform Q1 Meetup: Airbnb's End-to-End Machine Learning Infrastructure
ML Platform Q1 Meetup: Airbnb's End-to-End Machine Learning Infrastructure
Fei Chen
 
Hadoop training in mumbai
Hadoop training in mumbaiHadoop training in mumbai
Hadoop training in mumbai
faizrashid1995
 
Democratize ai with google cloud
Democratize ai with google cloudDemocratize ai with google cloud
Democratize ai with google cloud
Henrik Hammer Eliassen
 
Google Cloud Machine Learning
 Google Cloud Machine Learning  Google Cloud Machine Learning
Google Cloud Machine Learning
India Quotient
 
MongoDB World 2018: Building Intelligent Apps with MongoDB & Google Cloud
MongoDB World 2018: Building Intelligent Apps with MongoDB & Google CloudMongoDB World 2018: Building Intelligent Apps with MongoDB & Google Cloud
MongoDB World 2018: Building Intelligent Apps with MongoDB & Google Cloud
MongoDB
 
Top 7 Frameworks for Integration AI in App Development
Top 7 Frameworks for Integration AI in App DevelopmentTop 7 Frameworks for Integration AI in App Development
Top 7 Frameworks for Integration AI in App Development
Inexture Solutions
 
EIA2019Italy - Google Cloud - Andres L Ortiz
EIA2019Italy - Google Cloud - Andres L OrtizEIA2019Italy - Google Cloud - Andres L Ortiz
EIA2019Italy - Google Cloud - Andres L Ortiz
European Innovation Academy
 
EIA2019Portugal - Google Cloud - Andres L Martinez
EIA2019Portugal - Google Cloud - Andres L MartinezEIA2019Portugal - Google Cloud - Andres L Martinez
EIA2019Portugal - Google Cloud - Andres L Martinez
European Innovation Academy
 
"Large-Scale Deep Learning for Building Intelligent Computer Systems," a Keyn...
"Large-Scale Deep Learning for Building Intelligent Computer Systems," a Keyn..."Large-Scale Deep Learning for Building Intelligent Computer Systems," a Keyn...
"Large-Scale Deep Learning for Building Intelligent Computer Systems," a Keyn...
Edge AI and Vision Alliance
 
Kubeflow: portable and scalable machine learning using Jupyterhub and Kuberne...
Kubeflow: portable and scalable machine learning using Jupyterhub and Kuberne...Kubeflow: portable and scalable machine learning using Jupyterhub and Kuberne...
Kubeflow: portable and scalable machine learning using Jupyterhub and Kuberne...
Akash Tandon
 
Continuous Intelligence Workshop
Continuous Intelligence WorkshopContinuous Intelligence Workshop
Continuous Intelligence Workshop
David Tan
 
2017 arab wic marwa ayad machine learning
2017 arab wic marwa ayad machine learning2017 arab wic marwa ayad machine learning
2017 arab wic marwa ayad machine learning
marwa Ayad Mohamed
 
Going deep (learning) with tensor flow and quarkus
Going deep (learning) with tensor flow and quarkusGoing deep (learning) with tensor flow and quarkus
Going deep (learning) with tensor flow and quarkus
Red Hat Developers
 
Google cloud Study Jam 2023.pptx
Google cloud Study Jam 2023.pptxGoogle cloud Study Jam 2023.pptx
Google cloud Study Jam 2023.pptx
GDSCNiT
 
Scale with a smile with Google Cloud Platform At DevConTLV (June 2014)
Scale with a smile with Google Cloud Platform At DevConTLV (June 2014)Scale with a smile with Google Cloud Platform At DevConTLV (June 2014)
Scale with a smile with Google Cloud Platform At DevConTLV (June 2014)
Ido Green
 
2 day Deep Learning Workshop at Karunya - Session 2
2 day Deep Learning Workshop at Karunya - Session 22 day Deep Learning Workshop at Karunya - Session 2
2 day Deep Learning Workshop at Karunya - Session 2
Rajagopal A
 
AI hype or reality
AI  hype or realityAI  hype or reality
AI hype or reality
Awantik Das
 
TensorFlow Lite for mobile & IoT
TensorFlow Lite for mobile & IoT   TensorFlow Lite for mobile & IoT
TensorFlow Lite for mobile & IoT
Mia Chang
 
Machine learning at scale with Google Cloud Platform
Machine learning at scale with Google Cloud PlatformMachine learning at scale with Google Cloud Platform
Machine learning at scale with Google Cloud Platform
Matthias Feys
 
Machine learning in the wild deployment
Machine learning in the wild deploymentMachine learning in the wild deployment
Machine learning in the wild deployment
Birger Moell
 
ML Platform Q1 Meetup: Airbnb's End-to-End Machine Learning Infrastructure
ML Platform Q1 Meetup: Airbnb's End-to-End Machine Learning InfrastructureML Platform Q1 Meetup: Airbnb's End-to-End Machine Learning Infrastructure
ML Platform Q1 Meetup: Airbnb's End-to-End Machine Learning Infrastructure
Fei Chen
 
Hadoop training in mumbai
Hadoop training in mumbaiHadoop training in mumbai
Hadoop training in mumbai
faizrashid1995
 
Google Cloud Machine Learning
 Google Cloud Machine Learning  Google Cloud Machine Learning
Google Cloud Machine Learning
India Quotient
 
MongoDB World 2018: Building Intelligent Apps with MongoDB & Google Cloud
MongoDB World 2018: Building Intelligent Apps with MongoDB & Google CloudMongoDB World 2018: Building Intelligent Apps with MongoDB & Google Cloud
MongoDB World 2018: Building Intelligent Apps with MongoDB & Google Cloud
MongoDB
 
Top 7 Frameworks for Integration AI in App Development
Top 7 Frameworks for Integration AI in App DevelopmentTop 7 Frameworks for Integration AI in App Development
Top 7 Frameworks for Integration AI in App Development
Inexture Solutions
 
EIA2019Portugal - Google Cloud - Andres L Martinez
EIA2019Portugal - Google Cloud - Andres L MartinezEIA2019Portugal - Google Cloud - Andres L Martinez
EIA2019Portugal - Google Cloud - Andres L Martinez
European Innovation Academy
 
"Large-Scale Deep Learning for Building Intelligent Computer Systems," a Keyn...
"Large-Scale Deep Learning for Building Intelligent Computer Systems," a Keyn..."Large-Scale Deep Learning for Building Intelligent Computer Systems," a Keyn...
"Large-Scale Deep Learning for Building Intelligent Computer Systems," a Keyn...
Edge AI and Vision Alliance
 
Kubeflow: portable and scalable machine learning using Jupyterhub and Kuberne...
Kubeflow: portable and scalable machine learning using Jupyterhub and Kuberne...Kubeflow: portable and scalable machine learning using Jupyterhub and Kuberne...
Kubeflow: portable and scalable machine learning using Jupyterhub and Kuberne...
Akash Tandon
 
Continuous Intelligence Workshop
Continuous Intelligence WorkshopContinuous Intelligence Workshop
Continuous Intelligence Workshop
David Tan
 

Recently uploaded (20)

MODULE 4 BUILDING PLANNING AND DESIGN SY BTECH HVAC SYSTEM IN BUILDING
MODULE 4 BUILDING PLANNING AND DESIGN SY BTECH HVAC SYSTEM IN BUILDINGMODULE 4 BUILDING PLANNING AND DESIGN SY BTECH HVAC SYSTEM IN BUILDING
MODULE 4 BUILDING PLANNING AND DESIGN SY BTECH HVAC SYSTEM IN BUILDING
Dr. BASWESHWAR JIRWANKAR
 
Introduction of Structural Audit and Health Montoring.pptx
Introduction of Structural Audit and Health Montoring.pptxIntroduction of Structural Audit and Health Montoring.pptx
Introduction of Structural Audit and Health Montoring.pptx
gunjalsachin
 
world subdivision.pdf...................
world subdivision.pdf...................world subdivision.pdf...................
world subdivision.pdf...................
bmmederos12
 
Influence line diagram in a robust model
Influence line diagram in a robust modelInfluence line diagram in a robust model
Influence line diagram in a robust model
ParthaSengupta26
 
Direct Current circuitsDirect Current circuitsDirect Current circuitsDirect C...
Direct Current circuitsDirect Current circuitsDirect Current circuitsDirect C...Direct Current circuitsDirect Current circuitsDirect Current circuitsDirect C...
Direct Current circuitsDirect Current circuitsDirect Current circuitsDirect C...
BeHappy728244
 
[HIFLUX] Lok Fitting&Valve Catalog 2025 (Eng)
[HIFLUX] Lok Fitting&Valve Catalog 2025 (Eng)[HIFLUX] Lok Fitting&Valve Catalog 2025 (Eng)
[HIFLUX] Lok Fitting&Valve Catalog 2025 (Eng)
하이플럭스 / HIFLUX Co., Ltd.
 
Video Games and Artificial-Realities.pptx
Video Games and Artificial-Realities.pptxVideo Games and Artificial-Realities.pptx
Video Games and Artificial-Realities.pptx
HadiBadri1
 
UNIT-5-PPT Computer Control Power of Power System
UNIT-5-PPT Computer Control Power of Power SystemUNIT-5-PPT Computer Control Power of Power System
UNIT-5-PPT Computer Control Power of Power System
Sridhar191373
 
Tesia Dobrydnia - A Leader In Her Industry
Tesia Dobrydnia - A Leader In Her IndustryTesia Dobrydnia - A Leader In Her Industry
Tesia Dobrydnia - A Leader In Her Industry
Tesia Dobrydnia
 
ISO 4020-6.1- Filter Cleanliness Test Rig Catalogue.pdf
ISO 4020-6.1- Filter Cleanliness Test Rig Catalogue.pdfISO 4020-6.1- Filter Cleanliness Test Rig Catalogue.pdf
ISO 4020-6.1- Filter Cleanliness Test Rig Catalogue.pdf
FILTRATION ENGINEERING & CUNSULTANT
 
Kevin Corke Spouse Revealed A Deep Dive Into His Private Life.pdf
Kevin Corke Spouse Revealed A Deep Dive Into His Private Life.pdfKevin Corke Spouse Revealed A Deep Dive Into His Private Life.pdf
Kevin Corke Spouse Revealed A Deep Dive Into His Private Life.pdf
Medicoz Clinic
 
Proposed EPA Municipal Waste Combustor Rule
Proposed EPA Municipal Waste Combustor RuleProposed EPA Municipal Waste Combustor Rule
Proposed EPA Municipal Waste Combustor Rule
AlvaroLinero2
 
Android basics – Key Codes – ADB – Rooting Android – Boot Process – File Syst...
Android basics – Key Codes – ADB – Rooting Android – Boot Process – File Syst...Android basics – Key Codes – ADB – Rooting Android – Boot Process – File Syst...
Android basics – Key Codes – ADB – Rooting Android – Boot Process – File Syst...
ManiMaran230751
 
May 2025: Top 10 Cited Articles in Software Engineering & Applications Intern...
May 2025: Top 10 Cited Articles in Software Engineering & Applications Intern...May 2025: Top 10 Cited Articles in Software Engineering & Applications Intern...
May 2025: Top 10 Cited Articles in Software Engineering & Applications Intern...
sebastianku31
 
MODULE 5 BUILDING PLANNING AND DESIGN SY BTECH ACOUSTICS SYSTEM IN BUILDING
MODULE 5 BUILDING PLANNING AND DESIGN SY BTECH ACOUSTICS SYSTEM IN BUILDINGMODULE 5 BUILDING PLANNING AND DESIGN SY BTECH ACOUSTICS SYSTEM IN BUILDING
MODULE 5 BUILDING PLANNING AND DESIGN SY BTECH ACOUSTICS SYSTEM IN BUILDING
Dr. BASWESHWAR JIRWANKAR
 
Webinar On Steel Melting IIF of steel for rdso
Webinar  On Steel  Melting IIF of steel for rdsoWebinar  On Steel  Melting IIF of steel for rdso
Webinar On Steel Melting IIF of steel for rdso
KapilParyani3
 
Influence line diagram for truss in a robust
Influence line diagram for truss in a robustInfluence line diagram for truss in a robust
Influence line diagram for truss in a robust
ParthaSengupta26
 
Software Developer Portfolio: Backend Architecture & Performance Optimization
Software Developer Portfolio: Backend Architecture & Performance OptimizationSoftware Developer Portfolio: Backend Architecture & Performance Optimization
Software Developer Portfolio: Backend Architecture & Performance Optimization
kiwoong (daniel) kim
 
ENERGY STORING DEVICES-Primary Battery.pdf
ENERGY STORING DEVICES-Primary Battery.pdfENERGY STORING DEVICES-Primary Battery.pdf
ENERGY STORING DEVICES-Primary Battery.pdf
TAMILISAI R
 
ISO 4548-7 Filter Vibration Fatigue Test Rig Catalogue.pdf
ISO 4548-7 Filter Vibration Fatigue Test Rig Catalogue.pdfISO 4548-7 Filter Vibration Fatigue Test Rig Catalogue.pdf
ISO 4548-7 Filter Vibration Fatigue Test Rig Catalogue.pdf
FILTRATION ENGINEERING & CUNSULTANT
 
MODULE 4 BUILDING PLANNING AND DESIGN SY BTECH HVAC SYSTEM IN BUILDING
MODULE 4 BUILDING PLANNING AND DESIGN SY BTECH HVAC SYSTEM IN BUILDINGMODULE 4 BUILDING PLANNING AND DESIGN SY BTECH HVAC SYSTEM IN BUILDING
MODULE 4 BUILDING PLANNING AND DESIGN SY BTECH HVAC SYSTEM IN BUILDING
Dr. BASWESHWAR JIRWANKAR
 
Introduction of Structural Audit and Health Montoring.pptx
Introduction of Structural Audit and Health Montoring.pptxIntroduction of Structural Audit and Health Montoring.pptx
Introduction of Structural Audit and Health Montoring.pptx
gunjalsachin
 
world subdivision.pdf...................
world subdivision.pdf...................world subdivision.pdf...................
world subdivision.pdf...................
bmmederos12
 
Influence line diagram in a robust model
Influence line diagram in a robust modelInfluence line diagram in a robust model
Influence line diagram in a robust model
ParthaSengupta26
 
Direct Current circuitsDirect Current circuitsDirect Current circuitsDirect C...
Direct Current circuitsDirect Current circuitsDirect Current circuitsDirect C...Direct Current circuitsDirect Current circuitsDirect Current circuitsDirect C...
Direct Current circuitsDirect Current circuitsDirect Current circuitsDirect C...
BeHappy728244
 
Video Games and Artificial-Realities.pptx
Video Games and Artificial-Realities.pptxVideo Games and Artificial-Realities.pptx
Video Games and Artificial-Realities.pptx
HadiBadri1
 
UNIT-5-PPT Computer Control Power of Power System
UNIT-5-PPT Computer Control Power of Power SystemUNIT-5-PPT Computer Control Power of Power System
UNIT-5-PPT Computer Control Power of Power System
Sridhar191373
 
Tesia Dobrydnia - A Leader In Her Industry
Tesia Dobrydnia - A Leader In Her IndustryTesia Dobrydnia - A Leader In Her Industry
Tesia Dobrydnia - A Leader In Her Industry
Tesia Dobrydnia
 
Kevin Corke Spouse Revealed A Deep Dive Into His Private Life.pdf
Kevin Corke Spouse Revealed A Deep Dive Into His Private Life.pdfKevin Corke Spouse Revealed A Deep Dive Into His Private Life.pdf
Kevin Corke Spouse Revealed A Deep Dive Into His Private Life.pdf
Medicoz Clinic
 
Proposed EPA Municipal Waste Combustor Rule
Proposed EPA Municipal Waste Combustor RuleProposed EPA Municipal Waste Combustor Rule
Proposed EPA Municipal Waste Combustor Rule
AlvaroLinero2
 
Android basics – Key Codes – ADB – Rooting Android – Boot Process – File Syst...
Android basics – Key Codes – ADB – Rooting Android – Boot Process – File Syst...Android basics – Key Codes – ADB – Rooting Android – Boot Process – File Syst...
Android basics – Key Codes – ADB – Rooting Android – Boot Process – File Syst...
ManiMaran230751
 
May 2025: Top 10 Cited Articles in Software Engineering & Applications Intern...
May 2025: Top 10 Cited Articles in Software Engineering & Applications Intern...May 2025: Top 10 Cited Articles in Software Engineering & Applications Intern...
May 2025: Top 10 Cited Articles in Software Engineering & Applications Intern...
sebastianku31
 
MODULE 5 BUILDING PLANNING AND DESIGN SY BTECH ACOUSTICS SYSTEM IN BUILDING
MODULE 5 BUILDING PLANNING AND DESIGN SY BTECH ACOUSTICS SYSTEM IN BUILDINGMODULE 5 BUILDING PLANNING AND DESIGN SY BTECH ACOUSTICS SYSTEM IN BUILDING
MODULE 5 BUILDING PLANNING AND DESIGN SY BTECH ACOUSTICS SYSTEM IN BUILDING
Dr. BASWESHWAR JIRWANKAR
 
Webinar On Steel Melting IIF of steel for rdso
Webinar  On Steel  Melting IIF of steel for rdsoWebinar  On Steel  Melting IIF of steel for rdso
Webinar On Steel Melting IIF of steel for rdso
KapilParyani3
 
Influence line diagram for truss in a robust
Influence line diagram for truss in a robustInfluence line diagram for truss in a robust
Influence line diagram for truss in a robust
ParthaSengupta26
 
Software Developer Portfolio: Backend Architecture & Performance Optimization
Software Developer Portfolio: Backend Architecture & Performance OptimizationSoftware Developer Portfolio: Backend Architecture & Performance Optimization
Software Developer Portfolio: Backend Architecture & Performance Optimization
kiwoong (daniel) kim
 
ENERGY STORING DEVICES-Primary Battery.pdf
ENERGY STORING DEVICES-Primary Battery.pdfENERGY STORING DEVICES-Primary Battery.pdf
ENERGY STORING DEVICES-Primary Battery.pdf
TAMILISAI R
 
Ad

Getting Started with TensorFlow on Google Cloud

  • 1. Mariam Ali Aslam - GDE Firebase TensorFlow Google Cloud
  • 2. Introduction ● Mariam Ali Aslam ● AI SDET Architect at RAKBank ● Google Developer Expert for Firebase ● Manager GDG Cloud Emirates ● Community Champion BrowserStack ● Ambassador Cypress.io ● Ambassador K6 ● Community Leader WomenInTesting ● https://www.linkedin.com/in/mariam-aslam/
  • 5. What is AI? ● AI stands for Artificial Intelligence. ● Teaching computers to think like us seemed like a good idea at the time. Spoiler alert: They’re getting pretty good at it! ● The term "Artificial Intelligence" was coined in 1956 long before the internet.
  • 6. What is TensorFlow? ● Imagine teaching your computer to think (or at least pretend to). ● It's the secret sauce behind everything cool Google does (like suggesting videos of cats). ● TensorFlow has over 160,000 stars on GitHub. That's more stars than your last science project!
  • 7. What is TensorFlow? 1. Open-source machine learning framework developed by Google. 2. Supports deep learning, neural networks, and a wide range of machine learning tasks. 3. Extensive community and industry support. 4. Flexibility to run on various platforms (CPUs, GPUs, TPUs). 5. Comprehensive ecosystem with tools for model building, training, and deployment.
  • 9. Why Google Cloud for TensorFlow? ● Easily scale from a single machine to distributed systems. ● Seamless integration with Google Cloud services like BigQuery, cloud storage, and AI platforms. (Lego Blocks) ● Pay-as-you-go model with options to reduce costs ● Fully managed services for TensorFlow, simplify deployment and scaling.
  • 10. What does TensorFlow help with
  • 11. What does TensorFlow help with
  • 12. TensorFlow Architecture for Model Building 1. Data Preprocessing: prepare data for the purpose of feeding it to the model that you need to build. 2. Model Building: start model building, create your model by using various algorithms. 3. Model training & evaluation: start training and evaluating it to check whether it generates accurate results or not.
  • 14. Using TensorFlow: Local vs. Cloud Aspect TensorFlow Locally TensorFlow on Google Cloud Setup & Installation Install via pip on your local machine. Set up using Google Cloud AI Platform or Vertex AI. Data Handling Load and preprocess datasets locally. Store and preprocess data using Google Cloud Storage. Model Training Train models using local CPU/GPU resources. Utilize Google Cloud GPUs/TPUs for faster, scalable training. Scalability Limited to local hardware capabilities Scalable with cloud resources, including distributed training. Flexibility Ideal for small projects or development. Best for large-scale, production- level models. Cost Free for local tasks; no cloud costs. Pay-as-you-go based on cloud resource usage.
  • 15. Setting Up TensorFlow on Google Cloud ● Create a Google Cloud Account. ● Set up a new project ● Install Google Cloud SDK. ● Launch a virtual machine (VM). It can also be used with Python, and JavaScript.
  • 16. Training Models on Google Cloud AI Platform ● AI Platform ○ It’s like a gym for your AI models. Let’s make them strong and smart! ● Steps to Train a Model ○ Upload your dataset—think of it as feeding your AI. ○ Write a training script—this is like planning your AI’s workout. ○ Configure the training job—select your machine (CPU? GPU? It’s like choosing your AI’s treadmill). ○ Start the training job and cheer on your AI—go, little buddy, go!
  • 17. Deploying TensorFlow Models with AI Because keeping your AI to yourself is like making an amazing cake and not sharing it. Deploy it so the world can enjoy! ● Steps to Deploy ○ Export your trained model—it’s like baking that cake. ○ Upload it to Google Cloud Storage—put it on display. ○ Deploy on AI Platform—now everyone can have a slice! ○ Use REST or gRPC APIs to interact with the deployed model.
  • 18. Using TensorFlow Serving for Deployment ● TensorFlow Serving ○ A flexible, high-performance serving system for machine learning models. Imagine your AI model is a chef. TensorFlow Serving is the kitchen where the chef works 24/7. ● Deploying on Compute Engine ○ Set up TensorFlow Serving on a Compute Engine VM - make sure your kitchen is ready. ○ Serve the model via REST or gRPC APIs for real-time predictions —let the chef cook and serve dishes to hungry customers!
  • 19. Using TensorFlow Serving for Deployment
  • 20. Integrating TensorFlow with Google Cloud Services ● BigQuery ML: ○ Train models directly in BigQuery on large datasets without data transfer. ○ Train models on huge datasets. It’s like taking your AI to a buffet—so much data to chew on! ● Cloud Storage: ○ Store and manage training data and model artifacts in Google Cloud Storage. ○ Think of this as the fridge where you store all your ingredients (datasets and models). ● TensorFlow Extended (TFX): ○ TFX is the conveyor belt that automates your AI kitchen—keeping everything running smoothly.
  • 21. Best Practices for TensorFlow on Google Cloud ● Optimize Model Performance: ○ Use TPUs for faster training on large models. ○ Implement hyperparameter tuning with AI Platform. ○ Use TPUs—they’re like the AI equivalent of a turbo boost! ● Cost Management: ○ Monitor resource usage and costs with Google Cloud Monitoring. ○ Use preemptible VMs for cost-effective training jobs. ○ Monitor usage to avoid a “Cloud Hangover” (aka bill shock). ● Security: ○ Keep your AI safe—like not letting your pet robot wander off on its own.
  • 22. Best Practices for TensorFlow on Google Cloud
  • 23. Real-World Use Cases Healthcare: AI doctors—because even doctors need a break (and a second opinion). Finance: AI money managers—ensuring you don’t spend all your money on AI puns. Retail: AI shopping assistants—because shopping is more fun with a helpful robot.

Editor's Notes

  • #9: Scalability: Your models can go from 0 to 100 real quick! (No, seriously, it scales automatically.) Integration: Think of it like Lego blocks, but for AI. Everything fits together perfectly! Cost-Effective: Pay only for what you use—like buying just one slice of pizza instead of the whole pie. Managed Services: Google does the heavy lifting. You just sit back, sip your coffee, and watch the magic happen.
  • #12: removing duplicate values, feature scaling. standardization, and many other tasks.
  • #16: Interactive Element: Audience Guess: "What do you think happens if you skip leg day in AI training? (Hint: Your model might trip over numbers.)"
  • #17: Fun Analogy: “Deploying is like opening a food truck—let the world taste your AI creation!”
  • #21: Interactive Element: "Who here has ever accidentally left something important outside in the rain? (Hint: That’s why we need security!)"
  • #23: Interactive Element: "Imagine your AI is running your life. What’s the first task you’d give it? (I’d start with making breakfast.)"