Introduction to Generative AI

Google Cloud
8 Apr 202422:54

Summary

TLDRThis video script introduces generative AI, a subset of deep learning that uses neural networks to create new content like text, images, and audio. It explains the fundamentals of AI, the difference between AI and machine learning, and the types of machine learning models. The script delves into the capabilities of generative models, the importance of training data, and the use of prompts to guide AI output. It also highlights the potential applications of generative AI in various industries and showcases tools like Vertex AI, Foundation models, and the versatile Gemini model for diverse AI tasks.

Takeaways

  • 🧠 Generative AI is a type of AI technology that can create various content including text, images, audio, and synthetic data.
  • 🤖 Artificial Intelligence (AI) is a branch of computer science that focuses on creating intelligent agents and systems capable of reasoning, learning, and acting autonomously.
  • 📈 Machine Learning is a subset of AI that enables models to learn from input data and make predictions on new, unseen data.
  • 🏷️ Supervised learning involves models trained on labeled data, while unsupervised learning deals with unlabeled data, focusing on discovering patterns and grouping.
  • 🧠 Deep Learning is a subset of machine learning that uses artificial neural networks to process complex patterns, inspired by the human brain.
  • 🔀 Generative AI is a subset of deep learning, capable of using both labeled and unlabeled data through various learning methods.
  • 📊 Generative models generate new data instances based on learned probability distributions, unlike discriminative models that classify or predict labels.
  • 📚 Large language models, a type of generative AI, learn patterns in language and can generate human-like text in response to prompts.
  • 🛠️ Prompts are used to guide the output of a generative AI model, and effective prompt design is crucial for desired results.
  • 🖼️ Generative AI models come in various types, such as text-to-text, text-to-image, text-to-video, and text-to-3D, each serving different applications.
  • 🌐 Foundation models are large AI models pre-trained on vast data, adaptable for numerous downstream tasks, potentially revolutionizing various industries.

Q & A

  • What is generative AI?

    -Generative AI is a type of artificial intelligence technology that can produce various types of content including text, imagery, audio, and synthetic data.

  • How is AI defined in the context of this script?

    -AI is described as a branch of computer science that deals with the creation of intelligent agents and systems that can reason, learn, and act autonomously.

  • What is the relationship between AI and machine learning?

    -Machine learning is a subfield of AI. It involves programs or systems that train a model from input data, enabling the model to make useful predictions from new, never-before-seen data.

  • What distinguishes supervised machine learning models from unsupervised ones?

    -Supervised models use labeled data that comes with a tag, while unsupervised models work with unlabeled data that has no tag, focusing on discovery and grouping within the data.

  • How does deep learning fit into the AI discipline?

    -Deep learning is a subset of machine learning methods that uses artificial neural networks to process more complex patterns than traditional machine learning models.

  • What is the main difference between generative and discriminative models?

    -Generative models generate new data instances based on a learned probability distribution, while discriminative models classify or predict labels for data points based on learned relationships from labeled data.

  • What is a prompt in the context of generative AI?

    -A prompt is a short piece of text given to a large language model as input, which can be used to control the output of the model.

  • What are the potential issues with Transformer models like hallucinations?

    -Hallucinations refer to the generation of nonsensical or grammatically incorrect words or phrases by the model, often caused by insufficient data, noisy data, lack of context, or insufficient constraints.

  • How can generative AI models be used for code generation?

    -Generative AI models can help in debugging source code, explaining code line by line, crafting SQL queries, translating code from one language to another, and generating documentation and tutorials for source code.

  • What is the role of Vertex AI Studio in working with generative AI models?

    -Vertex AI Studio allows developers to quickly explore and customize generative AI models for use in their applications on Google Cloud, providing tools and resources to facilitate the creation and deployment of these models.

  • What are Foundation models and how can they be utilized?

    -Foundation models are large AI models pre-trained on vast amounts of data and designed to be adapted or fine-tuned for a wide range of downstream tasks, revolutionizing industries and enabling capabilities like sentiment analysis, image captioning, and fraud detection.

Outlines

00:00

🤖 Introduction to Generative AI

