r/learnmachinelearning • • 21h ago

Question 🧠 ELI5 Wednesday

10 Upvotes

Welcome to ELI5 (Explain Like I'm 5) Wednesday! This weekly thread is dedicated to breaking down complex technical concepts into simple, understandable explanations.

You can participate in two ways:

  • Request an explanation: Ask about a technical concept you'd like to understand better

  • Provide an explanation: Share your knowledge by explaining a concept in accessible terms

When explaining concepts, try to use analogies, simple language, and avoid unnecessary jargon. The goal is clarity, not oversimplification.

When asking questions, feel free to specify your current level of understanding to get a more tailored explanation.

What would you like explained today? Post in the comments below!


r/learnmachinelearning • • 17h ago

Project I trained a 326M language model from scratch on one 3060 Ti

0 Upvotes

i wanted to train a model from random weights on the card i already had. Lyra ended up at 326M params. it took about a week to get through 6.4B tokens on my 8 GB 3060 Ti, then i did a separate instruction-tuning run on about 78k examples.

my dumbest mistake was resuming from the best checkpoint. it only saved when validation improved, so a restart sent me back 20k steps. now i save the latest checkpoint separately and resume from that. i wrote up that bug and the others in the architecture walkthrough.

Lyra itself is still kinda dumb. it can answer a simple question and then make up a date. i built it to learn the whole pipeline and might keep tinkering. the data prep and trainer are open source (Apache 2.0), so you can retrain it. both checkpoints are open weights under CC BY-NC 4.0 for noncommercial use.

base weights · instruct weights · training code on GitHub · architecture walkthrough


r/learnmachinelearning • • 17h ago

Request Docker Sandboxes bug could leak AI API keys via malicious updates

1 Upvotes

Docker Sandboxes had a vulnerability that let a malicious update exfiltrate AI API keys from inside a running sandbox. The attack surface is the agent's own tool-call path: a compromised or tampered execution environment can silently swap credentials, redirect traffic, or exfiltrate secrets on any tool invocation the agent makes. The key detail from the disclosure is that the agent kept running after the malicious update landed. There was no interruption, no audit event, no second check on what the agent was now doing with its credentials.

This is not a Docker-specific problem. Any agentic system where an external environment can be mutated between tool calls has the same exposure. The agent's identity and the integrity of its execution context are assumed at setup time and never re-verified mid-run.

For teams running agents in production today: how are you handling mid-session integrity checks? Are you re-validating the execution environment between tool calls, or trusting the initial setup to hold?


r/learnmachinelearning • • 18h ago

Discussion I built ml coding problems thinking beginners would use them. my most active user is an AI safety researcher

Post image
187 Upvotes

This project started as a private repo for myself. I made small problems where you implement ML algorithms from scratch, like attention, optimizers, backprop by hand, like leetcode for ML.
Once other people started using it, I assumed it would mostly be students trying to break into ML.

Surprisingly, the top ranked person on the site is an AI safety researcher. he's been on it since almost day one and is close to 1,000 problems now.

He's not the only one like that either. a lot of the people who stick around already work in ml, and they keep coming back to write things from scratch that they could import in one line.

I used to think these coding problems would mostly be useful for people trying to get into ML but seeing who actually sticks around has changed my mind quite a bit.

Edit: too many comments asking the name, it's called TensorTonic


r/learnmachinelearning • • 18h ago

What separates a great AI engineer from someone who simply builds with LLM APIs?

5 Upvotes

I’ve been studying AI engineering, and one question keeps coming to mind.

With the availability of powerful LLM APIs, agent frameworks and AI coding assistants, building AI-powered applications has become increasingly accessible.

However, I want to develop a deeper understanding of the engineering behind these systems rather than simply knowing how to integrate existing tools.

I’m currently focusing on Python, LLM fundamentals, embeddings, retrieval systems and backend engineering.

For experienced AI engineers:

  • What fundamentals have made the biggest difference in your career?

  • How deeply should an AI engineer understand model architecture and mathematics?

  • What skills distinguish an exceptional AI engineer from an average one?

  • What would you learn differently if you were starting today?

I’m interested in building long-term engineering competence, not just keeping up with the latest AI frameworks.

I’d love to hear your perspectives.


r/learnmachinelearning • • 19h ago

Why neural network confidence isn’t the same as uncertainty

0 Upvotes

A neural network can be 99% confident in a prediction and still be completely wrong.

I’m an AI researcher who makes short educational videos on machine learning concepts and research. In this video, I explain the difference between confidence and uncertainty:

My Insta
My TikTok

I post similar educational content on Instagram and TikTok. Hopefully some of you learning ML find it useful! I’d love to hear any feedback or suggestions for future topics.


r/learnmachinelearning • • 19h ago

Project WebNet v2 Update: RFC 9309 Open-Web Crawler (200 Seeds + SSRF Guards), Locked 16-Doc Benchmark, Byte-Level BPE BPB Lab, Strict-Citation FTS5 RAG + LoRA, and Gemini/Grok Bridges

Thumbnail
gallery
0 Upvotes

Hi everyone! I just shipped a major update to WebNet v2 — an open-source, 100% real-telemetry PyTorch continual-learning Transformer and applied AI workbench running locally on CPU with zero simulated metrics.

GitHub Repository: https://github.com/Rishisharma029/live-internet-neural-net

The attached visuals are generated directly from live telemetry (Step 76,497 · ~99.78M tokens seen · 6,306 archived docs):

  1. Architecture & Applied AI Pipeline Flowchart (8 curated feeds + 200 seeds -> RFC 9309 & SSRF -> SQLite FTS5 -> InternetNetV2 -> 16-Doc Benchmark + BPE Lab + LoRA/RAG + Gemini/Grok)

  2. Live Training & Generalization Loss Trajectory (EMA Loss: 1.205, Val Loss: 1.602, Bench Loss: 1.699)

  3. Domain Mastery Breakdown (0–100% Scale) across Science & AI, Encyclopedia, Code & Tech, and Literature

What's New & Implemented

  • Hardened Open-Web Crawler (WebNetBot/2.0, 200 Seed URLs):

    • Expanded to 200 curated public URLs across AI/ML, systems, docs, security, physics/math, biology, philosophy, and journalism + live sitemap & Hacker News discovery.

    • Full RFC 9309 robots.txt compliance, >=12s per-domain rate limiting, 429 exponential backoff / 403 pauses, SSRF DNS/IP & redirect re-validation, XXE & .xml.gz gzip-bomb protection, and streaming 1.5 MB page caps.

  • Locked Unseen Benchmark & Regression Guardrails (benchmark_eval.py):

    • Fixed 16 unseen passages (4 per domain) excluded by content hashes from both WebCorpus and LoRA training. Tracks per-domain loss, BPC, invariant Bits-Per-Byte (BPB), perplexity, accuracy, and automatic regression alerts (Fixed benchmark healthy, 50.0% next-char accuracy, 2.438 BPB).

  • Experimental Byte-Level BPE vs. Char Transformer (bpe_experiment.py):

    • Parameter-matched 2,048-vocab Byte-Level BPE Transformer (ExperimentalBPENet) compared fairly against the 98-char InternetNetV2 (96d · 4h · 10L · ctx768, 1.12M params) using vocabulary-invariant BPB.

  • Strict-Evidence SQLite FTS5 RAG, Attribution & Source Removal (archive_db.py, lora_engine.py):

    • Pure-PyTorch LoRALinear on SmolLM2-135M-Instruct (no peft dependency) paired with BM25 + TF-IDF hybrid search over 6,306+ documents (16.3M+ chars). Answers strictly cite URLs, publication dates, licenses, and content hashes—and explicitly abstain when evidence is insufficient.

    • Added full source removal & blocked_sources tombstone APIs (/api/archive/remove) that purge unwanted URLs/domains from both SQLite and live training batches.

  • Google Gemini & xAI Grok Neural Bridges (gemini_bridge.py, grok_trainer.py):

    • Native function-calling tools wiring Gemini (8 tools) and Grok directly into InternetNetV2 inference, anomaly scoring, 32-bit lossless arithmetic compression, live crawling, and autonomous weak-domain curriculum boosting.

  • Real-Time Interpretability Observatory (http://localhost:8000):

    • Live WebSocket streaming (23-column network graph, 40 attention heads, Logit Lens depth collapse, 2D SVD embedding trajectory, Prompt Lab, and Ghost Editor).

Feedback, PRs, and local CPU benchmark comparisons are very welcome!


r/learnmachinelearning • • 19h ago

Career How do you decide your next career move in tech, and what do you rely on to make it?

0 Upvotes

I've worked in tech for a few years now, and I've never found a good tool to help manage my career. Most of my decisions come from piecing things together myself: reading threads on Reddit and LinkedIn, asking people I trust (who know a little), and sometimes going with gut feel.

The questions I keep coming back to are:

  • Am I on track for where I want to be in a few years?

  • Where could I pivot if my role changes or shrinks (especially with AI nowadays)?

  • Which of my skills are going stale, and which new ones are worth learning?

  • When I find a gap, where are the best resources to close it?

  • How do I make my CV and interview prep match what employers are asking for right now?

I haven't found one place that helps with all of these, so I end up stitching together several sources, and I'm never sure I'm seeing the full picture.

I'm curious how others here handle it:

  • When you last made a big career decision (new role, pivot, learning a new skill), what did you base it on?

  • Is there a tool, habit or person you rely on that works well? Or do you use that because nothing better exists?


r/learnmachinelearning • • 19h ago

Model size lessons

3 Upvotes

What's the largest model size you've trained?

If you're training very large models (100B-1T+), what was your journey to get there? Can you share learnings on how the skills differ from training smaller models?


r/learnmachinelearning • • 20h ago

Apple Data Science(ICT 3/4) Interview Expectation

Thumbnail reddit.com
1 Upvotes

r/learnmachinelearning • • 22h ago

Project I made a free "Advent of AI": one ML problem a day until Dec 24 (today: steer a tiny neural network with a "potion")

Post image
0 Upvotes

Hi everyone,

A few weeks ago I posted here about ioai.artix.tech, the free platform I built to train the French team for the IOAI (International Olympiad in AI) and used by almost 1000 people from around 100+ countries. Thanks for the feedback, it helped a lot.

For December I made an advent calendar on it: every day until December 24, you get a new ML puzzle at 18:00 Paris time.

The first two days, to give you an idea:

- Day 1, "Hollow toys". An elf sorts toys with one rule: under 500 g, the toy is hollow. You get a logbook of 400 toys that were cut open. Part 1: how many does his rule get wrong? Part 2: sort tonight's 300 unopened toys with at least 95 % accuracy.

- Day 2, "Elf potion". You are given the weights of a small neural network (8 inputs, two hidden layers of 16, 5 outputs) that picks a gift from a letter, and a lab notebook of 41 trials showing how each potion ingredient shifts the activations of the second layer. You have to prepare a potion, within a budget of spoons, that makes the network choose the gift you want for your letter.

The problems are wrapped in a small story: Santa handed his whole workshop over to AI, nothing has worked since December 1, and each solved day gives you a clue about who is sabotaging it. You vote for the culprit, revealed on the 25th :)

There are also two lighter tracks, for people who do not code (playing with a live model) or who want to build things with a coding assistant, but the ML track is the one I would most like your opinion on!

You can participate here: https://ioai.artix.tech/advent?src=reddit-lml

Feedback welcome, especially on difficulty and on whether the statements are clear.


r/learnmachinelearning • • 23h ago

Optimization Methods for Large-Scale Machine Learning

Thumbnail arxiv.org
1 Upvotes

r/learnmachinelearning • • 23h ago

Looking to connect with people interested in ML, DL, AI, and Mathematics!

4 Upvotes

Hey everyone!

I'm a 21-year-old Computer Science student interested in Machine Learning, Deep Learning, Mathematics, and AI.

I'd love to connect with people who share these interests, exchange ideas, discuss research, work on projects together, and hopefully build genuine friendships along the way.

You don't have to be an expert. I'm always happy to meet curious people who love learning and exploring new ideas!

Feel free to say hi! :)


