r/learnmachinelearning • u/DueBid3298 • 24d ago
r/learnmachinelearning • u/findkd_ • 23d ago
Project I built a tiny Transformer from scratch to do addition: 99.2% in-distribution, 0% out-of-distribution. Here's what I learned
I've been building a small decoder-only Transformer from scratch (PyTorch) to understand why models fail on arithmetic.
The setup: digit-level vocabulary, trained on 3,800 addition examples.
Results:
In-distribution test: 744/750 (99.2%)
Out-of-distribution (larger operands): 0/10,000
The model looked great until I changed the input distribution. It didn't degrade gracefully, it collapsed.
My OOD split changes operand size, sequence length, result length and carry patterns all at once, so I can't blame any single cause yet (I wrote this limitation in the README).
Next I'll test each factor separately and compare positional encodings (learned, RoPE, Abacus from McLeish et al.).
Two questions for people with more experience: which factor would you isolate first, and is there a mistake beginners often make in this kind of experiment?
Code (Apache 2.0, source only, data and weights are private):
github.com/sferroo/gpt-math-0
r/learnmachinelearning • u/Important-Living-192 • 24d ago
Help Looking for someone to guide
IHi everyone,
I’m looking for some guidance and a realistic roadmap to break into machine learning.
My Background:
I have an engineering background, so I already know basic Python and SQL. Professionally, I previously worked as a market analyst at a firm where I traded crude oil futures. However, the day-to-day work there was entirely manual—mostly heavy Excel modeling, market tracking, and fundamental analysis with no active coding involved.
Why I Want to Make the Switch:
I realized how inefficient manual trading/analysis is and want to transition toward systematic, data-driven methods. Machine learning feels like the logical next step, especially given my background in markets and quantitative concepts.
The Problem:
I am feeling completely overwhelmed. Every roadmap I find lists dozens of math topics, algorithms, frameworks, and deep learning tools. Even with basic Python/SQL knowledge, I'm having a hard time figuring out what is actually essential to learn right now versus what I can safely ignore for now. I'm stuck trying to figure out what to build first and how to learn at a better, sustainable pace.
I would love some advice from people who have been in a similar spot:
What to learn vs. what to skip: Given that I already have basic Python and SQL skills alongside a tech background, what should my step-by-step roadmap look like? What core libraries (Pandas, NumPy, Scikit-Learn) or math topics should I prioritize first, and what can I skip for now?
Beginner Project Ideas: What are some practical, small-scale beginner projects I can build early on to cement my learning, rather than getting stuck in tutorial hell?
Financial Data vs. Toy Datasets: Should I try applying basic ML to financial/time-series data early on since I understand crude oil/futures markets, or is it better to start with standard datasets (housing prices, Titanic, etc.) first?
Learning Pace: How do I structure my learning to make steady progress without burning out or getting lost in the massive amount of content out there?
r/learnmachinelearning • u/Ok-Echo-4535 • 23d ago
How to solve this problem. When required context can't simply be retrieved from a single source.
How can we achieve reliable, dataset-wide intelligence over massive, fragmented datasets when information is distributed across thousands of documents, and conventional RAG cannot adequately preserve or reconstruct the relationships and context between them?
For example:
A company has 10,000 reports spanning five years. Revenue, expenses, production, and operational issues are scattered across different documents and spreadsheets.
The challenge: Identify why profit margins declined over those five years by connecting information across the entire dataset, rather than retrieving a few relevant chunks.
r/learnmachinelearning • u/Big_Platform_7489 • 23d ago
Question PyTorch vs JAX vs Keras for a beginner, which one to learn first
Short answer is PyTorch, but here's when the others make sense.
* **scikit-learn** before any of them, for classic ML. Learn train/test splits and pipelines on tabular data without GPU headaches.
* **PyTorch** first for most people. Most Hugging Face models and a lot of courses use it, so tutorials and answers are easy to find.
* **Keras 3** if you want the gentlest high-level API. It can run on a PyTorch backend, so the habits carry over.
* **JAX** later, if you end up on TPUs or in a research group that uses it. Its function-transform style (jit and vmap) is elegant and confusing on day one.
* **TensorFlow** mostly if a job or an older codebase needs it, or for on-device deployment with LiteRT (formerly TF Lite).
What did you learn first, and would you pick it again?
r/learnmachinelearning • u/Wise-Asparagus6286 • 23d ago
Looking for a Dedicated Study Partner | 8 YOE | 90-Day Job Preparation 🚀
Looking for a Dedicated Study Partner | 8 YOE | 90-Day Job Preparation 🚀
Hi everyone! I'm a 30-year-old female IT professional with 8 years of experience, looking for one serious and dedicated study partner for a 3-month learning and interview preparation journey.
Topics: Generative AI, Agentic AI, Cybersecurity, AI Security, Data Engineering, SRE, MLOps & LLMOps.
Our plan: 2–3 hours of daily study, coding challenges, real-time projects, daily progress tracking, weekly mock interviews, and job preparation. We can also share interview experiences and help each other improve.
I have a detailed 90-day syllabus PDF that we can follow together.
Prefer someone in IST, committed to daily learning and serious about cracking technical interviews.
Not looking for casual learners. I want a consistent, motivated partner who will stay accountable throughout the 90 days.
Interested? Comment or DM me with your experience, target role, and availability. Let's prepare and grow together! 💻
r/learnmachinelearning • u/Frosty_Box_20 • 23d ago
Project Help me build a superhuman STS2 teacher (OstyAI)
An interesting project for people interested in getting into reinforcement learning.
r/learnmachinelearning • u/Sulieman_Wardat • 23d ago
Has anyone tried Qwen3.5-4b with Arabic prompts ?
I have a course project and I'm thinking about taking the Qwen3.5 and use SFT(Supervised Fine-Tuning) to customize it for a specific task , and I want to know if it's good with Arabic prompts
r/learnmachinelearning • u/bhartsb • 23d ago
Unified Embodied Mind Architecture for growing a conscious mind.
reddit.comr/learnmachinelearning • u/Vprojectx • 23d ago
Project I built MLFOX, a CPU-only AutoML library for tabular data (leak-free preprocessing + model comparison in 3 lines)
import mlfox
model = mlfox()
model.fit("data.csv", target="y")
model.report()
It profiles your data, fits preprocessing inside each CV fold (no leakage), compares models, and tests the best one once on a held-out set.
Results on CPU, default settings:
- Breast Cancer: 95.6% accuracy
- Adult (48k rows): 87.3%
- Covertype (581k rows): 95.8%
Specific runs, not guarantees. Tabular classification and regression only.
pip install mlfox
https://pypi.org/project/mlfox/
It's a personal open-source project, so feedback and bug reports are welcome.
r/learnmachinelearning • u/TraditionalLand3768 • 23d ago
[P] TrainPilot: find out why your PyTorch training is slow on free Colab/Kaggle GPUs
I'm a student training models on free Colab T4s, and I kept turning on mixed precision or torch.compile without knowing if they'd actually help. So I built TrainPilot.
It runs a short test (10 warmup + 30 measured steps) and tells you:
- whether the GPU is waiting for data or busy computing
- whether FP16 + GradScaler makes your step faster
- optionally whether torch.compile pays off on top of AMP, and after how many steps
- that loss didn't blow up and there are no NaN
Then it gives you a short snippet to paste. It never edits your script.
Real numbers on a Colab T4:
- DistilBERT on IMDB: 310 ms to 96 ms per step (3.2x)
- nanoGPT: 182 ms to 55 ms (3.3x)
- Heavy augmentation with 2 workers: 76% of each step waiting for data, so it tells you to make loading cheaper instead of suggesting AMP
- Script already using AMP: no change suggested
Open source, MIT, there's a one-click Colab notebook in the README:
https://github.com/linee64/TrainPilot
Would love for stars and feedback, especially on cases where the verdict is wrong.

