Akshay πŸš€ Profile picture
Simplifying LLMs, MLOps, Python & Machine Learning for you! β€’ AI Engineering @LightningAI β€’ Lead DataScientist β€’ BITS Pilani β€’ 3 Patents
Ella Sanders Profile picture Rodolpho Gurgel Profile picture Shashi Kumar Profile picture Learning in Public - Coding - DataSci Profile picture Heroeroo Profile picture 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: Image
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...πŸ‘‡ Image 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 πŸ‘‡ Image
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πŸ‘‡ Image
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! πŸš€ Image
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 πŸ₯‡

Check this out πŸ‘‡
youtube.com/c/joshstarmer
Apr 24 β€’ 11 tweets β€’ 4 min read
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...πŸ‘‡ Image
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! πŸš€ Image
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 πŸ‘‡ Image
Apr 17 β€’ 9 tweets β€’ 3 min read
Let's implement & train this neural network step-by-step, from scratch using PyTorch!

1/n Image First of all let's define our model in PyTorch:

2/n Image
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! πŸš€ Image
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! πŸš€ Image
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! πŸš€ Image
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

Check this out πŸ‘‡
github.com/owainlewis/awe…
Apr 5 β€’ 9 tweets β€’ 3 min read
This is the future of building RAGs. Let me introduce you to DSPy today: In terms of analogy, DSPy is to RAG as PyTorch is to DNNs.

DSPy : RAG :: PyTorch : DNNs

To understand DSPy, we need to grasp three key concepts:

- Signatures
- Modules
- Optimizers

Let's delve into each one! πŸš€ Image
Apr 3 β€’ 7 tweets β€’ 3 min read
Tensors in PyTorch, clearly explained: Tensors are the fundamental building blocks for performing mathematical operations in deep learning models.

Today, I will provide a comprehensive explanation with illustrative code examples.

Let's go! πŸš€ Image
Apr 1 β€’ 10 tweets β€’ 3 min read
7 projects that every AI engineer must explore: 1️⃣ Chat with your code using RAG

A step by step guide to building a RAG application using @llama_index!

Check this outπŸ‘‡
lightning.ai/lightning-ai/s…
Mar 28 β€’ 7 tweets β€’ 3 min read
Eigenvalues & Eigenvectors clearly explained: The concept of eigenvalues & eigenvectors is widely known yet poorly understood!

Today, I'll clearly explain their meaning & significance.

Let's go! πŸš€ Image