This paragraph introduces the concept of generative AI, a subset of artificial intelligence that can generate various types of content such as text, images, audio, and data. It differentiates AI from machine learning, explaining AI as a broader discipline of creating intelligent agents, while machine learning is a subset that allows models to learn from data. The paragraph also distinguishes between supervised and unsupervised machine learning models, providing examples of how they work and their applications.

05:02

🧠 Deep Learning and Generative Models

This section delves deeper into deep learning, a subset of machine learning that uses artificial neural networks to process complex patterns. It explains how neural networks, inspired by the human brain, can learn from both labeled and unlabeled data through semi-supervised learning. The paragraph further clarifies the difference between generative and discriminative models, with the former generating new data instances and the latter classifying or predicting labels for data points. It also introduces the concept of large language models and their ability to generate human-like text in response to prompts.

10:04

🛠 Generative AI's Process and Models

The paragraph discusses the generative AI process, which involves training on both labeled and unlabeled data to build a foundation model capable of generating new content across various media types. It highlights the evolution from traditional programming to neural networks and generative models, emphasizing the user's ability to generate custom content. The paragraph also introduces different types of generative models, such as text-to-text, text-to-image, text-to-video, and text-to-3D, each with specific applications and methods like diffusion for image generation.

15:05

📚 Understanding Generative AI's Challenges and Tools

This section addresses the challenges faced by generative AI, particularly the issue of 'hallucinations' where models generate nonsensical or incorrect outputs. It also introduces the concept of prompts and their role in controlling the output of generative AI models. The paragraph outlines various model types, such as text-to-task models for performing defined actions based on text input, and discusses the potential of foundation models to revolutionize industries by adapting to a wide range of downstream tasks.

20:05

🌐 Applications and Resources for Generative AI

The final paragraph focuses on the practical applications of generative AI, showcasing its use in code generation and other tasks. It mentions tools like Vertex AI Studio for exploring and customizing AI models, Vertex AI for building AI applications with minimal coding, and the Palm API for experimenting with Google's large language models. The paragraph also touches on the multimodal capabilities of Gemini, a model that can analyze various data types, and the continuous updates to the Model Garden to include new models for diverse applications.

Mindmap

Keywords

💡Generative AI

Generative AI refers to a subset of artificial intelligence that is capable of creating new content, such as text, images, audio, and synthetic data, based on the patterns it has learned from existing content. It is central to the video's theme as it is the main subject being discussed. For instance, the script defines generative AI and explores its various applications, such as generating text, images, and even code.

💡Artificial Intelligence (AI)

Artificial Intelligence, or AI, is a branch of computer science that focuses on creating intelligent agents and systems capable of reasoning, learning, and acting autonomously. The video provides context to AI by differentiating it from machine learning and explaining its role in creating systems that mimic human thought and action.

💡Machine Learning

Machine learning is a subfield of AI that involves training a model on input data so that it can make predictions on new, unseen data. The script explains that machine learning enables computers to learn without explicit programming, which is foundational to understanding how generative AI models are developed and function.

💡Supervised Learning

Supervised learning is a type of machine learning where the model is trained on labeled data, which includes examples with corresponding correct answers. The video uses the example of a restaurant owner using historical data to predict tip amounts, illustrating how supervised learning models learn from past examples to make future predictions.

💡Unsupervised Learning

Unsupervised learning is another class of machine learning where the model works with unlabeled data, discovering patterns and structures without predefined outcomes. The script mentions grouping employees based on tenure and income as an example of unsupervised learning, highlighting its use in data exploration and clustering.

💡Deep Learning

Deep learning is a subset of machine learning that uses artificial neural networks to process complex patterns in data. The video explains that deep learning models, inspired by the human brain, consist of many layers allowing them to learn from both labeled and unlabeled data through supervised, unsupervised, and semi-supervised methods.

💡Neural Networks

Neural networks are computing systems inspired by the human brain, composed of interconnected nodes or neurons that can learn to perform tasks. The script describes how these networks are used in deep learning to enable generative AI models to understand and generate complex patterns in data.

💡Generative Model