r/learnmachinelearning • u/ParamT2307 • 24d ago
Project I built a library to learn world models hands-on. Every model trains on a laptop GPU in 1–2 hours
When I started learning about world models (Dreamer, IRIS, Genie…), the hardest part was that every paper's code was huge and different. So I built Simulusion: one PyTorch library where they all share the same structure, and each one has a demo small enough to run on a 4 GB laptop GPU.
If you're learning, you can:
- Train a Dreamer agent on Pendulum in a few lines and watch it "imagine" the future
- Swap "dreamer" for "planet" or "iris" and compare, since the code stays the same
- Read the world models guide for how each family works: recurrent latents, tokens, diffusion
- Open the components (RSSM, VQ-VAE, diffusion) to see how the pieces fit
import simulusion
agent = simulusion.create_model("dreamer", env="Pendulum-v1", env_backend="gym", total_steps=10_000)
agent.train()
It's open source (MIT), and it's built so new world models can be added, so it's also a good first-contribution project if you want to implement one yourself.
Github: https://github.com/paramthakkar123/simulusion
Website: https://simulusion.vercel.app/
r/learnmachinelearning • u/UnemployedTechie2021 • 23d ago
Meme r/learnmachinelearning: Where apparently you're supposed to know Machine Learning before you start learning Machine Learning.
I've been noticing a rather amusing pattern in this community.
Someone asks how to get started with Machine Learning.
The response? You need mathematics. Linear algebra, calculus, probability, statistics. You can't possibly understand ML without them.
Someone asks how to learn those mathematical concepts.
The response? You should already know high-school mathematics. Go back and learn the fundamentals.
Someone says they're starting from high-school algebra because they weren't particularly good at mathematics in school or haven't touched it in years.
The response? Why are you starting THAT basic? That's not how you learn Machine Learning.
Someone asks for beginner-friendly resources.
The response? Here's a list of 17 textbooks, 12 university courses, 8 prerequisite subjects and a gentle reminder that if you don't understand multivariable calculus, you shouldn't even look at a neural network.
At this point, I'm convinced the unofficial admission requirement for this subreddit is a master's degree, three publications, a working knowledge of measure theory and the ability to derive backpropagation while asleep.
God forbid someone actually starts at the beginning.
What exactly is happening here?
When did learning Machine Learning become less about acquiring knowledge and more about proving that you already possess enough knowledge to deserve to learn it?
Not everyone comes from a mathematics or computer science background. Not everyone was good at mathematics in school. Some people are self-taught programmers. Some are switching careers. Some are genuinely starting from scratch.
And that's perfectly fine.
There's this bizarre obsession with telling beginners how much they don't know, as if pointing out someone's knowledge gaps is somehow the same as helping them fill those gaps.
Yes, mathematics is important. Nobody is disputing that. Yes, you need linear algebra, calculus, probability and statistics to understand ML properly.
But here's a wild concept: people can learn those things. That's why educational resources exist.
Not every person asking about Machine Learning needs to be handed Gilbert Strang, Stewart's Calculus and a probability textbook before they're allowed to ask their next question.
And not every beginner needs to be reminded that they're a beginner every five minutes.
There's a difference between maintaining academic rigour and having an intellectual superiority complex.
There's also a difference between telling someone what they need to learn and making them feel stupid for not knowing it already.
If you've spent years studying mathematics and Machine Learning, that's genuinely impressive. But your years of experience don't make someone else's first step beneath you.
A learning community should make knowledge more accessible, not turn the prerequisites into a series of increasingly elaborate gatekeeping challenges.
You don't get extra credit for making learning unnecessarily intimidating.
And perhaps the most ironic part is that this is r/learnmachinelearning. Not r/ProveYouAlreadyKnowMachineLearning.
Let people ask stupid questions. Let people start with basic algebra. Let people take the long route. Let people learn at their own pace.
You were a beginner once, too. Unless, apparently, some of you were born knowing eigenvectors and gradient descent.
r/learnmachinelearning • u/Plastic_Help_941 • 23d ago
I need help in learning please
reddit.comr/learnmachinelearning • u/tommyeow_ • 24d ago
Require some guidance
I'm currently in 2nd year 3rd sem in a private tier 3 college, ive done, data visualisation, ml math, supervised ml, unsupervised ml, nlp basics (tfidf, bow, word2vec), in all of these, ive learned different algorithms, practiced theory and implementation, made small common projects. Currently, im doing dl basics, namely, ann. Ive spent a year doing all of the above.
Can anyone tell me what should I do/focus on in the next 1 year? Also, lmk what more would I need to cover/do to start applying into beginner level internships/research, be honest about it, im not looking for sugarcoated advice, ty :)
r/learnmachinelearning • u/jacktheai • 23d ago
LLM Transformer guide with easy-to-understand numerical examples and diagrams
I often found a gap between high-level explanations and pages full of equations. This guide bridge that gap: explain the idea, work through a small numerical example, then connect it to the math.
https://ongsoonee.github.io/llm-transformer-learning/

