Forwarded from Machine Learning with Python
A distinctive bot for subscribing to courses on the most popular educational platforms across multiple fields, most notably programming, artificial intelligence, mechanics, medicine, and other sciences. ๐๐ค
This bot provides a free subscription to any course available within the bot. ๐
https://t.me/UdemySybot?start=ref_418788114
#FreeCourses #Programming #AI #Education #Udemy #TelegramBots
This bot provides a free subscription to any course available within the bot. ๐
https://t.me/UdemySybot?start=ref_418788114
#FreeCourses #Programming #AI #Education #Udemy #TelegramBots
Telegram
Free Courses Bot
The first bot in the world of Telegram that offers free courses, free certificates.
One of the key moments when I truly understood how transformers work: ๐ง โจ
"Stop thinking of a transformer as a conveyor belt, where each layer transforms the output of the previous one."
"Start thinking of it as a residual flow." ๐
Each block in a transformer has a residual connection that adds the input of the block to its output:
Because of this addition, the attention mechanism or MLP within the layer โ the function f in the formula above โ actually does NOT transform the input. Instead, it calculates the information that needs to be ADDED to the input before passing it to the next block! โ
Imagine the main part of the transformer as a shared whiteboard. ๐ Each block reads what it needs from it and adds its own notes. All changes are additions.
Furthermore, layers can exchange information over distances. A block in the first layer can write information, and a block in the fifth layer can read it, even though there is no direct connection between them. ๐
I owe these ideas to an older article by Anthropic about the architecture of transformers:
transformer-circuits.pub/2021/framework
#Transformers #DeepLearning #AI #MachineLearning #NeuralNetworks #Tech
โจ Join Best TG Channels https://t.me/addlist/0f6vfFbEMdAwODBk
โญ๏ธ Join Our WhatsApp Channel https://whatsapp.com/channel/0029VaC7Weq29753hpcggW2A
"Stop thinking of a transformer as a conveyor belt, where each layer transforms the output of the previous one."
"Start thinking of it as a residual flow." ๐
Each block in a transformer has a residual connection that adds the input of the block to its output:
x' = f(x) + x
Because of this addition, the attention mechanism or MLP within the layer โ the function f in the formula above โ actually does NOT transform the input. Instead, it calculates the information that needs to be ADDED to the input before passing it to the next block! โ
Imagine the main part of the transformer as a shared whiteboard. ๐ Each block reads what it needs from it and adds its own notes. All changes are additions.
Furthermore, layers can exchange information over distances. A block in the first layer can write information, and a block in the fifth layer can read it, even though there is no direct connection between them. ๐
I owe these ideas to an older article by Anthropic about the architecture of transformers:
transformer-circuits.pub/2021/framework
#Transformers #DeepLearning #AI #MachineLearning #NeuralNetworks #Tech
โจ Join Best TG Channels https://t.me/addlist/0f6vfFbEMdAwODBk
โญ๏ธ Join Our WhatsApp Channel https://whatsapp.com/channel/0029VaC7Weq29753hpcggW2A
โค2
๐ Over 300 tools for LLM evaluation in one place.
This repository contains a comprehensive catalog of solutions for evaluating LLMs, RAG systems, agents, observability, benchmarks, and guardrails.
Save this to avoid searching for the tools you need across GitHub.
https://github.com/aglio-lab/ai-evaluation-tools
#LLMEvaluation #AIBenchmarks #RAG #AIAgents #GitHub #AITools
โจ Join Best TG Channels https://t.me/addlist/0f6vfFbEMdAwODBk
โญ๏ธ Join Our WhatsApp Channel https://whatsapp.com/channel/0029VaC7Weq29753hpcggW2A
This repository contains a comprehensive catalog of solutions for evaluating LLMs, RAG systems, agents, observability, benchmarks, and guardrails.
Save this to avoid searching for the tools you need across GitHub.
https://github.com/aglio-lab/ai-evaluation-tools
#LLMEvaluation #AIBenchmarks #RAG #AIAgents #GitHub #AITools
โจ Join Best TG Channels https://t.me/addlist/0f6vfFbEMdAwODBk
โญ๏ธ Join Our WhatsApp Channel https://whatsapp.com/channel/0029VaC7Weq29753hpcggW2A
โค2๐1
This media is not supported in your browser
VIEW IN TELEGRAM
You can literally enter a sentence and see how the Transformer processes it.
This interactive tool runs a GPT-like model directly in your browser and allows you to trace the entire process:
Tokenization โ Embeddings โ Q/K/V โ Attention Mechanism โ MLP โ Logits โ Probabilities of the next token.
You can explore attention maps, intermediate values, and adjust parameters like temperature, top-k, and top-p to see how they affect the generation.
If Transformers still seem like a collection of blocks connected by arrows, you should definitely try this.
https://poloclub.github.io/transformer-explainer/
https://t.me/DataAnalyticsX
This interactive tool runs a GPT-like model directly in your browser and allows you to trace the entire process:
Tokenization โ Embeddings โ Q/K/V โ Attention Mechanism โ MLP โ Logits โ Probabilities of the next token.
You can explore attention maps, intermediate values, and adjust parameters like temperature, top-k, and top-p to see how they affect the generation.
If Transformers still seem like a collection of blocks connected by arrows, you should definitely try this.
https://poloclub.github.io/transformer-explainer/
https://t.me/DataAnalyticsX
โค6๐2
Forwarded from Machine Learning with Python
https://substack.com/@husseinsheikho?utm_source=share&utm_medium=android&r=3hwnr8
Follow me to more posts and useful content
Follow me to more posts and useful content
Substack
Hussein Sheikho | Substack
AI and Machine Learning Blogger | Computer Vision & Image Processing | Python Developer. Sharing practical tutorials, innovative projects, and insights into deep learning and artificial intelligence.
โค2
If you want to get GOAT-level at software engineering,
save & star these 10 GitHub repos:
1 System design academy
โณ https://github.com/systemdesign42/system-design-academy
2 Public APIs
โณ https://github.com/public-apis/public-apis
3 Tech interview handbook
โณ https://github.com/yangshun/tech-interview-handbook
4 Coding interview university
โณ https://github.com/jwasham/coding-interview-university
5 Engineering leadership
โณ https://github.com/gregorojstersek/resources-to-become-a-great-engineering-leader
6 Freecodecamp
โณ https://github.com/freeCodeCamp/freeCodeCamp
7 Developer roadmaps
โณ https://github.com/kamranahmedse/developer-roadmap
8 Path to senior engineer handbook
โณ https://github.com/jordan-cutler/path-to-senior-engineer-handbook
9 Free programming books
โณ https://github.com/EbookFoundation/free-programming-books
10 Build your own x
โณ https://github.com/codecrafters-io/build-your-own-x
Anything else you'd add?
โป Repost to help others become better engineers.
https://t.me/DataAnalyticsX ๐ง๐ปโ๐ป
save & star these 10 GitHub repos:
1 System design academy
โณ https://github.com/systemdesign42/system-design-academy
2 Public APIs
โณ https://github.com/public-apis/public-apis
3 Tech interview handbook
โณ https://github.com/yangshun/tech-interview-handbook
4 Coding interview university
โณ https://github.com/jwasham/coding-interview-university
5 Engineering leadership
โณ https://github.com/gregorojstersek/resources-to-become-a-great-engineering-leader
6 Freecodecamp
โณ https://github.com/freeCodeCamp/freeCodeCamp
7 Developer roadmaps
โณ https://github.com/kamranahmedse/developer-roadmap
8 Path to senior engineer handbook
โณ https://github.com/jordan-cutler/path-to-senior-engineer-handbook
9 Free programming books
โณ https://github.com/EbookFoundation/free-programming-books
10 Build your own x
โณ https://github.com/codecrafters-io/build-your-own-x
Anything else you'd add?
โป Repost to help others become better engineers.
https://t.me/DataAnalyticsX ๐ง๐ปโ๐ป
โค3
Forwarded from Machine Learning with Python
then save these 10 GitHub repos:
โ https://github.com/microsoft/generative-ai-for-beginners
โ https://github.com/mlabonne/llm-course
โ https://github.com/rasbt/LLMs-from-scratch
โ https://github.com/dair-ai/Prompt-Engineering-Guide
โ https://github.com/Shubhamsaboo/awesome-llm-apps
โ https://github.com/openai/openai-cookbook
โ https://github.com/HandsOnLLM/Hands-On-Large-Language-Models
โ https://github.com/NirDiamant/GenAI_Agents
โ https://github.com/aishwaryanr/awesome-generative-ai-guide
โ https://github.com/anthropics/courses
===
Get a copy right now:
โ https://systemdesign42.github.io/ai-engineering-playbook/
#GenerativeAI #GitHub #AI #LLM #MachineLearning #TechTips
Please open Telegram to view this post
VIEW IN TELEGRAM
โค2
๐ฅ Free IT & Dev Study Kits โ 2026 Prep, No Signup
If youโre prepping for cloud, dev, or AI roles this year, these free kits cover the gaps most people skip โ cert basics, hands-on labs, and mock exams. No signup traps, no hidden fees.
๐ Cert E-Book โ covers Cisco & AWS fundamentals, good for first-time cert takers
โ https://bit.ly/4yrk1Ti
๐ช Online Free Course โ structured path, works as a refresher before exams
โ https://bit.ly/4hUprRP
โ๏ธ Free AI Materials โ LLM basics to fine-tuning practice notebooks
โ https://bit.ly/4yt1iXy
๐ Cloud Study Guide โ cheat-sheet style, handy for interview prep
โ https://bit.ly/4el4Eod
๐ง Free Mock Exam โ test yourself before booking the real thing
โ https://bit.ly/4sbWlkl
๐ Save this or forward it to your dev/study group โ good resources are worth sharing. ๐ช
๐ Community: https://chat.whatsapp.com/CS7VOvQCLZG5BJPazBGm1v
๐ฒ Personalized help: https://wa.link/xd2fu6
#Python #Cloud #AWS #Cisco #AI #MachineLearning #DevOps #ITCertification #FreeResources #TechCareers
If youโre prepping for cloud, dev, or AI roles this year, these free kits cover the gaps most people skip โ cert basics, hands-on labs, and mock exams. No signup traps, no hidden fees.
๐ Cert E-Book โ covers Cisco & AWS fundamentals, good for first-time cert takers
โ https://bit.ly/4yrk1Ti
๐ช Online Free Course โ structured path, works as a refresher before exams
โ https://bit.ly/4hUprRP
โ๏ธ Free AI Materials โ LLM basics to fine-tuning practice notebooks
โ https://bit.ly/4yt1iXy
๐ Cloud Study Guide โ cheat-sheet style, handy for interview prep
โ https://bit.ly/4el4Eod
๐ง Free Mock Exam โ test yourself before booking the real thing
โ https://bit.ly/4sbWlkl
๐ Save this or forward it to your dev/study group โ good resources are worth sharing. ๐ช
๐ Community: https://chat.whatsapp.com/CS7VOvQCLZG5BJPazBGm1v
๐ฒ Personalized help: https://wa.link/xd2fu6
#Python #Cloud #AWS #Cisco #AI #MachineLearning #DevOps #ITCertification #FreeResources #TechCareers
โค2
I thought I understood how GPU loading works until I started writing this guide. ๐ค
I was constantly confusing three different concepts:
โข The amount of work we are launching.
โข The amount of work that is actually placed on the GPU.
โข The amount of work that is ready to be executed right now.
But these are completely different things. โ ๏ธ
Consider a CUDA kernel with 240 blocks, each containing 256 threads. This results in 61,440 logical threads, or 1920 warps. However, the number of launched threads doesn't tell you how many warps can actually be present on the GPU simultaneously. ๐งฎ
Blocks are placed on streaming multiprocessors (SMs) based on the available registers, shared memory, and limitations on the number of threads, warps, and blocks.
Even after being placed on an SM, a warp can be waiting for a memory operation to complete, a dependency between arithmetic operations to be resolved, or for synchronization. The scheduler can only select warps that are actually ready to issue instructions for execution. โณ
This changed my approach to analyzing performance metrics. ๐
Occupancy is a measure of the ratio of the number of active warps on an SM to the maximum number of warps that the SM can support.
GPU utilization measures something different. In NVML, this metric reflects the percentage of the measurement interval during which at least one CUDA kernel was running.
Therefore, the GPU can show 100% utilization even if the Tensor Cores are not being used to their full potential, the HBM bandwidth is not saturated, and performance is limited by one of the system components. At the same time, a significant portion of the GPU's resources may remain underutilized. ๐
Similar misconceptions arise with memory. Registers, shared memory, L1, L2, and HBM are not simply levels of memory that differ in speed. Each has its own areas of accessibility, capacity, management characteristics, and access methods. ๐พ
If a model fits in HBM, it only means that there is enough video memory for it. But it tells you very little about how many bytes need to be transferred, how efficiently memory accesses are combined, how often data is reused, and whether memory is actually limiting the performance of the CUDA kernel.
A good example is FlashAttention. This algorithm calculates the exact attention mechanism, but uses tiling and repeated computations to reduce the amount of data transferred between HBM and the GPU's internal memory. โก๏ธ
Tensor Cores turned out to be another technology that I previously understood too simplistically.
These are specialized computational units for matrix multiplication operations with accumulation, which play a huge role in AI tasks. However, they do not "execute the model" as a whole. ๐ง
Reduction operations, indexing, element-wise calculations, synchronization, and data movement still involve other components of the GPU. In addition, launching CUDA kernels also introduces overhead.
Over time, I stopped asking myself: "Why isn't the GPU 100% utilized?" Instead, I started asking a more accurate question: "What is currently limiting the speed of performing useful work?" ๐ค
Ultimately, all of this turned into a 42-page guide. ๐
It covers streaming multiprocessors (SMs), warps, and schedulers, the memory hierarchy and latency hiding, Tensor Cores, the distribution of GEMM computations across GPU hardware resources, numerical precision, and performance metrics that are very easy to misinterpret.
https://drive.google.com/file/d/17tyvxr__8vZ6o995GNq6I5PC5JOiv0ql/view
#GPU #CUDA #AI #DeepLearning #PerformanceOptimization #TechGuide
โจ Join Best TG Channels https://t.me/addlist/0f6vfFbEMdAwODBk
โญ๏ธ Join Our WhatsApp Channel https://whatsapp.com/channel/0029VaC7Weq29753hpcggW2A
I was constantly confusing three different concepts:
โข The amount of work we are launching.
โข The amount of work that is actually placed on the GPU.
โข The amount of work that is ready to be executed right now.
But these are completely different things. โ ๏ธ
Consider a CUDA kernel with 240 blocks, each containing 256 threads. This results in 61,440 logical threads, or 1920 warps. However, the number of launched threads doesn't tell you how many warps can actually be present on the GPU simultaneously. ๐งฎ
Blocks are placed on streaming multiprocessors (SMs) based on the available registers, shared memory, and limitations on the number of threads, warps, and blocks.
Even after being placed on an SM, a warp can be waiting for a memory operation to complete, a dependency between arithmetic operations to be resolved, or for synchronization. The scheduler can only select warps that are actually ready to issue instructions for execution. โณ
This changed my approach to analyzing performance metrics. ๐
Occupancy is a measure of the ratio of the number of active warps on an SM to the maximum number of warps that the SM can support.
GPU utilization measures something different. In NVML, this metric reflects the percentage of the measurement interval during which at least one CUDA kernel was running.
Therefore, the GPU can show 100% utilization even if the Tensor Cores are not being used to their full potential, the HBM bandwidth is not saturated, and performance is limited by one of the system components. At the same time, a significant portion of the GPU's resources may remain underutilized. ๐
Similar misconceptions arise with memory. Registers, shared memory, L1, L2, and HBM are not simply levels of memory that differ in speed. Each has its own areas of accessibility, capacity, management characteristics, and access methods. ๐พ
If a model fits in HBM, it only means that there is enough video memory for it. But it tells you very little about how many bytes need to be transferred, how efficiently memory accesses are combined, how often data is reused, and whether memory is actually limiting the performance of the CUDA kernel.
A good example is FlashAttention. This algorithm calculates the exact attention mechanism, but uses tiling and repeated computations to reduce the amount of data transferred between HBM and the GPU's internal memory. โก๏ธ
Tensor Cores turned out to be another technology that I previously understood too simplistically.
These are specialized computational units for matrix multiplication operations with accumulation, which play a huge role in AI tasks. However, they do not "execute the model" as a whole. ๐ง
Reduction operations, indexing, element-wise calculations, synchronization, and data movement still involve other components of the GPU. In addition, launching CUDA kernels also introduces overhead.
Over time, I stopped asking myself: "Why isn't the GPU 100% utilized?" Instead, I started asking a more accurate question: "What is currently limiting the speed of performing useful work?" ๐ค
Ultimately, all of this turned into a 42-page guide. ๐
It covers streaming multiprocessors (SMs), warps, and schedulers, the memory hierarchy and latency hiding, Tensor Cores, the distribution of GEMM computations across GPU hardware resources, numerical precision, and performance metrics that are very easy to misinterpret.
https://drive.google.com/file/d/17tyvxr__8vZ6o995GNq6I5PC5JOiv0ql/view
#GPU #CUDA #AI #DeepLearning #PerformanceOptimization #TechGuide
โจ Join Best TG Channels https://t.me/addlist/0f6vfFbEMdAwODBk
โญ๏ธ Join Our WhatsApp Channel https://whatsapp.com/channel/0029VaC7Weq29753hpcggW2A
โค2๐2
Forwarded from Machine Learning with Python
This media is not supported in your browser
VIEW IN TELEGRAM
๐ 637 interactive modules on ML and AI
On VizLearn, you can visually explore:
๐ซก Gradient descent;
๐ซก SVM and PCA;
๐ซก Bayes' theorem;
๐ซก BPE tokenization;
๐ซก Query, Key, and Value;
๐ซก KV cache;
๐ซก Quantization;
๐ซก Neural networks and LLMs.
Change the input data and immediately see the results of the calculations.
โ Link to the tutorial
https://vizlearn.in/
On VizLearn, you can visually explore:
๐ซก Gradient descent;
๐ซก SVM and PCA;
๐ซก Bayes' theorem;
๐ซก BPE tokenization;
๐ซก Query, Key, and Value;
๐ซก KV cache;
๐ซก Quantization;
๐ซก Neural networks and LLMs.
Change the input data and immediately see the results of the calculations.
โ Link to the tutorial
https://vizlearn.in/
โค1