A generative model is a type of machine learning model that learns the probability distribution of data and generates new, unseen data instances. The video contrasts generative models with discriminative models, explaining that generative models can create new content, such as images, based on learned patterns.

💡Discriminative Model

Discriminative models are used to classify or predict labels for data points based on learned relationships between features and labels. The script uses the example of a model classifying whether an image is a dog or a cat, showing how discriminative models differ from generative models in their output.

💡Transformers

Transformers are a type of neural network architecture that has revolutionized natural language processing. The video mentions Transformers as the underlying technology that enables generative AI models to process sequences of data and generate human-like text in response to prompts.

💡Prompt

A prompt is a short text input given to a generative AI model to guide its output. The script discusses the importance of crafting effective prompts to generate desired responses from large language models, emphasizing their role in controlling the content creation process.

💡Foundation Models

Foundation models are large AI models pre-trained on a vast amount of data and can be adapted for various downstream tasks. The video introduces foundation models as a way to revolutionize industries by offering capabilities like sentiment analysis and object recognition, highlighting their potential for diverse applications.

💡Vertex AI

Vertex AI is a Google Cloud platform that allows developers to explore, customize, and deploy generative AI models. The script mentions Vertex AI Studio and Vertex AI as tools that facilitate the creation of AI applications with little to no coding experience, showcasing Google Cloud's support for generative AI development.

💡Code Generation

Code generation is an application of generative AI where the model creates or translates code based on user input. The video provides an example of using a generative AI model to convert a pandas data frame into a JSON file, demonstrating how code generation can assist in software development tasks.

Highlights

Introduction to Generative AI by Roger Martinez, a developer relations engineer at Google Cloud.

Generative AI's capability to produce content like text, imagery, audio, and synthetic data.

The distinction between AI, which is a broader discipline, and machine learning, a subset of AI focused on model training from data.

Supervised and unsupervised machine learning models, with examples of their applications.

Deep learning as a subset of machine learning using artificial neural networks to process complex patterns.

The role of semi-supervised learning in training neural networks with both labeled and unlabeled data.

Generative AI as a subset of deep learning that uses neural networks for creating new content.

The difference between generative and discriminative models in AI, with examples of each.

How generative AI learns underlying data structures to create new, similar samples.

The use of prompts in controlling the output of generative AI models.

Types of generative AI models including text-to-text, text-to-image, text-to-video, and text-to-3D.

Foundation models as large AI models pre-trained for adaptation to various downstream tasks.

The potential of foundation models to revolutionize industries and their applications in tasks like sentiment analysis and object recognition.

Google's Vertex AI Studio for exploring and customizing generative AI models.

Vertex AI for building AI search and conversational interfaces with no coding experience.

Palm API for experimenting with Google's large language models and tools.

Gemini, a multimodal AI model capable of understanding text, images, audio, and code.

Model Garden, a continuously updated collection of models for diverse applications.

Transcripts

play00:00

[Music]

play00:07

hi and welcome to introduction to

play00:08

generative AI don't know what that is

play00:11

then you're in the perfect place I'm

play00:13

Roger Martinez and I am a developer

play00:15

relations engineer at Google cloud and

play00:17

it's my job to help developers learn to

play00:19

use Google cloud in this course I'll

play00:22

teach you four things how to Define

play00:25

generative AI explain how generative AI

play00:28

Works describe generative AI model types

play00:32

describe generative AI applications but

play00:35

let's not get swept away with all of

play00:36

that yet let's start by defining what

play00:39

generative AI is first generative AI has

play00:43

become a buzzword but what is it

play00:45

generative AI is a type of artificial

play00:48

intelligence technology that can produce

play00:50

various types of content including text

play00:53

imagery audio and synthetic

play00:56

data but what is artificial

play01:00

intelligence since we are going to

play01:02

explore generative artificial

play01:03

intelligence let's provide a bit of

play01:06

context two very common questions asked

play01:09

are what is artificial intelligence and

play01:13

what is the difference between Ai and

play01:15

machine learning let's get into it so

play01:18

one way to think about it is that AI is

play01:20

a discipline like how physics is a

play01:22

discipline of science AI is a branch of

play01:25

computer science that deals with the

play01:27

