-
Notifications
You must be signed in to change notification settings - Fork 8
Introduction to large language models (Lesson 01) #33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
EricThomson
wants to merge
14
commits into
main
Choose a base branch
from
ai/llm_intro
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
092ee14
initial commit for intro to ai/llms
EricThomson d352278
intro to llms section added
EricThomson cb5d75c
RLHF discussion added
EricThomson a126036
LLM architecture section: tokenizers
EricThomson ec9b414
added discussion of embedding layer, with images
EricThomson 6cc365d
attention mechanism
EricThomson a757458
ai/llm_intro attention discussion
EricThomson 84a3d20
ai/llm_intro added embedding example
EricThomson aff5326
cleaned up llm explanation through transformer
EricThomson 943353b
resizing figures
EricThomson 967c51f
Merge remote-tracking branch 'origin/main' into ai/llm_intro
EricThomson e5ec8ac
Merge remote-tracking branch 'origin/main' into ai/llm_intro
EricThomson f6acc8f
updated transformer architecture description
EricThomson 6eb1cb8
fleshed out embedding visualization demo
EricThomson File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,14 +7,14 @@ Welcome to the Week 5 in Python 200, Introduction to Artificial Intelligence! | |
| > For an introduction to the course, and a discussion of how to set up your environment, please see the [Welcome](../README.md) page. | ||
|
|
||
| ## Topics | ||
| 1. [Introduction to language processing](01_intro_nlp.md) | ||
| Explain what LLMs are and how they differ from earlier NLP models, and why language models have become so much more powerful recently. Discuss how language is converted to vectors (tokenization). Give broad overview of AI landscape. | ||
| 1. [Introduction to natural language processing](01_intro_nlp_llms.md) | ||
| An introduction to the field of natural language processing (NLP), and large language models (LLMs). Demystifying current large language models: an explanation of how they work, how they are trained. A demonstration of how meaning is represented in LLMs, with visualization. | ||
|
|
||
| 2. [OpenAI Chat Completions API](02_open_ai_api.md) | ||
| Intro and overview of openai api chat completions endpoint. Go over required params (messages/model), but also the important optional params (max_tokens, temperature, top_p etc). Mention responses endpoint (more friendly to tools/agents). Discuss and demonstrate use of moderations endpoint. | ||
|
|
||
| 3. [Abstraction layers](03_abstractions.md) | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We don't have a separate Abstraction layers chapter as far as I know |
||
| Instead of getting locked into a single vendor or style, there are a few packages that provide an abstraction layer across LLM providers and local LLMs (you can run inference locally using Ollama). Here we'll discuss a few of these (langchain, liteLLM, any-llm). | ||
| Instead of getting locked into a single vendor or style, there are a few packages that provide an abstraction layer across LLM providers and local LLMs (you can run inference locally using Ollama). Here we'll discuss a few of these (langchain, liteLLM, any-llm), and show how to use liteLLM. | ||
|
|
||
| 4. [Prompt engineering](04_prompt_engineering.md) | ||
| There are better and worse ways to get responses from a model, here we'll go over the fundamentals of *prompt engineering*. Zero shot, one shot, few-shot, and chain of thought prompting. | ||
|
|
||
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can remove the prior statement