Simplifying LLMs, MLOps, Python & Machine Learning for you! β’ AI Engineering @LightningAI β’ Lead DataScientist β’ BITS Pilani β’ 3 Patents
9 subscribed
May 6 β’ 6 tweets β’ 2 min read
Python *args & **kwargs clearly explained:
*args allows you to pass a variable number of non-keyword arguments to a function.
It collects all non-keyword arguments passed to the function and stores them as a tuple.
Consider the following example:
May 4 β’ 6 tweets β’ 2 min read
I have been coding in Python for 8 years now. β³
If I were to start over today, here's a roadmap...π
1οΈβ£ freeCodeCamp
4 hours Python bootcamp!!
What you'll learn:
- Installing Python
- Setting up an IDE
- Basics Syntax
- Variables & Datatypes
- Looping in Python
- Exception handling
- Modules & pip
- Mini hands-on projects π₯
Check this out π
May 2 β’ 6 tweets β’ 2 min read
Lambda functions in Python clearly explained:
What are lambda functions ?
Simply put, they are small anonymous functions that are defined without a name.
Check out the syntax π
Apr 29 β’ 9 tweets β’ 3 min read
Self-attention in transformers clearly explained:
Before we start a quick primer on tokenization!
Raw text β Tokenization β Embedding β Model
Embedding is a meaningful representation of each token (roughly a word) using a bunch of numbers.
This embedding is what we provide as an input to our language models.
Check thisπ
Apr 27 β’ 12 tweets β’ 3 min read
Let's master Python's pathlib module today:
Pathlib is a Python module that turns file system paths into easy-to-manage objects, making your code cleaner and more intuitive.
Today, I'll explain everything you need to know about pathlib!
Let's go! π
Apr 26 β’ 12 tweets β’ 4 min read
I started my career in Data Science back in 2016 β³
Being self-taught, YouTube has been a great source of learning for me!
Here are some of the channels I've ardently followed:
1οΈβ£ StatQuest:
BAM!!
Joshua Stammer's fun take on teaching Stats & Mathematics for ML to masses is an absolute gold mine π₯
Let's compare Llama-3 & Phi-3 using RAG:
Before we begin, take a look at what we're about to create!
As always, I'll be using my favourite stack:
- @Ollama for locally serving a LLM (Llama-3)
- @Llama_Index for orchestration
- @Streamlit for building the UI
- @LightningAI for development & hosting
Let's go! π
Apr 23 β’ 6 tweets β’ 2 min read
Backpropagation in PyTorch, clearly explained:
Backpropagation is the key to optimizing our neural network by adjusting it's weights.
And it's done by calculating gradients of the loss function w.r.t. these weights!
Today, we learn how to do this using PyTorch...π
Apr 22 β’ 7 tweets β’ 2 min read
Cosine similarity clearly explained (a go-to metric for vector similarity):
A geometric intuition behind the most commonly used similarity metric in modern Vector Databases!
Let's go! π
Apr 19 β’ 11 tweets β’ 4 min read
Let's build a RAG app using MetaAI's Llama-3 (100% local):
Before we begin, take a look at what we're about to create!
Here's what you'll learn:
- @Ollama for locally serving a LLM (Llama-3)
- @Llama_Index for orchestration
- @Streamlit for building the UI
- @LightningAI for development & hosting
Let's go! π
Apr 18 β’ 11 tweets β’ 3 min read
SQL flavoured JOINS in pandas, clearly explained:
Let's setup 2 DataFrames to perform merge operations.
β’ left
β’ right
A, B, C are the common keys β
Check this π
Apr 17 β’ 9 tweets β’ 3 min read
Let's implement & train this neural network step-by-step, from scratch using PyTorch!
1/n
First of all let's define our model in PyTorch:
2/n
Apr 16 β’ 11 tweets β’ 4 min read
Autoencoders clearly explained:
Autoencoders are one of my favourite Neural Networks!
They are simple yet so powerful!
Today, We'll understand:
- What Autoencoders areβ
- How they are trained
- The applications of Autoencoders
- And how to implement them from scratch using PyTorch Lightning!β‘οΈ
Let's go! π
Apr 13 β’ 9 tweets β’ 3 min read
LEGB rule in Python, clearly explained:
Every Python developer must know the LEGB rule!
It's crucial for avoiding major bugs!
And today, I will provide a clear explanation of the same!
Let's go! π
Apr 10 β’ 11 tweets β’ 4 min read
Let's build a "Chat with your docs" RAG application, step-by-step:
Before we begin, take a look at what we're about to create!
We'll be using:
- @Cohere highly capable βR+ as the LLM
- @Llama_Index for orchestration
- @Streamlit for the UI
Everything in just ~170 lines of Python code, that I've shared at the end! π₯
Let's go! π
Apr 9 β’ 6 tweets β’ 2 min read
Matplotlib subplots & subplot-mosaic clearly explained:
Today, we learn about:
- Regular subplots
- Subplot-mosaic π₯
Let's go! π
Apr 8 β’ 7 tweets β’ 3 min read
5 GitHub repositories that will give you superpowers as an AI/ML Engineer:
1οΈβ£ Awesome Artificial Intelligence
A curated list of Artificial Intelligence:
- courses
- books
- video lectures
- and papers with code