{"id":883,"date":"2023-11-12T14:19:04","date_gmt":"2023-11-12T14:19:04","guid":{"rendered":"https:\/\/tbekk.com\/devstream\/?p=883"},"modified":"2023-11-12T14:23:10","modified_gmt":"2023-11-12T14:23:10","slug":"mastering-generative-ai-a-roadmap-from-zero-to-expertise-in-gen-ai-field","status":"publish","type":"post","link":"https:\/\/tbekk.com\/devstream\/2023\/11\/12\/mastering-generative-ai-a-roadmap-from-zero-to-expertise-in-gen-ai-field\/","title":{"rendered":"Mastering Generative AI: A Roadmap from Zero to Expertise in Gen AI field"},"content":{"rendered":"\n<hr class=\"wp-block-separator has-text-color has-light-gray-color has-alpha-channel-opacity has-light-gray-background-color has-background is-style-wide\"\/>\n\n\n\n<ul class=\"wp-block-list\">\n<li><em><strong>Link:<\/strong> <a href=\"https:\/\/gathnex.medium.com\/mastering-generative-ai-a-roadmap-from-zero-to-expertise-in-gen-ai-field-95a058defcda\">Mastering Generative AI<\/a><\/em><\/li>\n\n\n\n<li><em><strong>Author:<\/strong><\/em> <a href=\"https:\/\/gathnex.medium.com\/?source=post_page-----95a058defcda--------------------------------\"><em>Gathnex<\/em><\/a><\/li>\n\n\n\n<li><em><strong>Publication date:<\/strong><\/em> <em>Sept. 12, 2023<\/em><\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-text-color has-light-gray-color has-alpha-channel-opacity has-light-gray-background-color has-background is-style-wide\"\/>\n\n\n\n<p id=\"a30c\">Are you interested in learning Generative AI but worried about the math involved? Don\u2019t fret! In this guide, we\u2019ll break down the syllabus and the best ways to learn Generative AI, even if you\u2019re from a different field or department. We\u2019ll make complex concepts easy to understand, so you can embark on your Generative AI journey with confidence.<\/p>\n\n\n\n<p id=\"90b5\"><strong>Important of Generative AI<\/strong><\/p>\n\n\n\n<p id=\"258a\">The global artificial intelligence (AI) market size was valued at USD 454.12 billion in 2022 and is expected to hit around USD 2,575.16 billion by 2032, progressing with a compound annual growth rate (CAGR) of 19% from 2023 to 2032.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/miro.medium.com\/v2\/resize:fit:1400\/0*dVUqO05YK-9_Aj2V.jpg\" alt=\"\"\/><\/figure>\n\n\n\n<p id=\"3b38\">According to PwC, AI is set to create 15.7 million new jobs in the UK by 2037 while displacing 7 million. This results in a net gain of 8.7 million jobs, around 22% of the current workforce. These new jobs will focus on human skills like creativity, empathy, and problem-solving, particularly in sectors like education, healthcare, and social services.<\/p>\n\n\n\n<p id=\"4005\">Now, let\u2019s dive into a detailed breakdown of the syllabus.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/miro.medium.com\/v2\/resize:fit:1400\/0*HzABpkbSdETaNRZo\" alt=\"\"\/><\/figure>\n\n\n\n<h1 class=\"wp-block-heading\" id=\"a89b\">1. Mathematics for Machine Learning<\/h1>\n\n\n\n<p id=\"4630\">Before mastering machine learning, it is important to understand the fundamental mathematical concepts that power these algorithms.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Linear Algebra: This is crucial for understanding many algorithms, especially those used in deep learning. Key concepts include vectors, matrices, determinants, eigenvalues and eigenvectors, vector spaces, and linear transformations.<\/li>\n\n\n\n<li>Calculus: Many machine learning algorithms involve the optimization of continuous functions, which requires an understanding of derivatives, integrals, limits, and series. Multivariable calculus and the concept of gradients are also important.<\/li>\n\n\n\n<li>Probability and Statistics: These are crucial for understanding how models learn from data and make predictions. Key concepts include probability theory, random variables, probability distributions, expectations, variance, covariance, correlation, hypothesis testing, confidence intervals, maximum likelihood estimation, and Bayesian inference.<\/li>\n<\/ul>\n\n\n\n<p id=\"1fc5\">\ud83d\udcda Resources:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.youtube.com\/watch?v=fNk_zzaMoSs&amp;list=PLZHQObOWTQDPD3MizzM2xVFitgF8hE_ab\" rel=\"noreferrer noopener\" target=\"_blank\">3Blue1Brown \u2014 The Essence of Linear Algebra<\/a>: Series of videos that give a geometric intuition to these concepts.<\/li>\n\n\n\n<li><a href=\"https:\/\/www.youtube.com\/watch?v=qBigTkBLU6g&amp;list=PLblh5JKOoLUK0FLuzwntyYI10UQFUhsY9\" rel=\"noreferrer noopener\" target=\"_blank\">StatQuest with Josh Starmer \u2014 Statistics Fundamentals<\/a>: Offers simple and clear explanations for many statistical concepts.<\/li>\n\n\n\n<li><a href=\"https:\/\/automata88.medium.com\/list\/cacc224d5e7d\">AP Statistics Intuition by Ms Aerin<\/a>: List of Medium articles that provide the intuition behind every probability distribution.<\/li>\n\n\n\n<li><a href=\"https:\/\/immersivemath.com\/ila\/learnmore.html\" rel=\"noreferrer noopener\" target=\"_blank\">Immersive Linear Algebra<\/a>: Another visual interpretation of linear algebra.<\/li>\n\n\n\n<li><a href=\"https:\/\/www.khanacademy.org\/math\/linear-algebra\" rel=\"noreferrer noopener\" target=\"_blank\">Khan Academy \u2014 Linear Algebra<\/a>: Great for beginners as it explains the concepts in a very intuitive way.<\/li>\n\n\n\n<li><a href=\"https:\/\/www.khanacademy.org\/math\/calculus-1\" rel=\"noreferrer noopener\" target=\"_blank\">Khan Academy \u2014 Calculus<\/a>: An interactive course that covers all the basics of calculus.<\/li>\n\n\n\n<li><a href=\"https:\/\/www.khanacademy.org\/math\/statistics-probability\" rel=\"noreferrer noopener\" target=\"_blank\">Khan Academy \u2014 Probability and Statistics<\/a>: Delivers the material in an easy-to-understand format.<\/li>\n<\/ul>\n\n\n\n<h1 class=\"wp-block-heading\" id=\"5540\">2. Python for Machine Learning<\/h1>\n\n\n\n<p id=\"7de9\">Python is a powerful and flexible programming language that\u2019s particularly good for machine learning, thanks to its readability, consistency, and robust ecosystem of data science libraries.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Python Basics: Understanding of Python\u2019s basic syntax, data types, error handling, and object-oriented programming is crucial.<\/li>\n\n\n\n<li>Data Science Libraries: Familiarity with NumPy for numerical operations, Pandas for data manipulation and analysis, Matplotlib and Seaborn for data visualization is a must.<\/li>\n\n\n\n<li>Data Pre-processing: This involves feature scaling and normalization, handling missing data, outlier detection, categorical data encoding, and splitting data into training, validation, and test sets.<\/li>\n\n\n\n<li>Machine Learning Libraries: Proficiency with Scikit-learn, a library providing a wide selection of supervised and unsupervised learning algorithms, is vital. Understanding how to implement algorithms like linear regression, logistic regression, decision trees, random forests, k-nearest neighbors (K-NN), and K-means clustering is important. Dimensionality reduction techniques like PCA and t-SNE are also very helpful for visualizing high-dimensional data.<\/li>\n<\/ul>\n\n\n\n<p id=\"2b05\">\ud83d\udcda Resources:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/realpython.com\/\" rel=\"noreferrer noopener\" target=\"_blank\">Real Python<\/a>: A comprehensive resource with articles and tutorials for both beginner and advanced Python concepts.<\/li>\n\n\n\n<li><a href=\"https:\/\/www.youtube.com\/watch?v=rfscVS0vtbw\" rel=\"noreferrer noopener\" target=\"_blank\">freeCodeCamp \u2014 Learn Python<\/a>: Long video that provides a full introduction into all of the core concepts in Python.<\/li>\n\n\n\n<li><a href=\"https:\/\/jakevdp.github.io\/PythonDataScienceHandbook\/\" rel=\"noreferrer noopener\" target=\"_blank\">Python Data Science Handbook<\/a>: Free digital book that is a great resource for learning pandas, NumPy, matplotlib, and Seaborn.<\/li>\n\n\n\n<li><a href=\"https:\/\/youtu.be\/i_LwzRVP7bg\" rel=\"noreferrer noopener\" target=\"_blank\">freeCodeCamp \u2014 Machine Learning for Everybody<\/a>: Practical introduction to different machine learning algorithms for beginners.<\/li>\n\n\n\n<li><a href=\"https:\/\/www.udacity.com\/course\/intro-to-machine-learning--ud120\" rel=\"noreferrer noopener\" target=\"_blank\">Udacity \u2014 Intro to Machine Learning<\/a>: Free course that covers PCA and several other machine learning concepts.<\/li>\n<\/ul>\n\n\n\n<h1 class=\"wp-block-heading\" id=\"eb8e\">3. Neural Networks<\/h1>\n\n\n\n<p id=\"ef39\">Neural networks are a fundamental part of many machine learning models, particularly in the realm of deep learning. To utilize them effectively, a comprehensive understanding of their design and mechanics is essential.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Fundamentals: This includes understanding the structure of a neural network such as layers, weights, biases, activation functions (sigmoid, tanh, ReLU, etc.)<\/li>\n\n\n\n<li>Training and Optimization: Familiarize yourself with backpropagation and different types of loss functions, like Mean Squared Error (MSE) and Cross-Entropy. Understand various optimization algorithms like Gradient Descent, Stochastic Gradient Descent, RMSprop, and Adam.<\/li>\n\n\n\n<li>Overfitting: It\u2019s crucial to comprehend the concept of overfitting (where a model performs well on training data but poorly on unseen data) and various regularization techniques to prevent it. Techniques include dropout, L1\/L2 regularization, early stopping, and data augmentation.<\/li>\n\n\n\n<li>Implement a Multilayer Perceptron (MLP): Build an MLP, also known as a fully connected network, using PyTorch.<\/li>\n<\/ul>\n\n\n\n<p id=\"b02b\">\ud83d\udcda Resources:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.youtube.com\/watch?v=aircAruvnKk\" rel=\"noreferrer noopener\" target=\"_blank\">3Blue1Brown \u2014 But what is a Neural Network?<\/a>: This video gives an intuitive explanation of neural networks and their inner workings.<\/li>\n\n\n\n<li><a href=\"https:\/\/www.youtube.com\/watch?v=VyWAvY2CF9c\" rel=\"noreferrer noopener\" target=\"_blank\">freeCodeCamp \u2014 Deep Learning Crash Course<\/a>: This video efficiently introduces all the most important concepts in deep learning.<\/li>\n\n\n\n<li><a href=\"https:\/\/course.fast.ai\/\" rel=\"noreferrer noopener\" target=\"_blank\">Fast.ai \u2014 Practical Deep Learning<\/a>: Free course designed for people with coding experience who want to learn about deep learning.<\/li>\n\n\n\n<li><a href=\"https:\/\/www.youtube.com\/playlist?list=PLqnslRFeH2UrcDBWF5mfPGpqQDSta6VK4\" rel=\"noreferrer noopener\" target=\"_blank\">Patrick Loeber \u2014 PyTorch Tutorials<\/a>: Series of videos for complete beginners to learn about PyTorch.<\/li>\n<\/ul>\n\n\n\n<h1 class=\"wp-block-heading\" id=\"55eb\">4. Natural Language Processing (NLP)<\/h1>\n\n\n\n<p id=\"ffb3\">NLP is a fascinating branch of artificial intelligence that bridges the gap between human language and machine understanding. From simple text processing to understanding linguistic nuances, NLP plays a crucial role in many applications like translation, sentiment analysis, chatbots, and much more.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Text Preprocessing: Learn various text preprocessing steps like tokenization (splitting text into words or sentences), stemming (reducing words to their root form), lemmatization (similar to stemming but considers the context), stop word removal, etc.<\/li>\n\n\n\n<li>Feature Extraction Techniques: Become familiar with techniques to convert text data into a format that can be understood by machine learning algorithms. Key methods include Bag-of-words (BoW), Term Frequency-Inverse Document Frequency (TF-IDF), and n-grams.<\/li>\n\n\n\n<li>Word Embeddings: Word embeddings are a type of word representation that allows words with similar meanings to have similar representations. Key methods include Word2Vec, GloVe, and FastText.<\/li>\n\n\n\n<li>Recurrent Neural Networks (RNNs): Understand the working of RNNs, a type of neural network designed to work with sequence data. Explore LSTMs and GRUs, two RNN variants that are capable of learning long-term dependencies.<\/li>\n<\/ul>\n\n\n\n<p id=\"a700\">\ud83d\udcda Resources:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/realpython.com\/natural-language-processing-spacy-python\/\" rel=\"noreferrer noopener\" target=\"_blank\">RealPython \u2014 NLP with spaCy in Python<\/a>: Exhaustive guide about the spaCy library for NLP tasks in Python.<\/li>\n\n\n\n<li><a href=\"https:\/\/www.kaggle.com\/learn-guide\/natural-language-processing\" rel=\"noreferrer noopener\" target=\"_blank\">Kaggle \u2014 NLP Guide<\/a>: A few notebooks and resources for a hands-on explanation of NLP in Python.<\/li>\n\n\n\n<li><a href=\"https:\/\/jalammar.github.io\/illustrated-word2vec\/\" rel=\"noreferrer noopener\" target=\"_blank\">Jay Alammar \u2014 The Illustration Word2Vec<\/a>: A good reference to understand the famous Word2Vec architecture.<\/li>\n\n\n\n<li><a href=\"https:\/\/jaketae.github.io\/study\/pytorch-rnn\/\" rel=\"noreferrer noopener\" target=\"_blank\">Jake Tae \u2014 PyTorch RNN from Scratch<\/a>: Practical and simple implementation of RNN, LSTM, and GRU models in PyTorch.<\/li>\n\n\n\n<li><a href=\"https:\/\/colah.github.io\/posts\/2015-08-Understanding-LSTMs\/\" rel=\"noreferrer noopener\" target=\"_blank\">colah\u2019s blog \u2014 Understanding LSTM Networks<\/a>: A more theoretical article about the LSTM network.<\/li>\n\n\n\n<li><a href=\"https:\/\/github.com\/gokulrajar15\/nlp-tutorial\/tree\/master\/\" rel=\"noreferrer noopener\" target=\"_blank\">Gokul raja github<\/a>&nbsp;: NLP course with a roadmap and notebooks to get into Large Language Models (LLMs).<\/li>\n<\/ul>\n\n\n\n<h1 class=\"wp-block-heading\" id=\"6132\">5. The Transformer Architecture<\/h1>\n\n\n\n<p id=\"6273\">The Transformer model, introduced in the \u201cAttention is All You Need\u201d paper, is the neural network architecture at the core of large language models. The original paper is difficult to read and eveb contains some mistakes, which is why alternative resources are recommended.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Attention Mechanisms: Grasp the theory behind attention mechanisms, including self-attention and scaled dot-product attention, which allows the model to focus on different parts of the input when producing an output.<\/li>\n\n\n\n<li>Tokenization: Understand how to convert raw text data into a format that the model can understand, which involves splitting the text into tokens (usually words or subwords).<\/li>\n\n\n\n<li>Transformer Architecture: Dive deeper into the architecture of Transformers, learning about their various components such as positional encoding, multi-head attention, feed-forward networks, and normalization layers.<\/li>\n\n\n\n<li>Decoding Strategies: Learn about the different ways the model can generate output sequences. Common strategies include greedy decoding, beam search, and top-k sampling.<\/li>\n<\/ul>\n\n\n\n<p id=\"b177\">\ud83d\udcda Resources:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/jalammar.github.io\/illustrated-transformer\/\" rel=\"noreferrer noopener\" target=\"_blank\">The Illustrated Transformer by Jay Alammar<\/a>: This is a visual and intuitive explanation of the Transformer model.<\/li>\n\n\n\n<li><a href=\"https:\/\/huggingface.co\/learn\/nlp-course\/\" rel=\"noreferrer noopener\" target=\"_blank\">Hugging Face \u2014 NLP Course<\/a>: An excellent mini-course that goes beyond the Transformer architecture.<\/li>\n\n\n\n<li><a href=\"https:\/\/nlp.seas.harvard.edu\/annotated-transformer\/\" rel=\"noreferrer noopener\" target=\"_blank\">Harvard \u2014 The Annotated Transformer<\/a>: An excellent in-depth article about the original Transformer paper.<\/li>\n\n\n\n<li><a href=\"https:\/\/www.youtube.com\/watch?v=AFkGPmU16QA\" rel=\"noreferrer noopener\" target=\"_blank\">Introduction to the Transformer by Rachel Thomas<\/a>: Provides a good intuition behind the main ideas of the Transformer architecture.<\/li>\n\n\n\n<li><a href=\"https:\/\/www.youtube.com\/watch?v=ptuGllU5SQQ\" rel=\"noreferrer noopener\" target=\"_blank\">Stanford CS224N \u2014 Transformers<\/a>: A more academic presentation of this architecture.<\/li>\n<\/ul>\n\n\n\n<h1 class=\"wp-block-heading\" id=\"99ef\">6. Pre-trained Language Models<\/h1>\n\n\n\n<p id=\"8197\">Pre-trained models like BERT, GPT-2, and T5 are powerful tools that can handle tasks like sequence classification, text generation, text summarization, and question answering.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>BERT: Understand BERT\u2019s architecture, including the concept of bidirectional training, which distinguishes it from previous models. Learn about fine-tuning BERT for tasks like sequence classification, named entity recognition, and question answering.<\/li>\n\n\n\n<li>GPT-2: Understand GPT-2\u2019s decoder-only architecture and its pre-training objective. Learn to use it for text generation.<\/li>\n\n\n\n<li>T5: the T5 model is a highly versatile model for tasks ranging from text classification to translation to summarization. Understand how to train and use T5 for multiple tasks, and learn about the \u201cprefix-tuning\u201d approach used with T5.<\/li>\n\n\n\n<li>LLM Evaluation: Learn how to evaluate the performance of these models on your specific task, including appropriate metrics for different tasks such as accuracy, F1 score, BLEU score, or perplexity.<\/li>\n<\/ul>\n\n\n\n<p id=\"2e57\">\ud83d\udcda Resources:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/jalammar.github.io\/illustrated-bert\/\" rel=\"noreferrer noopener\" target=\"_blank\">The Illustrated BERT by Jay Alammar<\/a>: Another excellent visual guide to the BERT architecture.<\/li>\n\n\n\n<li><a href=\"https:\/\/huggingface.co\/docs\/transformers\/v4.30.0\/en\/model_doc\/bert#overview\" rel=\"noreferrer noopener\" target=\"_blank\">Hugging Face \u2014 BERT<\/a>: Overview and list of practical resources for various tasks.<\/li>\n\n\n\n<li><a href=\"https:\/\/jalammar.github.io\/illustrated-gpt2\/\" rel=\"noreferrer noopener\" target=\"_blank\">The Illustrated GPT-2 by Jay Alammar<\/a>: In-depth illustrated guide to the GPT-2 architecture.<\/li>\n\n\n\n<li><a href=\"https:\/\/arxiv.org\/abs\/1910.10683\" rel=\"noreferrer noopener\" target=\"_blank\">T5 paper<\/a>: The original paper that introduced the T5 model and many essential concepts for modern NLP.<\/li>\n\n\n\n<li><a href=\"https:\/\/huggingface.co\/docs\/transformers\/notebooks\" rel=\"noreferrer noopener\" target=\"_blank\">Hugging Face \u2014 Transformers Notebooks<\/a>: List of official notebooks provided by Hugging Face.<\/li>\n\n\n\n<li><a href=\"https:\/\/huggingface.co\/metrics\" rel=\"noreferrer noopener\" target=\"_blank\">Hugging Face \u2014 Metrics<\/a>: All metrics on the Hugging Face hub.<\/li>\n<\/ul>\n\n\n\n<h1 class=\"wp-block-heading\" id=\"0cb5\">7. Advanced Language Modeling<\/h1>\n\n\n\n<p id=\"f23a\">To fine-tune your skills, learn how to create embeddings with sentence transformers, store them in a vector database, and use parameter-efficient supervised learning or RLHF to fine-tune LLMs.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Sentence Transformers: Sentence Transformers are models that can derive semantically meaningful embeddings for sentences, paragraphs, or texts. Learn how to store and retrieve these embeddings using an appropriate vector database for rapid similarity search.<\/li>\n\n\n\n<li>Fine-Tuning Language Models: After understanding and using pre-trained models, the next step is fine-tuning them on a domain-specific dataset. It allows the model to be more accurate for certain tasks or domains, such as medical text analysis or sentiment analysis for movie reviews.<\/li>\n\n\n\n<li>Parameter-Efficient Learning Techniques: Explore more efficient ways to train or fine-tune your models without requiring massive amounts of data or computational resources, such as LoRA.<\/li>\n<\/ul>\n\n\n\n<p id=\"b199\">\ud83d\udcda Resources:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.sbert.net\/\" rel=\"noreferrer noopener\" target=\"_blank\">SBERT.net<\/a>: Python library to implement sentence transformers, with a lot of examples.<\/li>\n\n\n\n<li><a href=\"https:\/\/www.pinecone.io\/learn\/sentence-embeddings\/\" rel=\"noreferrer noopener\" target=\"_blank\">Pinecone \u2014 Sentence Transformers<\/a>: Mini-book about NLP for semantic search in general.<\/li>\n\n\n\n<li><a href=\"https:\/\/huggingface.co\/blog\/rlhf\" rel=\"noreferrer noopener\" target=\"_blank\">Hugging Face \u2014 RLHF<\/a>: Blog post introducing the concept of RLHF.<\/li>\n\n\n\n<li><a href=\"https:\/\/huggingface.co\/blog\/peft\" rel=\"noreferrer noopener\" target=\"_blank\">Hugging Face \u2014 PEFT<\/a>: Another library from Hugging Face implementing different techniques, such as LoRA.<\/li>\n\n\n\n<li><a href=\"https:\/\/www.philschmid.de\/fine-tune-flan-t5-peft\" rel=\"noreferrer noopener\" target=\"_blank\">Efficient LLM training by Phil Schmid<\/a>: Implementation of LoRA to fine-tune a Flan-T5 model.<\/li>\n<\/ul>\n\n\n\n<h1 class=\"wp-block-heading\" id=\"17a4\">8. LLMOps<\/h1>\n\n\n\n<p id=\"1879\">Finally, dive into Large Language Model Operations (LLMOps), learn how to handle prompt engineering, build frameworks with LangChain and Llamaindex, and optimize inference with weight quantization, pruning, distillation, and more.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Fine-tuning LLaMA: Instruction fine-tuning has become extremely popular since the (accidental) release of LLaMA. The size of these models and the peculiarities of training them on instructions and answers introduce more complexity and often require parameter-efficient learning techniques such as QLoRA.<\/li>\n\n\n\n<li>Build LLM Frameworks: LLMs are a new building block in system design, where the rest of the architecture is handled by libraries such as LangChain and LlamaIndex, allowing you to query vector databases, improving the model\u2019s memory or providing various tools.<\/li>\n\n\n\n<li>Optimization Techniques for Inference: As the size of LLMs grows, it becomes increasingly important to apply optimization techniques to ensure that the models can be efficiently used for inference. Techniques include weight quantization (4-bit, 3-bit), pruning, knowledge distillation, etc.<\/li>\n\n\n\n<li>LLM deployment: These models can be deployed locally like&nbsp;<a href=\"https:\/\/github.com\/ggerganov\/llama.cpp\" rel=\"noreferrer noopener\" target=\"_blank\">llama.cpp<\/a>&nbsp;or in the cloud like Hugging Face\u2019s&nbsp;<a href=\"https:\/\/github.com\/huggingface\/text-generation-inference\" rel=\"noreferrer noopener\" target=\"_blank\">text generation inference<\/a>&nbsp;or&nbsp;<a href=\"https:\/\/github.com\/vllm-project\/vllm\" rel=\"noreferrer noopener\" target=\"_blank\">vLLM<\/a>.<\/li>\n<\/ul>\n\n\n\n<p id=\"79f0\">\ud83d\udcda Resources:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.coursera.org\/learn\/introduction-to-generative-ai\" rel=\"noreferrer noopener\" target=\"_blank\">Beginner level Generative AI course<\/a>&nbsp;: In this course they\u2019ll cover LLM, Generative AI, Fine tuning, RLHF<\/li>\n\n\n\n<li><a href=\"https:\/\/www.deeplearning.ai\/short-courses\/\" rel=\"noreferrer noopener\" target=\"_blank\">Advanced Gen AI short course&nbsp;<\/a>:In this courses by Deep learning AI(langchain, prompt engineering, RAG, Evaluation and monitering Gen AI)<\/li>\n\n\n\n<li><a href=\"https:\/\/fullstackdeeplearning.com\/llm-bootcamp\/spring-2023\/\" rel=\"noreferrer noopener\" target=\"_blank\">Full stack LLMOPS course<\/a>&nbsp;: this course cover end to end llmops<\/li>\n\n\n\n<li><a href=\"https:\/\/docs.cohere.com\/docs\/llmu\" rel=\"noreferrer noopener\" target=\"_blank\">Cohere LLM course<\/a>&nbsp;: This is blog based LLM course covers almost basics of LLM.<\/li>\n\n\n\n<li><a href=\"https:\/\/www.mlexpert.io\/machine-learning\/tutorials\/alpaca-fine-tuning\" rel=\"noreferrer noopener\" target=\"_blank\">MLExpert \u2014 Fine-tuning Alpaca<\/a>: Guide to fine-tune LLaMA on a custom dataset.<\/li>\n\n\n\n<li><a href=\"https:\/\/huggingface.co\/blog\/hf-bitsandbytes-integration\" rel=\"noreferrer noopener\" target=\"_blank\">Hugging Face \u2014 LLM.int8()<\/a>: Introduction to 8-bit matrix multiplication with LLM.int8().<\/li>\n\n\n\n<li><a href=\"https:\/\/huggingface.co\/blog\/4bit-transformers-bitsandbytes\" rel=\"noreferrer noopener\" target=\"_blank\">Hugging Face \u2014 QLoRA<\/a>: Blog post introducing QLoRA with notebooks to test it.<\/li>\n\n\n\n<li><a href=\"https:\/\/docs.kanaries.net\/tutorials\/ChatGPT\/auto-gptq\" rel=\"noreferrer noopener\" target=\"_blank\">Kanaries \u2014 AutoGPTQ<\/a>: Simple guide to use AutoGPTQ.<\/li>\n\n\n\n<li><a href=\"https:\/\/a16z.com\/2023\/06\/20\/emerging-architectures-for-llm-applications\/\" rel=\"noreferrer noopener\" target=\"_blank\">Emerging Architectures for LLM Applications<\/a>: overview of the LLM app stack.<\/li>\n\n\n\n<li><a href=\"https:\/\/www.pinecone.io\/learn\/langchain-intro\/\" rel=\"noreferrer noopener\" target=\"_blank\">Pinecone \u2014 LangChain AI Handbook<\/a>: Excellent free book on how to master the LangChain library.<\/li>\n\n\n\n<li><a href=\"https:\/\/gpt-index.readthedocs.io\/en\/latest\/guides\/primer.html\" rel=\"noreferrer noopener\" target=\"_blank\">A Primer to using LlamaIndex<\/a>: Official guides to learn more about LlamaIndex.<\/li>\n<\/ul>\n\n\n\n<p id=\"13ed\">In closing, I\u2019ve outlined the roadmap to understanding the intricate world of Generative AI and LLM (Language Model Learning). We\u2019ve delved into the core concepts, real-world applications, and the ever-evolving landscape of this cutting-edge field.<\/p>\n\n\n\n<p id=\"8efe\"><strong>Internship Opportunity<\/strong><\/p>\n\n\n\n<p id=\"9410\">But here\u2019s the exciting part: we\u2019re not stopping here. At Gathnex, we\u2019re always looking to nurture the next generation of AI enthusiasts and professionals. That\u2019s why we\u2019re thrilled to announce our upcoming&nbsp;<strong>Generative AI Internship program<\/strong>.<\/p>\n\n\n\n<p id=\"080d\">We are actively planning and preparing to launch this internship initiative, where you can gain hands-on experience, work on cutting-edge projects, and learn from experts in the field. Whether you\u2019re a student, recent graduate, or someone looking to pivot into the world of AI, our internship program will offer a valuable opportunity to grow and contribute to the field.<\/p>\n\n\n\n<p id=\"54af\">So, if you\u2019re as passionate about AI as we are and want to be part of our journey, stay tuned for updates. Follow us, bookmark our website, and keep an eye out for further announcements. The future of Generative AI is bright, and we want you to be a part of it.<\/p>\n\n\n\n<p id=\"18b7\">Thank you for being a vital part of our community, and we can\u2019t wait to embark on this exciting internship journey with you!<\/p>\n\n\n\n<p id=\"b29b\">Source :<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><a href=\"https:\/\/roadmap.sh\/guides\/introduction-to-llms\" rel=\"noreferrer noopener\" target=\"_blank\">https:\/\/roadmap.sh\/guides\/introduction-to-llms<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/roadmap.sh\/guides\/free-resources-to-learn-llms\" rel=\"noreferrer noopener\" target=\"_blank\">https:\/\/roadmap.sh\/guides\/free-resources-to-learn-llms<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/github.com\/mlabonne\/llm-course\" rel=\"noreferrer noopener\" target=\"_blank\">https:\/\/github.com\/mlabonne\/llm-course<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/github.com\/gokulrajar15\/nlp-tutorial\/tree\/master\" rel=\"noreferrer noopener\" target=\"_blank\">https:\/\/github.com\/gokulrajar15\/nlp-tutorial\/tree\/master<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/skillmapper.com\/home\/collections\/466\/LLM-Learning-Roadmap-From-Beginner-to-Advanced-\" rel=\"noreferrer noopener\" target=\"_blank\">https:\/\/skillmapper.com\/home\/collections\/466\/LLM-Learning-Roadmap-From-Beginner-to-Advanced-<\/a><\/li>\n<\/ol>\n\n\n\n<p id=\"94a0\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Are you interested in learning Generative AI but worried about the math involved? Don\u2019t fret! In this guide, we\u2019ll break down the syllabus and the best ways to learn Generative&#8230; <a class=\"read-more-link\" href=\"https:\/\/tbekk.com\/devstream\/2023\/11\/12\/mastering-generative-ai-a-roadmap-from-zero-to-expertise-in-gen-ai-field\/\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[181,51,325],"tags":[255,327,166,17,20,322,40,74,326],"class_list":["post-883","post","type-post","status-publish","format-standard","hentry","category-ai-2","category-article","category-gen_ai","tag-language-models","tag-llmops","tag-llms","tag-machine-learning","tag-ml","tag-neural-networks","tag-nlp","tag-py","tag-transformers"],"_links":{"self":[{"href":"https:\/\/tbekk.com\/devstream\/wp-json\/wp\/v2\/posts\/883","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tbekk.com\/devstream\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tbekk.com\/devstream\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tbekk.com\/devstream\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tbekk.com\/devstream\/wp-json\/wp\/v2\/comments?post=883"}],"version-history":[{"count":1,"href":"https:\/\/tbekk.com\/devstream\/wp-json\/wp\/v2\/posts\/883\/revisions"}],"predecessor-version":[{"id":884,"href":"https:\/\/tbekk.com\/devstream\/wp-json\/wp\/v2\/posts\/883\/revisions\/884"}],"wp:attachment":[{"href":"https:\/\/tbekk.com\/devstream\/wp-json\/wp\/v2\/media?parent=883"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tbekk.com\/devstream\/wp-json\/wp\/v2\/categories?post=883"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tbekk.com\/devstream\/wp-json\/wp\/v2\/tags?post=883"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}