SESSION_1_LLMs
SESSION_1_LLMs
MODELS (LLMs)
Trainer: ILYAS NAYLE
ABOUT ME
Contact: [email protected]
Key
Historical
Concepts
OVERVIEW Context and Architecture Mathematical Applications
and
OF LLMs Evolution of of LLMs Foundations of LLMs
Terminologi
LLMs
es
OUTLINE
OVERVIEW OF
LLMs
INTRODUCTION
What Are Large Language Models?
• Definition of LLMs?
• Importance of LLMs in today's
technology landscape
HISTORICAL CONTEXT
AND EVOLUTION OF
LLMS
Early Models and Their Limitations
Simple rule-based systems
Limited understanding and response
capabilities
Breakthroughs
IBM Watson (2011)
Google’s BERT (2018)
OpenAI’s GPT-3 (2020)
ARCHITECTURE OF LLMS
Understanding the Architecture
Overview of Transformer Architecture
Tone inflection: Incorporating tone inflection into LLMs
helps in generating responses that sound more natural and
human-like.
UNDERSTANDING Volume control: Volume control is another aspect that can
enhance the expressiveness of text-to-speech systems
THE powered by LLMs, allowing for adjustments in the loudness
ARCHITECTURE of the generated speech..
Importance of Attention Mechanisms
• Attention mechanisms are a core component of LLMs. They
enable the model to weigh the importance of different
words in a sequence
• Improving the model's ability to understand context and
nuances
LLMs rely on complex mathematical algorithms
like gradient descent and backpropagation to learn.
These algorithms adjust the model's parameters to
minimize errors, enhancing their ability to predict
and generate accurate responses over time
Gradient Descent
• Fundamental optimization algorithm used in
training neural networks.
• Minimizes the loss function, improving model
accuracy.
•Backpropagation
OUTLINE
LANGGRAPH & LANGCHAIN
Lan gCha in: A tool for Const ruc tion seq uenc es of operati ons.
1. Hu man Input
2. Persist enc e
Blog Post
SIMPLE REACT
AGENT FROM
SCRATCH
LANGGRAPH
COMPONENTS
PROMPT HUB
LongChain Tools
Is a search engine, specifically
designed for AI agents.
AGENTIC SEARCH
PERSISTENCE AND STREAMING
LangChain Resources : https://www.langchain.com
OUTLINE
What is Hugging Face? Hugging Face Ecosystem:
Hugging Face is an AI
company that has created a
suite of open-source tools
Transformers Library Datasets Library Model Hub:
and models, primarily
focusing on Natural
Language Processing (NLP).
AGENDA
SEMANTIC SEARCH
Key Concepts How it works?
Polysemy Handling Poor, struggles with multiple meanings Good, disambiguates based on context
ChatGPT Finetuning
Prompt Prompt Large
Engineering Engineering Language
for with Llama Models
Developers
E-mail: [email protected]
THANK YOU FOR LISTENING AND WELCOME AGAIN