Machine Learning
40K subscribers
3.6K photos
28 videos
47 files
620 links
Real Machine Learning β€” simple, practical, and built on experience.
Learn step by step with clear explanations and working code.

Admin: @HusseinSheikho || @Hussein_Sheikho
Download Telegram
Introduction to Deep RL and DQN

Link: https://www.dailydoseofds.com/rl-course-part-6/

πŸ€– #DeepRL #DQN #ReinforcementLearning #AI #MachineLearning #DataScience

✨ Join Best TG Channels https://xn--r1a.website/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
❀6
Optimizing the model's performance through Prompt Tuning with the PEFT library.

✨ Full-fledged fine-tuning of language models requires a huge amount of video memory and completely overwrites the network's weights. We will apply the Prompt Tuning method (retraining virtual token prompts), which freezes the main model and adjusts only a tiny matrix of virtual embeddings. This allows adapting AI to a narrow task using a regular user's graphics card and without the risk of destroying the neural network's basic knowledge.

πŸ“¦ First, we will install the necessary libraries for working with transformers and effective fine-tuning methods (PEFT).

pip install torch transformers peft

βœ… The packages have been successfully installed in the system and are ready for configuring lightweight training. We will create a basic Prompt Tuning configuration for training just twenty virtual tokens instead of billions of model parameters.

from peft import PromptTuningConfig, PromptTuningInit, get_peft_model
from transformers import AutoModelForCausalLM

peft_config = PromptTuningConfig(
task_type="CAUSAL_LM",
prompt_tuning_init=PromptTuningInit.TEXT,
num_virtual_tokens=20,
prompt_tuning_init_text="Classify the sentiment of this text:",
tokenizer_name_or_path="gpt2"
)

πŸ”„ The configuration is initialized and links the text prompt to the trainable virtual embeddings. We will wrap the base model in a PEFT container to freeze the main weights and leave only the new tokens available for gradient descent.

base_model = AutoModelForCausalLM.from_pretrained("gpt2")
peft_model = get_peft_model(base_model, peft_config)
peft_model.print_trainable_parameters()

πŸš€ The model is ready for training, and the percentage of active parameters will be displayed on the screen (usually less than 0.01%).

python3 -c "from peft import PromptTuningConfig; print('PEFT Setup: OK')"

πŸ“ Expected output: PEFT Setup: OK

pip uninstall peft -y

πŸ’‘ Prompt Tuning β€” an ideal choice when you need to train a model for many different customers or tasks simultaneously. Instead of gigabyte-sized copies of neural networks, you store only lightweight configuration files weighing a few kilobytes, dynamically substituting them at inference.

#PromptTuning #PEFT #AI #MachineLearning #DeepLearning #DataScience

✨ Join Best TG Channels https://xn--r1a.website/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
❀4πŸ”₯1
If you want to finally understand how neural networks actually learn, I recommend these notes from Stanford CS224N. 🧠

"Computing Neural Network Gradients" explains the calculation of gradients and backpropagation without black-box formulas. πŸ“‰

Inside:
β€’ Chain Rule
β€’ Computational Graphs
β€’ Vectorized derivatives
β€’ Efficient gradient calculation
β€’ Step-by-step examples with formula analysis

Many people use PyTorch or TensorFlow every day, but never understood what happens after calling .backward(). πŸ”₯

These notes just fill this gap. πŸ› οΈ

PDF:
https://web.stanford.edu/class/cs224n/readings/gradient-notes.pdf

#NeuralNetworks #DeepLearning #StanfordCS #Backpropagation #MachineLearning #AIResearch

✨ Join Best TG Channels https://xn--r1a.website/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
Data Science Interview Questions.pdf
1.4 MB
Data Science Interview Questions

πŸ’‘ Here is your curated list for Data Science interviews!

✨ Join Best TG Channels https://xn--r1a.website/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

#DataScience #AI #MachineLearning #LLM #TechJobs #InterviewPrep
❀4
A new collection of free courses has been added:

πŸ”— https://github.com/dair-ai/ML-Course-Notes

Those studying ML through dozens of random tabs and unclosed playlists may find this repository useful for organizing their learning. πŸ“š

Machine Learning Course Notes is an open collection of notes on machine learning, NLP, and AI, compiled around full-fledged courses, not just individual videos. 🧠

What's inside:

β€’ Courses from the Machine Learning Specialization, MIT 6.S191, CMU Neural Nets for NLP, CS224N, CS25, and others
β€’ A table with lectures, descriptions, videos, notes, and authors
β€’ Links to the original lectures and accompanying notes
β€’ WIP markers for incomplete materials
β€’ Instructions for contributors on adding and improving notes

The idea was appreciated. πŸ‘

Instead of another collection of hundreds of links, a course map has been created where one can systematically go through the material without getting lost after a week of studying. πŸ—ΊοΈ

#MachineLearning #AI #DataScience #TechCommunity #LearningResources #OpenSource

✨ Join Best TG Channels https://xn--r1a.website/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
If you already have 200 open tabs with courses, articles, and GitHub repositories on ML, this repository might save the situation a bit. πŸ˜…

Awesome Machine Learning Resources is a huge collection of sub-collections on machine learning, deep learning, and AI. πŸ€–

Instead of endless Google searches, everything is organized into categories:

