r/learnmachinelearning • • 9h ago

Project I’m teaching myself language models by building a tiny character model

1 Upvotes

I’m a beginner learning how text models work, and I’ve been building a small Python project alongside the lessons. So far it goes from character IDs and next-character examples to a count-based model that uses a short context to generate text.

It’s very small and the generated text is rough, but seeing how changing the context changes the predictions has helped the ideas click for me. I’m planning the next lessons now and would appreciate advice from people who learned this material: what concept would make the best next step after a simple n-gram/counting model?

Repo: https://github.com/Sasen12/before-lecture-one-tiny-character-model

I’m documenting the learning process here too: https://www.youtube.com/channel/UCWMERaecgKZmrqPUHLqWuow


r/learnmachinelearning • • 11h ago

Tutorial 17 million lines of Lean proved Riemann. Here's why everyone expected it

Thumbnail
youtu.be
0 Upvotes

The Alpöge–Claude proof of RH (17M lines of Lean, machine-checked, not yet peer reviewed) surprised almost no one. I made a video on why: the primes behave like coin flips, the zeta zeros repel like eigenvalues of random matrices, and the same spacing law even shows up in a neural network's Hessian.


r/learnmachinelearning • • 11h ago

Campusx

1 Upvotes

Can anyone send me the telegram link for dsamp 1.0 course

-- I need to revise some topics from him, so i can't buy the course again


r/learnmachinelearning • • 11h ago

8 evaluation metrics on one page: the scikit-learn call for each, and when each one misleads you

1 Upvotes

r/learnmachinelearning • • 13h ago

Hey there! I want to start learning Machine Learning from begineer, How about following Stanford CS229: Machine Learning by Anand Avati?

Thumbnail
youtube.com
0 Upvotes

r/learnmachinelearning • • 14h ago

Request Drupal Flaw Found by Anthropic Scanner Exploited in Attacks

1 Upvotes

An Anthropic-built scanner identified a vulnerability in Drupal. Then that vulnerability was exploited in live attacks anyway.

The discovery-to-exploitation gap is a known problem. What gets less attention is what AI scanning agents actually do while they run. These tools need broad access to find what they're looking for. Some need to touch production systems to confirm exploitability. The scanner that found this flaw had enough access to identify it — which means it had enough access to interact with the affected surface in ways the organization may not have fully inventoried.

Security teams are deploying AI agents faster than they're defining what those agents are permitted to do. Credentials scope the account. Nothing scopes the agent's actions within that account. When a scan runs, there is often no durable, independent record of exactly what the agent touched, in what order, and what it attempted beyond its logged output.

The flaw was found. The flaw was later exploited. Everything in between — what the agent did, what it accessed, what it left behind — is the part of this story that isn't in the headline.

How are you handling this in practice? Do your AI security tooling operate under any defined per-action scope, or is access control handled entirely at the credential layer — and has that been enough?


r/learnmachinelearning • • 5h ago

Most ML/DS portfolios get ignored because they look like textbook exercises. (Math + MBA + MS in DS/ML looking for 5 serious people)

0 Upvotes

Math grad, MBA, currently doing my MS in DS/ML, so I see both sides of hiring. The real reason most candidates aren't getting hired right now is that anyone (or any AI) can run scikit-learn or XGBoost, so companies filter ruthlessly for what can't be faked: solid fundamentals and business sense. Most get cut by the tech team when asked why a model actually behaves a certain way, and fail the final round because they pitch model metrics instead of how it moves revenue.

I’m taking on 5 serious people actively applying or interviewing for DS/ML roles right now to overhaul their resumes, frame projects around actual business value, and prep for both technical and business interviews.

Once the 5 spots are full, I'm closing this.


r/learnmachinelearning • • 1d ago

Why do attention weights get multiplied by the value matrix in Transformers?

14 Upvotes

Hi, I’ve decided to finally learn how the attention mechanism works by building a very simple Transformer in NumPy.

I have a question that may come from gaps in my linear algebra understanding. I understand that softmax(Q @ K.T / sqrt(d_k)) produces attention weights, but I do not understand why we then multiply those weights by V.

