Session 1
Session 1
com
[email protected] Session 1
Ecosystem
[email protected]
Superset of
[email protected] Superset of
[email protected]
A subset of ML that uses neural network algorithms for
Deep Learning predictive applications.
Superset of
Generative AI
Applications
Classification
Question-Answering
Promp
[email protected] t LLM Summarization
[email protected]
Code Generation
Generative AI Creatives Generation
Resource
Question
[email protected]
Document
[email protected] Dennis Walsh, Goldman Sachs Asset Management
Store
Answer
[email protected]
[email protected]
Google: Gemini
Open AI: GPT-3.5, GPT-4
Paid Anthropic: Claude
Cohere: Command
[email protected]
[email protected]
LLMs
Efficient
Hugging Face
implementations of
Access LLama Cpp
open models for
Unsloth
specific target devices.
[email protected]
[email protected]
LLMs
Open Source
Open Weight
Efficient inference
vLLM abstractions
Servers Ollama compatible with Open
AI APIs
Value-for-money,
production grade (e.g.,
[email protected]
[email protected] $0.0005 $0.0015 $0.0008 $0.0024 $0.000125 $0.000375
GPT3.5, Claude Instant,
Gemini 1.5 Flash)
Advanced Reasoning
Models (e.g., GPT4, $0.01 $0.03 $0.015 $0.075 $0.00125 $0.00375
Claude, Gemini 1.5 Pro)
Avg Cost/Prediction
Monthly
Deployment Cost
# Daily Predictions ×
30 Days
This file is meant for personal use by [email protected] only.
Sharing or publishing the contents in part or full is liable for legal action.
Proprietary content. © Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited.
LLMs for Enterprise Applications
[email protected]
[email protected]
positive p = .03
[email protected]
negative p = .00001
The movie is a visually stunning, action-packed, and
[email protected]
emotionally resonant thrill ride that will leave you on the
edge of the seat from the beginning to end. Overall, the
experience was magical.
…
magical p = .83
positive p = .03
[email protected]
negative p = .00001
The movie is a visually stunning, action-packed, and
[email protected]
emotionally resonant thrill ride that will leave you on the
edge of the seat from the beginning to end. Overall, the
experience was magical.
…
magical p = .83
positive p = .03
[email protected]
negative p = .00001
The movie is a visually stunning, action-packed, and
[email protected]
emotionally resonant thrill ride that will leave you on the
edge of the seat from the beginning to end. Overall, the
experience was magical.
…
match
magical p = .83
Output, word-by-word
positive
The movie was awesome. Overall, the experience was positive.
[email protected]
negative
…
The movie was awesome. Overall, the experience was positive.
[email protected]
The movie was awesome. Overall, the experience was positive. movie
The movie was awesome. Overall, the experience was positive. magical
The movie was awesome. Overall, the experience was positive.
Vocabulary
The movie was awesome. Overall, the experience was positive.
2018 2022
GPT-2 (1.5B parameters) GPT-3 (175B parameters) GPT-4 (1T parameters?)
The era of prompting begins. Large scale foundation models are Era of completely closed
Models are relatively small, born. Prompting is shown to models begins; API
open-source and fine-tuning induce
This file is meant for personal userobust performance on
by [email protected] only. access only
is possible natural in
Sharing or publishing the contents language
part or fulltasks
is liable for legal action.
Proprietary content. © Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited.
Business Problems Solved by LLMs - A Taxonomy
Text Sentence
Fixed set of
classes Label Positive
Context + Context +
[email protected] Classification Text Question
[email protected]
(Text) → (Label)
Generation
This file is meant for personal use by [email protected] only.
(Text) → (Text)
Sharing or publishing the contents in part or full is liable for legal action.
Proprietary content. © Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited.
A Workflow for Enterprise LLM Applications
Container Approvals,
Dev Workspace
Registry Guardrails
Data Sources
[email protected]
[email protected]
Staging Production
Database environment environment
Event Logs
Infrastructure &
resource metrics
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
Tokenize LLM Model
r
[email protected]
[email protected]
Prompt
API Key
format
Playground enables quick iterations on
prompts. Once an effective prompt is
discovered, it is translated to code for efficient
API access
System Message
Clear instructions explaining the task that the LLM should accomplish.
These instructions are agnostic to the user input and appended to the
user input with higher priority. Can also be used to prime LLM behavior
[email protected]
User Message
LLM API Prediction
[email protected]
Specific instructions from the user describing the task that needs to
be accomplished.
Assistant Message
Not needed for single-turn conversations. Can be used to showcase
expected completions in multi-turn conversations.
[email protected] LLM
[email protected]
Temperature = 1
- Zero-shot, Few-shot
- Chain-of-Thought
- Rephrase & Respond
- Self-Consistency
- LLM-as-a-judge
- Tree-of-thought
[email protected]
[email protected]
Foundation
Models
Train
[email protected]
[email protected]
LLMs Templates System Message,
Few Shot Examples
Infer Prompts
Max Length,
Parameters
Temperature
This file is meant for personal use by [email protected] only.
Sharing or publishing the contents in part or full is liable for legal action.
Proprietary content. © Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited.