From zero to hero with LLMs
Start with Large Language Models (LLMs) in 2024
A complete guide to start and improve your LLM skills in 2024 without an advanced background in the field and stay up-to-date with the latest news and state-of-the-art techniques!
First, if you have 0 programming or AI knowledge, please follow this guide I made for this exact purpose and come back here!
This guide is intended for anyone with a small background in programming and machine learning. There is no specific order to follow, but a classic path would be from top to bottom. If you don’t like reading books, skip them. If you don’t want to follow an online course, you can also skip it. There is not a single way to become a machine learning expert, and with motivation, you can absolutely achieve it.
All resources listed here are free, except some online courses and books, which are certainly recommended for a better understanding, but it is definitely possible to become an expert without them, with a little more time spent on online readings, videos, and practice. When it comes to paying courses, the links in this guide are affiliated links. Please use them if you feel like following a course, as it will support me. Thank you, and have fun learning! Remember, this is completely up to you and not necessary. I felt like it was useful to me and maybe useful to others as well.
Don’t be afraid to repeat videos or learn from multiple sources. Repetition is the key of success to learning!
Maintainer: louisfb01, also active on YouTube and as a Podcaster if you want to see/hear more about AI & LLMs! You can also learn more twice a week in my personal newsletter!
Feel free to submit an issue for any great resources to add to this repository.
Tag me on Twitter @Whats_AI or LinkedIn @Louis Bouchard if you share the list!
Want to know what this guide is about? Watch this video:
Table of Contents
- Prerequesites
- Start with short YouTube video introductions as a first step
- LLM Books and articles (for readers)
- Follow online courses
- Practice, practice, and practice!
- Prompting
- Retrieval Augmented Generation (RAG)
- More resources (Communities, cheat sheets, news, and more!)
- How to find a machine learning job
- AI Ethics
- Learn more and do more… with LLMs
Prerequesites
If you have 0 programming or AI knowledge, please follow this guide I made for this exact purpose. Check out the python section mostly and then you will have a strong enough background to come back here!
If you are somewhat familiar with Python and AI, then I wish you happy learning!
Start with short YouTube video introductions as a first step
Start with short YouTube videos introductions
This is the best way to start from nothing. Here, I list a few of the best videos I found that will give you a great first introduction to the terms you need to know to get started in the LLM field.
Understanding the terminology
- Mastering AI Jargon — Your Guide to OpenAI & LLM Terms — Louis Bouchard — A quick introduction to the most used terms in the LLM (or GPT) world.
Understanding Transformers and LLMs (i.e. models behind ChatGPT)!
- Intro to Large Language Models - An amazing 1-hour talk from Andrej Karpathy.
- Natural Language Processing and Large Language Models — amazing video introductions to the attention mechanism, tokens, embeddings and more to better understand everything behind large language models like GPT by Luis Serrano.
- What are Transformer Models and how do they work? — Luis Serrano
- The Illustrated Word2vec — A Gentle Intro to Word Embeddings in Machine Learning — A clear explanation of word embeddings in machine learning by Jay Alammar.
- A Hackers’ Guide to Language Models — by Jeremy Howard (fast.ai).
- Let’s build GPT: from scratch, in code, spelled out. — by Andrej Karpathy.
Another easy way to get started and keep learning is by listening to podcasts in your spare time. Driving to work, on the bus, or having trouble falling asleep? Listen to some AI podcasts to get used to the terms and patterns, and learn about the field through inspiring stories! I invite you to follow a few of the best I personally prefer, like Lex Fridman, Machine Learning Street Talk, and obviously, my podcast: Louis Bouchard Podcast, where you will learn about incredibly talented people in the field with inspiring stories sharing the knowledge they worked so hard to gather. A new one I really enjoy listening to that keeps me up to date is the ThursdAI podcast by my friend Alex Volkov.
Here is a list of awesome courses available on YouTube that you should definitely follow and are 100% free.
- Louis Bouchard's LLM free course videos “Train & Fine-Tune LLMs for Production Course by Activeloop, Towards AI & Intel Disruptor”. “A playlist for our LLM course: Gen AI 360: Foundational Model Certification!”
- Create a Large Language Model from Scratch with Python — Tutorial — by freeCodeCamp. “Learn how to build your own large language model, from scratch. This course goes into the data handling, math, and transformers behind large language models. You will use Python.”
- LLM University (LLMU) from Cohere — by Cohere. LLM University (LLMU) is a set of comprehensive learning resources for anyone interested in natural language processing (NLP), from beginners to advanced learners.
- The Attention Mechanism in Large Language Models — by Luis Serrano. In this video series, Luis explains the Transformer architecture going increasingly in depth. It is a very good overview and explanation of Transformers and the attention mechanism that I believe should be watched by all AI professionals.
LLM Books and articles (for readers)
If you prefer the article and reading path, here are some suggestions:
- Building LLMs for Production: Enhancing LLM Abilities and Reliability with Prompting, Fine-Tuning, and RAG - by Towards AI. "Discover the key tech stacks for adapting Large Language Models to real-world applications, including Prompt Engineering, Fine-tuning, and Retrieval Augment Generation." (Or get the e-book here. You can DM me for a nice discount!)
- The Illustrated Transformer — by Jay Alammar. This is a famous article providing an amazing explanation to how current language models work.
- A Practical Introduction to LLMs — by Shawhin Talebi.
- Medium is pretty much the best place to find great explanations, either on Towards AI or Towards Data Science publications. I also share my own articles there and I love using the platform. You can subscribe to Medium using my affiliated link here if this sounds interesting to you and if you’d like to support me at the same time!
- Reading lists for new MILA students — Anonymous
- A complete roadmap to master NLP in 2022
- NLTK Book is the free resource to learn about fundamental theories behind NLP: https://www.nltk.org/book/
- The Annotated Transformer — Harvard
Follow online courses
If you like some more guidance, I can advise checking out (optional) online courses, such as…
- Generative AI with Large Language Models — Paid
- Become an NLP pro with Coursera’s Natural Language Processing Specialization by deeplearning.ai — Paid
- Gradio Course — Create User Interfaces for Machine Learning Models — freeCodeCamp — Free
- Train & Fine-Tune LLMs for Production Course by Activeloop, Towards AI & Intel Disruptor — Free
- The LLM University by Cohere — Free
- From Beginners to Advanced LLM Developer - by Towards AI. "Build Your First Scalable Product with LLMs, Prompting, RAG, Fine-Tuning, and Agents! Master the skills top companies need and build your own advanced LLM MVP with real-world applications."
- Become an NLP pro with Coursera’s Natural Language Processing Specialization by deeplearning.ai — Paid “Break into the NLP space. Master cutting-edge NLP techniques through four hands-on courses!”
- An NLP Nano Degree! — Paid “Learn cutting-edge natural language processing techniques to process speech and analyze text. Build probabilistic and deep learning models, such as hidden Markov models and recurrent neural networks, to teach the computer to do tasks such as speech recognition, machine translation, and more!”
- Introduction to Large Language Models with Google Cloud — Paid
- Learn to train, fine-tune and use LLMs in your applications. — Free by Weights & Biases
- Large Language Models with Semantic Search - Free, Deeplearning.ai and Cohere
You can easily google for more, but after reading and watching those, I believe you already have a good enough understanding of LLMs to get into the real deal: practice.
Practice, practice, and practice!
Practice is key
The most important thing in programming is practice. This applies to machine learning too. It can be hard to find a personal project to practice. I strongly advise you to try to build something by yourself, but I understand it may be intimidating. What I would then suggest is to follow one or two extremely applied courses and use the resource to build your own project based on the code examples they provide you, and ChatGPT or GitHub Copilot to work for you as a code assistant for the rest of the work.
Here are a few of the most applied courses I could find for LLMs:
- Looking to build a quick text classification model or word vectorizer, fasttext is a good library to quickly train up a model.
- Huggingface is THE place to get modern day NLP models, and they also include a whole course about it.
- LangChain & Vector Databases in Production — An amazing free resource we built at Towards AI in partnership with Activeloop and the Intel Disruptor Initiative to learn about LangChain & Vector Databases in Production. “Whether you are an experienced developer who’s a newcomer to the AI realm or an experienced machine learning enthusiast, this course is designed for you. Our goal is to make AI accessible and practical, transforming how you approach your daily tasks and the overall impact of your work.”
- Training & Fine-Tuning LLMs for Production — An amazing free resource we built at Towards AI in partnership with Activeloop and the Intel Disruptor Initiative to learn about Training & Fine-Tuning LLMs for Production. “If you want to learn how to train and fine-tune LLMs from scratch and have intermediate Python knowledge as well as access to moderate compute resources (for some cases, just a Google Colab will suffice!), you should be all set to take and complete the course. This course is designed with a wide audience in mind, including beginners in AI, current machine learning engineers, students, and professionals considering a career transition to AI. We aim to provide you with the necessary tools to apply and tailor Large Language Models across a wide range of industries to make AI more accessible and practical.”
- The Real-World ML Tutorial & Community — Paid
A reminder. The best way to learn is to build something! I really prone to learn by doing. Those courses are all great but optional. You can do it on your own, and most companies providing resources for working with LLMs (OpenAI, LangChain, Activeloop, Cohere, W&B…) have great tutorials to get you started and build something. Then, you can ask ChatGPT to help you finish it!
Prompting
Prompting is an important new skill to learn for both using the models and building NLP-related apps.
- What is Prompting? Talking with AI Models… — Free
- ChatGPT Prompt Engineering for Developers — Paid
- Learn Prompting — This is a great free course intending to teach prompting and give tips for specific models. It is all you need for prompting!
- Techniques to improve reliability - OpenAI Cookbook on prompting techniques.
More on Retrieval Augmented Generation (RAG)
Most people build RAG-based apps currently. Here are a few resources that I loved to get you started and have a good understanding of it…
- A Survey of Techniques for Maximizing LLM Performance - Amazing video by OpenAI covering when to use prompt engineering, RAG, or fine-tuning. This is a must-see for everyone in the field!
- RAG vs Fine-Tuning vs Deep Memory vs training LLM from Scratch: when to do what with LLMs - Simlarly, this is a short video covering when you should use RAG, fine-tuning or prompt engineering in your applications.
- Building a Q&A Chatbot using GPT and embeddings — Applied YouTube Tutorial by Jeremy Pinto.
- How to build an AI that can answer questions about your website — Free OpenAI tutorial.
- How to Build a RAG-based ChatGPT Web App: Meet Our new AI Tutor — YouTube introduction on how I built a RAG-based chatbot (and how you can, too).
- Training & Fine-Tuning LLMs for Production - Learn how to train and fine-tune LLMs from scratch.
- Train and Deploy a Real-Time Financial Advisor - Hands-on LLMs Course by Paul Iusztin, Pau Labarta Bajo and Alexandru Razvant.
- Retrieval Augmented Generation for Production with LangChain & LlamaIndex - Whether planning to build a chat with data application for your organization or just learning how to leverage Generative AI in various industries, this course is for you. The course addresses critical issues such as increasing retrieval accuracy, reducing hallucinations in AI outputs, enhancing explainability, addressing copyright concerns, and offering more tailored, up-to-date data inputs. We go beyond basic RAG applications, equipping you with the skills to create more complex, reliable products with tools like LangChain, LlamaIndex, and Deep Memory. Emphasizing hands-on learning, this course is a gateway to mastering advanced RAG techniques and applications in real-world scenarios.
- From Beginners to Advanced LLM Developer - by Towards AI. "Build Your First Scalable Product with LLMs, Prompting, RAG, Fine-Tuning, and Agents! Master the skills top companies need and build your own advanced LLM MVP with real-world applications."
- Building LLMs for Production: Enhancing LLM Abilities and Reliability with Prompting, Fine-Tuning, and RAG - by Towards AI. "Discover the key tech stacks for adapting Large Language Models to real-world applications, including Prompt Engineering, Fine-tuning, and Retrieval Augment Generation." (Or get the e-book here. You can DM me for a nice discount!)
More Resources
Join communities!
- A Discord server with many AI enthusiasts — Learn together, ask questions, find kaggle teammates, share your projects, and more.
- A Discord server where you can stay up-to-date with the latest AI news — Stay up-to-date with the latest AI news, ask questions, share your projects, and much more.
- Learn Prompting Discord community — Chat with fellow prompt engineers.
Follow reddit communities — Ask questions, share your projects, follow news, and more.
- artificial — Artificial Intelligence
- MachineLearning — Machine Learning (Biggest subreddit of the field)
- DeepLearningPapers — Deep Learning Papers
- ComputerVision — Extracting useful information from images and videos
- learnmachinelearning — Learn Machine Learning
- ArtificialInteligence — AI
- LatsestInML — Game-changing developments in machine learning you shouldn’t miss
Follow the news in the field!
Subscribe to YouTube channels that share new papers — Stay up to date with the news in the field!
- Louis Bouchard — Weekly videos covering new papers
- Two Minutes Papers — Bi-weekly videos covering new papers
- Bycloud — Weekly videos covering new papers
LinkedIn Groups
- Artificial Intelligence, Machine Learning and Deep Learning News — News of the field shared by everyone in the group
- Artificial Intelligence | Deep Learning | Machine Learning
- Applied Artificial Intelligence
Facebook Groups
- Artificial Intelligence & Deep Learning — The definitive and most active FB Group on A.I., Neural Networks and Deep Learning. All things new and interesting on the frontier of A.I. and Deep Learning. Neural networks will redefine what it means to be a smart machine in the years to come.
- Deep learning — Nowadays society tends to be soft and automated evolving into the 4th industrial revolution, which consequently drives the constituents into the swirl of societal upheaval. To survive or take a lead one is supposed to be equipped with associated tools. Machine is becoming smarter and more intelligent. Machine learning is inescapable skill and it requires people to be familiar with. This group is for these people who are interest in the development of their talents to fit in.
Newsletters
- Synced AI TECHNOLOGY & INDUSTRY REVIEW — China’s leading media & information provider for AI & Machine Learning.
- Inside AI — A daily roundup of stories and commentary on Artificial Intelligence, Robotics, and Neurotechnology.
- AI Weekly — A weekly collection of AI News and resources on Artificial Intelligence and Machine Learning.
- AI Ethics Weekly — The latest updates in AI Ethics delivered to your inbox every week.
- Louis Bouchard Weekly — One and only one paper clearly explained weekly with an article, video demo, demo, code, etc.
- ThursdAI — Recaps of the most high-signal AI weekly spaces!
- Toward’s AI newsletter — Summarizing the most interesting news and learning resources weekly as well as community updates from the Learn AI Together Discord community. Perfect for ML professionals and enthusiasts.
- The Batch - Andrew Ng / Deeplearning.ai
Follow Medium publications
- Towards Data Science — “Sharing concepts, ideas, and codes”
- Towards AI — “The Best of Tech, Science, and Engineering.”
- OneZero — “The undercurrents of the future. A Medium publication about tech and science.”
Find a machine learning job
- Read this section from the article full of interview tips and how to prepare for them.
- Learn how the interview process goes and getting better at preparing for them by watching how others did it, like the interview series I ran with experts from NVIDIA, Zoox (Self-driving company), D-ID (Generative AI Startup), etc.
AI Ethics
- What are Ethics and Why do they Matter? Machine Learning Edition — by Rachel Thomas, founder of fast.ai
- AI4People — An Ethical Framework for a Good AI Society: Opportunities, Risks, Principles, and Recommendations — Floridi et al., 2018, AI4People AI for a good society
- Ethics guidelines for trustworthy AI — European Commission high-level expert group 7 points for a trustworthy AI.
- An Introduction to Ethics in Robotics and AI — a free e-book by Christoph Bartneck, Christoph Lütge, Alan Wagner, and Sean Welsh.
Learn more and do more… with LLMs
ChatGPT, Bing, Claude… are incredible. Of course, they have limitations. Yet, you can leverage those to learn anything you want. I use it for coding or asking lots of questions in general. You need to double-check when you ask for important questions. Still, it is a powerful tool. Yes, it is a tool, not a human replacement. Use it as a dumb assistant that knows about pretty much everything.
Here’s a clear example of how I used it for a project to better understand a function from a project I was not familiar with. This is for python, but those models are extremely powerful for coding in general, understanding new platforms (like AWS, GCP, working with a virtual machine, a server, SSH connections, etc…. anything you are not familiar with that is useful in the LLM space).
p.s. I didn’t mention Bing and Claude for fun. Don’t be overly dependent on a single company like OpenAI. There are (and will always be) other companies in the fight for the best LLM. I wanted to create an example for the guide this morning when…
Tag me on Twitter @Whats_AI or LinkedIn @Louis Bouchard if you share the list!
👀 If you’d like to support my work, you can check to Sponsor this repository or support me on Patreon.
This guide is still regularly updated.