r/learnmachinelearning • u/leaderrr_shivam • 23d ago
Project I built VeriFlux: A zero-dependency evaluation, guardrail, and hallucination detection library.
Hi everyone,
Like many of you building production RAG pipelines and LLM agents, I grew frustrated with existing evaluation libraries (Ragas, DeepEval, Guardrails AI). Running an evaluation suite meant spinning up Docker containers, waiting minutes for PyTorch/Transformers to initialize, or paying hundreds of dollars for GPT-4 to act as an unpredictable judge.
To solve this, I built Veriflux (https://github.com/leaderrr-shivam/veriflux):
Key features:
- Zero Runtime Dependencies: Built strictly on the Python standard library. No torch, no transformers, no tiktoken, no requests.
- Microsecond Latency: Runs evaluations in ~0.3 - 0.5 ms per query (over 2,000x faster than LLM judges).
- Pytest Native: Just `assert veriflux.is_grounded(response, context)` or `veriflux.repair_json(bad_output)`.
- Full Benchmark Rigor: Evaluated on raw downloaded datasets from NeurIPS 2023 HaluEval, Oxford TruthfulQA, ACM CCS 2024 Jailbreaks, and Microsoft Presidio Research.
Repo: https://github.com/leaderrr-shivam/veriflux
PyPI: `pip install veriflux`
I'd love to hear your thoughts, test cases, and feedback!
r/learnmachinelearning • u/appleartsstudios • 23d ago
whichever the current rules list Same text, shortened, with focus on imitation learning data requirements.
r/learnmachinelearning • u/Marqvale • 23d ago
Help How can I get into ML research as an 18-year-old CS student from a tier-3 college?
Those with experience getting started in research, I’d really appreciate a roadmap for building a strong foundation and eventually doing independent research.
Hi everyone!
I’m currently in my 1st semester of Computer Science Engineering at a tier-3 college in India.
I scored 93% in 10th (10 GPA in Maths and Science) and 97.7% in 12th, including 100% in Maths and Physics. I didn’t perform as well as I wanted in my entrance exams, so I ended up at a college that wasn’t originally on my list.
Over the past few months, I’ve become very interested in ML and AI. I’m fascinated by machine intelligence and want to eventually pursue a research-oriented Master's at a top university in Europe.
I know I have a lot to learn 🙂
I’m willing to put in the work over the next few years and would really appreciate a realistic roadmap.
r/learnmachinelearning • u/Serious_Dig_540 • 23d ago
I built a practice site for LLM engineering interviews: hand-code attention in the browser, flashcards, real interview reports
LLM / ML engineering interviews have drifted away from pure LeetCode. It's common to be asked to write multi-head attention or RoPE from scratch, explain why attention is scaled by √d, compare DPO with PPO, and walk through a RAG system you built.
I couldn't find one place to practice all of that, so I built RagCodes. What's in it right now:
- 42 LLM coding problems (softmax, MHA, GQA, RoPE, KV-cache decoding, FlashAttention forward, LayerNorm/RMSNorm, cross-entropy, DPO/GRPO losses…) plus LeetCode Hot 100. Code runs in a sandbox against hidden tests, in Python, C++ or Java.
- 263 flashcards in 17 chapters (Transformers, fine-tuning, distributed training, inference, RL/alignment, RAG, agents). Each card has a one-line answer first, then key points.
- 380 interview reports from 114 companies, rewritten into question lists, with the most frequently asked topics ranked (GRPO and RAG are at the top).
- 12 portfolio project write-ups and 109 paper notes, each ending with how interviewers tend to ask about it.
Screenshots: writing MHA from scratch and passing 13/13 tests, the topic ranking, a flashcard, the problem list.
Stack: FastAPI + SQLite, React/Vite + Monaco, Docker sandbox for judging. Free tier to start.
I'd really like feedback from people who have been through these interviews recently: what got asked that isn't covered here?
r/learnmachinelearning • u/No_Obligation_1566 • 23d ago
Question S12 ultra tab for coding on Colab
Hey all,
I am a master's student and all my assignments are coded on Google colab or kaggle and saved on Google drive. So I just wanted to know if an S12 ultra tab connected to a bluetooth keyboard with trackpad could handle the job well along with Google, spreadsheet, docs and PPT.
My campus does not have a lot of charging outlets and I am currently using a gaming laptop for all my assignments and carrying it around and finding a spot to connect it to charge is a hassle, and I was looking at purchasing S12 ultra for this reason, moreover I do want it for note taking and watching lectures and so on.
Thanks in advance 🙌
r/learnmachinelearning • u/ScarlyLamorna • 24d ago
Help Data augmentation question. How do I characterise an original and augmented datasets where the augmentation parameters were zoom and crop? [P]
For context, I am a new postgraduate student in machine learning (but not a very good one). I have produced some augmented datasets (TIFF files where each file contains one object to be detected / classified) which I used in training deep learning models. I used fairly aggressive cropping (random crops between 0 and 90%) and more moderate zooms (random values between 0 and 20%). My supervisor wants me to characterise these datasets to see how augmentation has changed it.
Sorry if this is a rookie question, but which statistics should I use? My supervisor says the stats I use should indicate changes in size and shape but I honestly don't know where to start.
If anyone can recommend a decent software/program to produce the stats and histograms as well, that would be great.
Thanks in advance!
r/learnmachinelearning • u/Illustrious_Proof769 • 23d ago
Looking for an AI/ML mentor for 1:1 learning and knowledge-sharing
Hi! I'm an SDE at a large tech MNC, primarily working with AWS and software engineering tasks.
I'm looking to connect with someone who has a strong background in AI/ML, ideally from a Tier-1 institution (IIT, IISc, top global universities, etc.) or someone with exceptionally strong theoretical foundations and deep expertise in the field.
I want to learn AI from the fundamentals, understand the mathematics and theory behind modern AI models, and gradually progress towards neural networks, transformers, LLMs and AI agents.
I'm particularly interested in learning from someone who can break down complex theoretical concepts into intuitive, easy-to-understand explanations while connecting them to practical implementations.
I'm not looking for generic courses or tutorials. I'd love to have interactive 1:1 learning sessions where I can ask questions, discuss concepts in depth and learn from someone's actual expertise and experience.
If you're someone who fits this profile or can recommend someone, I'd love to connect!
Thanks!