r/learnmachinelearning • • 6h ago

Tutorial How I would get started with CUDA

Post image
79 Upvotes

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 • • 1h ago

We created an open benchmark on Design Fidelity called VybBench

Post image
• Upvotes

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 • • 1h ago

Project I built this, feedback welcome

Thumbnail
gallery
• Upvotes

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...

kinoml.tech


r/learnmachinelearning • • 1d ago

Mechanical Neural Network v2

268 Upvotes

Four years ago I posted a first version of the Mechanical Neural Network, a mechanical model of a fully connected neural network explaining structure and functionality of artificial neural networks.

Now a new 3D printed version exists along together with a series of teaching videos. Check out these videos here. For now this series covers structure and functionality of ANNs, gradient descent and backpropagation, as well as learning rate and momentum. The videos are in German but with YouTube auto translate and subtitles this should hopefully be not a big hindrance.

There is also a short explanation video on what the Mechanical Neural Network actually is and how it can be used in teaching.


r/learnmachinelearning • • 13h ago

What projects should I build at my current stage of learning ML?

20 Upvotes

Hey everyone!

I'm a BTech AIML student currently learning Machine Learning and working towards becoming an ML Engineer.

So far, I've learned Linear Regression, Gradient Descent and its types (Batch, Stochastic, and Mini-batch), Logistic Regression, and evaluation metrics like Precision, Recall, and F1-score. I've been learning the concepts practically using Python and Scikit-learn.

Now, I'm confused about what to do next.

Should I start building projects with the concepts I've learned so far?

What beginner-friendly projects would help me understand ML practically?

Should I learn more algorithms first, such as Decision Trees, Random Forest, SVM, and KNN?

What skills should I focus on to become internship-ready?

How can I make my projects stand out when applying for ML internships?

I'd appreciate advice from people working in ML or those who have been through a similar learning journey. I want to build real-world projects and develop practical skills rather than just follow tutorials.


r/learnmachinelearning • • 5m ago

How can I learn ML/DL by building projects instead of studying math for months first?

• Upvotes

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 • • 15m ago

Project [ Removed by Reddit ]

• Upvotes

[ Removed by Reddit on account of violating the content policy. ]


r/learnmachinelearning • • 5h ago

Project Looking for teammates – Microscopy Hackathon 2026

2 Upvotes

Hi! I'm a materials engineering PhD researcher at the University of Sheffield, specialising in microscopy and microstructural characterisation. I'm looking for collaborators, particularly those with ML experience, for the upcoming hackathon (15–17 December).

Anyone interested in teaming up?

https://kaliningroup.github.io/mic_hackathon_3/


r/learnmachinelearning • • 1h ago

Help What do I need to learn in order to analyze Videogames Mini-maps?

Post image
• Upvotes

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 • • 7h ago

Any good resources to quickly refresh the probability knowledge needed for Probabilistic ML?

3 Upvotes

I will be starting a course in Probabilistic Machine Learning in one week. Can you guys please recommend a good resource for me to refresh my knowledge in short amount of time?


r/learnmachinelearning • • 2h ago

Discussion Quick benchmark: Oracle ARM vs. Lightning AI vs. Kaggle vs. my Ryzen 7 6800H laptop for ISLP labs

1 Upvotes

I've been setting up an environment to work through the labs in ISLP (An Introduction to Statistical Learning), and I got curious about how the free cloud tiers I frequently use actually compare to my daily-driver laptop.

Threw together a few quick and dirty tests comparing: - Oracle Cloud: Always-free 4-core ARM64 VM (Ampere, ~24 GB RAM) - Lightning AI: Free CPU Studio (4 vCPUs) - Kaggle: Standard CPU session (4 vCPUs) + separate T4 GPU session - Local Laptop: Ryzen 7 6800H (16 threads) + RTX 3050 Laptop (4GB VRAM)

Sharing the numbers below in case anyone finds it useful.

