r/learnmachinelearning • u/Winter_Mistake_3185 • 5h ago
Tutorial Your GPU Kernel Compute-Bound or Memory-Bound? | Kernel Engineering | Session 4
r/learnmachinelearning • u/Winter_Mistake_3185 • 5h ago
r/learnmachinelearning • u/nian2326076 • 19h ago
Readers preparing for MLE interviews can choose an ML or system-design prompt on PracHub and explain their approach. If you're applying to new roles, LandOffer can autofill repeated application fields. I work on both.
Is it possible to pivot to an MLE role with 15y experience as a full software engineer. What is your suggestion on which companies or roles to apply to?
r/learnmachinelearning • u/PriorAirport4567 • 5h ago
r/learnmachinelearning • u/JuniorList871 • 5h ago
Official waveform benchmarks. The ECG scores give context for the encoder; the input-mask example in this post is a loader check.
Take two ten-second ECG arrays. In the first, the sensor loses contact for the final second but the recording keeps running. In the second, the recording ends after nine seconds and the loader pads it to ten. Both arrays can have identical trailing zeros.
Ant Ling’s open LingSante-Pulse encoder accepts two masks from the loader. In that final second, the dropout should have observed=False, sample_present=True. For padding, both should be false. A zero actually measured by the sensor is a third case: it can have both flags true.
That’s a three-example unit test for a time-series pipeline. Keep the values and positions identical, change only the recording history, then assert the two flags at the same index in each array.
r/learnmachinelearning • u/ananxxBeginning1202 • 11h ago
Could someone suggest me a roadmap there are multiple road maps available on the internet but am confused which to follow by the way am also learning dsa on the side
r/learnmachinelearning • u/Sea-Can-2977 • 5h ago
I'm trying to teach AI Engineering through video games. Would this actually help you learn?
I've been exploring a different way to teach AI Engineering concepts.
Instead of conventional slides, tutorials and architecture diagrams, I'm building a pixel-art dungeon adventure where every level represents a real AI engineering challenge.
Two characters navigate the dungeon, build AI systems, encounter production failures, debug them and unlock new capabilities as they progress.
The first campaign covers Retrieval-Augmented Generation (RAG), starting with the fundamentals and gradually progressing towards production-grade architectures.
I recently published the first episode, and I'd genuinely love feedback from people learning or working in AI.
Does this storytelling format make the concepts easier to understand? Would you prefer shorter explanations or more detailed technical walkthroughs?
I'm still experimenting with the format, so constructive criticism is very welcome.
Here's the first episode: https://www.instagram.com/p/DgXlVepyLy6/
r/learnmachinelearning • u/NeuTriNo2006 • 6h ago
I am learning AI engineering topics like ML,DL,Rags etc from Campus X yt playlists and I want good notes for AI engineering because at the end I will retain the stuff from notes... So if anyone have any good resources please let me know...I have lizard book pdf which I can read but need notes to revise. If anyone has campus X paid notes which you can share that would be really helpful as I cant afford 1100, I will purchase those notes after I start earning but for the time being please share if anyone has purchased...
Thank you for your help and time !
r/learnmachinelearning • u/Hackyard_Team_Assist • 10h ago
Disclosure: I help run this at Hackyard, so I'm posting as the organizer.
Here is an opportunity to build something real and get it judged. The Adaption Dataset Challenge is online and free, Nov 16 to Dec 6, 2026 (closes 11:59 PM IST).
What you do: build an instruction-tuning dataset for a language or domain that gets little coverage, improve it with Adaption, then show before-and-after evaluation results. What you learn: how to prove a dataset got better, not just collect data.
What you can win: the first-place team gets $100 USD cash and 2 VIP swag boxes (the cash is only for submissions that use Adaption). Every registrant gets $500 in Adaption platform credits (credits, not cash).
Teams of 1 to 4, solo is fine, 18+. Details and registration: https://hackyard.org/events/adaption-labs
Dates are planned and may change. Happy to answer questions here.
r/learnmachinelearning • u/Guilty_Question_6914 • 7h ago
Hello i am currently learning pytorch so to better understand neural networks and computer vision for robotics.I am currently trying to load a pytorch model i made but when i wanna use model.eval().I get a error the code and the error message is below. i hope you can help me:
# this is a python script on to learn to load and use self made python model
import torch
from torch.utils.data import DataLoader # to load test data
import torch.nn as nn
from torchvision import datasets
from torchvision.transforms import v2
print("model is made ")
# create device below
device = torch.accelerator.current_accelerator(check_available=True).type if torch.accelerator.is_available() else "cpu"
# load model
lmodel = torch.load("pytorch/quickstart0/test_modelen/t1e10w.pth",weights_only=True)
print(f"model is: {lmodel}")
# create test data
testen_data = datasets.FashionMNIST(root="pytorch/dataset/fashion_data",
train=True,
download=False,
transform=v2.Compose([v2.ToImage(),v2.ToDtype(torch.float32,scale=True)]))
apparaat = torch.accelerator.current_accelerator().type if torch.accelerator.is_available() else "cpu"
print(f"we use: {apparaat} device")
print(lmodel)
# create classes
classes = [
"T-shirt/top",
"Trouser",
"Pullover",
"Dress",
"Coat",
"Sandal",
"Shirt",
"Sneaker",
"Bag",
"Ankle boot",
]
x,y = testen_data[0][0] , testen_data[0][1]
lmodel.eval() # check model
print("model is now evaluated")
with torch.no_grad():
x = x.to(device)
pred = lmodel(x)
predicted, actual = classes[pred[0].argmax(0)], classes[y]
print(f'Predicted: "{predicted}", Actual: "{actual}"')The error message:
Traceback (most recent call last):
File "/home/d22/cv_projects/torch_py/pytorch/quickstart0/load_test1.py", line 45, in <module>
lmodel.eval() # check model
^^^^^^^^^^^
AttributeError: 'collections.OrderedDict' object has no attribute 'eval'
r/learnmachinelearning • u/HadiHz88 • 11h ago
Hello
I’m now doing my Master’s in AI & Data Engineering while working full-time as a full-stack developer. And honestly, I’m starting to feel like my university program is lagging pretty far behind what’s actually happening in the industry right now.
Because I already write production code for a living, I really care about how things are built, structured, and deployed in the real world, and not just messing around in isolated Jupyter notebooks or following 3-year-old YouTube tutorials. And sadly, while learning in this field, there is no Senior Engineer to guide me, just me, Claude, and dream.
I’m looking to do a proper deep dive into modern AI/ML and Data Engineering on my own time, and I’d love some recommendations from people actually working in the field:
I might just seem lost, so excuse my lack of a roadmap before asking those questions.
Appreciate any pointers
r/learnmachinelearning • u/Efficient-Ant-3687 • 9h ago
A little while ago I posted about trying to reduce GPU memory by saving only what backprop actually needs. That was the early stage of SHV (Sub-loop Heterocoding VRAM). I've since moved from compressing saved states toward looking at when tensors are created, how long they stay live, and whether they need separate storage in the first place.
The most useful result came from a fairly specific problem with gradient accumulation and tied embeddings.
GPT-2 Small shares its input embedding and output projection weights. A full FP32 gradient for that matrix is about 147 MiB. Once you start accumulating over several microbatches, an existing gradient can remain live while the output head computes another full contribution. The question I wanted to test was whether the output-head VJP could write its contributions directly into the existing gradient destination.
The implementation is straightforward in principle: split the output-head VJP into token tiles, accumulate each weight-gradient contribution into the destination with addmm_, compute the hidden-state gradient, and pass that back into the native Transformer backward. The embedding backward remains native autograd. Clipping and the optimizer update still happen once per effective batch. No CPU gradient offload or lower-precision gradients are used here.
I compared three versions, because simply comparing against unoptimized PyTorch wouldn't tell me much:
Here's the real-text benchmark on a Tesla T4 (GPT-2 Small, FP32, WikiText-2, effective batch 32, microbatch 8, sequence length 512). All three use AdamW8bit, SDPA, non-reentrant checkpointing and fused GELU. I ran two reversed execution blocks, with 16 measured optimizer updates per worker.
| Mode | Peak allocated | Peak reserved | Median step time (two blocks) |
|---|---|---|---|
| TILED8 | 1847.59 MiB | 2060 MiB | 5534 / 5516 ms |
| SPLIT_RETURN8 | 1762.67 MiB | 1864 MiB | 5021 / 4978 ms |
| DIRECT_SINK8 | 1640.78 MiB | 1762 MiB | 4984 / 4983 ms |
That's 11.19% lower peak allocated memory than TILED and 6.92% lower than the matched SPLIT_RETURN control. Both blocks reproduced the same memory peaks. Compared with SPLIT_RETURN, the step time is essentially unchanged. The larger speed difference against TILED also includes the graph split, so I don't attribute all of that to buffer reuse.
I also checked an actual allocation constraint instead of just comparing peak counters. With the native PyTorch allocator capped at 1792 MiB after initialization, TILED8 and SPLIT_RETURN8 hit CUDA OOM in both trials; DIRECT_SINK8 completed four updates each time. Smaller control microbatches could still run, so this is a matched-Micro8 result rather than a claim that SHV magically expands physical VRAM.
One interesting thing I found along the way: improving a particular tensor's lifetime doesn't necessarily reduce the full training peak. In one later experiment I reduced the local embedding VJP memory, but the overall peak didn't move. That made me stop pursuing that branch and focus on the actual peak overlap.
I've now packaged the working path as SHV v0.1.0rc2, with an installable wheel, a small GPT-2 training API and reproduction notebooks. The exact published wheel completed its GPU installation smoke test on T4; the global gradient relative L2 against TILED was 9.68e-8. That is a separate two-step synthetic smoke, not the 16-step performance benchmark above.
This is still a narrowly scoped research preview: FP32 GPT-2 Small on the tested T4 stack, with dropout disabled. I haven't qualified arbitrary models, mixed precision or distributed training. I also tested Liger, but the formal comparison stopped at a predeclared numerical-agreement gate, so I'm not claiming a performance win over it.
The repository includes the implementation, measured records, numerical checks, failed branches and the notebooks needed to repeat the experiments.
GitHub: https://github.com/Mr-wuff/Sub-loop-Heterocoding-VRAM
Release: https://github.com/Mr-wuff/Sub-loop-Heterocoding-VRAM/releases/tag/v0.1.0rc2
HF benchmark records: https://huggingface.co/datasets/wuff-mann/Sub-loop-Heterocoding-VRAM
I'd be particularly interested in how others handle gradient-buffer ownership at graph boundaries. Has anyone run into similar overlap with tied weights and gradient accumulation, or found cases where avoiding the extra allocation actually moves the bottleneck somewhere unexpected?
r/learnmachinelearning • u/Scheme8579 • 10h ago
TER, Figure 2. Daily CGM representations and supported multi-day history.
Shuffle a set of daily glucose records and yesterday’s row might belong to another person. LingSante-Pulse’s released glucose-monitoring pipeline takes the subject ID and actual window start time alongside each day of readings. It can also take an episode ID to keep separate recording periods apart. The subject ID groups history; it doesn’t become a numeric feature.
For each day, the pipeline can draw on up to seven days of causal context. The extractor returns a history_days count with the embedding. Give it a day with no usable earlier window and it falls back to that day alone.
If you process one file per day, inspect that count before trusting a longitudinal experiment. A folder can contain months of data while each individual extraction sees just one day.
r/learnmachinelearning • u/Realistic-Jeweler176 • 11h ago
I found this really big dataset with around 11k matched question pairs in 6ish languages, and it has no machine translation: I confirmed there actually was
It helped me fine-tune models by teaching specialized mathematical vocabulary, symbols, and phrasing that standard translators often get wrong
If anyone wants it, it's here:
https://huggingface.co/datasets/rudrarajumc-star/Bilingual-Math-Dataset
r/learnmachinelearning • u/XuanKiriDev • 11h ago
Hey everyone,
I'm currently developing a movie and TV streaming platform, and I've been struggling with implementing an intelligent automatic catalogue generation system.
My tech stack is React, TypeScript, Node.js, Express, PostgreSQL, Redis, TMDB, OMDb and DeepSeek.
I'm trying to achieve something similar to how modern streaming platforms organize entertainment into dynamic collections with natural, professional headings, such as:
- Beyond the Known Universe
- Love Against All Odds
- Small Towns, Dark Secrets
- When Machines Take Control
- Born to Be Extraordinary
- Because You Watched [Movie or TV Show]
The examples above are just to explain the type of experience I'm trying to build.
I don't want to manually create hundreds of catalogue headings or manually assign movies and TV shows to each catalogue. I also don't want to maintain a hardcoded dictionary of headings and keyword combinations.
Ideally, the system should automatically:
- Analyse entertainment metadata, plot descriptions, genres, keywords and relationships.
- Discover interesting connections between different movies and TV shows.
- Generate original, natural-sounding editorial catalogue headings.
- Find entertainment that genuinely matches each heading.
- Combine relevant entertainment from different countries and languages, rather than favouring Hollywood or English-language content.
- Prevent duplicate catalogues and excessive franchise repetition.
- Generate new collections periodically as the entertainment database grows.
- Send global editorial catalogues to an administrator for review before publication.
For personalized catalogues, I also want the system to automatically generate collections based on each user's watch history, search history, interests and viewing behaviour without requiring manual intervention for individual users.
**What I've tried so far**
I've implemented a keyword-based grouping engine using TMDB metadata, combined with DeepSeek for semantic evaluation, catalogue naming and final entertainment selection.
The system technically works. It can generate catalogue headings, select entertainment and persist the results in PostgreSQL. However, the quality of the generated catalogues is not what I'm looking for.
The headings often sound like combinations of keywords rather than professionally curated streaming collections. I've also noticed that the selection can become overly concentrated on English-language entertainment, even when international titles are available.
I've tried keyword filtering, semantic relevance scoring, narrative extraction, duplicate prevention and diversity ranking, but I'm beginning to question whether my entire approach is wrong.
**My questions are:**
I'm not necessarily trying to replicate Netflix's proprietary algorithms. I'm trying to understand the underlying engineering principles and build a scalable solution of my own.
I've spent quite a lot of time experimenting with this, and I'd appreciate advice from anyone experienced in recommendation systems, machine learning, semantic search, content discovery or streaming platform development.
Technical explanations, architectural suggestions, research papers, open-source projects and practical implementation ideas would all be appreciated.
Thanks in advance.
r/learnmachinelearning • u/Right-North-7505 • 11h ago
Enjoy, from an educator perspective
r/learnmachinelearning • u/Handwritten_note • 22h ago
WHAT YOU WILL LEARN
If you are not able to find this book in your amazon
Search on Google : handwritten notes Shishir Singh kindle you will get first Link
SECTION 1: NEURAL NETWORK FOUNDATIONS
Build a strong understanding of how neural networks learn and make predictions.
SECTION 2: CNN, RNN & SEQUENCE MODELS
SECTION 3: TRANSFORMERS & SELF-ATTENTION
Explore the architecture behind modern Transformer-based models.
Attention Mechanism: Fundamentals and Recap
Bahdanau vs Luong Attention
Introduction to Transformers
Self-Attention from First Principles
Query, Key and Value (Q, K, V)
Scaled Dot-Product Attention
Understanding Self-Attention
Multi-Head Attention
Positional Encoding
Layer Normalization
Transformer Encoder
Masked Self-Attention
Cross-Attention
Transformer Decoder
Transformer Inference
WHY CHOOSE THIS BOOK?
Mathematical Foundations: Important equations, derivative calculations, weight updates, and worked numerical examples.
Architecture-Based Learning: Understand how CNN, RNN, LSTM, GRU, and Transformer models work internally.
Practical Understanding: Explore a sentiment analysis project using Simple RNN.
WHO SHOULD READ THIS BOOK?
Understand the mathematics. Visualize the architectures. Master Deep Learning.
r/learnmachinelearning • u/Handwritten_note • 22h ago
Link to See Sample and Buy : Amazon Kindle/paperback click here