creation of intelligent agents and our

play01:29

system systems that can reason learn and

play01:32

act

play01:33

autonomously are you with me so far

play01:35

essentially AI has to do with the theory

play01:38

and methods to build machines that think

play01:40

and act like humans pretty simple right

play01:44

now let's talk about machine learning

play01:47

machine learning is a subfield of AI it

play01:50

is a program or system that trains a

play01:53

model from input data the trained model

play01:56

can make useful predictions from new

play01:58

never-before seen data drawn from the

play02:00

same one used to train the model this

play02:03

means that machine learning gives the

play02:05

computer the ability to learn without

play02:07

explicit

play02:08

programming so what do these machine

play02:10

learning models look like two of the

play02:12

most common classes of machine learning

play02:14

models are unsupervised and supervised

play02:17

ml models the key difference between the

play02:20

two is that with supervised models we

play02:22

have labels labeled data is data that

play02:25

comes with a tag like a name a type or a

play02:29

number

play02:31

unlabeled data is data that comes with

play02:33

no

play02:34

tag so what can you do with supervised

play02:37

and unsupervised

play02:38

models this graph is an example of the

play02:41

sort of problem a supervised model might

play02:43

try to solve for example let's say

play02:46

you're the owner of a restaurant what

play02:48

type of food do they serve let's say

play02:52

pizza or

play02:54

dumplings no let's say pizza I like

play02:56

pizza anyway you have historical data of

play02:59

the bill amount and how much different

play03:02

people tipped based on the order type

play03:04

pickup or delivery in supervised

play03:07

learning the model learns from past

play03:09

examples to predict future values here

play03:12

the model uses a total bill amount data

play03:14

to predict the future tip amount based

play03:16

on whether an order was picked up or

play03:19

delivered also people tip your delivery

play03:22

drivers they work really hard this is an

play03:25

example of the sort of problem that an

play03:27

unsupervised model might try to solve

play03:29

here you want to look at tenure and

play03:31

income and then group or cluster

play03:33

employees to see whether someone is on

play03:35

the fast trck nice work blue shirt

play03:38

unsupervised problems are all about

play03:40

discovery about looking at the raw data

play03:42

and seeing if it naturally falls into

play03:45

groups this is a good start but let's go

play03:48

a little deeper to show this difference

play03:50

graphically because understanding these

play03:51

Concepts is the foundation for your

play03:53

understanding of generative

play03:55

AI in supervised learning testing data

play03:58

values X our input into the model the

play04:01

model outputs a prediction and Compares

play04:04

it to the training data used to train

play04:05

the model if the predicted test data

play04:08

values and actual training data values

play04:10

are far apart that is called error the

play04:14

model tries to reduce this error until

play04:16

the predicted and actual values are

play04:18

closer together this is a classic

play04:21

optimization

play04:22

problem so let's check in so far we've

play04:25

explored differences between artificial

play04:27

intelligence and machine learning and

play04:29

supervised and unsupervised learning

play04:32

that's a good start but what's next

play04:35

let's briefly explore where deep

play04:37

learning fits as a subset of machine

play04:40

learning methods and then I promise

play04:42

we'll start talking about

play04:44

gen while machine learning is a broad

play04:46

field that encompasses many different

play04:48

techniques deep learning is a type of

play04:50

machine learning that uses artificial

play04:52

neural networks allowing them to process

play04:54

more complex patterns than machine

play04:57

learning artificial neural networks are

play04:59

inspired by the human brain pretty cool

play05:02

huh like your brain they are made up of

play05:05

many interconnected nodes or neurons

play05:08

that can learn to perform tasks by

play05:10

processing data and making

play05:12

predictions deep learning models

play05:14

typically have many layers of neurons

play05:16

which allows them to learn more complex

play05:18

patterns than traditional machine

play05:19

learning

play05:21

models neural networks can use both

play05:23

labeled and unlabeled data this is

play05:26

called semi-supervised learning in semi

play05:29

supervised learning a neural network is

play05:31

trained on a small amount of labeled

play05:33

data and a large amount of unlabeled

play05:35

data the labeled data helps the neural

play05:38

network to learn the basic concepts of

