Large Language Models (LLMs) are artificial intelligence systems designed to understand and generate human-like language.
LLMs are fundamental to natural language processing, powering applications like chatbots, language translation, and content generation.
Let's pretend to be LLM (..or just a human)
Excerise 1: The cat sat on a _____.
LLM says: "The cat sat on a sunny windowsill, basking in the warmth of the afternoon sun."
Excerise 2: Tell me a two sentence story of a dog named Pluto
LLM says: "Pluto, a spirited golden retriever with a heart full of curiosity, embarked on a solo adventure through the bustling city streets. With a wagging tail and a friendly demeanor, he charmed everyone..."
Let's pretend to be LLM (..or a smart human)
Excerise 3: Write a html code of a .....
LLM writes the whole code in 10 seconds.
Many such applications of LLMs
From Appypie
Architecture of a typical LLM
From https://magazine.sebastianraschka.com/p/understanding-encoder-and-decoder
Some popular LLMs
BERT (Bidirectional Encoder Representations from Transformers) (by Google)
From https://medium.com/@abdallahashraf90x/tokenization-in-nlp-all-you-need-to-know-45c00cfa2df7
Tokenization: Example
From https://towardsdatascience.com/why-are-there-so-many-tokenization-methods-for-transformers-a340e493b3a8
Embeddings
From https://medium.com/@hari4om/word-embedding-d816f643140
Quantization
From https://www.tensorops.ai/post/what-are-quantized-llms
Fine tuning LLMs
Full fine-tuning: Full fine-tuning refers to training all the parameters in the model. It is not an efficient technique, but it produces slightly better results.
LoRA: A parameter-efficient technique (PEFT) based on low-rank adapters. Instead of training all the parameters, we only train these adapters.
AI Literacy is not just about understanding AI functions and usage but also:
Right Evaluation: Generalizibility and AI hallucination.
Ethical considerations: Fairness, accountability, transparency, safety, etc.
Is it safe to use chatGPT?
Image by Aleksandr Tiulkanov, which is licensed under CC BY.
Using LLMs for research
Advantages/Uses
Covers multiple domains
Can be used for brainstorming (wording your thoughts)
Sentence formation for papers
Disadvantages
Lacks specificity
Potential bias
Lacks source
Ethics
Image from: Lepri, Bruno, Nuria Oliver, and Alex Pentland. "Ethical machines: The human-centric use of artificial intelligence." IScience 24.3 (2021): 102249.