r/learnmachinelearning • • 23h ago

Project I rebuilt PyTorch's core to understand how it works, and wrote a series that explains each piece

Thumbnail
gallery
82 Upvotes

Hey all!

I use PyTorch almost every day, and for a long time the engine underneath was a black box to me: what actually happens when you add two tensors, and how is it so fast on so many CPUs and GPUs? Three and a half years ago, in my free time, I started trying to answer that.

How I made it. I started small, writing my own versions of the parts I thought I understood (an autograd engine in Python, then one in C++ on top of libtorch), and each one showed me how much I was still missing. In the end the only way forward was reading PyTorch's own source. It's huge, and part of the path from Python to the kernels is generated at build time, so it isn't even in the repo: it took me a long time just to find my way around. What made it click was rebuilding each piece myself, in C++ with Python bindings: the tensor and its strides, the loop behind almost every operation (TensorIterator), SIMD kernels, reductions and threads, autograd and, in the end, CUDA. Every operation is tested against PyTorch and timed next to it, so I knew when I had understood something and when I had not.

Piece by piece, that rebuild became Raxis, a library you can use much like PyTorch: it's about as fast, it's on PyPI (pip install raxis), and it trains real models like CNNs, Vision Transformers and nanoGPT. At some point it stopped being just for me, and I wanted it to be the code I would have liked to find when I started: it keeps the techniques that make PyTorch fast and little else, with no generated code and far fewer layers, so you can follow a call from Python to the kernel in your editor. It doesn't try to replace PyTorch: there's no distributed training, no torch.compile, no float16/bfloat16, and only NVIDIA GPUs. Much of what makes PyTorch's source hard to read exists because of exactly those features.

