Slide 1

Slide 1 text

GDG Mbarara 2023 Using Generative AI on GCP with Vertex AI.

Slide 2

Slide 2 text

GOOGLE IO Extended - SPEAKER TEMPLATE Table of Contents 04 06 12 14 17 19 20 21 24 26 Introduction What is AI? Gen AI How Gen AI Works Transformers Application of Gen AI Building Gen AI on GCP Benefits & Use cases Quick Demo Recommendation

Slide 3

Slide 3 text

About this Session o Introductory guide on gen AI o Good for all levels o Familiarity with computers and the internet required Expected Outcomes o Know what gen AI is and its benefits o Understand how gen AI relates to the AM/ML ecosystem o Know the GCP services available for building gen AI o Understand how to build with Vertex AI

Slide 4

Slide 4 text

Background Information on AI/ML Introduction Section 01

Slide 5

Slide 5 text

A kind of AI technology that can produce a variety of content. o Text o Images o Audio It could also produce synthetic data What is Generative AI Page 5

Slide 6

Slide 6 text

Page 6 A field of CS that deals with making systems that could learn, reason and act autonomously. What is AI?

Slide 7

Slide 7 text

Page 7 A subfield of AI involves training models to recognize patterns in input data and then make predictions or helpful predictions from new data (previously unseen) drawn from the data used to train the model. o Takes input data o Draws new (never seen before) data from the input data o Makes decisions based on the new data What is ML?

Slide 8

Slide 8 text

Requires labelled input data for the training to happen. Humans would labelled the data and pass them to the model for training. Yes labels, yes tags Yes input variables No output variables Examples: Classification i.e identifying data Takes in raw unlabelled input data. It then finds the patterns in the dataset or group the data into groups based on similarities. No labels, no tags Yes input variables Yes output variables Examples: clustering and grouping similar data points Supervised Unsupervised Kinds of ML Models Page 8

Slide 9

Slide 9 text

Page 9 o A subset of ML based on neural networks o It trains the model to process data like the human brain What is DL?

Slide 10

Slide 10 text

Discriminates between different kinds of data instances Trained on a labelled dataset Used for classification or prediction Conditional probability, P(A|B) Example: the model takes in a dataset of cat and dog images and it’s able to classify dogs and cats Generates new data instances Generates new data similar to the one it was trained on Used to generate data Joint probability, P(A,B) Example: the model takes in a dataset of cat images and it is able to generate a new cat image. Discriminative Generative Kinds of DL Models Page 10

Slide 11

Slide 11 text

Generative AI is a subset of Deep Learning NOTE

Slide 12

Slide 12 text

Understanding generative AI and how to build in the Cloud Gen AI Section 02

Slide 13

Slide 13 text

13 Generative AI Page 13 Don’t lose track: AI > ML > DL > Gen AI o A subset of Deep Learning o Learns patterns from input data to develop new and unique output o Even realistic content at the human intelligence level o Can create new content and ideas Photos, music, video

Slide 14

Slide 14 text

Learns patterns from input data to develop new and unique output Creates a statistical model by learning from the input data Learns pattern Creates model It uses the statistical model to predict expected response to prompts and generates the appropriate content Generate content Gen AI: How it works Page 14

Slide 15

Slide 15 text

✓ Images ✓ Audio ✓ Text/Speech ❌ Number ❌ Class ❌ Probability Page 15 Emphasis on Content Generation

Slide 16

Slide 16 text

Page 17 PaLM: Pathways Language Model LaMBDA: Language Model for Dialog Applications Noteworthy mentions

Slide 17

Slide 17 text

Gen AI is powered by Transformers. NOTE

Slide 18

Slide 18 text

Transformers ushered in a massive revolution in the NLP ecosystem. A transformer consists of an encoder which encodes the input and a decoder that decodes the representation for the appropriate task. Transformers 2017 Introduced in NLP Page 19 Output I’m alright. Thank you! Encoder Decoder Transformer Model Generative Pre-trained Transformer Model input Hello, how are you?

Slide 19

Slide 19 text

o Code generation o Voice assistants o Personalized learning o CAD Design in Manufacturing o And more Application of Gen AI Page 20

Slide 20

Slide 20 text

o Generative AI Studio: robust platform for building o Generative AI App Builder: no-code platform o Duet AI o Palm API/Makersuite o Vertex AI: model garden of foundation models trained on large amounts of data Building Gen AI on GCP Page 21

Slide 21

Slide 21 text

How you can leverage the technology Benefits and Use cases of Gen AI Section 03

Slide 22

Slide 22 text

o Improved efficiency o Personalized and Customized solutions for businesses & individuals o Better customer experience o Reduced costs o Enhanced creativity Benefits of Gen AI Page 21

Slide 23

Slide 23 text

o Payroll and HR management systems o Using Gen AI to provide powerful business insights for better leadership decision-making Page 23

Slide 24

Slide 24 text

o Drive-thru food ordering fast food chain o Building automated food ordering experience with Google Cloud Gen AI Page 24

Slide 25

Slide 25 text

A Demo with Generative AI Studio in Vertex AI Page 25 console.cloud.google.com/vertex-ai/generative

Slide 26

Slide 26 text

Conclusion Section 04

Slide 27

Slide 27 text

o Discover Generative AI: https://ai.google/discover/generativeai/ o Generative AI learning path: https://www.cloudskillsboost.google/journeys/118 Recommendation Page 26

Slide 28

Slide 28 text

Thank You Jekayin-Oluwa Olabemiwo Software Engineer