play05:40

the tasks while the unlabeled data helps

play05:42

the neural network to generalize to new

play05:46

examples now we finally get to where

play05:48

generative AI fits into this AI

play05:50

discipline gen AI is a subset of deep

play05:53

learning which means it uses artificial

play05:56

neural networks can process both labeled

play05:58

and unlabeled data using supervised

play06:01

unsupervised and semi-supervised

play06:03

methods large language models are also a

play06:06

subset of deep learning see I told you

play06:09

I'd bring it all back to gen good job me

play06:13

deep learning models or machine learning

play06:15

models in general can be divided into

play06:16

two types generative and

play06:20

discriminative a discriminative model is

play06:22

a type of model that is used to classify

play06:24

or predict labels for data points

play06:27

discriminative models are typically

play06:29

trained on the data set of labeled data

play06:31

points and they learn the relationship

play06:33

between the features of the data points

play06:35

and the

play06:36

labels once a discriminative model is

play06:38

trained it can be used to predict the

play06:40

label for new data

play06:43

points a generative model generates new

play06:46

data instances based on a learned

play06:48

probability distribution of existing

play06:50

data generative models generate new

play06:53

contents take this example here the

play06:56

discriminative model learns the

play06:58

conditional probability distribution or

play07:00

the probability of Y our output given X

play07:03

our input that this is a dog and

play07:06

classifies it as a dog and not a cat

play07:09

which is great because I'm allergic to

play07:11

cats the generative model learns The

play07:13

Joint probability distribution or the

play07:16

probability of X and Y P of x y and

play07:20

predicts the conditional probability

play07:22

that this is a dog and can then generate

play07:24

a picture of a dog good boy I'm going to

play07:28

name him Fred

play07:30

to summarize generative models can

play07:33

generate new data instances and

play07:35

discriminative models discriminate

play07:37

between different kinds of data

play07:40

instances one more quick example the top

play07:44

image shows a traditional machine

play07:45

learning model which attempts to learn

play07:47

the relationship between the data and

play07:49

the label or what you want to predict

play07:52

the bottom image shows a generative AI

play07:54

model which attempts to learn patterns

play07:56

on content so that it can generate new

play07:58

content

play08:00

so what if someone challenges you to a

play08:03

game of is it gen or not I've got your

play08:07

back this illustration shows a good way

play08:10

to distinguish between what is Gen and

play08:12

what is

play08:13

not it is not gen when the output or Y

play08:18

or label is a number or a class for

play08:21

example spam or not spam or a

play08:25

probability it is Gen when the output is

play08:29

natural language like speech or text

play08:32

audio or an image like Fred from before

play08:35

for

play08:36

example let's get a little mathy to

play08:39

really show the difference visualizing

play08:41

this mathematically would look like this

play08:44

if you haven't seen this for a while the

play08:46

yals F ofx equation calculates the

play08:48

dependent output of a process given

play08:50

different inputs the y stands for the

play08:53

model output the F embodies a function

play08:56

used in the calculation or model and and

play08:59

the X represents the input or inputs

play09:02

used for the

play09:03

formula as a reminder inputs are the

play09:06

data like comma separated value files

play09:09

text files audio files or image files

play09:12

like Fred so the model output is a

play09:16

function of all the inputs if the Y is a

play09:19

number like predicted sales it is not

play09:22

generative AI if Y is a sentence like

play09:26

Define sales it is generative as the

play09:30

question would elicit a text

play09:32

response the response will be based on

play09:34

all the massive large data the model was

play09:36

already trained on so the traditional ml

play09:40

supervised learning process takes

play09:42

training code and label data to build a

play09:44

model depending on the use case or

play09:47

problem the model can give you a

play09:48

prediction classify something or cluster

play09:52

something now let's check out how much

play09:54

more robust the generative AI process is

play09:57

in

play09:58

comparison the generative AI process can

play10:01

take training code labeled data and

play10:04

unlabeled data of all data types and

play10:06

build a foundation model the foundation

play10:10

model can then generate new content it

play10:12

can generate text code images audio

play10:16

video and more we've come a long way

play10:20

from traditional programming to neural