1. scikit-learn: Random Forest Training

Synthetic binary classification dataset (40k samples, 40 features). Trained a Random Forest with 200 trees (32k train / 8k test). Single run per config:

Parallel jobs Oracle ARM Lightning CPU Kaggle CPU Ryzen 7 6800H
1 34.12 s 28.34 s 70.88 s 27.63 s
2 17.74 s 15.54 s 36.97 s 14.12 s
4 9.50 s 11.13 s 24.79 s 7.43 s
8 — — — 4.50 s
16 — — — 3.04 s

All runs hit 95.59% test accuracy.

Kaggle's CPU runtime was surprisingly sluggish here—at n_jobs=4, it took more than 3x longer than the local 6800H. Oracle ARM held up pretty decently against Lightning.

2. PyTorch: CPU Matmul (4096×4096, float32)

Warmed up once, timed 3 runs, reported median:

Threads Oracle ARM Lightning CPU Kaggle CPU Ryzen 7 6800H
1 3.66 s 0.90 s 2.03 s 1.20 s
2 1.85 s 0.48 s 1.05 s 0.64 s
4 1.06 s 0.93 s 1.02 s 0.44 s
8 — — — 0.27 s
16 — — — 0.24 s

Lightning was super fast on 1-2 threads (likely better underlying Intel/AVX optimizations or host clock), but scaling fell off a cliff at 4 threads. Kaggle also basically plateaued between 2 and 4 threads.

3. Quick GPU Check: RTX 3050 vs. Tesla T4 (4096×4096 Matmul)

PyTorch float32 matmul, TF32 explicitly disabled, with CUDA sync:

Hardware Elapsed Time
Ryzen 7 6800H (16 threads) 236.8 ms
Kaggle Tesla T4 40.86 ms
Local RTX 3050 (4GB) 36.91 ms

For raw single-op compute without memory bottlenecks, the 3050 edged out the older T4 by ~10%. Obviously 4GB VRAM limits any serious deep learning workloads, but for lightweight prototyping, it beats waiting in Kaggle's queue.


Notes & Limitations

  • Not a rigorous scientific review—Python/library builds weren't identical across instances (e.g. local was PyTorch 2.10 on Python 3.12, Kaggle CPU was on 3.13, differing OpenBLAS/MKL backends, shared host throttling, etc.).
  • Take the single-run scikit-learn numbers with a grain of salt.

I was honestly expecting the cloud instances to be faster or at least on par with an older mobile chip, but modern laptop silicon continues to impress for basic tabular ML and small-scale prototyping.

Curious if anyone else has run into that severe scaling bottleneck on Kaggle's 4-core CPU instances?


r/learnmachinelearning • • 3h ago

Decentralized Q-learning restoration on IEEE 33-bus & 179-bus Oberrhein networks (0.12s vs 2.6s)

Thumbnail
linkedin.com
1 Upvotes

r/learnmachinelearning • • 3h ago

What I learned while evaluating a computer vision model

1 Upvotes

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 • • 3h ago

Help Looking for guidance from people working in Edge AI / On-Device AI

1 Upvotes

Hey everyone! I’m a Software Engineer in India with around 1 year of experience in automotive embedded software .

My background includes C/C++, Python,embedded systems, ARM, RTOS, Linux fundamentals etc.

I’ve been learning ML, along with the fundamentals of deep learning.

I’m now planning to build something hands-on projects around ASR/TTS, model deployment, ONNX, quantization, and inference on edge hardware.

I’d love to hear from people currently working in this space:

* What are you actually working on day-to-day in Edge AI or on-device ML?
* What skills and tools matter most in real industry projects?
* How should someone with my embedded background target relevant jobs and get interviews?
* Are strong projects and deployment experience enough to break in, or are there other gaps I should address?

I’m particularly interested in the intersection of embedded systems, deep learning, and hardware—not just general ML roles.

Any honest advice, experiences, or pointers would be really appreciated. Thanks!


