Data Analytics
30.7K subscribers
548 photos
20 videos
48 files
365 links
Dive into the world of Data Analytics – uncover insights, explore trends, and master data-driven decision making.

Admin: @HusseinSheikho || @Hussein_Sheikho
Download Telegram
Stop studying LLM from random articles and videos that only explain individual pieces of the puzzle.

πŸ“š LLM from Scratch β€” this is a practical course on PyTorch for those who want to understand the entire path of modern LLMs: from the first Transformer block to RLHF.

Instead of endless theory, here we gather a complete model training chain:

πŸ”Ή Pretraining β†’ Finetuning β†’ Alignment in one course
πŸ”Ή Transformer from scratch: positional embeddings, self-attention, multi-head attention, MLP, residual connections, LayerNorm, and full Transformer blocks
πŸ”Ή Own training loop without Trainer magic: tokenization, batches, cross-entropy, validation loss, text generation
πŸ”Ή Modern architecture improvements: RMSNorm, RoPE, SwiGLU, KV Cache, sliding-window attention, and streaming cache
πŸ”Ή Full section on alignment: SFT, reward models, PPO-style RLHF, and GRPO with an analysis of how it looks in the training loop in practice

https://github.com/vivekkalyanarangan30/llm_from_scratch

#LLM #PyTorch #MachineLearning #DeepLearning #AI #Transformer

✨ Join Best TG Channels https://t.iss.one/addlist/0f6vfFbEMdAwODBk

⭐️ Join Our WhatsApp Channel https://whatsapp.com/channel/0029VaC7Weq29753hpcggW2A

πŸš€ Level up your AI & Data Science skills with HelloEncyclo β€” a growing all-in-one platform featuring hands-on courses in LLMs, Deep Learning, MLOps, Data Engineering, and more.
βœ… 13 courses live + 40+ coming soon
🎯 One access, lifetime updates
πŸ”‘ Use code: PRESALE-BOOK-WAVE-2GFG
πŸ‘‰ https://helloencyclo.com/?ref=HUSSEINSHEIKHO
❀2
Google has published a free guide on scaling AI models and working with GPUs. πŸš€

πŸ“˜ How to Scale Your Model
https://jax-ml.github.io/scaling-book/

πŸ“˜ How to Think About GPUs
https://jax-ml.github.io/scaling-book/gpus/

The materials discuss the principles of model scaling, the structure of GPUs, computational limitations, memory bandwidth, parallelism, and other topics that are useful when training and running modern AI models. πŸ’‘

It's completely free and available online. 🌐

#AI #MachineLearning #GPU #Scaling #DeepLearning #Tech

✨ Join Best TG Channels https://t.iss.one/addlist/0f6vfFbEMdAwODBk

⭐️ Join Our WhatsApp Channel https://whatsapp.com/channel/0029VaC7Weq29753hpcggW2A

πŸš€ Level up your AI & Data Science skills with HelloEncyclo β€” a growing all-in-one platform featuring hands-on courses in LLMs, Deep Learning, MLOps, Data Engineering, and more.
βœ… 13 courses live + 40+ coming soon
🎯 One access, lifetime updates
πŸ”‘ Use code: PRESALE-BOOK-WAVE-2GFG
πŸ‘‰ https://helloencyclo.com/?ref=HUSSEINSHEIKHO
❀1
A large collection of materials on LLM Systems,

β€’ model training (pre-training, RLHF, fault tolerance, stragglers)
β€’ inference and serving
β€’ agent systems
β€’ edge deployment
β€’ multimodal models
β€’ technical reports from major laboratories
β€’ reviews, benchmarks, and leaderboards
β€’ courses on MLSys and collections of articles from conferences

https://github.com/AmberLJC/LLMSys-PaperList

#LLMSys #LLM #MachineLearning #AIResearch #DeepLearning #TechReports

✨ Join Best TG Channels https://t.iss.one/addlist/0f6vfFbEMdAwODBk

⭐️ Join Our WhatsApp Channel https://whatsapp.com/channel/0029VaC7Weq29753hpcggW2A

πŸš€ Level up your AI & Data Science skills with HelloEncyclo β€” a growing all-in-one platform featuring hands-on courses in LLMs, Deep Learning, MLOps, Data Engineering, and more.
βœ… 13 courses live + 40+ coming soon
🎯 One access, lifetime updates
πŸ”‘ Use code: PRESALE-BOOK-WAVE-2GFG
πŸ‘‰ https://helloencyclo.com/?ref=HUSSEINSHEIKHO
❀1
10 GitHub repositories that are worth checking out for an AI engineer πŸ€–

1. Hands-On AI Engineering πŸ› οΈ

A collection of AI applications and agent systems with practical use cases of LLM.