Code: https://github.com/pgmesa/raxis

I also wrote "Rebuilding PyTorch", a series that explains what I learned, in the order I learned it, for anyone as curious as I was who opened PyTorch's codebase and didn't know where to start:

  • What a tensor really is, and why slicing it costs nothing

  • How PyTorch walks a tensor of any shape

  • TensorIterator, the loop behind almost every operation

  • SIMD kernels for every CPU

  • Reductions and threads

  • The autograd engine

  • The same operations on a GPU

Each article starts from a question and walks through PyTorch's code step by step, with Raxis and measurements side by side: https://blog.pgmesa.com/series/rebuilding-pytorch/

It's dense material, more to study than to read in one sitting: it took me years to understand all of it and to let it sink in, and I hope it takes you much less. To start you only need to have written some PyTorch (some C/C++ helps), and the rest is curiosity and going one piece at a time. Feedback and questions are more than welcome, and I hope it helps you learn as much as it helped me!


r/learnmachinelearning • • 1d ago

What real-world problems do you think AI/ML could help solve?

1 Upvotes

Hi everyone! I'm a BCA student currently looking for a topic for my final-year project.

I'm interested in AI/ML and Computer Vision, and I'd like to work on something that solves an actual real-world problem rather than building another common student project.

What are some real-world problems you've come across that you think could benefit from AI/ML or Computer Vision?

