r/learnmachinelearning • u/Ok-Friendship2020 • 21h ago
Help why is this taking so much time to train the data???
its been 158 mins
r/learnmachinelearning • u/Ok-Friendship2020 • 21h ago
its been 158 mins
r/learnmachinelearning • u/Gargabo • 16h ago
Hey everyone!
I've been learning Python and I'm really interested in getting into machine learning and deep learning. The problem is that whenever I try to figure out how to get started, I end up finding a huge amount of mathematics, statistics, linear algebra, calculus, and theory that I'm apparently supposed to learn first.
I understand that math is important if you want to properly understand how these models work, and I'm not trying to avoid learning it forever. However, I don't want to spend months studying theory before I can actually start building things and experimenting with code.
I'd much rather learn by doing projects, making mistakes, seeing what happens when I change something, and gradually learning the theory behind it as I need it.
Is it realistic to start building ML projects with Python while learning the math along the way?
How much math do I actually need to know before getting started with things like neural networks and deep learning?
Would you recommend starting with scikit-learn and traditional ML, or jumping straight into PyTorch or TensorFlow?
Are there any resources that teach you by making you build actual projects instead of spending most of the time on theory?
I'm not looking for a way to completely skip the fundamentals. I just want to avoid getting stuck in tutorial hell or spending so much time preparing to learn that I never actually get to build anything.
I'd really appreciate any advice, especially from people who learned this way themselves. Thanks!
r/learnmachinelearning • u/atronos_kronios • 6h ago
I went into this thinking: GPT-2 is only 124M parameters. How much memory could training it possibly need?
Turns out, quite a lot lol.
I traced the second training step of my from-scratch GPT-2 in PyTorch. Setup: one A40, fp32 AdamW, batch 8, 1,024 tokens per sequence.
Peak allocated memory: 17,054 MiB. Weights + Adam + masks and persistent overhead at that point: about 1,494 MiB. I was counting what the model owns and missing almost everything training makes.
The bit that surprised me most: four vocab-sized tensors take up 6,282 MiB at the peak. My block hooks only saw 13,913 MiB; the allocator trace caught the extra spike inside log-softmax backward.
I also tested batches in fresh processes. 20 worked, 21 didn't. At batch 20, peak allocated was 40,375 MiB, while peak reserved was 44,948 MiB. So just dividing the card's capacity by the tensor budget wasn't enough.
I put the whole thing into my new blog post, with the maths, a stacked memory chart, an interactive step-by-step scrubber, and a batch/context calculator. Code and raw CSV are there too. The calculator is an estimate, not a guarantee that a batch fits.
Post: https://angry-kratos.github.io/posts/2026-10-training-memory/ Code: https://github.com/angry-kratos/angry-kratos.github.io/tree/main/code/training-memory
I'm learning the maths behind ML systems by building and measuring them. If you spot something off in the accounting, tell me. That's the whole point of putting the experiments out there.
r/learnmachinelearning • u/Kyadidi • 12h ago
AI explanations lose most people at the vocabulary, not the ideas. Here are five terms, translated:
If these five make sense, you already understand more than you think — the rest is practice, not theory.
r/learnmachinelearning • u/luisvalerio • 16h ago
Most of us start learning AI with real intent: a great course, the book everyone recommends. Then life interrupts. A hard week at work, a move, a busy month. Coming back means remembering where you were and finding the next step, and that friction is often enough to stall us. Meanwhile the field keeps moving, and every week away feels like falling further behind.
What changed it for me was rethinking what I studied, not just how often. Some ideas don't add to what you know; they rewire it. Education researchers Jan Meyer and Ray Land called these threshold concepts in 2003. Their classic example is opportunity cost: once it clicks, nothing is ever free again, and every hour and every dollar carries the price of what you gave up for it. If you code, you've felt this with recursion. One day it's a magic trick; the next, you see it in trees, parsers, and every divide-and-conquer problem. You can't unlearn a threshold concept, and it quietly reorganizes everything you learn after it.
That's the strategy, and it works for any field: find its handful of thresholds, learn them roughly in the order they were discovered, and go deep enough that they change how you see the rest. New facts stop piling up and start snapping onto a frame.
Here are eight thresholds that greatly help explain AI, roughly in their historical order, each with a surprising fact and a free resource:
These eight are a small subset. There are of course many more threshold concepts in AI, and which ones matter next depends on what you’re exploring, at what granularity and where you’re starting from. The bigger point here is the approach and orientation.
💡 My biggest lightbulb moment came from working out by hand how a neural net could handle a fixed goal, like deciding whether a piece of text fits a topic. I started with a neural version of bag-of-words, one weight per word, then realized I could encode arbitrary rules in the parameters. After that, "learned from data instead of programmed" stopped feeling abstract.
The full write-up has more of the history behind each idea, the "spiral" approach to going deeper with each pass, and a study prompt that turns these into a plan with any LLM: Feynman's wobbling plate and 8 core ideas behind modern AI
Disclosure: I'm building Zairai, an AI coach built on these learning science principles, delivering bite-sized interactive sessions that feel like real work and compound strategically: you step into the shoes of the people who made these discoveries and measure for yourself, so the foundations that you're missing click and everything built on them makes more sense. It's free to start and launching soon. Everything above works without it.
What was the threshold concept that made AI click for you?
r/learnmachinelearning • u/Lonely-Gear6676 • 15h ago
Title: How do you introduce yourself in an AI Engineer interview?
Hey everyone,
I feel like my self-introduction isn't that good during AI Engineer interviews.
I have around 3 years of IT experience, but I sometimes struggle to explain my experience properly.
If you're working as an AI Engineer, GenAI Engineer, or LLM Engineer, could you share how you introduce yourself in interviews?
Even a simple example would really help me improve mine.
Thanks in advance!
r/learnmachinelearning • u/Critical-Push8054 • 15h ago
Hi everyone. I’m a hands-on AI engineering leader with a PhD in computer science and experience teaching in academia and mentoring working professionals. My work involves both leading teams and building AI systems—from architecture and implementation to evaluation and deployment.
Based on that experience, I’ve been developing Nextia Learning, a free platform covering the different skills involved in AI engineering.
The motivation is straightforward: AI engineering requires knowledge across several areas, and knowing what to learn—and in what order—can be difficult.
Understanding models matters. So does knowing how to prepare data, build APIs, work with databases, evaluate outputs, manage permissions, deploy applications, and investigate failures. With LLMs and agents, you also need to think about retrieval, tool access, unpredictable outputs, latency, and cost.
You don’t need to master everything before you start. But understanding how these pieces fit together helps you build better systems and identify where you need to develop your skills.
That’s what I wanted to reflect in this platform.
Courses covering different aspects of AI engineering
The curriculum brings together:
The selection reflects the range of problems and decisions I’ve encountered while building AI applications. My aim is to help learners develop skills across these areas and understand how to use them together.
Learning paths are a central part of it
Having a collection of courses doesn’t necessarily tell you where to begin.
A software developer moving into LLM applications has different needs from a new graduate learning machine learning, a domain expert applying AI, or someone leading an AI team.
The learning paths organize courses around those goals, with prerequisites and a suggested order. They help you see what to learn next, how it builds on what you already know, and where it fits into the work you want to do.
Lessons are text-first, written in simple English, and include worked examples, guided practice, common mistakes, and checks for understanding. There’s also an interview preparation section.
A few things to be transparent about
You can explore the courses and learning paths here: https://learning.nextia-ai.com/
For those learning or working in AI engineering: which skills were missing from your initial learning but turned out to be important in your work? I’d also welcome feedback on whether the learning paths make sense for your background and goals.
r/learnmachinelearning • u/ArchitectingAI • 13h ago
r/learnmachinelearning • u/Traditional-Dot-7779 • 20h ago
Hi everyone, I'm an undergraduate Geophysics student, working on my final-year thesis. My work involves subsurface imaging, mostly with Python. I'm comfortable with programming, but I'm an absolute beginner when it comes to machine learning and deep learning.
I'd like to apply Implicit Neural Representations at one stage of my workflow, but I don't want to just copy code without understanding what's happening under the hood. So I'm looking to learn the fundamentals properly, from zero. Could you recommend: Books or courses for learning ML/deep learning fundamentals and a suggested learning path: what to study first, and what I can safely skip for now.
Thanks in advance
r/learnmachinelearning • u/forgeandrush • 18h ago
Hello, newb here looking for recommendations for a personal project where I would like to analyze the players' movements from the Mobile Legends Bang Bang (MLBB) Mini-map. From my limited research on Sports Game Analyses – I have learnt that the researchers mostly apply Computer Vision technologies, RNN, and CNN for conducting their analyses. However, contrary to their projects, videogame Mini-maps are simpler without much random events — which means replicating their techniques are a bit overkill.
P.s, a MLBB match typically lasts around 15 minutes and I need all player-movements analyzed for my project. Thanks! **Pic was taken from Vcgamers not mine.
r/learnmachinelearning • u/Horror_Magazine5931 • 3h ago
r/learnmachinelearning • u/No-Show-7313 • 19h ago
I've been working on computer vision projects and one lesson I've learned is that a high overall metric doesn't always tell the full story.
A few things I now check during evaluation:
- Per-class precision and recall
- Confusion matrices and difficult examples
- Performance on validation data that wasn't used for training
- Whether improvements hold up on real-world images
I'm curious how others here approach error analysis. What's the first thing you inspect when a model's validation metrics look good but its real-world predictions are disappointing?
r/learnmachinelearning • u/Any_Floor_1768 • 2h ago
New learners often stall trying to get access to the biggest, newest model, as if that is what stands between them and understanding. In my experience the model choice barely matters for learning. A smaller, older, freely available model is more than good enough to teach you data handling, training loops, evaluation, and why your results are bad, which is where the real learning is. The bottleneck is never the model, it is your understanding of the problem and the data. Spend the energy you would waste chasing access on actually running experiments with whatever you have. Good enough and in your hands beats the latest and out of reach every time for a student.
r/learnmachinelearning • u/Dangerous-Scholar926 • 6h ago
Advice I keep getting is to build intuition for gradients before drowning in formulas, but nobody says what the intuition actually is. Right now a gradient is just a thing I compute. For those who have the intuitive grasp, how do you picture it? Is it the slope direction, a compass pointing uphill, something else? I am trying to get past treating it as a symbol I manipulate and actually feel what it represents. Concrete pictures welcome, I learn way better from those than from the notation.
r/learnmachinelearning • u/Salty_Lie_6840 • 16h ago
Hi everyone,
I’m a self-taught software engineer with a couple of years of industry experience. I was recently made redundant, so I have a good chunk of free time on my hands before I dive heavily back into the job hunt (which, honestly, feels a bit daunting right now).
Lately, I’ve become really interested in Machine Learning and want to start learning it. However, I’ve been reading a lot of discouraging posts lately. It seems like even people with CS Bachelor's degrees are struggling to land MLE roles because they are competing against a massive pool of Masters and PhD graduates.
Given that I don't have an academic background or official credentials in ML, am I wasting my time trying to break into this field?
I’m absolutely willing to put in the work to learn, but I want to be realistic about my employment prospects. For those working in the industry: is there a viable path for an experienced, self-taught dev to pivot into ML/AI roles, or should I focus my energy elsewhere?
Thanks in advance for any insights or brutal honesty.
r/learnmachinelearning • u/readitonly • 23h ago
I started learning CUDA a while back to work on inference and understand FlashAttention. I read a lot of blogs on various topics, but the order was always confusing, so I wrote up the order that I'd pick if I started over.
What it covers:
- H100 architecture
- CUDA software mental model
- Getting started with Matrix Multiplication and building up to a very optimized solution
- Understanding how all of these add to optimization constraints
- An introduction to reading and understanding PTX(the compiler code)
It's meant to be a starter overview that will get you confident enough to read deeper, niche resources. I'd appreciate any feedback or corrections. Cheers!
Link to blog
r/learnmachinelearning • u/Lower-Employment8572 • 14h ago
Hi,
I am trying to transition from a Data Analyst to an AI Engineer role. I recently followed Andrej Karpathy’s youtube video to build a character level LLM.
I feel like i have a rough understanding of how llms work and now i want to move on to building projects that will help me understand other fundamentals.
I am thinking of building a murder mystery game where AI generates the scanerio, the characters as well as any evidence. The players are required to chat with the suspects and solve the case. The game will then give them feedback on their deduction abilities.
I plan to build more projects in the future but i want to start with something that is simplistic enough in terms of concept and scope.
Do you think this is a good project to learn the fundamentals of AI Engineering? Will it attract attention from Hiring Managers and Recruiters?
Any AI Engineers, if you have better project ideas please share!
Thanks you!
r/learnmachinelearning • u/PaintingSuspicious74 • 17h ago
We wanted to understand how well a model will adhere to your fonts and colors and preserve your images when making edits.
Take a look at the complete writeup here: https://cocolabs.ai/blog/introducing-vybbench
Our HuggingFace dataset is here: https://huggingface.co/datasets/cocolabs/vybbench
r/learnmachinelearning • u/dlohbbvct • 17h ago
It's a 50 hour course for beginners in AI/ML (obviously it's fully free). Starts out with linear algebra, derivatives, statistics and then linear regression, neural networks and backpropagation etc...
r/learnmachinelearning • u/No-Conclusion3720 • 13h ago
Researchers at Xint found that OpenAI's compaction feature can be used to copy private model reasoning into ordinary plain text output. Compaction shortens long conversations to manage context limits. The model's internal chain-of-thought, which the service is designed to keep hidden from callers, became readable through a routine operational function. Deployment-time guardrails did not catch it.
The structural problem here extends beyond this one feature. Any system function that touches conversation state or generates output is a potential path for data that was never meant to reach callers. Compaction is one example. Summarization, caching, and tool-call routing are others. Policies applied at configuration time govern expected flows. They do not automatically cover every execution path the runtime can take.
How are teams actually enforcing output policies across non-primary paths like these? Has anyone done a systematic audit of the secondary features that produce or transform output in their deployments — and found surprises?
r/learnmachinelearning • u/DueBid3298 • 8h ago
r/learnmachinelearning • u/wufuheng • 7h ago
r/learnmachinelearning • u/Flashy_Main_9836 • 6h ago
First I felt that such large logic, implementation and intelligence just reduced to such small lines of code made learning such vast concepts meaning less since it's just reduced to like 3 lines of code
Later realised this is the beauty of learning ie learn how the backend works and implement it flawlessly through frontend
Am I the only one who feels this way though?
r/learnmachinelearning • u/Sea-Ad7805 • 12m ago
An exercise to help build the right mental model for Python data. - Solution - Explanation - More exercises
The “Solution” link uses 𝐦𝐞𝐦𝐨𝐫𝐲_𝐠𝐫𝐚𝐩𝐡 to visualize execution and reveals what’s actually happening.