Machine Learning
41.8K subscribers
3.71K photos
38 videos
50 files
752 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
Machine Learning
Photo
# Learning rate scheduler for transformers
def lr_schedule(step, d_model=512, warmup_steps=4000):
arg1 = step ** -0.5
arg2 = step * (warmup_steps ** -1.5)
return (d_model ** -0.5) * min(step ** -0.5, step * warmup_steps ** -1.5)


---

### **📌 What's Next?
In **Part 5
, we'll cover:
➡️ Generative Models (GANs, VAEs)
➡️ Reinforcement Learning with PyTorch
➡️ Model Optimization & Deployment
➡️ PyTorch Lightning Best Practices

#PyTorch #DeepLearning #NLP #Transformers 🚀

Practice Exercises:
1. Implement a character-level language model with LSTM
2. Add attention visualization to a sentiment analysis model
3. Build a transformer from scratch for machine translation
4. Compare teacher forcing ratios in seq2seq training
5. Implement beam search for decoder inference

# Character-level LSTM starter
class CharLSTM(nn.Module):
def __init__(self, vocab_size, hidden_size, n_layers):
super().__init__()
self.embed = nn.Embedding(vocab_size, hidden_size)
self.lstm = nn.LSTM(hidden_size, hidden_size, n_layers, batch_first=True)
self.fc = nn.Linear(hidden_size, vocab_size)

def forward(self, x, hidden=None):
x = self.embed(x)
out, hidden = self.lstm(x, hidden)
return self.fc(out), hidden
🔥2❤1
🤖🧠 The Transformer Architecture: How Attention Revolutionized Deep Learning

🗓️ 11 Nov 2025
📚 AI News & Trends

The field of artificial intelligence has witnessed a remarkable evolution and at the heart of this transformation lies the Transformer architecture. Introduced by Vaswani et al. in 2017, the paper “Attention Is All You Need” redefined the foundations of natural language processing (NLP) and sequence modeling. Unlike its predecessors – recurrent and convolutional neural networks, ...

#TransformerArchitecture #AttentionMechanism #DeepLearning #NaturalLanguageProcessing #NLP #AIResearch
❤1
🤖🧠 The Transformer Architecture: How Attention Revolutionized Deep Learning

🗓️ 11 Nov 2025
📚 AI News & Trends

The field of artificial intelligence has witnessed a remarkable evolution and at the heart of this transformation lies the Transformer architecture. Introduced by Vaswani et al. in 2017, the paper “Attention Is All You Need” redefined the foundations of natural language processing (NLP) and sequence modeling. Unlike its predecessors – recurrent and convolutional neural networks, ...

#TransformerArchitecture #AttentionMechanism #DeepLearning #NaturalLanguageProcessing #NLP #AIResearch
🤖🧠 The Transformer Architecture: How Attention Revolutionized Deep Learning

🗓️ 11 Nov 2025
📚 AI News & Trends

The field of artificial intelligence has witnessed a remarkable evolution and at the heart of this transformation lies the Transformer architecture. Introduced by Vaswani et al. in 2017, the paper “Attention Is All You Need” redefined the foundations of natural language processing (NLP) and sequence modeling. Unlike its predecessors – recurrent and convolutional neural networks, ...

#TransformerArchitecture #AttentionMechanism #DeepLearning #NaturalLanguageProcessing #NLP #AIResearch
❤4👍1
📌 How Relevance Models Foreshadowed Transformers for NLP

🗂 Category: MACHINE LEARNING

🕒 Date: 2025-11-20 | ⏱️ Read time: 19 min read

The revolutionary attention mechanism at the heart of modern transformers and LLMs has a surprising history. This article traces its lineage back to "relevance models" from the field of information retrieval. It explores how these earlier models, designed to weigh the importance of terms, laid the conceptual groundwork for the attention mechanism that powers today's most advanced NLP. This historical perspective highlights how today's breakthroughs are built upon foundational concepts, reminding us that innovation often stands on the shoulders of giants.

#NLP #Transformers #LLM #AttentionMechanism #AIHistory
❤1🤩1
500 AI/ML/Computer Vision/NLP projects with code 🚀

This is a large collection of 500 ready-made projects in the field of machine learning, deep learning, computer vision, and NLP 🧠

All examples come with code, so you can not just read them, but immediately analyze and run them ⚙️

➡️ Link to GitHub:
https://github.com/ashishpatel26/500-AI-Machine-learning-Deep-learning-Computer-vision-NLP-Projects-with-code

#AI #MachineLearning #DeepLearning #ComputerVision #NLP #DataScience

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

⭐️ Join Our WhatsApp Channel https://whatsapp.com/channel/0029VaC7Weq29753hpcggW2A
❤4
Diving deep into Deep Learning, Reinforcement Learning, Machine Learning, Computer Vision, and NLP. 🤖🧠

Lectures: 🎓📚
https://github.com/kmario23/deep-learning-drizzle

#DeepLearning #MachineLearning #AI #ReinforcementLearning #ComputerVision #NLP

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

⭐️ Join Our WhatsApp Channel https://whatsapp.com/channel/0029VaC7Weq29753hpcggW2A
❤6
I kept running into the same problem: some of the best AI/ML books are legally free. The authors put them up on their own sites, but the links are scattered across personal pages, university sites, and random GitHub repos nobody finds.

So I built a single index: Awesome Free AI Books. 30+ books across Deep Learning, Reinforcement Learning, Bayesian/Probabilistic ML, NLP & LLMs, Math for ML, Computer Vision, Generative Models, Causal Inference, GNNs, and AI Safety. Think Goodfellow’s Deep Learning, Sutton & Barto’s RL bible, Murphy’s Probabilistic ML, Bishop’s latest, Jurafsky & Martin’s SLP3 draft, and more.

Every link points straight to the author’s or publisher’s own page—no rehosted PDFs, no shady mirrors. A weekly GitHub Action checks all links so they don't rot over time. 🔄

It’s open source and open to contributions. If you know a legitimately free book that’s missing, PRs and issues are welcome. 🤝

Repo:
https://github.com/MarcosSete/awesome-free-ai-books

#AI #MachineLearning #DeepLearning #NLP #LLMs #OpenSource

✨ Join Best TG Channels https://t.iss.one/addlist/0f6vfFbEMdAwODBk
⭐️ Join Our WhatsApp Channel https://whatsapp.com/channel/0029VaC7Weq29753hpcggW2A
❤4
📚 "Natural Language Processing and Large Language Models" is a new open-access book from Springer, written by Chengqing Zong, Yang Zhao, and Yanjun Ma.

It's almost 400 pages long and provides an introduction to modern natural language processing and large language models.

Inside, you'll find information on: neural networks, distributed representations, language models, Transformers, BERT, GPT, tokenization, sentiment analysis, information extraction, text summarization, natural language understanding, machine translation, question answering, and RLHF.

In my opinion, this is a good reference guide for those who want to understand these topics without a very high barrier to entry. I would recommend it. ✨

https://link.springer.com/book/10.1007/978-981-92-0682-7

#NLP #LLM #ArtificialIntelligence #MachineLearning #DataScience #TechBooks

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

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