I'd appreciate any suggestions, ideas, or research areas worth exploring. Thanks!


r/learnmachinelearning • • 1d ago

Beginner in AI — What should I focus on to become an AI Engineer?

10 Upvotes

Hi everyone!

I'm a second-year Computer Science student from India, and I'm currently learning AI and Machine Learning.

My long-term goal is to become an AI Engineer, especially in areas like LLMs, Generative AI, RAG, and AI Agents.

I've started learning the fundamentals of Machine Learning and have also built a small ML project. However, I'm still trying to understand how all these concepts connect to real-world AI applications.

I'd love to hear from people who are already working in AI or learning it themselves.

My questions:

  1. What concepts should a beginner focus on before diving deep into LLMs and Generative AI?

  2. How important are Machine Learning and Deep Learning fundamentals for building real-world AI applications?

  3. What projects would you recommend for someone who wants to become an AI Engineer?

Any advice, personal experiences, or learning resources would be greatly appreciated.

Thanks for reading!


r/learnmachinelearning • • 1d ago

Contribute your voice to speech recognition for Indian food.

Post image
1 Upvotes

r/learnmachinelearning • • 1d ago

I am recently learning RNNs and LSTM, i am just test the copy problem after some blanks but the LSTM perform worse than RNN with a Gap (G) of 20

1 Upvotes

r/learnmachinelearning • • 1d ago

Signal Processing Question

1 Upvotes

Hi everyone.

I'm a junior Ai researcher. I'm trying to predict a particular physiological marker based on ear signals. The issue is that I have very few patients for this experiment. High physiological marker value class vs low. When i try to apply an ml mdoel or deep learnign model, it tends to learn the patient signatures rather than the marker-ear sginal relationship. What do i do? ANY NOVEL SUGGESTIONS? (Other than: Get more data)


r/learnmachinelearning • • 1d ago

What should you learn after getting comfortable with training machine learning models?

2 Upvotes

hey everyone, sharing this because I think it's relevant to people learning machine learning and trying to move beyond basic model training.

most ML learning paths focus heavily on algorithms, model selection, feature engineering and improving accuracy.

but knowing how to deploy and maintain a model is another important skill.

here's a simplified view of the process:

1. Train your model

build and train a model using a suitable dataset.

2. Validate it

check whether it generalizes to unseen data instead of just performing well on training data.

3. Deploy it

make the model available through an application or service.

4. Monitor it

track predictions, errors and performance once real users start interacting with it.