More specifically, I understand what the softmax output represents, but I cannot build an intuition for the meaning of the resulting matrix after multiplying it by the value matrix. Could someone help me understand this?


r/learnmachinelearning • • 19h ago

Question Beginner project idea and thoughts

2 Upvotes

I am a beginner machine learning student, and I have an idea for a project that could take a long time to build.

Many software engineers hate AI generated code, calling it slop and spaghetti. Which is true, sometimes it's really hard to understand or you start realizing it can be done much better and cleaner. Other people say that it doesn't matter, because at the end of the day AI will have to read that sloppy code, not humans.

But if it's harder for human to read, then It also harder for an AI agent. My goal/idea is to measure how much "effort" LLM spends on understanding spaghetti code generated by another LLM before. For computational cost I plan to use metrics such as: reasoning/thinking tokens, agent tool calls, may be actual API price.

Looking at the scope, I can tell this will take a lot of work: building a dataset, testing different models, designing a benchmark. I am still a beginner, thus I want to treat this idea as "goal project" that I won't be shy to show it to someone.

I would be glad if you give me honest feedback:

  • Is this a worthwhile experiment to run, or has someone already proved/measured this exact thing?
  • Isn't it already obvious that LLM spends more effort on messy code, making the exact numbers unimportant.
  • If this is a decent idea, what mistakes should I watch out for?

r/learnmachinelearning • • 1d ago

Completed CampusX ML course but still confused about how to actually build projects

8 Upvotes

Hey guys,

I'm a 3rd-year CSE (AI/ML) student. I've completed CampusX's 100 Days of ML course and learned quite a few things like Pandas, NumPy, EDA, preprocessing, feature engineering and ML algorithms.

But honestly, I still feel confused when it comes to building a project on my own.

When I follow a tutorial, I understand what's happening, but if someone gives me a real problem and asks me to build an ML solution, I don't know where to start or what steps to follow.

For example, how do you decide which features to use, what analysis to perform, which model to try, and what to do next? Basically, how do you approach a project without depending on tutorials at every step?

I also tried building a project earlier but got overwhelmed and couldn't figure out how to proceed independently.

I'm currently at my village for vacation and don't have access to my laptop. I'll be back in my hostel in 3 days, so I want to make a proper plan before starting again.

People who have already crossed this stage, how did you learn to build projects independently? Did you start with small projects, follow tutorials, or just pick a problem and figure things out along the way?

I don't want to just add projects to my resume. I actually want to develop the thinking and problem-solving skills required to work as an ML engineer.

Any genuine advice would be really helpful. Thanks!


r/learnmachinelearning • • 17h ago

Discussion examples of tricky, verifiable kernel-method problems that stump frontier LLMs?

Thumbnail reddit.com
1 Upvotes

r/learnmachinelearning • • 17h ago

Request Hackers Exploited CVSS 10.0 Hex.pm RCE Flaw to Compromise 6 Package Registry Servers

1 Upvotes

A CVSS 10.0 RCE flaw in Hex.pm was exploited to compromise 6 package registry servers. The build pipelines themselves were not the entry point. The attack moved through dependencies that executed at runtime — after the artifact was already signed, scanned, and deployed.

This is the part static analysis does not reach. The build is clean. The signature checks pass. The malicious behavior shows up later, in what the running process actually calls and touches. Six servers is the confirmed count from this incident. The exploited surface was not in the code that shipped — it was in what that code pulled in and ran.

Security teams are getting better at hardening the build side. The runtime side — what actually executes, what it calls, what it writes, what it reaches out to — is where the gap keeps showing up.

For those working on this: what does your current approach look like for controlling what executes at runtime versus what was verified at build time? Are you treating them as the same problem or separate ones?


r/learnmachinelearning • • 23h ago

What AI tool has genuinely improved your daily workflow

3 Upvotes

I’m exploring the best AI tools for productivity and coding. What free AI tools do you use regularly, and which ones are actually worth trying?


