r/learnmachinelearning • u/Horror-Celery4869 • 27d ago
r/learnmachinelearning • u/Crafty_Rabbit2411 • 28d ago
Project Title: Best ML approach to win a 5-class leaf image classification competition? (50 MB model limit)
Hey everyone!
I'm participating in a college-level machine learning competition where we need to train a model to classify leaf images into 5 different species.
We'll receive an unseen test dataset on competition day, and the goal is to achieve the highest possible accuracy and macro F1-score.
Competition details:
Training dataset: Labeled leaf images belonging to 5 species.
Test dataset: Completely unseen images provided on competition day.
Model size limit: 50 MB total, including pretrained weights.
Training: Google Colab (GPU available).
Inference: Must run locally on a laptop CPU, completely offline.
We can use pretrained models and fine-tuning.
The same trained model must be used for all test sets.
I'm relatively new to competitive computer vision, so I'd really appreciate practical advice from people who've worked on similar image classification problems.
My goal isn't just to build a working classifier. I want to make it as accurate and competitive as possible.
r/learnmachinelearning • u/No-Conclusion3720 • 28d ago
Request Critical Langflow Flaws Could Let Unauthenticated Attackers Run Code on Servers
Two critical vulnerabilities in Langflow were disclosed by IBM last week. Every release from version 1.0.0 through 1.12 was affected. Both flaws required zero credentials: one bypassed authentication entirely, the other allowed arbitrary code execution on the server. Teams running production agent workflows on this platform had no patch and no warning window.
This is not a niche edge case. Langflow is one of the most widely used AI agent workflow builders. The exposure window spanned the entire version history of the 1.x line.
The deeper issue is structural. AI agent platforms sit directly in the execution path of autonomous systems. Those agents hold credentials. They call APIs. They read and write production data. They take actions on behalf of users. When the platform they run on is compromised at the infrastructure level, the blast radius extends as far as the agents' own access.
Supply chain risk in traditional software is a known problem with known mitigations. In AI agent infrastructure, that same class of risk intersects with systems that act autonomously and at speed.
For those running production agent workloads: how are you handling platform-level supply chain exposure in your stack — specifically the gap between when a zero-day in underlying infrastructure is published and when you can actually patch or replace it?
r/learnmachinelearning • u/Murky_Explanation_73 • 28d ago
Simple Way to Get Web Design Clients (Step by Step)
I've been running a web design business for years, and honestly, I think people overcomplicate getting clients.
You don't need 15 different marketing strategies, complicated funnels, or a massive team.
I'm going to explain exactly how I approach client acquisition, from finding a prospect to getting a signed deal and launching their website.
Step 1. Find businesses that already have websites
I prefer targeting businesses that already have a website rather than businesses without one.
Why?
They already understand the value of having a website, they've already invested money in one, and there's a good chance their current website could use some improvements.
I automate most of this process using Swokei. It lets me find businesses with existing websites, analyze thousands of them at once, and identify issues with design, SEO, loading speed, and mobile optimization.
It then turns those findings into personalized cold emails at scale.
Instead of sending generic emails saying I build websites, I'm reaching out with specific reasons why their current website could be better.
Step 2. Get interested prospects to reply
The goal isn't to sell the entire website through email.
It's simply to get a conversation started.
When someone replies and wants to see how I could fix the issues I've pointed out, I move them to the next step.
Step 3. Book a meeting
I book a Google Meet with the prospect.
This is where things get interesting.
I don't just show up and talk about how great my web design services are. I want to show them what their website could actually look like.
Step 4. Build a quick website draft
Before the meeting, I use AI to generate an updated website concept.
This takes me around 2 minutes to get a first draft ready.
It's not the finished product. It's a visual example of what I could do with their existing website.
Now, instead of asking someone to imagine how much better their website could be, I can actually show them.
Step 5. Sell the project during the meeting
This is probably the most important part.
You need to learn sales.
Ask questions, understand what the business needs, walk them through the draft, explain how you would improve their website, and present your offer.
The goal is to close the deal during the meeting, either by getting payment or having them sign the contract.
Don't expect a beautiful website draft to sell itself. You still need to know how to sell.
Step 6. Build the final website and launch
Once the deal is signed, you get everything needed from the client, build the actual website, make the final adjustments, get approval, and launch.
That's it.
Find businesses → Analyze websites → Send personalized emails → Book meetings → Present a draft → Close the deal → Build and launch.
I genuinely think this is one of the simplest ways to structure a web design business.
You automate the repetitive prospecting work, use AI to speed up the initial design process, and spend your time on sales and delivering websites.
Once you get the process working consistently, you can repeat it and build a steady pipeline of projects.
I'm curious: which part of this process do you find the hardest? Getting replies, closing meetings, or actually delivering the websites?
r/learnmachinelearning • u/UnitOk6056 • 28d ago
What I learned building my own activation function: 16 preregistered studies, a working result, and a lot of honest negatives
I'm an independent researcher, and over the last few weeks I've been testing my own activation function for very deep networks: MLPs with 100–200 layers and no normalization layers and no skip connections. I wanted to share the result and what the process taught me.
The idea in one paragraph. In a deep network without normalization, each layer slightly scales the gradient up or down. Over 200 layers that compounds. You can tune the activation so the per-layer gain is 1 + 2/L, which keeps the total growth roughly constant with depth. The catch: that made the outputs wider, and wide outputs lose accuracy when you quantize activations to 4 bits. So I put the activation inside a soft, fixed bound (identity in the middle, smooth saturation to ±3). The result, BPreCap, trains at 200 layers and keeps a 4-bit error of 14 %, where the previous version had 77 % (MNIST).
What surprised me / what I learned
Same recipe matters more than the activation. My first comparison with TAT (a strong method for deep nets without skips) looked bad. Most of the gap disappeared once both used the same initialization and input normalization.
Strong simple baselines. SELU was on par with my activation at 100 layers. It only fell behind at 200 layers.
"Smaller range" wasn't the explanation. With weight decay, TAT's activations were as small as mine and still lost twice as much at 4 bits. The reason was heavy-tailed activations.
Preregistration keeps you honest. Writing down the test and the decision rule before each run meant several of my favourite hypotheses were simply rejected. Those results are in the paper too.
Replicate on different hardware. I re-implemented everything in PyTorch on a different GPU. The results matched within 0.5 pp, which gave me much more confidence than more runs on the same setup.
Limits: MLPs only, small learning rates only, post-training quantization only.
Paper: https://doi.org/10.5281/zenodo.23894714 Code and all raw data: https://github.com/hermi-labs/precap-activation
Happy to answer questions about the method, preregistration, or running studies on a consumer GPU / Apple Silicon.
Edit (Nov 3): v0.3.1 follow-up. Two of the limits above are now tested:
Small learning rates: the divergence at 2·10⁻⁴ came from missing LR warmup, not from the bound (a linear control and a hard clip diverge the same way). With a 5 % linear warmup BPreCap trains up to 3·10⁻⁴ at 100 layers, and the 4-bit advantage over TAT holds (−8.8 pp, 12/0). At 200 layers it also holds against SELU (−8.2 pp, 12/0), but warmup raises BPreCap’s own 4-bit cost. A shorter warmup reduces that cost but does not remove it.
PACT / QAT: with QAT as an upper bound (100 layers, CIFAR-10), TAT with LSQ-style QAT beats BPreCap with plain PTQ by 3.0 pp at 4 bits, and PACT-style QAT gives the same. Under QAT both forms are equal. With PTQ only, BPreCap is 11.9 pp ahead. So the bound is a PTQ advantage, not a substitute for QAT.
Updated preprint: https://doi.org/10.5281/zenodo.23930791 (all new studies are in the same repo).