For this book if are not able to find on amazon you type on google : Handwritten notes Shishir Singh kindle
MASTER MACHINE LEARNING FROM FUNDAMENTALS TO ADVANCED ALGORITHMS!
Looking for a structured and easy-to-revise resource to understand Machine Learning? This complete edition of Machine Learning – Handwritten Notes brings together essential concepts, mathematical foundations, algorithms, visual explanations, and practical techniques in one comprehensive volume.
Designed for Computer Science students, aspiring Machine Learning engineers, AI enthusiasts, and students preparing for technical interviews and competitive examinations, this book presents Machine Learning concepts in a concise, handwritten-style format.
WHAT YOU WILL LEARN
1. Machine Learning Fundamentals & Data Preparation
2. Regression & Classification Algorithms
3. Ensemble Learning, Boosting & Advanced Algorithms
4. Clustering & Unsupervised Learning
WHY THIS BOOK?
WHO SHOULD READ THIS BOOK?
r/learnmachinelearning • u/xain1999 • 20h ago
Hey everyone!
Back in 2024, I started working on LearnGraphTheory.org as a personal project with a simple goal: to make graph theory, algorithms, and mathematical optimization easier to learn through interactive visualizations.
As someone with a background in mathematics and operations research, I've always felt that these subjects could be taught in a more intuitive and interactive way.
What started as a small project has gradually grown into an educational platform that now receives 10,000 monthly visitors from around the world, mainly through organic growth.
Over the past two years, I've continuously worked on improving the platform and adding new features, including:
- 80+ interactive algorithms with step-by-step visualizations.
- 70+ educational articles and tutorials.
- 20 video lessons.
- Interactive 2D and 3D graph visualizations.
- Built-in Python and JavaScript code editors.
- 8 mathematical optimization calculators.
- Operations research tools for vehicle routing, project scheduling, linear programming, and more.
- Real-world map-based algorithm visualizations.
- Cloud saving and synchronization.
- Support for six different languages.
It's been really rewarding to see people from different countries using the platform, whether they're students, teachers, researchers, or developers.
One of my main goals is to keep the platform's interactive learning resources freely accessible to everyone. I'm also exploring ways to make the project financially sustainable without putting these resources behind a paywall.
There's still a lot I want to add, including more advanced algorithms, optimization tools, educational content, and additional languages.
I would love to hear your thoughts, especially from people studying or working in mathematics, computer science, and operations research.
Are there any particular algorithms, tools, or features you'd like to see added to the platform?
You can check it out here: https://learngraphtheory.org/
Thanks to everyone who has supported the project so far!
r/learnmachinelearning • u/Mind_the_math • 1d ago
Imagine generating a completely random dataset, asking k-means to find 4 clusters, and getting 4 convincing-looking groups. That's not a bug. It's a consequence of how the algorithm works.
I made a video about this and explored a few interesting questions:
- Why k-means always produces clusters, even on random data.
- Why the elbow method doesn't prove that clusters actually exist.
- Why hierarchical clustering and DBSCAN can run into similar issues.
- How the Hopkins statistic, silhouette score and gap statistic can help determine whether there's any real structure in the data.
https://youtu.be/g0AUKBGx-zA?is=Sy-5jPGL572__6Po
If this sounds interesting, feel free to give it a watch! I'd love to hear what you think, and any feedback or suggestions are welcome.
r/learnmachinelearning • u/Daniel01m • 18h ago
Hello,
I am looking for some advice on my education and career path. I just finished a B.Sc in CS with an applied math minor and electives. The minor focused mostly on optimization, statistics and probability, and I found those courses quite interesting as long as we did not venture too far into "theory-land". Not that theory isn't important, but without a super formal background I rely a lot on "intuitive arguments" to understand the theory, and without practical use cases I do not found it super motivating. I also found courses like algorithms and parallel computing very fascinating.
have been interested in steering towards some intersection of computation/engineering and modeling, and now face a choice in my Master's. Either I continue on the same path, doing a CS major to further focus on algorithms and scalable computing, with minor and electives in ML/prob/stats courses. For this path, I envision the career would steer more towards ML infra / systems engineering. Or I go all in on the ML / applied math side, and take fewer "systems" courses as electives. For this, the goal would be a career more on the modeling side, either in tech or other industried (e.g. finance, energy, etc). I think both can be interesting, and have no strong preference as of now. I have worked part time as a generic backend SWE, and find it OK, but with AI now I feel both intellectually stimulated and concerned about the future of the field.
I always envisioned the former option being my path, but with the advent of the AI boom and whatnot I am now more concerned about not only finding an interesting career, but also build a moat against automation. FWIW, I am EU-based and educational costs are not a concern. I will not be pursuing a PhD.
Concrete questions:
Thank you!
r/learnmachinelearning • u/studentofaustria • 1d ago
I’m a student currently learning AI/ML and I already have a solid grasp of Python. Right now, I’m at the stage where I want to move beyond tutorials and understand what actually matters in the real world.
More than just following a generic roadmap, I really want to hear directly from people who are already working as AI/ML engineers, data scientists, or interns. Knowing how fast this field moves, I’d love to learn from your real-world experience so I don’t waste time on the wrong things.
If you're working in AI/ML, I’d really appreciate your honest advice on a few things:
What skills or tools do you wish you had learned earlier before your first internship or job?
What kind of projects actually stand out to you when looking at a beginner's resume or GitHub?
What are the biggest traps or overrated things beginners waste time on right now?
r/learnmachinelearning • u/No-Conclusion3720 • 16h ago
UK's largest-spending government department just confirmed a cyberattack that forced it to take systems offline. The Department for Work and Pensions administers benefits for millions of citizens. Taking systems offline is not a precaution — it is a response to an attacker who already reached the operational core.
The pattern here is not novel. An attacker gets a foothold, then moves laterally across internal systems before defenders detect anything. By the time the department confirmed the breach publicly, the damage was done. The remediation is offline systems, not contained blast radius.
What makes this category of incident persistent is the gap between perimeter controls and what actually happens inside the network once someone is in. Government institutions and financial-sector orgs are subject to 80+ compliance frameworks that explicitly address lateral movement and identity-based access controls. The frameworks exist. The audits happen. The breaches still happen.
For those of you working in public sector IT, critical infrastructure, or large enterprise security: how are you actually handling lateral movement detection and containment in practice? Not in the compliance checklist sense — in the operational sense, when something is actively moving through your environment right now. What has worked, what has failed, and where do you still feel exposed?