β€’ fundamentals of machine learning
β€’ neural networks and modern architectures
β€’ tasks and application areas
β€’ datasets
β€’ libraries and tools
β€’ fairness and AI ethics
β€’ production ML and MLOps

Each link has a short description, so you can quickly understand whether it's worth opening it or skipping it. πŸ“

I particularly liked that the authors mark abandoned collections with an icon if they haven't been updated in over a year. ⚠️

https://github.com/ZhiningLiu1998/awesome-machine-learning-resources

#MachineLearning #DeepLearning #AI #MLOps #DataScience #TechResources

✨ Join Best TG Channels https://xn--r1a.website/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
This media is not supported in your browser
VIEW IN TELEGRAM
Someone spent several months manually writing a 200-page guide on mathematics and the basics of machine learning. πŸ“˜

No marketing fluff or endless links between articles. Just an attempt to gather all the most important things in one place. 🎯

Inside:

β€’ neural networks: backpropagation, SGD, Adam, BatchNorm; βš™οΈ
β€’ classic ML: SVM, Gradient Boosting, K-Means, PCA; πŸ“Š
β€’ hardware for AI: Tensor Cores, Systolic Arrays, CUDA; πŸ–₯️
β€’ transformers: Multi-Head Attention, KV Cache, LoRA; 🧠
β€’ computer vision: ViT, CNN, MAE, IoU, NMS, VLM; πŸ‘οΈ
β€’ agent systems: ReAct, memory, orchestration, OpenClaw. πŸ€–

The author describes it as the material he would have wanted to receive himself several years ago. πŸ•°οΈ

And yes, the entire guide is distributed free of charge. πŸ†“

https://www.arjunvirk.com/writing/ml-guide

#MachineLearning #AI #DeepLearning #DataScience #NeuralNetworks #Tech

✨ Join Best TG Channels https://xn--r1a.website/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
πŸ”– A large collection of AI projects for practice

We found a repository that will help you move from theory to real development of AI applications.

Inside are dozens of ready-made projects: AI analytics, RAG systems, OCR applications, code review agents, travel assistants, and much more.

⛓️ Link to GitHub: https://github.com/Sumanth077/Hands-On-AI-Engineering

#AI #MachineLearning #Python #DataScience #OpenSource #Tech

✨ Join Best TG Channels https://xn--r1a.website/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
❀5
Multi-Label Text Classification with Scikit-LLM πŸ“

In this article, you will learn how to perform multi-label text classification using large language models and the scikit-LLM library, without the need for labeled training data or complex model training. πŸš€

Topics we will cover include:

What multi-label classification is and why it matters for nuanced text analysis. πŸ“Š
How to set up and configure scikit-LLM with a free, open-source LLM from Groq for zero-shot inference. βš™οΈ
How to load a real-world dataset and run multi-label sentiment predictions using a familiar scikit-learn-style workflow. πŸ“ˆ

Read: https://machinelearningmastery.com/multi-label-text-classification-with-scikit-llm/ πŸ”—

#ScikitLLM #TextClassification #LLM #MachineLearning #ZeroShot #DataScience

✨ Join Best TG Channels https://xn--r1a.website/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
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://xn--r1a.website/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
❀4
πŸŽ“ 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://xn--r1a.website/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
πŸ€– Calculating the Self-Attention mechanism in pure PyTorch.

The Attention Mechanism allows transformer neural networks to determine the connection between words in a text and dynamically focus on the most important context. We will step by step implement the basic algorithm Scaled Dot-Product Attention, using classic matrices of queries (Query), keys (Key) and values (Value). This will help us to visually see how the attention weights are mathematically calculated and how the model matches the tokens with each other. 🧠✨

To start, we will install the PyTorch library for performing tensor calculations. πŸ› οΈ

pip install torch

The library has been successfully loaded and is ready for mathematical modeling of transformer layers. βœ…

We will generate random vectors Query, Key and Value to simulate the passage of tokens through linear projections. 🎲

import torch
import torch.nn.functional as F

q = torch.randn(1, 3, 4) # (batch, seq_len, dim)
k = torch.randn(1, 3, 4)
v = torch.randn(1, 3, 4)

The tensors have been initialized and represent three hidden states for a sequence of three words. πŸ“

We will calculate the token similarity matrix through the scalar product and then scale it by the square root of the vector dimensions. πŸ”’

scores = torch.bmm(q, k.transpose(1, 2)) / (q.shape[-1] ** 0.5)
attention_weights = F.softmax(scores, dim=-1)
output = torch.bmm(attention_weights, v)

The scalar product has been translated into probability weights, based on which the final contextual vector has been formed. πŸ”„

A control run of the output dimension calculation:

python3 -c "import torch; q, k = torch.randn(1, 3, 4), torch.randn(1, 3, 4); print('Attention OK') if torch.bmm(q, k.transpose(1, 2)).shape == (1, 3, 3) else print('Error')"

Expected output: Attention OK βœ…

The Self-Attention formula lies at the heart of all modern LLMs, allowing them to process long contexts in parallel, unlike old recurrent networks (RNNs). Understanding this base is critically important for working with transformers, optimizing architectures and configuring KV-cache mechanisms. πŸš€πŸ§ 

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

✨ Join Best TG Channels https://xn--r1a.website/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
Please open Telegram to view this post
VIEW IN TELEGRAM
❀4