SlideShare une entreprise Scribd logo
Cloud AIGenAI Overview
SepĞ
ember - OcĞ
ober 2023
Romin Irani,
Developer Advocate, Google Cloud
Table of Contents
Primer on LLM and Generative AI
What are Google’s offerings?
01
02
Demo
This Week’s Assignment
03
04
PRIMERON LARGE
LANGUAGE MODELS
& GENERATIVE AI
We’re in anAI-driven revolution
Source: AI: Recent Trends and Applications, Emerging Communication and Computing
Steam Power
1784
Electricity
1870
Information
Technology
1969
Artificial Intelligence
Today
AI
Proprietary +Confidential
NLP Evolution
What’s the noun in
this sentence?
What’s the invoice
amount?
Extraction
LLMs portend both quantitative and qualitative jumps in AI
capabilities
Conversational AI
Write an essay
Write some code
Generation
Translate this text to
Korean
Summarize this
document
Transformation
Are these the same
things?
Is the invoice vendor
recognized?
Matching
LLMs improve performance on
“classical NL” use cases
LLMs increasingly enable
new use cases.
Is the sentence’s
sentiment positive?
Is this an invoice?
Classification
This revolution started at Google and we continue to innovate
Responsible AIat the foundation
Google invents
Transformer
kickstarting LLM
revolution
Google’s
groundbreaking
large language
model, BERT
AlphaFold predicts
structures of all
known proteins
Text-to-Text
Transfer Transformer
LLM 10B P model open
sourced
Google LaMDA
model trained to
converse
Google PaLM
single model to
generalize across
domains
A conversational AI
Service powered by
LaMDA.
Proprietary +Confidential
What is a Large Language Model?
Traditional
programming
Wave of
neural networks
~2012
Cat:
type: animal
legs: 4
ears: 2
fur: yes
likes: yarn, catnip
(etc …)
This is a cat.
This is not a cat.
Is this a cat?
Yes
So, you’ve learned about
cats and millions of other
concepts …what’s a cat?
Proprietary +Confidential
Go read this huuuuuuge
pile of books.
A cat is …
Generative
language models
LaMDA, PaLM, GPT-3, etc.
Proprietary +Confidential
First, some vocab
Generative Model: An ML model that produces content, including language, code,
imagery, music, video, etc.
Large Language Model: machine learning models that are really good at
understanding and generating human language. Large refers to both size and
complexity of the neural network itself, as well as the size of the dataset it was trained
on. Can also be used for non-generative language tasks (eg classification)
Transformer: The neural network architecture underlying most of today’s generative
models (and, more widely, most SOTA ML models). Published by Google in 2017.
Proprietary +Confidential
What is a language model?
[...] [...]
[...]
honesty
[...]
the
is best
[...]
approach ...
way
Most likely next word Next most likely next word
Less likely next words
policy
Proprietary +Confidential
What is a language model?
To be or not to be.
Mumbai is to India, what London is to England
Masala Dosa is a popular South Indian Dish
Proprietary +Confidential
Prompt: the text you feed to your model
Prompt Design: The art and science of
figuring out what text to feed your language
model to get it to take on the behavior you
want.
Proprietary +Confidential
What is a language model?
Write a poem about Cricket
Cricket, oh cricket, game of my heart,
Where legends are born and dreams start.
With bat and ball, we play as one,
Under the sun, until the day is done.
From the village green to the grandest stage,
Cricket unites us, age after age.
With every run, we cheer and shout,
As our heroes make us proud.
…
Zero-shot
Proprietary +Confidential
Give examples
Convert from english to french.
peppermint : menthe poivrée
desert cactus : cactus du désert
potato : pomme de terre
onion :
…
Few-shot
Proprietary +Confidential
Give examples
Convert from english to french.
peppermint : menthe poivrée
desert cactus : cactus du désert
potato : pomme de terre
onion : oignon
Few-shot
Proprietary +Confidential
Give examples
Convert from english to french.
peppermint : menthe poivrée
desert cactus : cactus du désert
potato : pomme de terre
{$USER_INPUT}:
Few-shot
Proprietary +Confidential
Give examples
Convert Python to Javascript.
Python: print("hello world")
Javascript: console.log("hello world")
Python: for x in range(0, 100):
Javascript:
Few-shot
Proprietary +Confidential
Give examples
Convert Python to Javascript.
Python: print("hello world")
Javascript: console.log("hello world")
Python: for x in range(0, 100):
Javascript:
Few-shot
INSTRUCTIO
N
Proprietary +Confidential
Give examples
Convert Python to Javascript.
Python: print("hello world")
Javascript: console.log("hello world")
Python: for x in range(0, 100):
Javascript:
Few-shot
EXAMPL
E
Proprietary +Confidential
Give examples
Convert Python to Javascript.
Python: print("hello world")
Javascript: console.log("hello world")
Python: for x in range(0, 100):
Javascript:
Few-shot
INPU
T
Proprietary +Confidential
Give examples
Convert Python to Javascript.
Python: print("hello world")
Javascript: console.log("hello world")
Python: for x in range(0, 100):
Javascript:
Few-shot
nudge the LLM
to output
javascript
Proprietary +Confidential
Give examples
Convert Python to Javascript.
Python: print("hello world")
Javascript: console.log("hello world")
Python: for x in range(0, 100):
Javascript:for (var x = 0; x < 100; x++)
Few-shot
Proprietary +Confidential
Give examples
Convert Python to Javascript.
Python: print("hello world")
Javascript: console.log("hello world")
Python: {$USER_INPUT}
Javascript:
Few-shot
Proprietary +Confidential
What is a language model?
User : Who are you?
Bot: I am Sachin Tendulkar, the famous cricketer
and the best batsman the world has seen.
User: Where do you live?
Bot: I live in Mumbai.
User: What do you currently do?
Bot: …
Dialog
Proprietary +Confidential
What is a language model?
User : Who are you?
Bot: I am Sachin Tendulkar, the famous cricketer
and the best batsman the world has seen.
User: Where do you live?
Bot: I live in Mumbai.
User: What do you currently do?
Bot: …
Dialog
Prompt
Proprietary +Confidential
Customizing Chat
User : Who are you?
Bot: I am Sachin Tendulkar, the famous cricketer
and the best batsman the world has seen.
User: Where do you live?
Bot: I live in Mumbai.
User: {USER_INPUT}
Bot: I am currently retired from cricket, but I am
still involved in the game as a mentor and
ambassador.
Dialog
Prompt
Proprietary +Confidential
Prompt Design is tricky
The art and science of figuring out what text to feed
your language model to get it to take on the
behavior you want.
Proprietary +Confidential
A few observations:
1. LLMs are designed to predict the next word in a sequence. They
are not required to be “truthful” when doing so.
2. LLMs can generate plausible-looking statements that are irrelevant
or factually incorrect.
3. Hallucinations: LLM’s can generate false statements.
Proprietary +Confidential
What is an LLM?
[...] [...]
[...]
honesty
[...]
the
is best
[...]
approach ...
way
Most likely next word Next most likely next word
Less likely next words
policy
Proprietary +Confidential
Decoding Strategies
The sky was full of
[sīars (0.5),clouds (0.23),birds (0.05) …dusī (0.03)]
INPUT
OUTPUT
Proprietary +Confidential
Decoding Strategies
Which word do we return?
The sky was full of
[sīars (0.5),clouds (0.23),birds (0.05) …dusī (0.03)]
INPUT
OUTPUT
Proprietary +Confidential
Greedy Decoding
Select word with highest probability
The sky was full of
[sīars (0.5),clouds (0.23),birds (0.05) …dusī (0.03)]
INPUT
OUTPUT
Proprietary +Confidential
Random Sampling
Randomly sample over the distribution
The sky was full of
[sīars (0.5),clouds (0.23),birds (0.05) …dusī (0.03)]
INPUT
OUTPUT
Proprietary +Confidential
Temperature
T
emperature is a number used to tune the degree of randomness.
Lower temperature →less randomness
● T
emperature of 0 is deterministic (greed decoding)
● Generally better for tasks like q&a and summarization where you expect a
more “correct” answer
● If you notice the model repeating itself, the temp is probably too low
High temperature → more randomness
● Can result in more unusual (you might even say creative) response
● If you notice the model going off topic or being nonsensical, the temp is
likely too high
Proprietary +Confidential
Top K
[sīars (0.5),clouds (0.23),birds (0.05) …dusī (0.03)]
Only sample from top K tokens
K =2
Top P
[sīars (0.5),clouds (0.23),birds (0.05) …dusī (0.03)]
Chooses from smallest possible set
of words whose cumulative
probability >=probability P
P =.75
What are large language models?
ML algorithms that can recognize, predict, and
generate human languages
Pre-trained on petabyte scale text-based datasets
resulting in large models with 10s to 100s of
billions of parameters
LLMs are normally pre-trained on a large corpus
of text followed by fine-tuning on a specific task
Go read this huuuuuuge pile
of books.
So, you’ve learned about
cats and millions of other
concepts …what’s a cat?
A cat is a small, domesticated
carnivorous mammal.
Generative language models
LaMDA, PaLM, GPT-3, etc.
LLMs can also be called Large Models (includes all
types of data modality) and Generative AI (a
model that produces content)
Why are large language models
different?
LLMs are characterized by emergent
abilities, or the ability to perform tasks that
were not present in smaller models.
LLMs contextual understanding of human
language changes how we interact with
data and intelligent systems.
LLMs can find patterns and connections in
massive, disparate data corpora.
Search
Conversation
Content generation
Proprietary +Confidential
LLM applications in industry
Customer Support
● Interactive Humanlike Chatbots
● Conversation summarization for agents
● Sentiment Analysis and Entity extraction
Technology
● Generating Code Snippets from description
● Code Translation between languages
● Auto Generated Documentation from Code
Financial Services
● Auto-generated summary of documents
● Entity Extraction from KYC documents
HealthCare
● Domain specific entity extraction
● Case documentation summary
Retail
● Generating product descriptions
Media and Gaming
● Designing game storylines, scripts
● Auto Generated blogs, articles, and tweets
● Grammar Correction and text-formatting
Proprietary +Confidential
Traditional ML Dev
● Needs 1000+ training examples
to get started
● Needs ML expertise (probably)
● Needs compute time +hardware
● Thinks about minimizing a loss
function
● Needs 0 training examples*
● Does not need ML expertise*
● Does not need to train a model*
● Thinks about prompt design
LLM Dev
*T
o get started
WHAT ARE GOOGLE’S
OFFERINGS?
Consumers & enterprises have different needs….
Plan a 3 day
trip to
Patagonia
Create a
valentine
poem.
A picture of a
panda playing
yahtzee
How to make GF
pancakes?
Iwant to
write a novel.
How do Iget
started?
Create a jazz
song for a bday
card
How do we
control our
data
How do we deal with
fraud &security
We need to be
accurate &
explainable
How do we integrate our
existing data &
applications
How will we
control
costs?
Bard +MakerSuite VertexAI +Duet AI
Consumers Enterprises
Google’s research drives a family of models
PaLM 2
Across many
modaliīies….Texī,
Code,Image, Dialogue,
Mulīimodal…..
Foundation Model
Families
Codey
Imagen
That power experiences for all users
Consumer /Hobbyist
Experiences
Bard
MakerSuite
Enterprise Experiences
AI Builder Experiences
VertexAI
Generative AIApp Builder
Med-PaLM 2
Sec-PaLM
● Unicorn
● Bison
● Otter
● Gecko
Animal indicates size
Numbers indicate version
001-> 002
Signifies refresh
Models for AI Builders
Example:
PALM API’s Model:
text-bison-001
Powers
In-console Code &Chat Assistance
SecurityAIWorkbench
Foundation
Models
VertexAI
End-to-End ML Platform
Generative Al
App Builder
Text Chat Code Image
Video
Google Cloud Infrastructure - GPUs/TPUs
Contact Center AI Healthcare AI
Discovery AI
Document AI
Conversation AI
Enterprise
Search
Foundation
Models
Business Users
AI Practitioners
Developers
Audio and
Music
Generative AI
Studio
Generative AI
APIs
Model Garden
Cloud AI Portfolio
To support the needs of Generative AI centric enterprise development
Duet Al for
Google Workspace
Duet Al for
Google Cloud
Duet AIfor Google Workspace Enterprise
Helps you write
in Gmail and Docs
Duet AI works behind the
scenes to help you write —
whether it’s refining existing
work or helping you get started
Helps you visualize
in Slides
With Duet AI, you can easily
create images for
presentations and meetings
from a simple prompt
Helps you organize
in Sheets
Duet AI is here to help you
organize, classify and
analyze your data faster
than ever before
Helps you connect
in Meet
Duet AI helps you look and
sound your best on video
calls so you can focus on the
conversation
Foundation Models
Across a variety of model sizes to address use cases
Embeddings APIfor
Text and Image
Extract semantic information
from unstructured data
PaLM for Text
Custom language tasks
Chirp for
Speech to Text
Build voice enabled applications
PaLM for Chat
Multi-turn conversations with
session context
Codey for
Code Generation
Improve coding and debugging
Now in GA
Allowlist
Imagen for Text to Image
Create and edit images from
simple prompts
Now in GA
Now in GA
Now in GA
Now in GA Now in GA
Announcing - GA onVertexAI
Generative AIStudio
Interact with, tune, and deploy foundation models
A simple UIfor interacting with models
Chat interface to interact with models
Prompt gallery to explore sample use cases
Prompt design to tune models
T
une models with your own data
A variety of tuning methods including tuning with simple
text prompts, fine-tuning, and tuning with human feedback
(RLHF).
Use models in production
Embed into applications by quickly generating and
customizing API code
Multiple modalities
APIs available for Text, Image (Allowlist), Code, and Speech
GA
Demo
NEXT STEPS
If your campus is allocated the Gen AI
Arcade Game :here's the list of labs to
complete
For others:
Visit Generative AIArcade Game and ll
complete the Labs
Visit Google Cloud Computing
Foundations path and complete the
following journeys:
5 Create and Manage Cloud Resources
6Perform Foundational Infrastructure
T
asks in Google Cloud
2 Google Cloud Computing Foundations:
Infrastructure in Google Cloud
Proprietary +Confidential
Learn more about Generative AI at
goo.gle/
generativeai
Thank You