play10:21

networks to generative

play10:23

models in traditional programming we

play10:26

used to have to hardcode the rules for

play10:28

distinguishing a cat

play10:29

type animal legs four ears two fur yes

play10:37

likes yarn catnip dislikes

play10:42

Fred in the wave of neural networks we

play10:45

could give the networks pictures of cats

play10:47

and dogs and ask is this a cat and it

play10:50

would predict a cat or not a cat what's

play10:53

really cool is that in the generative

play10:55

wave we as users can generate our own

play10:58

content whether it be text images audio

play11:01

video or more for example models like

play11:05

Palm or Pathways language model or

play11:08

Lambda language model for dialogue

play11:10

applications inest very very large data

play11:14

from multiple sources across the

play11:16

internet and build Foundation language

play11:18

models we can use simply by asking a

play11:20

question whether typing it into a prompt

play11:23

or verbally talking into the prompt

play11:26

itself so when you ask it what's a cat

play11:30

it can give you everything it's learned

play11:31

about a

play11:32

cat now let's make things a little more

play11:35

formal with an official definition what

play11:38

is generative

play11:40

AI geni is a type of artificial

play11:43

intelligence that creates new content

play11:45

based on what it has learned from

play11:46

existing content the process of learning

play11:49

from existing content is called training

play11:52

and results in the creation of a

play11:53

statistical

play11:55

model when given a prompt gen uses a

play11:58

statistical model to predict what an

play12:00

expected response might be and this

play12:02

generates new content it learns the

play12:05

underlying structure of the data and can

play12:07

then generate new samples that are

play12:09

similar to the data it was trained on

play12:12

like I mentioned earlier a generative

play12:14

language model can take what has learned

play12:15

from the examples it's been shown and

play12:17

creat something entirely new based on

play12:19

that

play12:20

information that's why we use the word

play12:24

generative but large language models

play12:26

which generate novel combinations of

play12:28

texts in the form of natural sounding

play12:30

language are only one type of generative

play12:33

AI a generative image model takes an

play12:36

image as input and can output text

play12:38

another image or video for example under

play12:42

the output text you can get visual

play12:44

question and answering while under

play12:46

output image an image completion is

play12:48

generated and under output video

play12:50

animation is

play12:51

generated a generative language model

play12:53

takes text as input and can output more

play12:56

text an image audio or decisions for

play12:59

example under the output text question

play13:02

and answering is generated and under

play13:04

output image a video is

play13:05

generated I mentioned that generative

play13:08

language models learn about patterns in

play13:09

language through training data check out

play13:12

this example based on things learned

play13:14

from its training data it offers

play13:16

predictions of how to complete this

play13:19

sentence I'm making a sandwich with

play13:21

peanut butter

play13:22

and jelly pretty simple right so given

play13:27

some text it can predict what comes next

play13:30

thus generative language models are

play13:32

pattern matching systems they learn

play13:34

about patterns based on the data that

play13:36

you provide here is the same example

play13:38

using Gemini which is trained on a

play13:40

massive amount of Text data and it's

play13:42

able to communicate and generate

play13:44

humanlike text in response to a wide

play13:46

range of prompts and questions see how

play13:49

detailed the response can

play13:50

be here is another example that's just a

play13:53

little more complicated than peanut

play13:54

butter and jelly sandwiches the meaning

play13:57

of life is

play13:59

and even with a more ambiguous question

play14:01

Gemini gives you a contextual answer and

play14:04

then shows the highest probability

play14:06

response the power of generative AI

play14:09

comes from the use of

play14:11

Transformers Transformers produced the

play14:13

2018 revolution in natural language

play14:16

processing at a high level a Transformer

play14:19

model consists of an encoder and a

play14:21

decoder the encoder encodes the input

play14:24

sequence and passes it to the decoder

play14:26

which learns how to decode the

play14:28

representations for a relevant

play14:30

task sometimes Transformers run into

play14:33

issues though hallucinations are words

play14:36

or phrases that are generated by the

play14:38

model that are often nonsensical or

play14:40

grammatically incorrect see not great

play14:44

hallucinations can be caused by a number

play14:46