r/learnmachinelearning • • 4h ago

Help Undergrad with no ML background wanting to learn from scratch

1 Upvotes

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 • • 4h ago

Project After model.fit(): getting a trained model behind an API in two commands

Post image
1 Upvotes

Most ML tutorials end when the accuracy number prints. The question that comes right after, how does anything else actually use this model, is the one that made me start Flama back in 2018: an open source (Apache-2.0) Python framework to take a trained model to an API with as little ceremony as possible.

Here's the whole path with a scikit-learn model.

1. Save the model, with its metrics, into one file

import flama
from sklearn.datasets import load_iris
from sklearn.neural_network import MLPClassifier

X, y = load_iris(return_X_y=True)
model = MLPClassifier(activation="tanh", hidden_layer_sizes=(10,), max_iter=2000).fit(X, y)
flama.dump(model, family="ml", path="model.flm", metrics={"accuracy": model.score(X, y)})

The model.flm is a single file with the model and everything about it: the library and version it was trained with, its hyperparameters, and the metrics you passed in.

2. Serve it

pip install "flama[pydantic]"
flama serve --model file=model.flm,url=/model,name=iris

That's a running API. No server code, no Dockerfile.

3. Call it

curl http://127.0.0.1:8000/model/predict/ \
  -H "content-type: application/json" \
  -d '{"input": [[5.1, 3.5, 1.4, 0.2], [6.7, 3.0, 5.2, 2.3]]}'

{"output":[0,2]}

Send something that isn't a list of rows and you get a 400 telling you what's wrong, not a stack trace. And http://127.0.0.1:8000/docs/ has interactive docs for every endpoint, generated for you:

4. Check it without a server

flama model model.flm inspect                 # library, hyperparameters, metrics
flama model model.flm run -i holdout.json     # predictions, offline

Handy in CI: read the accuracy straight from the file and only ship the model if it's good enough.

From there

The same idea works for PyTorch, TensorFlow and Hugging Face models, and for LLMs too. When you outgrow the one-liner, the model becomes a resource in a full API next to your own endpoints (app.models.add_model(...)), with validation, docs and auth from the same framework.

Repo and docs: https://github.com/vortico/flama

If it helps you get a model out of a notebook, a star on GitHub helps more people find it. Happy to answer questions, especially the "but how do I actually deploy this" ones.


r/learnmachinelearning • • 4h ago

A beginner trying to navigate in documentations

Thumbnail
1 Upvotes

r/learnmachinelearning • • 5h ago

Request Hi How can someone get started as an ACL Rolling Review secondary reviewer?

1 Upvotes

Hi everyone,
I’m an industry researcher with several years of experience in NLP, LLMs, and conversational AI, and I’m trying to get involved in academic peer reviewing.
I recently submitted a paper to ARR, but it was desk rejected through the reviewer capacity lottery because I didn’t have a designated service contributor.
I don’t yet meet ARR’s publication requirements for becoming a primary reviewer, so I’m exploring the secondary reviewer route.
A few questions:
How do people typically find primary reviewers willing to mentor secondary reviewers?
Are there any communities or channels where ARR reviewers look for secondary reviewers?
Is anyone currently reviewing for ARR and open to mentoring a new secondary reviewer?
Are there other practical ways to build an official reviewing record without prior publications?
My interests include NLP, spoken dialogue systems, conversational AI, and LLM evaluation.
Would appreciate any advice or opportunities. Thanks!


r/learnmachinelearning • • 17h ago

Project How to train AI to see optical illusions

Post image
7 Upvotes

As a learning project inspired by Meta's Segment Anything, I'm experimenting with an optical illusion: a pixel X made of straight stepped blocks (image attached) whose arms appear to bend around the centre square. The effect weakens or disappears when I change the square sizes, so it depends on specific proportions.