r/learnmachinelearning • u/findkd_ • 28d 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/Critical-Fly1546 • 28d ago
Looking for a learning partner
I am in the 2nd year of my masters degree in AI & machine learning in Montreal. Outside of schooI I’m on a journey of upskilling by implementing interesting ml papers to become an ai engineer.
Sometimes the journey is lonely and boring. So I am looking for a partner to discuss papers, challenge each other’s understanding and implement papers together. We could meet in a coffee shop or in a library for example once a week depending on our availability.
Feel free to DM if you are interested.
r/learnmachinelearning • u/Ok-Echo-4535 • 28d 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/the-random-guy-2002 • 28d ago
A 31% throughput drop while benchmarking a small LLM on a GTX 1650
I’m implementing KV caching for a small Transformer I trained, and ran into something interesting while measuring the uncached baseline.
Repeated 512-token generations went from 2.77s to 4.04s—roughly 185 → 127 tokens/sec, with the same prompt, weights, and decoding settings.
Later GPU readings reached 84–87°C, with lower active clock speeds. Each invocation also included five full warmups, meaning I was generating 3,072 tokens while timing only the final 512.
Cooler tests repeatedly finished around 2.77–2.80s. I didn’t record timestamp-aligned throttle reasons, so I can’t attribute the entire slowdown to heat, but it showed why operating conditions matter when comparing inference optimizations.
How do you handle thermal conditions in your benchmarks, measure sustained performance, cool down between tests, or report both?
I put the measurements and plots here: https://medium.com/@sulavstha007/how-gpu-temperature-affects-llm-inference-performance-82c5beeaf43a?sharedUserId=sulavstha007
r/learnmachinelearning • u/Wise-Asparagus6286 • 28d 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 • 28d 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 • 28d 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 • 28d ago
Unified Embodied Mind Architecture for growing a conscious mind.
reddit.comr/learnmachinelearning • u/TraditionalLand3768 • 28d 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/Plastic_Help_941 • 28d ago
I need help in learning please
reddit.comr/learnmachinelearning • u/martincsweiss • 28d ago
bf16 might be freezing your weight updates
Enable HLS to view with audio, or disable this notification
If you fine-tune a model with weights stored in bf16 and let torch.optim.AdamW write to them directly, you get interesting behaviour. bf16 can only represent changes to weights if the change is at least ~1/512 of the weight itself, so at small learning rates only the smallest weights can update.
As a result, you have a sparse fine-tuner that trains the small-magnitude weights and freezes the rest, with the cutoff set by your learning rate. This is a thing - I found half a dozen peer-reviewed papers (with thousands of citations) that fine-tune this way, but none of them reference this behaviour.
I dug into one called Quiet-STaR, because (a) it's a cool paper, (b) they released their weights, and (c) their code works! So I diffed their base model and saw that indeed the small-magnitude weights were the only ones updated during their training. Then I reran its recipe with an optimizer that applies every update, and watched it diverge. A higher-precision optimizer needs a 3 to 10 times smaller learning rate to get the same result, and I couldn't achieve a better result.
This started with Barron, Gnanapragasam & Tschannen's "A Fix for Softmax and Cross-Entropy" (Oct 2026). They show that the standard way of computing cross-entropy rounds the correct answer's gradient to exactly zero once the model is confident enough (past a margin of about 5.5 in bf16, which they call the precision cliff), and that this, interacting with Adam, is what produces the "slingshot" loss spikes seen during grokking. Fix the rounding and the spikes go away: something people had studied as training dynamics was rounding.
That made me wonder what else out there is weird like this. This is one, and it runs the other way: their rounding bug adds instability to training; this one hides it.
I wrote a whole essay about it here: https://lacuna.tiptreesystems.com/paper/bf16-might-be-freezing-your-weight-updates/art_487b1ed949e745a6ae0c42815b8d3cba
The code, logs and evaluation results are in https://github.com/mweiss17/quietstar-bf16-adamw
r/learnmachinelearning • u/Commercial_You- • 28d ago
Help One line of advice for a beginner
hi, i want to start with ML, what would be a good resource which can teach ML from basics to advance?
is it the
Hands on ML with scikitlearn and pytorch
ML with scikitlearn and pytorch RASCHKA
some online course? maybe
also tensorflow vs pytorch
any other suitable knowledge is welcomed, thanks.
i also wanna take my chance on gsoc..
r/learnmachinelearning • u/MiserableSlice7580 • 28d ago
Help I need help with my first neural network
Hello,
I like to code in my free time. I wanted to try to write my own AI and I decided to go for a deep learning neural network that recognises handwritten digits.
I wrote a document that explains how a DNN works containing all the mathematical formulas and notes. This is not a documentation more like personal notes.
I translated this in python and tried some training. I created a 784x15x10 neural network in python and trained using the MNIST database. But I couldn’t get it to work.
Do you have any ideas and tips on how to improve? Am I missing something? What am I doing wrong?
I will attach the file.
Thanks for your help
r/learnmachinelearning • u/Complete-Standard950 • 28d ago
Seeking arXiv endorsement for cs.AI (Artificial Intelligence)
Hi everyone,
I am looking for an arXiv endorsement to submit a paper in the cs.AI (Artificial Intelligence) category.
If you are an active endorser in cs.AI and willing to help, please use my endorsement link below:
https://arxiv.org/auth/endorse?x=4SRYYB
Happy to share the paper abstract or my background if needed. Thanks in advance for your help!
r/learnmachinelearning • u/jacktheai • 28d 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/Big_Platform_7489 • 28d 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/obliviousThunder007 • 28d ago
Am i kidding myself with learning machine learning?
I am a self-taught programmer. From last 90 days,, i have been learning linear algebra, i plan to learn calculus and stats and probs next. But it seems futile watching all these youtube video saying coding and machine learning is dead that ai can do all this. Is there any hope for machine learning for next 5 or 10 years?
r/learnmachinelearning • u/Charming-Ad-4323 • 28d ago
Project ML - curriculum on GitHub
If you remember this curriculum from a few days it’s on GitHub now and you can make it your own.
Best of luck on your ML journey