of factors like when the model is not

play14:49

trained on enough data it's trained on

play14:52

noisy or dirty data is not given enough

play14:54

context or is not given enough

play14:58

constraints hallucinations can be a

play15:00

problem for Transformers because they

play15:02

can make the output text difficult to

play15:04

understand they can also make the model

play15:06

more likely to generate incorrect or

play15:08

misleading information so put simply

play15:11

hallucinations are

play15:13

bad let's pivot slightly and talk about

play15:16

prompts a prompt is a short piece of

play15:19

text that is given to a large language

play15:21

model or llm as input and it can be used

play15:24

to control the output of the model in a

play15:26

variety of ways prompted design is the

play15:29

process of creating a prompt that will

play15:31

generate the desired output from an

play15:34

llm like I mentioned earlier generative

play15:37

AI depends a lot on the training data

play15:39

that you have fed into it it analyzes

play15:41

the patterns and structures of the input

play15:43

data and thus

play15:45

learns but with access to a browser

play15:47

based prompt you the user can generate

play15:50

your own

play15:51

content so let's talk a little bit about

play15:53

the model types available to us when

play15:55

text is our input and how they can be

play15:57

helpful in solving problems

play15:59

like never being able to understand my

play16:01

friends when they talk about

play16:02

soccer the first is text to text text to

play16:07

text models take a natural language

play16:08

input and produce text output these

play16:11

models are trained to learn the mapping

play16:13

between a pair of text for example

play16:15

translating from one language to

play16:18

others next we have text to image text

play16:22

to image models are trained on a large

play16:24

set of images each captioned with a

play16:27

short text description diffusion is one

play16:30

method used to achieve this there's also

play16:33

text to video and text to 3D text to

play16:37

video models aim to generate a video

play16:38

representation from text input the input

play16:42

text can be anything from a single

play16:43

sentence to a full script and the output

play16:45

is a video that corresponds to the input

play16:48

text similarly text of 3D models

play16:51

generate threedimensional objects that

play16:53

correspond to a user's text description

play16:56

for use in games or other 3D worlds

play16:59

and finally there's text to task text to

play17:02

task models are trained to perform a

play17:04

defined task or action based on text

play17:07

input this task can be a wide range of

play17:09

actions such as answering a question

play17:11

performing a search making a prediction

play17:14

or taking some sort of action for

play17:16

example a textto taxt model could be

play17:18

trained to navigate a web user interface

play17:20

or make changes to a doc through a

play17:22

graphical user

play17:23

interface see with these models I can

play17:26

actually understand what my friends are

play17:27

talking about when the game

play17:29

Amazon another model that's larger than

play17:32

those I mentioned is a foundation model

play17:34

which is a large AI model pre-trained on

play17:36

a vast quantity of data designed to be

play17:39

adapted or fine-tuned to a wide range of

play17:41

Downstream tasks such as sentiment

play17:44

analysis image captioning and object

play17:47

recognition Foundation models have the

play17:49

potential to revolutionize many

play17:51

Industries including Healthcare finance

play17:54

and customer service they can even be

play17:56

used to detect fraud and provide

play17:58

personalized customer

play17:59

support if you're looking for foundation

play18:02

models vertex AI offers a model Garden

play18:04

that includes Foundation models the

play18:07

language Foundation models include Palm

play18:09

API for chat and text the vision

play18:12

Foundation models include stable

play18:14

diffusion which have been shown to be

play18:15

effective at generating high quality

play18:17

images from text

play18:19

descriptions let's say you have a use

play18:21

case where you need to gather sentiments

play18:22

about how your customers feel about your

play18:24

product or service you can use the

play18:27

classification task sentiment analys

play18:29

task model same for vision tasks if you

play18:32

need to perform occupancy analytics

play18:35

there is a task specific model for your

play18:37

use

play18:38

case so those are some examples of

play18:40

foundation models we can use but can gen

play18:43

help with code for your apps absolutely

play18:46

shown here are generative AI

play18:48

applications you can see there's quite a

play18:51

lot let's look at an example of code

play18:53

generation shown in the second block

play18:55

under the code at the top in this

play18:58