r/learnmachinelearning • • 1d ago

building my own LLM from 0

7 Upvotes

i've started around a month ago and i've done a little bit here and there, but usually i'm just scraping a little bit specific every now and then.. because I just want this to be my very own thing that i create and not just a fine-tuning, like a lot of other people have said that I should do but no,

i just want to learn while i do this (and i have learned quite a lot) in the future when i will have more data and more valuable structure i will simply use Kaggle to train it in separate steps.

(and yes, i'm using AI to build this as well because frankly i don't really know how to do such a complex thing)


r/learnmachinelearning • • 18h ago

Seed: an experiment in building a small modular AI from scratch on a GTX 1660 Ti, looking for feedback

Thumbnail
reddit.com
0 Upvotes

r/learnmachinelearning • • 18h ago

Help CS student, zero finance background, 100+ hours for a final-year project. Where would you point me?

1 Upvotes

Hey all! I'm a final-year Computer Science student in the UK and I'm picking my final-year project. I've always been fascinated by finance and automation: automated trading, algorithms, and building complex systems. But I'll be honest, my finance knowledge is close to zero (I'm learning, I promise).

I'm not asking anyone to hand me a project. I'd just love some pointers: areas, problems or papers you think are interesting, under-explored, or fun to dig into.

What my uni counts as a valid project:

  • A clear research question, not just "build an app"
  • It solves a real problem
  • Results can be properly measured and evaluated
  • Big enough for 100+ hours of work and self-study

My current rough idea is using fine-tuned LLMs and reinforcement learning to generate trading strategies that don't overfit. I'm open to completely different directions, though.

If you were in my shoes, what would you look into? Thanks!


r/learnmachinelearning • • 11h ago

Looking for an arXiv Endorser for cs.AI (First Publication)

0 Upvotes

Hi everyone,

I'm an ECE graduate from Purdue University, and I've recently submitted my first research paper to MLSys. I'm trying to submit the paper to arXiv under the cs.AI category, but I need an endorsement from an existing arXiv author.

Would anyone here who is eligible to endorse submissions in cs.AI be willing to help?


r/learnmachinelearning • • 20h ago

Depending reading stuff [Research]

1 Upvotes

I am a software engineering student, and I currently take on projects for real-world clients. In my work, I have primarily focused on software architecture and the underlying operational mechanisms. I’ve made significant progress over the last eight months; however, none of my clients have approached me with requests related to machine learning or the development of new artificial intelligence systems—nor have I pursued such work myself.

Recently, I built a pipeline using "sub-agents" to fetch articles from specific sources, and I’ve been reading these daily. I’ve noticed that most of the content—partly because it tracks current trends—focuses on new models and the latest advancements in the field. I feel that I lack knowledge in this area. Given that I generally work with AI-related topics and written resources, what approach should I take to grasp the broader architecture? Since many of these concepts are likely interconnected, how can I build a coherent mental model that captures these relationships? Do you have any recommendations?


r/learnmachinelearning • • 20h ago

Tutorial Why is LLM inference challenging?

0 Upvotes

When I first heard about inference engines, like vLLM, I wondered what makes inference so challenging. That’s why I decided to learn more about LLM inference from a systems perspective. If you already know how transformers work, then this is a fun topic to explore next.

https://mehrdadmahabadi.com/blog/why-is-llm-inference-hard.html


r/learnmachinelearning • • 20h ago

Project I made a visual lesson on cross-entropy that starts with guessing letters

1 Upvotes

Here’s the example I start with. If your model gives the next letter a 1 in 2 chance, seeing that letter costs 1 bit. If it gives the same letter a 1 in 8 chance, it costs 3 bits. Average those costs over the letters you actually see and you get cross-entropy. If you’re used to seeing it as a loss function, the compression example gives those numbers something concrete to mean.

In the lesson I draw the costs as rectangles in Manim, then walk through an arithmetic coder on “the falcon” so you can see where the bits come from. The chapter notes and a Python lab are free to use, with no signup. It’s the first lesson in AI, Built, part of my Explainer Videos project.

Lesson notes and lab · GitHub repo

If you try it, I’d love to hear where you had to stop and reread. If anyone wants to work on a shorter lab together, maybe a side-by-side comparison of two next-letter models on the same passage, I’d be up for that too.


r/learnmachinelearning • • 21h ago

How much do you guys use pen and paper when learning machine learning?

1 Upvotes

Do you write down on a physical paper equations and concepts that you learn, or do you simply read and try to recite them in your head? How much benefit is there in writing it down yourself?


r/learnmachinelearning • • 1d ago

metric-diff: find out why sklearn, torchmetrics, Keras and others give different numbers for the same metric

2 Upvotes

I kept running into the same problem: the same predictions give a different F1, AUROC or Dice depending on which library computes it, and it's slow to work out whether that's a default, a bug, or my own mistake. So I built a tool that compares them and explains the difference.

metric-diff computes the metric with scikit-learn, torchmetrics, torcheval, Keras 3, Hugging Face evaluate and MONAI (plus sacrebleu, nltk, rouge-score and trec_eval for text and ranking). When they disagree, it finds the setting responsible, re-runs every library with that setting aligned to confirm it, and tells you how to fix your code.

Some things it turned up on real model predictions:

  • DistilBERT on SST-2: Keras F1Score() gives 0.675 instead of 0.914, because it has no threshold by default.
  • SegFormer on ADE20K: the same masks give Dice 0.284, 0.388 or 0.538 depending on whether you pool pixels, average per image, or use MONAI's ignore_empty=True default.
  • Retrieval: with tied scores, MAP is 0.506 in sklearn, 0.585 in trec_eval and 0.678 in torchmetrics, and torchmetrics' value changes by platform (0.585 on Linux, 0.706 on macOS).
  • BLEU: 39.2 vs 32.9 on the same text, from tokenisation alone.
  • Large logits: torchmetrics AUROC drops to 0.5 when float32 sigmoid saturates them, while sklearn ranks the raw scores (a known open issue, torchmetrics#2819).

It also checks whether a metric logged per batch equals the dataset metric, and there are pytest assertions (assert_metrics_agree) so a library upgrade or a changed default fails CI instead of silently changing a results table.

While building it I reported three issues upstream (torchmetrics, torcheval and Keras); one already has a docs PR.

pip install "metric-diff[all]"

GitHub: https://github.com/DadCoder001/metric-diff

User guide (organised by symptom): https://github.com/DadCoder001/metric-diff/blob/main/docs/USER_GUIDE.md

It's an alpha. The thing I'd most like to hear: if you run it on your own eval and it says "no known cause", please open an issue. Those become new detectors.


r/learnmachinelearning • • 22h ago

Project Built a feed of new ML/AI projects where you can see why each one scored well, down to the code lines

Post image
1 Upvotes

Personally, when I was learning, my problem wasn't finding repos, but it was finding good ones to learn from that weren't just the top of GitHub trending.

That aspired me to create AI-Atlas which has a feature called The Latest Work (getaiatlas.com/latest). It is a wall of AI projects people shipped recently, each scored by an AI judge that reads the code.

Open a project and you see:

  • its score on each rubric part (technical depth, conceptual difficulty, completeness, reproducibility, educational value…);
  • the lines of code the judge pointed to;
  • its tests level by level: exist / can run as committed / CI runs them. So it never claims tests pass, because it reads code and never runs it.

It's been a good way to find well-built implementations: from-scratch transformers, parallelism, data pipelines, agents. And if you're building your own projects, you can map your GitHub for free. You get a roadmap for the project that can improve the most, and your best work can show up on the wall.

Honest caveat: an LLM judge has variance. If you think something is scored wrong, tell me why. That feedback has already fixed whole blind spots :)


r/learnmachinelearning • • 1d ago

Lossless compression of LLM weights below their per-tensor entropy: Qwen3.8-27B BF16 at 10.43 bits/weight, bit-identical (open codec + paper)

Thumbnail
reddit.com
1 Upvotes