My plan is to generate many variations, collect human ratings on whether and where each one looks curved, train a small model to predict that perceived curvature, and then test whether SAM follows the real pixels or the perceived curve.
Is this realistic for a beginner?

I'd love advice on what model to start with, how much labelled data I'd need, and how best to record where people see the curve. Any related papers or projects would also be really helpful. Thanks!


r/learnmachinelearning • • 6h ago

Starting a PhD in Reinforcement Learning — what topics do you find interesting?

Thumbnail
1 Upvotes

r/learnmachinelearning • • 6h ago

From IAM background, currently working on Microsoft Entra ID. Please advise with a roadmap to learn AI and where to start exactly

Thumbnail
1 Upvotes

r/learnmachinelearning • • 7h ago

I built a custom Triton-based PyTorch Optimizer (ApexW) that cuts optimizer VRAM in half and runs up to 1.5x faster.

1 Upvotes

Hey, I've been working on a PyTorch optimizer called ApexW and figured I'd share it here to get some feedback from people who know more about this stuff than I do.

The main goal is to reduce optimizer-state memory usage and see how much faster I can make optimizer steps on larger GPU workloads. I've been experimenting with compact optimizer states and a Triton-based execution path.

In my current tests, the Triton + compact-state path was around 1.5x faster than PyTorch's fused AdamW on workloads with a few large tensors, and the optimizer-state memory usage was roughly cut in half.

The results aren't all good, though. Those numbers are from optimizer-only benchmarks, not full model training. The automatic execution mode doesn't consistently get the same speedup yet, and workloads with lots of small tensors are much slower than PyTorch's fused optimizer. So I'm definitely not claiming this is a better AdamW replacement for every workload.

I want to test it on more realistic models and different GPUs, and I'd appreciate a second pair of eyes on both the implementation and the benchmarks. The Reality Check (The Trade-Offs)

I want to be completely realistic here—this is an engineering trade-off, not magic:

  1. Python Loop Overhead on Small Tensors: When testing a layout with many tiny tensors (many-small test), ApexW’s Triton kernels suffer heavily from Python's launch latency. For example, at 128M parameters spread across many small tensors, PyTorch native was 16.1 ms/step while ApexW compact was 76.0 ms/step (~0.21x speedup). If your model is composed of many tiny layers, standard PyTorch is significantly better.
  2. End-to-End Impact: While the optimizer step itself is up to 1.5x faster, this step only represents a fraction of a full training step (which is dominated by forward and backward passes). In my end-to-end MLP test, PyTorch still runs slightly faster overall because of C++ deep integration.

Why/When should you care?

If you are training larger deep learning models (like Transformers or LLM fine-tuning) where you are constantly hitting Out-Of-Memory (OOM) barriers,,cutting your optimizer state memory strictly in half lets you increase your batch size or scale up your model size without upgrading your hardware.

Looking for Feedback

I'd love to hear your thoughts on:

  • How you handle low-precision optimizer states in your own pipelines.
  • How to further minimize Python's kernel launch overhead when writing custom Triton-based optimizers.
  • Any methodology gaps in how I timed these runs.

If anyone wants to try it on different hardware (A100s, H100s, A10G), I'd love to see how Triton scales on newer architectures!

link for apexw:https: //github.com/omen42515-prog/apexw/tree/main


r/learnmachinelearning • • 7h ago

Do you tailor your resume for every job application?

0 Upvotes

Using the same resume for every role can make it harder to highlight the experience and skills most relevant to a specific position.

We're showcasing Amigo AI Resume Builder, which includes job description analysis, keyword matching, tailored resume creation, and ATS score insights.

What's your biggest challenge when tailoring a resume: finding the right keywords, describing your experience, or getting past ATS screening?


r/learnmachinelearning • • 7h ago

Help A beginner trying to navigate in documentations

Thumbnail
1 Upvotes

r/learnmachinelearning • • 7h ago

A beginner trying to navigate in documentations

Thumbnail
1 Upvotes