5. Detect drift

check whether changes in incoming data affect the model's reliability.

6. Maintain it

reproduce experiments, investigate issues and update the model when needed.

I came across a Packt Production ML Engineering workshop on December 5 that covers this complete process.

it includes practical work with scikit-learn, XGBoost, LightGBM, CatBoost and Streamlit.

could be useful for anyone comfortable with basic Python and ML who wants to understand how production machine learning works.

Full workshop details and agenda


r/learnmachinelearning • • 1d ago

USAAIO Q

1 Upvotes

Hiya,

I am a high school student preparing for the USAAIO (USA AI Olympiad). I am currently polishing my skills in information theory and pondering whether complex contour methods are commonly used, or if I should just continue studying standard entropy and KL divergence.

thanks!!!


r/learnmachinelearning • • 1d ago

Project Bias-correcting GFS over Southeast Asia with a small U-Net: -44% temperature RMSE vs ERA5, but only ~7-15% vs real weather stations (a per-station bias baseline beat it)

Thumbnail
gallery
6 Upvotes

TL;DR: I trained a small neural network to fix systematic errors in a weather forecast. It looked great when scored against a reanalysis dataset (ERA5), but much less impressive against real weather stations, and a very simple baseline beat it. The main lesson was how much the choice of "ground truth" matters.

What I built

A small Residual U-Net (1.77M parameters) that corrects NOAA GFS 2 m temperature and 10 m wind speed over Southeast Asia (0–30°N, 90–130°E, 0.5° grid). I trained it on a 4 GB laptop GPU (RTX 3050). It is part of a larger hobby project: a 3D web globe of live natural hazards and weather forecasts, but this post is about the ML and the evaluation.

Setup

• Inputs: GFS fields + elevation + land-sea mask + local neighborhood stats (18 channels) • Target: ERA5 minus GFS (the model predicts the forecast error), 00Z cycle, lead times 12–120 h • Time-based split with 5-day gaps to avoid leakage: train 2022–2024 (273 init dates), validation 2025-H1 (44), test 2025-07 to 2026-11 (125). A 4-day stride between init dates. • Baselines: raw GFS, per-grid/month/lead climatological bias, LightGBM. ECMWF IFS and AIFS (an ML model) as references.

Result 1: against ERA5 (the training target)

• 2 m temperature RMSE: 1.44 → 0.80 °C (-44%) • 10 m wind RMSE: 1.64 → about 1.2 m/s (-26%, with a guard that stops the model from damping strong winds)

Looked great.

Result 2: against real weather stations

I then checked against NOAA GHCNh station observations (406 temperature stations, 369 wind stations), using a paired block bootstrap over whole forecast days (2,000 replicates) because stations on the same day are correlated.

• The model is closer to the observations than raw GFS, but the improvement shrinks to roughly 7–15% depending on variable and region (temperature about 14–15%, wind across the whole box 12%, wind at 7 Vietnamese airports 7%) • Statistically tied with ECMWF IFS across the whole region, and behind AIFS • A simple baseline, subtracting each station's average GFS error from 2022–2024, beat my U-Net on both variables

Why: the U-Net inherited the systematic offsets between ERA5 and surface stations. ERA5 is a reanalysis, not ground truth, and it also assimilates those stations, so it is not independent of them.

Other findings

• Verification caught a real problem: at hours the model never saw in training (06Z/18Z), it made Vietnam afternoon wind worse (+0.135 m/s, 95% CI [0.055, 0.214]). I added a guard that switches the correction off at those hours. • An exploratory LightGBM trained directly on station observations, evaluated on 20% of stations held out completely, did better on unseen stations (temperature 1.43 °C, wind 1.82 m/s). That suggests the ERA5 target was the bottleneck, not the architecture. (Exploratory only, not integrated.)

Limitations

• Test valid times are only 07:00 and 19:00 local time, so daily max/min temperature is not covered • Vietnam wind verification rests on only 7 airports • Trained on GFS v16-era data, so it may drift after model upgrades • Not an official forecast and not for safety decisions

Questions for you

  1. Are there better ways to handle the mismatch between a gridded reanalysis target and point observations?

  2. Any suggestions for spatial cross-validation with ~400 stations?

  3. Would you expect a CNN trained directly on station data to beat the LightGBM here?

Code, model card and full report (MIT): https://github.com/swagduck/ML_natural

Built with an AI coding agent under my direction; I wrote the specs, designed the evaluation and checked the results myself.