πŸ‘‰ https://github.com/Sumanth077/Hands-On-AI-Engineering

2. Hands-On Large Language Models πŸ“˜

Full code from the book Hands-On Large Language Models: from basics to fine-tuning.

πŸ‘‰ https://github.com/HandsOnLLM/Hands-On-Large-Language-Models

3. AI Agents for Beginners πŸŽ“

A free course from Microsoft with 11 lessons on creating AI agents.

πŸ‘‰ https://github.com/microsoft/ai-agents-for-beginners

4. GenAI Agents πŸ€–

A large collection of tutorials and implementations of agent systems.

πŸ‘‰ https://github.com/NirDiamant/GenAI_Agents

5. Made With ML πŸš€

About the development, deployment, and support of production-ready ML systems.

πŸ‘‰ https://github.com/GokuMohandas/Made-With-ML

6. Learn Harness Engineering βš™οΈ

A practical course on Harness Engineering for AI agents.

πŸ‘‰ https://github.com/walkinglabs/learn-harness-engineering

7. AutoResearch πŸ”¬

Autonomous cycles of ML experiments from Andrej Karpathy.

πŸ‘‰ https://github.com/karpathy/autoresearch

8. Designing Machine Learning Systems πŸ“š

Notes and materials from Chip Huyen's book.

πŸ‘‰ https://github.com/chiphuyen/dmls-book

9. Awesome LLM Inference ⚑

A collection of materials on LLM inference: Flash Attention, KV Cache, quantization, and more.

πŸ‘‰ https://github.com/xlite-dev/Awesome-LLM-Inference

10. LLM Course πŸ—ΊοΈ

A practical course on LLM with a roadmap and Colab notebooks.

πŸ‘‰ https://github.com/mlabonne/llm-course

#AI #MachineLearning #LLM #DataScience #Tech #GitHub

✨ Join Best TG Channels https://t.iss.one/addlist/0f6vfFbEMdAwODBk

⭐️ Join Our WhatsApp Channel https://whatsapp.com/channel/0029VaC7Weq29753hpcggW2A

πŸš€ Level up your AI & Data Science skills with HelloEncyclo β€” a growing all-in-one platform featuring hands-on courses in LLMs, Deep Learning, MLOps, Data Engineering, and more.
βœ… 13 courses live + 40+ coming soon
🎯 One access, lifetime updates
πŸ”‘ Use code: PRESALE-BOOK-WAVE-2GFG
πŸ‘‰ https://helloencyclo.com/?ref=HUSSEINSHEIKHO
πŸŽ“ A Free AI Course for Beginners by Microsoft

For those just getting into artificial intelligence, Microsoft offers a free course.

It runs for 12 weeks and includes 24 lessons with theory, hands-on assignments, labs, and quizzes.

The curriculum covers neural networks and deep learning, computer vision, natural language processing, genetic algorithms, and AI ethics. For practice, it uses the two main ML frameworksβ€”TensorFlow and PyTorch.

Each lesson follows the same structure: first, reading material, then a Jupyter notebook with code, and for some topics, a lab. The course is in English but has been translated into dozens of languages.

➑️ All materials and links are on GitHub
https://github.com/microsoft/AI-For-Beginners/blob/main/translations/ru/README.md

What's your AI level right now?

❀️ β€” Advanced user
πŸ”₯ β€” Almost zero

#AICourse #Microsoft #DeepLearning #TensorFlow #PyTorch #MachineLearning

✨ Join Best TG Channels https://t.iss.one/addlist/0f6vfFbEMdAwODBk

⭐️ Join Our WhatsApp Channel https://whatsapp.com/channel/0029VaC7Weq29753hpcggW2A

πŸš€ Level up your AI & Data Science skills with HelloEncyclo β€” a growing all-in-one platform featuring hands-on courses in LLMs, Deep Learning, MLOps, Data Engineering, and more.
βœ… 13 courses live + 40+ coming soon
🎯 One access, lifetime updates
πŸ”‘ Use code: PRESALE-BOOK-WAVE-2GFG
πŸ‘‰ https://helloencyclo.com/?ref=HUSSEINSHEIKHO
This media is not supported in your browser
VIEW IN TELEGRAM
πŸ”– Building our own GPT-like model in PyTorch

We've found an excellent repository for those who want to understand how modern LLMs are built under the hood.

Inside β€” 10 Jupyter notebooks with step-by-step explanations and implementations of key components of language models.

GitHub: https://github.com/analyticalrohit/llms-from-scratch

#PyTorch #LLM #MachineLearning #AI #DeepLearning #DataScience

✨ Join Best TG Channels https://t.iss.one/addlist/0f6vfFbEMdAwODBk