Contenu connexe

Similaire à Build With AI AI Driven Resolution NLP Resolution Revolution Started bt Google PRIMER ON LARGE LANGUAGE MODELS

Text Mining Infrastructure in R
Text Mining Infrastructure in RText Mining Infrastructure in R
Text Mining Infrastructure in RAshraf Uddin
 
Grammarly AI-NLP Club #2 - Recent advances in applied chatbot technology - Jo...
Grammarly AI-NLP Club #2 - Recent advances in applied chatbot technology - Jo...Grammarly AI-NLP Club #2 - Recent advances in applied chatbot technology - Jo...
Grammarly AI-NLP Club #2 - Recent advances in applied chatbot technology - Jo...Grammarly
 
ChatGPT-and-Generative-AI-Landscape Working of generative ai search
ChatGPT-and-Generative-AI-Landscape Working of generative ai searchChatGPT-and-Generative-AI-Landscape Working of generative ai search
ChatGPT-and-Generative-AI-Landscape Working of generative ai searchrohitcse52
 
Making PHP Smarter - Dutch PHP 2023.pptx
Making PHP Smarter - Dutch PHP 2023.pptxMaking PHP Smarter - Dutch PHP 2023.pptx
Making PHP Smarter - Dutch PHP 2023.pptxAdam Englander
 