example I input a code file conversion

play19:00

problem converting from python to

play19:03

Json I use Gemini and insert into the

play19:05

prompt box I have a pandas data frame

play19:08

with two columns one with a file name

play19:11

and one with the hour in which it is

play19:14

generated I'm trying to convert it into

play19:16

a Json file in the format shown on

play19:18

screen Gemini Returns the steps I need

play19:20

to do this and here my output is an

play19:23

adjon format pretty cool huh well get

play19:26

ready it gets even better I happen to be

play19:29

using Google's free browser based

play19:31

jupyter notebook and can simply export

play19:33

the python code to Google's collab so to

play19:36

summarize Gemini code generation can

play19:38

help you debug your lines of source code

play19:41

explain your code to you line by line

play19:44

craft seq queries for your database

play19:46

translate code from one language to

play19:48

another generate documentation and

play19:51

tutorials for source code I'm going to

play19:54

tell you about three other ways Google

play19:55

Cloud can help you get more out of

play19:56

generative AI the first is vertex AI

play20:01

Studio vertex AI Studio lets you quickly

play20:04

explore and customize generative AI

play20:07

models that you can leverage in your

play20:09

applications on Google Cloud vertex AI

play20:12

Studio helps developers create and

play20:14

deploy generative AI models by providing

play20:17

a variety of tools and resources that

play20:19

make it easy to get

play20:21

started for example there is a library

play20:24

of pre-trained models tool for

play20:26

fine-tuning models tool for deploying

play20:28

models production and Community forum

play20:31

for developers to share ideas and

play20:33

collaborate next we have vertex AI which

play20:36

is particularly helpful for all of you

play20:39

who don't have much coding experience

play20:41

you can build generative AI search and

play20:43

conversations for customers and

play20:44

employees with vertex AI search and

play20:46

conversation formerly gen app builder

play20:50

build with little or no coding and no

play20:52

prior machine learning

play20:54

experience vertex AI can help you create

play20:57

your own chat Bots digital assistance

play21:00

custom search engines knowledge bases

play21:03

training applications and more and

play21:06

lastly we have Palm API Palm API lets

play21:10

you test and experiment with Google's

play21:11

large language models and gen tools to

play21:15

make prototyping quick and more

play21:16

accessible developers can integrate Palm

play21:18

API with maker suite and use it to

play21:21

access the API using graphical user

play21:24

interface the suite includes a number of

play21:26

different tools such as a model training

play21:28

tool

play21:29

a model deployment tool and a model

play21:31

monitoring tool and what do these tools

play21:34

do I'm so glad you asked the model

play21:37

training tool helps developers train ml

play21:39

models on their data using different

play21:41

algorithms the model deployment tool

play21:43

helps developers deploy ml models to

play21:45

production with a number of different

play21:46

deployment options the model monitoring

play21:49

tool helps developers monitor the

play21:51

performance of their ml models in

play21:52

production using a dashboard and a

play21:55

number of different

play21:56

metrics lastly there is Gemini a

play22:00

multimodal AI model unlike traditional

play22:03

language models it's not limited to

play22:05

understanding text alone it can analyze

play22:08

images understand the nuances of audio

play22:11

and even interpret programming code this

play22:14

allows Gemini to perform complex tasks

play22:16

that were previously impossible for

play22:18

AI due to its Advanced architecture

play22:21

Gemini is incredibly adaptable and

play22:24

scalable making it suitable for diverse

play22:27

applications model Garden is

play22:29

continuously updated to include new

play22:31

models and now you know absolutely

play22:34

everything about generative AI okay

play22:37

maybe you don't know everything but you

play22:38

definitely know the basics thank you for

play22:40

watching our course and make sure to

play22:42

check out our other videos if you want

play22:43

to learn more about how you can use

play22:47

[Music]

play22:53

AI

Rate This

5.0 / 5 (0 votes)

الوسوم ذات الصلة
Generative AIArtificial IntelligenceMachine LearningNeural NetworksData ModelingContent CreationGoogle CloudDeveloper ToolsAI ApplicationsModel Training
هل تحتاج إلى تلخيص باللغة الإنجليزية؟