⭐️ Join Our WhatsApp Channel https://whatsapp.com/channel/0029VaC7Weq29753hpcggW2A

πŸš€ Level up your AI & Data Science skills with HelloEncyclo β€” a growing all-in-one platform featuring hands-on courses in LLMs, Deep Learning, MLOps, Data Engineering, and more.
βœ… 13 courses live + 40+ coming soon
🎯 One access, lifetime updates
πŸ”‘ Use code: PRESALE-BOOK-WAVE-2GFG
πŸ‘‰ https://helloencyclo.com/?ref=HUSSEINSHEIKHO
❀3
Curates LLM tools and research for scientific discovery πŸ§¬πŸ”¬

Repo: https://github.com/HKUST-KnowComp/Awesome-LLM-Scientific-Discovery πŸ”—πŸš€

#LLM #ScientificDiscovery #ResearchTools #AI #MachineLearning #DataScience

✨ Join Best TG Channels https://t.iss.one/addlist/0f6vfFbEMdAwODBk

⭐️ Join Our WhatsApp Channel https://whatsapp.com/channel/0029VaC7Weq29753hpcggW2A

πŸš€ Level up your AI & Data Science skills with HelloEncyclo β€” a growing all-in-one platform featuring hands-on courses in LLMs, Deep Learning, MLOps, Data Engineering, and more.
βœ… 13 courses live + 40+ coming soon
🎯 One access, lifetime updates
πŸ”‘ Use code: PRESALE-BOOK-WAVE-2GFG
πŸ‘‰ https://helloencyclo.com/?ref=HUSSEINSHEIKHO
❀1
Forwarded from Machine Learning
Media is too big
VIEW IN TELEGRAM
A Collection of Machine Learning Libraries for Python πŸ€–

A large repository containing over 900 libraries and frameworks for machine learning. πŸ“š

All projects are sorted by quality and popularity, which helps you quickly find the best tools for working with AI and ML. βš™οΈ

Repo: https://github.com/ml-tooling/best-of-ml-python?tab=readme-ov-file#vector-similarity-search-ann

#MachineLearning #Python #AI #DataScience #MLTools #Programming

✨ Join Best TG Channels https://t.iss.one/addlist/0f6vfFbEMdAwODBk

⭐️ Join Our WhatsApp Channel https://whatsapp.com/channel/0029VaC7Weq29753hpcggW2A
❀5
Exporting the model from PyTorch to the universal ONNX format for independent inference πŸš€

Deploying PyTorch models in production often requires installing a large framework and relying on a Python environment. The ONNX (Open Neural Network Exchange) format converts the computation graph into an intermediate binary format suitable for running on any device and programming language. We will export the PyTorch neural network and run its inference using the lightweight ONNX Runtime. πŸ› 

To export and run the neural network, we will install the PyTorch framework, the ONNX library, and the cross-platform ONNX Runtime engine.

pip install torch onnx onnxruntime


The packages for converting and high-performance execution of graphs have been successfully installed. βœ…

We will write a Python script that creates a test PyTorch model, exports it to a .onnx file, and immediately performs a verification of the output.

import torch, torch.nn as nn, onnxruntime as ort, numpy as np

model = nn.Sequential(nn.Linear(10, 5), nn.ReLU())
x = torch.randn(1, 10)
torch.onnx.export(model, x, "model.onnx", input_names=["input"], output_names=["output"])

session = ort.InferenceSession("model.onnx")
res = session.run(None, {"input": x.numpy()})
print("ONNX Output shape:", res[0].shape)


The model graph has been successfully serialized into a binary file, and the runtime performed the prediction without involving PyTorch. πŸ“¦

# verification (checks the correctness and structure of the saved ONNX model)
python3 -c "import onnx; model = onnx.load('model.onnx'); onnx.checker.check_model(model); print('ONNX Model Status: Valid')"


Expected output: ONNX Model Status: Valid

# cleanup (deletes the generated model file and cleans up binaries)
rm -f model.onnx


Converting neural networks to ONNX allows you to decouple inference from Python and run models in C++, Rust, Go, or directly in a web browser. Be sure to specify the names of the input and output tensors when exporting to simplify integration with the service. πŸ’»

#PyTorch #ONNX #MachineLearning #DeepLearning #AI #DevOps

✨ Join Best TG Channels https://t.iss.one/addlist/0f6vfFbEMdAwODBk

⭐️ Join Our WhatsApp Channel https://whatsapp.com/channel/0029VaC7Weq29753hpcggW2A
❀1
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:

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.iss.one/addlist/0f6vfFbEMdAwODBk

⭐️ Join Our WhatsApp Channel https://whatsapp.com/channel/0029VaC7Weq29753hpcggW2A
❀2