SNLI_presentation_2
SNLI_presentation_2SNLI_presentation_2
SNLI_presentation_2Viral Gupta
 
Speech recognition - Art of the possible
Speech recognition - Art of the possibleSpeech recognition - Art of the possible
Speech recognition - Art of the possibleJisc
 
Speech Recognition: Art of the possible - DigiFest 2022
Speech Recognition: Art of the possible - DigiFest 2022Speech Recognition: Art of the possible - DigiFest 2022
Speech Recognition: Art of the possible - DigiFest 2022Dominik Lukes
 
Speech Recognition: Art of the possible - DigiFest 2022
Speech Recognition: Art of the possible - DigiFest 2022Speech Recognition: Art of the possible - DigiFest 2022
Speech Recognition: Art of the possible - DigiFest 2022Dominik Lukes
 
Introduction to Prompt Engineering (Focusing on ChatGPT)
Introduction to Prompt Engineering (Focusing on ChatGPT)Introduction to Prompt Engineering (Focusing on ChatGPT)
Introduction to Prompt Engineering (Focusing on ChatGPT)Chameera Dedduwage
 
[GEMINI EXTERNAL DECK] Introduction to Gemini.pptx
[GEMINI EXTERNAL DECK] Introduction to Gemini.pptx[GEMINI EXTERNAL DECK] Introduction to Gemini.pptx
[GEMINI EXTERNAL DECK] Introduction to Gemini.pptxAhmedElbaloug
 
Fusing Modeling and Programming into Language-Oriented Programming
Fusing Modeling and Programming into Language-Oriented ProgrammingFusing Modeling and Programming into Language-Oriented Programming
Fusing Modeling and Programming into Language-Oriented ProgrammingMarkus Voelter
 
Building intelligent applications with Large Language Models
Building intelligent applications with Large Language ModelsBuilding intelligent applications with Large Language Models
Building intelligent applications with Large Language ModelsSpeck&Tech
 
State of NLP and Amazon Comprehend
State of NLP and Amazon ComprehendState of NLP and Amazon Comprehend
State of NLP and Amazon ComprehendEgor Pushkin
 
Key Features Of The Pseudo Code
Key Features Of The Pseudo CodeKey Features Of The Pseudo Code
Key Features Of The Pseudo CodeAngilina Jones
 
The Ring programming language version 1.5.3 book - Part 187 of 194
The Ring programming language version 1.5.3 book - Part 187 of 194The Ring programming language version 1.5.3 book - Part 187 of 194
The Ring programming language version 1.5.3 book - Part 187 of 194Mahmoud Samir Fayed
 
2016-11-12 02 Николай Линкер. Чему Java может поучиться у Haskell и наоборот
2016-11-12 02 Николай Линкер. Чему Java может поучиться у Haskell и наоборот2016-11-12 02 Николай Линкер. Чему Java может поучиться у Haskell и наоборот
2016-11-12 02 Николай Линкер. Чему Java может поучиться у Haskell и наоборотОмские ИТ-субботники
 
The Ring programming language version 1.5.2 book - Part 174 of 181
The Ring programming language version 1.5.2 book - Part 174 of 181The Ring programming language version 1.5.2 book - Part 174 of 181
The Ring programming language version 1.5.2 book - Part 174 of 181Mahmoud Samir Fayed
 
Introduction to the Algorithm Game
Introduction to the Algorithm GameIntroduction to the Algorithm Game
Introduction to the Algorithm GameIvan Orozco
 

Similaire à Build With AI AI Driven Resolution NLP Resolution Revolution Started bt Google PRIMER ON LARGE LANGUAGE MODELS (20)

Text Mining Infrastructure in R
Text Mining Infrastructure in RText Mining Infrastructure in R
Text Mining Infrastructure in R
 
Grammarly AI-NLP Club #2 - Recent advances in applied chatbot technology - Jo...
Grammarly AI-NLP Club #2 - Recent advances in applied chatbot technology - Jo...Grammarly AI-NLP Club #2 - Recent advances in applied chatbot technology - Jo...
Grammarly AI-NLP Club #2 - Recent advances in applied chatbot technology - Jo...
 
ChatGPT-and-Generative-AI-Landscape Working of generative ai search
ChatGPT-and-Generative-AI-Landscape Working of generative ai searchChatGPT-and-Generative-AI-Landscape Working of generative ai search
ChatGPT-and-Generative-AI-Landscape Working of generative ai search
 
Making PHP Smarter - Dutch PHP 2023.pptx
Making PHP Smarter - Dutch PHP 2023.pptxMaking PHP Smarter - Dutch PHP 2023.pptx
Making PHP Smarter - Dutch PHP 2023.pptx
 
Deep Learning in a nutshell
Deep Learning in a nutshellDeep Learning in a nutshell
Deep Learning in a nutshell
 
SNLI_presentation_2
SNLI_presentation_2SNLI_presentation_2
SNLI_presentation_2
 
Speech recognition - Art of the possible
Speech recognition - Art of the possibleSpeech recognition - Art of the possible
Speech recognition - Art of the possible
 
Speech Recognition: Art of the possible - DigiFest 2022
Speech Recognition: Art of the possible - DigiFest 2022Speech Recognition: Art of the possible - DigiFest 2022
Speech Recognition: Art of the possible - DigiFest 2022
 
Speech Recognition: Art of the possible - DigiFest 2022
Speech Recognition: Art of the possible - DigiFest 2022Speech Recognition: Art of the possible - DigiFest 2022
Speech Recognition: Art of the possible - DigiFest 2022
 
Introduction to Prompt Engineering (Focusing on ChatGPT)
Introduction to Prompt Engineering (Focusing on ChatGPT)Introduction to Prompt Engineering (Focusing on ChatGPT)
Introduction to Prompt Engineering (Focusing on ChatGPT)
 
[GEMINI EXTERNAL DECK] Introduction to Gemini.pptx
[GEMINI EXTERNAL DECK] Introduction to Gemini.pptx[GEMINI EXTERNAL DECK] Introduction to Gemini.pptx
[GEMINI EXTERNAL DECK] Introduction to Gemini.pptx
 
Fusing Modeling and Programming into Language-Oriented Programming
Fusing Modeling and Programming into Language-Oriented ProgrammingFusing Modeling and Programming into Language-Oriented Programming
Fusing Modeling and Programming into Language-Oriented Programming
 
Building intelligent applications with Large Language Models
Building intelligent applications with Large Language ModelsBuilding intelligent applications with Large Language Models
Building intelligent applications with Large Language Models
 
State of NLP and Amazon Comprehend
State of NLP and Amazon ComprehendState of NLP and Amazon Comprehend
State of NLP and Amazon Comprehend
 
Key Features Of The Pseudo Code
Key Features Of The Pseudo CodeKey Features Of The Pseudo Code
Key Features Of The Pseudo Code
 
The Ring programming language version 1.5.3 book - Part 187 of 194
The Ring programming language version 1.5.3 book - Part 187 of 194The Ring programming language version 1.5.3 book - Part 187 of 194
The Ring programming language version 1.5.3 book - Part 187 of 194
 
2016-11-12 02 Николай Линкер. Чему Java может поучиться у Haskell и наоборот
2016-11-12 02 Николай Линкер. Чему Java может поучиться у Haskell и наоборот2016-11-12 02 Николай Линкер. Чему Java может поучиться у Haskell и наоборот
2016-11-12 02 Николай Линкер. Чему Java может поучиться у Haskell и наоборот
 
Chatbot_Presentation
Chatbot_PresentationChatbot_Presentation
Chatbot_Presentation
 
The Ring programming language version 1.5.2 book - Part 174 of 181
The Ring programming language version 1.5.2 book - Part 174 of 181The Ring programming language version 1.5.2 book - Part 174 of 181
The Ring programming language version 1.5.2 book - Part 174 of 181
 
Introduction to the Algorithm Game
Introduction to the Algorithm GameIntroduction to the Algorithm Game
Introduction to the Algorithm Game
 

Plus de AshishChanchal1

[Session #2] Leadership - Team & Event Management (1).pptx
[Session #2] Leadership - Team & Event Management (1).pptx[Session #2] Leadership - Team & Event Management (1).pptx
[Session #2] Leadership - Team & Event Management (1).pptxAshishChanchal1
 
_[Session #1] GDSC Program Overview & Effective Writing + Speaking Skills .pptx
_[Session #1] GDSC Program Overview & Effective Writing + Speaking Skills .pptx_[Session #1] GDSC Program Overview & Effective Writing + Speaking Skills .pptx
_[Session #1] GDSC Program Overview & Effective Writing + Speaking Skills .pptxAshishChanchal1
 
Android is a mobile operating system developed by Google, known for its open-...
Android is a mobile operating system developed by Google, known for its open-...Android is a mobile operating system developed by Google, known for its open-...
Android is a mobile operating system developed by Google, known for its open-...AshishChanchal1
 
Get start with Machine Learning and Vertexai
Get start with Machine Learning and VertexaiGet start with Machine Learning and Vertexai
Get start with Machine Learning and VertexaiAshishChanchal1
 
_Solution Challenge_ Introduction for Angular.pptx
_Solution Challenge_ Introduction for Angular.pptx_Solution Challenge_ Introduction for Angular.pptx
_Solution Challenge_ Introduction for Angular.pptxAshishChanchal1
 
_Solution Challenge_ Info Session Presentation december 6 (1).pptx
_Solution Challenge_ Info Session Presentation december 6 (1).pptx_Solution Challenge_ Info Session Presentation december 6 (1).pptx
_Solution Challenge_ Info Session Presentation december 6 (1).pptxAshishChanchal1
 
Intro to Cloud Campaign (1).pptx
Intro to Cloud Campaign (1).pptxIntro to Cloud Campaign (1).pptx
Intro to Cloud Campaign (1).pptxAshishChanchal1
 

Plus de AshishChanchal1 (9)

[Session #2] Leadership - Team & Event Management (1).pptx
[Session #2] Leadership - Team & Event Management (1).pptx[Session #2] Leadership - Team & Event Management (1).pptx
[Session #2] Leadership - Team & Event Management (1).pptx
 
_[Session #1] GDSC Program Overview & Effective Writing + Speaking Skills .pptx
_[Session #1] GDSC Program Overview & Effective Writing + Speaking Skills .pptx_[Session #1] GDSC Program Overview & Effective Writing + Speaking Skills .pptx
_[Session #1] GDSC Program Overview & Effective Writing + Speaking Skills .pptx
 
Android is a mobile operating system developed by Google, known for its open-...
Android is a mobile operating system developed by Google, known for its open-...Android is a mobile operating system developed by Google, known for its open-...
Android is a mobile operating system developed by Google, known for its open-...
 
Get start with Machine Learning and Vertexai
Get start with Machine Learning and VertexaiGet start with Machine Learning and Vertexai
Get start with Machine Learning and Vertexai
 
_Solution Challenge_ Introduction for Angular.pptx
_Solution Challenge_ Introduction for Angular.pptx_Solution Challenge_ Introduction for Angular.pptx
_Solution Challenge_ Introduction for Angular.pptx
 
_Solution Challenge_ Info Session Presentation december 6 (1).pptx
_Solution Challenge_ Info Session Presentation december 6 (1).pptx_Solution Challenge_ Info Session Presentation december 6 (1).pptx
_Solution Challenge_ Info Session Presentation december 6 (1).pptx
 
CLOUD CAMPAIGN.pptx
CLOUD CAMPAIGN.pptxCLOUD CAMPAIGN.pptx
CLOUD CAMPAIGN.pptx
 
Intro to Cloud Campaign (1).pptx
Intro to Cloud Campaign (1).pptxIntro to Cloud Campaign (1).pptx
Intro to Cloud Campaign (1).pptx
 
GDSC INFO.pptx
GDSC INFO.pptxGDSC INFO.pptx
GDSC INFO.pptx
 

Dernier

Cloud-Computing_CSE311_Computer-Networking CSE GUB BD - Shahidul.pptx
Cloud-Computing_CSE311_Computer-Networking CSE GUB BD - Shahidul.pptxCloud-Computing_CSE311_Computer-Networking CSE GUB BD - Shahidul.pptx
Cloud-Computing_CSE311_Computer-Networking CSE GUB BD - Shahidul.pptxMd. Shahidul Islam Prodhan
 
retail automation billing system ppt.pptx
retail automation billing system ppt.pptxretail automation billing system ppt.pptx
retail automation billing system ppt.pptxfaamieahmd
 
grop material handling.pdf and resarch ethics tth
grop material handling.pdf and resarch ethics tthgrop material handling.pdf and resarch ethics tth
grop material handling.pdf and resarch ethics tthAmanyaSylus
 
Democratizing Fuzzing at Scale by Abhishek Arya
Democratizing Fuzzing at Scale by Abhishek AryaDemocratizing Fuzzing at Scale by Abhishek Arya
Democratizing Fuzzing at Scale by Abhishek Aryaabh.arya
 
KIT-601 Lecture Notes-UNIT-3.pdf Mining Data Stream
KIT-601 Lecture Notes-UNIT-3.pdf Mining Data StreamKIT-601 Lecture Notes-UNIT-3.pdf Mining Data Stream
KIT-601 Lecture Notes-UNIT-3.pdf Mining Data StreamDr. Radhey Shyam
 
A CASE STUDY ON ONLINE TICKET BOOKING SYSTEM PROJECT.pdf
A CASE STUDY ON ONLINE TICKET BOOKING SYSTEM PROJECT.pdfA CASE STUDY ON ONLINE TICKET BOOKING SYSTEM PROJECT.pdf
A CASE STUDY ON ONLINE TICKET BOOKING SYSTEM PROJECT.pdfKamal Acharya
 
Online resume builder management system project report.pdf
Online resume builder management system project report.pdfOnline resume builder management system project report.pdf
Online resume builder management system project report.pdfKamal Acharya
 
Digital Signal Processing Lecture notes n.pdf
Digital Signal Processing Lecture notes n.pdfDigital Signal Processing Lecture notes n.pdf
Digital Signal Processing Lecture notes n.pdfAbrahamGadissa
 
Online book store management system project.pdf
Online book store management system project.pdfOnline book store management system project.pdf
Online book store management system project.pdfKamal Acharya
 
Top 13 Famous Civil Engineering Scientist
Top 13 Famous Civil Engineering ScientistTop 13 Famous Civil Engineering Scientist
Top 13 Famous Civil Engineering Scientistgettygaming1
 
Electrostatic field in a coaxial transmission line
Electrostatic field in a coaxial transmission lineElectrostatic field in a coaxial transmission line
Electrostatic field in a coaxial transmission lineJulioCesarSalazarHer1
 
A case study of cinema management system project report..pdf
A case study of cinema management system project report..pdfA case study of cinema management system project report..pdf
A case study of cinema management system project report..pdfKamal Acharya
 
Arduino based vehicle speed tracker project
Arduino based vehicle speed tracker projectArduino based vehicle speed tracker project
Arduino based vehicle speed tracker projectRased Khan
 
The battle for RAG, explore the pros and cons of using KnowledgeGraphs and Ve...
The battle for RAG, explore the pros and cons of using KnowledgeGraphs and Ve...The battle for RAG, explore the pros and cons of using KnowledgeGraphs and Ve...
The battle for RAG, explore the pros and cons of using KnowledgeGraphs and Ve...Roi Lipman
 
An improvement in the safety of big data using blockchain technology
An improvement in the safety of big data using blockchain technologyAn improvement in the safety of big data using blockchain technology
An improvement in the safety of big data using blockchain technologyBOHRInternationalJou1
 
Online blood donation management system project.pdf
Online blood donation management system project.pdfOnline blood donation management system project.pdf
Online blood donation management system project.pdfKamal Acharya
 
Electrical shop management system project report.pdf
Electrical shop management system project report.pdfElectrical shop management system project report.pdf
Electrical shop management system project report.pdfKamal Acharya
 
Introduction to Machine Learning Unit-5 Notes for II-II Mechanical Engineering
Introduction to Machine Learning Unit-5 Notes for II-II Mechanical EngineeringIntroduction to Machine Learning Unit-5 Notes for II-II Mechanical Engineering
Introduction to Machine Learning Unit-5 Notes for II-II Mechanical EngineeringC Sai Kiran
 
The Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdfThe Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdfPipe Restoration Solutions
 
Paint shop management system project report.pdf
Paint shop management system project report.pdfPaint shop management system project report.pdf
Paint shop management system project report.pdfKamal Acharya
 

Dernier (20)

Cloud-Computing_CSE311_Computer-Networking CSE GUB BD - Shahidul.pptx
Cloud-Computing_CSE311_Computer-Networking CSE GUB BD - Shahidul.pptxCloud-Computing_CSE311_Computer-Networking CSE GUB BD - Shahidul.pptx
Cloud-Computing_CSE311_Computer-Networking CSE GUB BD - Shahidul.pptx
 
retail automation billing system ppt.pptx
retail automation billing system ppt.pptxretail automation billing system ppt.pptx
retail automation billing system ppt.pptx
 
grop material handling.pdf and resarch ethics tth
grop material handling.pdf and resarch ethics tthgrop material handling.pdf and resarch ethics tth
grop material handling.pdf and resarch ethics tth
 
Democratizing Fuzzing at Scale by Abhishek Arya
Democratizing Fuzzing at Scale by Abhishek AryaDemocratizing Fuzzing at Scale by Abhishek Arya
Democratizing Fuzzing at Scale by Abhishek Arya
 
KIT-601 Lecture Notes-UNIT-3.pdf Mining Data Stream
KIT-601 Lecture Notes-UNIT-3.pdf Mining Data StreamKIT-601 Lecture Notes-UNIT-3.pdf Mining Data Stream
KIT-601 Lecture Notes-UNIT-3.pdf Mining Data Stream
 
A CASE STUDY ON ONLINE TICKET BOOKING SYSTEM PROJECT.pdf
A CASE STUDY ON ONLINE TICKET BOOKING SYSTEM PROJECT.pdfA CASE STUDY ON ONLINE TICKET BOOKING SYSTEM PROJECT.pdf
A CASE STUDY ON ONLINE TICKET BOOKING SYSTEM PROJECT.pdf
 
Online resume builder management system project report.pdf
Online resume builder management system project report.pdfOnline resume builder management system project report.pdf
Online resume builder management system project report.pdf
 
Digital Signal Processing Lecture notes n.pdf
Digital Signal Processing Lecture notes n.pdfDigital Signal Processing Lecture notes n.pdf
Digital Signal Processing Lecture notes n.pdf
 
Online book store management system project.pdf
Online book store management system project.pdfOnline book store management system project.pdf
Online book store management system project.pdf
 
Top 13 Famous Civil Engineering Scientist
Top 13 Famous Civil Engineering ScientistTop 13 Famous Civil Engineering Scientist
Top 13 Famous Civil Engineering Scientist
 
Electrostatic field in a coaxial transmission line
Electrostatic field in a coaxial transmission lineElectrostatic field in a coaxial transmission line
Electrostatic field in a coaxial transmission line
 
A case study of cinema management system project report..pdf
A case study of cinema management system project report..pdfA case study of cinema management system project report..pdf
A case study of cinema management system project report..pdf
 
Arduino based vehicle speed tracker project
Arduino based vehicle speed tracker projectArduino based vehicle speed tracker project
Arduino based vehicle speed tracker project
 
The battle for RAG, explore the pros and cons of using KnowledgeGraphs and Ve...
The battle for RAG, explore the pros and cons of using KnowledgeGraphs and Ve...The battle for RAG, explore the pros and cons of using KnowledgeGraphs and Ve...
The battle for RAG, explore the pros and cons of using KnowledgeGraphs and Ve...
 
An improvement in the safety of big data using blockchain technology
An improvement in the safety of big data using blockchain technologyAn improvement in the safety of big data using blockchain technology
An improvement in the safety of big data using blockchain technology
 
Online blood donation management system project.pdf
Online blood donation management system project.pdfOnline blood donation management system project.pdf
Online blood donation management system project.pdf
 
Electrical shop management system project report.pdf
Electrical shop management system project report.pdfElectrical shop management system project report.pdf
Electrical shop management system project report.pdf
 
Introduction to Machine Learning Unit-5 Notes for II-II Mechanical Engineering
Introduction to Machine Learning Unit-5 Notes for II-II Mechanical EngineeringIntroduction to Machine Learning Unit-5 Notes for II-II Mechanical Engineering
Introduction to Machine Learning Unit-5 Notes for II-II Mechanical Engineering
 
The Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdfThe Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdf
 
Paint shop management system project report.pdf
Paint shop management system project report.pdfPaint shop management system project report.pdf
Paint shop management system project report.pdf
 

Build With AI AI Driven Resolution NLP Resolution Revolution Started bt Google PRIMER ON LARGE LANGUAGE MODELS

  • 1. Cloud AIGenAI Overview SepĞ ember - OcĞ ober 2023 Romin Irani, Developer Advocate, Google Cloud
  • 2. Table of Contents Primer on LLM and Generative AI What are Google’s offerings? 01 02 Demo This Week’s Assignment 03 04
  • 4. We’re in anAI-driven revolution Source: AI: Recent Trends and Applications, Emerging Communication and Computing Steam Power 1784 Electricity 1870 Information Technology 1969 Artificial Intelligence Today AI
  • 5. Proprietary +Confidential NLP Evolution What’s the noun in this sentence? What’s the invoice amount? Extraction LLMs portend both quantitative and qualitative jumps in AI capabilities Conversational AI Write an essay Write some code Generation Translate this text to Korean Summarize this document Transformation Are these the same things? Is the invoice vendor recognized? Matching LLMs improve performance on “classical NL” use cases LLMs increasingly enable new use cases. Is the sentence’s sentiment positive? Is this an invoice? Classification
  • 6. This revolution started at Google and we continue to innovate Responsible AIat the foundation Google invents Transformer kickstarting LLM revolution Google’s groundbreaking large language model, BERT AlphaFold predicts structures of all known proteins Text-to-Text Transfer Transformer LLM 10B P model open sourced Google LaMDA model trained to converse Google PaLM single model to generalize across domains A conversational AI Service powered by LaMDA.
  • 7. Proprietary +Confidential What is a Large Language Model?
  • 8. Traditional programming Wave of neural networks ~2012 Cat: type: animal legs: 4 ears: 2 fur: yes likes: yarn, catnip (etc …) This is a cat. This is not a cat. Is this a cat? Yes So, you’ve learned about cats and millions of other concepts …what’s a cat? Proprietary +Confidential Go read this huuuuuuge pile of books. A cat is … Generative language models LaMDA, PaLM, GPT-3, etc.
  • 9. Proprietary +Confidential First, some vocab Generative Model: An ML model that produces content, including language, code, imagery, music, video, etc. Large Language Model: machine learning models that are really good at understanding and generating human language. Large refers to both size and complexity of the neural network itself, as well as the size of the dataset it was trained on. Can also be used for non-generative language tasks (eg classification) Transformer: The neural network architecture underlying most of today’s generative models (and, more widely, most SOTA ML models). Published by Google in 2017.
  • 10. Proprietary +Confidential What is a language model? [...] [...] [...] honesty [...] the is best [...] approach ... way Most likely next word Next most likely next word Less likely next words policy
  • 11. Proprietary +Confidential What is a language model? To be or not to be. Mumbai is to India, what London is to England Masala Dosa is a popular South Indian Dish
  • 12. Proprietary +Confidential Prompt: the text you feed to your model Prompt Design: The art and science of figuring out what text to feed your language model to get it to take on the behavior you want.
  • 13. Proprietary +Confidential What is a language model? Write a poem about Cricket Cricket, oh cricket, game of my heart, Where legends are born and dreams start. With bat and ball, we play as one, Under the sun, until the day is done. From the village green to the grandest stage, Cricket unites us, age after age. With every run, we cheer and shout, As our heroes make us proud. … Zero-shot
  • 14. Proprietary +Confidential Give examples Convert from english to french. peppermint : menthe poivrée desert cactus : cactus du désert potato : pomme de terre onion : … Few-shot
  • 15. Proprietary +Confidential Give examples Convert from english to french. peppermint : menthe poivrée desert cactus : cactus du désert potato : pomme de terre onion : oignon Few-shot
  • 16. Proprietary +Confidential Give examples Convert from english to french. peppermint : menthe poivrée desert cactus : cactus du désert potato : pomme de terre {$USER_INPUT}: Few-shot
  • 17. Proprietary +Confidential Give examples Convert Python to Javascript. Python: print("hello world") Javascript: console.log("hello world") Python: for x in range(0, 100): Javascript: Few-shot
  • 18. Proprietary +Confidential Give examples Convert Python to Javascript. Python: print("hello world") Javascript: console.log("hello world") Python: for x in range(0, 100): Javascript: Few-shot INSTRUCTIO N
  • 19. Proprietary +Confidential Give examples Convert Python to Javascript. Python: print("hello world") Javascript: console.log("hello world") Python: for x in range(0, 100): Javascript: Few-shot EXAMPL E
  • 20. Proprietary +Confidential Give examples Convert Python to Javascript. Python: print("hello world") Javascript: console.log("hello world") Python: for x in range(0, 100): Javascript: Few-shot INPU T
  • 21. Proprietary +Confidential Give examples Convert Python to Javascript. Python: print("hello world") Javascript: console.log("hello world") Python: for x in range(0, 100): Javascript: Few-shot nudge the LLM to output javascript
  • 22. Proprietary +Confidential Give examples Convert Python to Javascript. Python: print("hello world") Javascript: console.log("hello world") Python: for x in range(0, 100): Javascript:for (var x = 0; x < 100; x++) Few-shot
  • 23. Proprietary +Confidential Give examples Convert Python to Javascript. Python: print("hello world") Javascript: console.log("hello world") Python: {$USER_INPUT} Javascript: Few-shot
  • 24. Proprietary +Confidential What is a language model? User : Who are you? Bot: I am Sachin Tendulkar, the famous cricketer and the best batsman the world has seen. User: Where do you live? Bot: I live in Mumbai. User: What do you currently do? Bot: … Dialog
  • 25. Proprietary +Confidential What is a language model? User : Who are you? Bot: I am Sachin Tendulkar, the famous cricketer and the best batsman the world has seen. User: Where do you live? Bot: I live in Mumbai. User: What do you currently do? Bot: … Dialog Prompt
  • 26. Proprietary +Confidential Customizing Chat User : Who are you? Bot: I am Sachin Tendulkar, the famous cricketer and the best batsman the world has seen. User: Where do you live? Bot: I live in Mumbai. User: {USER_INPUT} Bot: I am currently retired from cricket, but I am still involved in the game as a mentor and ambassador. Dialog Prompt
  • 27. Proprietary +Confidential Prompt Design is tricky The art and science of figuring out what text to feed your language model to get it to take on the behavior you want.
  • 28. Proprietary +Confidential A few observations: 1. LLMs are designed to predict the next word in a sequence. They are not required to be “truthful” when doing so. 2. LLMs can generate plausible-looking statements that are irrelevant or factually incorrect. 3. Hallucinations: LLM’s can generate false statements.
  • 29. Proprietary +Confidential What is an LLM? [...] [...] [...] honesty [...] the is best [...] approach ... way Most likely next word Next most likely next word Less likely next words policy
  • 30. Proprietary +Confidential Decoding Strategies The sky was full of [sīars (0.5),clouds (0.23),birds (0.05) …dusī (0.03)] INPUT OUTPUT
  • 31. Proprietary +Confidential Decoding Strategies Which word do we return? The sky was full of [sīars (0.5),clouds (0.23),birds (0.05) …dusī (0.03)] INPUT OUTPUT
  • 32. Proprietary +Confidential Greedy Decoding Select word with highest probability The sky was full of [sīars (0.5),clouds (0.23),birds (0.05) …dusī (0.03)] INPUT OUTPUT
  • 33. Proprietary +Confidential Random Sampling Randomly sample over the distribution The sky was full of [sīars (0.5),clouds (0.23),birds (0.05) …dusī (0.03)] INPUT OUTPUT
  • 34. Proprietary +Confidential Temperature T emperature is a number used to tune the degree of randomness. Lower temperature →less randomness ● T emperature of 0 is deterministic (greed decoding) ● Generally better for tasks like q&a and summarization where you expect a more “correct” answer ● If you notice the model repeating itself, the temp is probably too low High temperature → more randomness ● Can result in more unusual (you might even say creative) response ● If you notice the model going off topic or being nonsensical, the temp is likely too high
  • 35. Proprietary +Confidential Top K [sīars (0.5),clouds (0.23),birds (0.05) …dusī (0.03)] Only sample from top K tokens K =2 Top P [sīars (0.5),clouds (0.23),birds (0.05) …dusī (0.03)] Chooses from smallest possible set of words whose cumulative probability >=probability P P =.75
  • 36. What are large language models? ML algorithms that can recognize, predict, and generate human languages Pre-trained on petabyte scale text-based datasets resulting in large models with 10s to 100s of billions of parameters LLMs are normally pre-trained on a large corpus of text followed by fine-tuning on a specific task Go read this huuuuuuge pile of books. So, you’ve learned about cats and millions of other concepts …what’s a cat? A cat is a small, domesticated carnivorous mammal. Generative language models LaMDA, PaLM, GPT-3, etc. LLMs can also be called Large Models (includes all types of data modality) and Generative AI (a model that produces content)
  • 37. Why are large language models different? LLMs are characterized by emergent abilities, or the ability to perform tasks that were not present in smaller models. LLMs contextual understanding of human language changes how we interact with data and intelligent systems. LLMs can find patterns and connections in massive, disparate data corpora. Search Conversation Content generation
  • 38. Proprietary +Confidential LLM applications in industry Customer Support ● Interactive Humanlike Chatbots ● Conversation summarization for agents ● Sentiment Analysis and Entity extraction Technology ● Generating Code Snippets from description ● Code Translation between languages ● Auto Generated Documentation from Code Financial Services ● Auto-generated summary of documents ● Entity Extraction from KYC documents HealthCare ● Domain specific entity extraction ● Case documentation summary Retail ● Generating product descriptions Media and Gaming ● Designing game storylines, scripts ● Auto Generated blogs, articles, and tweets ● Grammar Correction and text-formatting
  • 39. Proprietary +Confidential Traditional ML Dev ● Needs 1000+ training examples to get started ● Needs ML expertise (probably) ● Needs compute time +hardware ● Thinks about minimizing a loss function ● Needs 0 training examples* ● Does not need ML expertise* ● Does not need to train a model* ● Thinks about prompt design LLM Dev *T o get started
  • 41. Consumers & enterprises have different needs…. Plan a 3 day trip to Patagonia Create a valentine poem. A picture of a panda playing yahtzee How to make GF pancakes? Iwant to write a novel. How do Iget started? Create a jazz song for a bday card How do we control our data How do we deal with fraud &security We need to be accurate & explainable How do we integrate our existing data & applications How will we control costs? Bard +MakerSuite VertexAI +Duet AI Consumers Enterprises
  • 42. Google’s research drives a family of models PaLM 2 Across many modaliīies….Texī, Code,Image, Dialogue, Mulīimodal….. Foundation Model Families Codey Imagen That power experiences for all users Consumer /Hobbyist Experiences Bard MakerSuite Enterprise Experiences AI Builder Experiences VertexAI Generative AIApp Builder Med-PaLM 2 Sec-PaLM ● Unicorn ● Bison ● Otter ● Gecko Animal indicates size Numbers indicate version 001-> 002 Signifies refresh Models for AI Builders Example: PALM API’s Model: text-bison-001 Powers In-console Code &Chat Assistance SecurityAIWorkbench
  • 43. Foundation Models VertexAI End-to-End ML Platform Generative Al App Builder Text Chat Code Image Video Google Cloud Infrastructure - GPUs/TPUs Contact Center AI Healthcare AI Discovery AI Document AI Conversation AI Enterprise Search Foundation Models Business Users AI Practitioners Developers Audio and Music Generative AI Studio Generative AI APIs Model Garden Cloud AI Portfolio To support the needs of Generative AI centric enterprise development Duet Al for Google Workspace Duet Al for Google Cloud
  • 44. Duet AIfor Google Workspace Enterprise Helps you write in Gmail and Docs Duet AI works behind the scenes to help you write — whether it’s refining existing work or helping you get started Helps you visualize in Slides With Duet AI, you can easily create images for presentations and meetings from a simple prompt Helps you organize in Sheets Duet AI is here to help you organize, classify and analyze your data faster than ever before Helps you connect in Meet Duet AI helps you look and sound your best on video calls so you can focus on the conversation
  • 45. Foundation Models Across a variety of model sizes to address use cases Embeddings APIfor Text and Image Extract semantic information from unstructured data PaLM for Text Custom language tasks Chirp for Speech to Text Build voice enabled applications PaLM for Chat Multi-turn conversations with session context Codey for Code Generation Improve coding and debugging Now in GA Allowlist Imagen for Text to Image Create and edit images from simple prompts Now in GA Now in GA Now in GA Now in GA Now in GA
  • 46. Announcing - GA onVertexAI Generative AIStudio Interact with, tune, and deploy foundation models A simple UIfor interacting with models Chat interface to interact with models Prompt gallery to explore sample use cases Prompt design to tune models T une models with your own data A variety of tuning methods including tuning with simple text prompts, fine-tuning, and tuning with human feedback (RLHF). Use models in production Embed into applications by quickly generating and customizing API code Multiple modalities APIs available for Text, Image (Allowlist), Code, and Speech GA
  • 47. Demo
  • 49. If your campus is allocated the Gen AI Arcade Game :here's the list of labs to complete For others: Visit Generative AIArcade Game and ll complete the Labs Visit Google Cloud Computing Foundations path and complete the following journeys: 5 Create and Manage Cloud Resources 6Perform Foundational Infrastructure T asks in Google Cloud 2 Google Cloud Computing Foundations: Infrastructure in Google Cloud
  • 50. Proprietary +Confidential Learn more about Generative AI at goo.gle/ generativeai