r/learnmachinelearning • u/Winter_Mistake_3185 • 22d ago
Tutorial CPU Parallelism Primer | Kernel Engineering | Session 2
r/learnmachinelearning • u/Winter_Mistake_3185 • 22d ago
r/learnmachinelearning • u/DueBid3298 • 22d ago
r/learnmachinelearning • u/martincsweiss • 23d ago
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/Impressive-Basil9657 • 22d ago
Can language models learn to understand time series by learning to forecast them?
LOTUS (Learning to Understand Time-series by Learning to Forecast) explores this idea with a family of compact time-series language models built on Gemma-3 and Qwen-3.
đĄ Key idea: Forecast grounding. By learning to predict how a signal evolves, the model develops representations that better capture temporal information for downstream understanding tasks.
Some interesting results:
Resources:
đ€ Models: https://huggingface.co/daidv1112/LOTUS
đ» Code: https://github.com/DA2I2-SLM/Lotus
đ Paper: https://arxiv.org/abs/2610.18877
The interesting question is whether forecasting can serve as a general learning signal for time-series understanding, rather than treating forecasting and reasoning as separate tasks.
r/learnmachinelearning • u/llaku0 • 22d ago
An ihtibari ile TPU sırasında 18. Saate girmiĆ bulunuyorum önĂŒmde 527 kiĆi var 2. Paket sigaramın son dallarındayımâŠ
r/learnmachinelearning • u/ashuzzz151 • 22d ago
đł Decision tree
đČ Random forest
⥠XGBoost
đ Tuned the validation RMSEr/learnmachinelearning • u/PrizeWise2322 • 22d ago
My repo: https://github.com/huyyhoangtr-boop/ML_zoomcamp_homework/tree/main/Homework6
#mlzoomcamp
r/learnmachinelearning • u/Agreeable-Flow-4684 • 22d ago
Greetings, colleagues. I am training a Neural ODE to forecast the non-linear dynamics of a physical system. To avoid error accumulation, I use a multi-step rollout loss (e.g., integrating the ODE over a horizon of 24 steps and computing the MSE over the entire trajectory).
However, the model consistently collapses to a trivial solution: it predicts a near-zero derivative (a constant or a very slow linear trend), essentially flattening the curve. While this minimizes the average MSE over the long horizon, it completely fails to capture the true high-frequency dynamics (see the attached image).
What regularization methods or architectural constraintsâsuch as Lipschitz continuity, spectral normalization, or physics-informed penaltiesâare best suited to ensure that a Neural ODE learns the true nonlinear dynamics, rather than collapsing into a constant function when trained over long horizons?

r/learnmachinelearning • u/Jonesmithllanos • 22d ago
I'm building a platform called Quantum, and I'd love some honest feedback from people working in Data Science and Machine Learning.
The idea is to bring the entire ML lifecycle into one place:
- Data exploration and preprocessing
- Model training and evaluation
- Experiment tracking and versioning
- Automated ML workflows
- AI agents that can execute tasks autonomously, with human oversight
- Model deployment and MLOps
Users can work manually, use AI assistance, or delegate entire workflows to agents.
The goal isn't to replace data scientists, but to reduce repetitive work and make ML development more efficient.
My questions:
I'm especially interested in critical feedback. What am I overlooking?
r/learnmachinelearning • u/UnitOk6056 • 22d ago
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
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:
Updated preprint: https://doi.org/10.5281/zenodo.23930791 (all new studies are in the same repo).

r/learnmachinelearning • u/Natural-Diver-5447 • 22d ago
Iâm full stack Dev, so I get to develope CRUD with endpoints and connecting with db.
What about ML job?
I learned gradient descent, forward and back propagation. Designed some basic model with PyTorch. But it feels like most of these can be easily Automated with AI. What could be the learning curve and whatâs like day to day work? Clearing data from csv? And fine tuning model?
r/learnmachinelearning • u/Crafty_Rabbit2411 • 22d ago
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/parkhiKumari14 • 22d ago
I'm exploring how Artificial Intelligence and Machine Learning can be applied to solve practical business problems, beyond just understanding the theoretical concepts.
I'm currently doing the epgp in ai/ml from ug. As part of my learning journey, I'm developing an understanding of how AI and ML algorithms help analyse data, identify patterns, make predictions, and support data-driven business decisions.
One thing I've realised is that knowing different algorithms is only one part of the learning process. Understanding the problem, selecting the right model, evaluating its performance, and interpreting the results are equally important.
I'm curious to know from this community:
For those who have learned or worked in AI/ML, which practical projects helped you connect theoretical concepts with real-world applications?
r/learnmachinelearning • u/Cool-Hornet-8191 • 22d ago
Nowadays, all popular ai chatting websites like qwen, chatgpt, gemini, claude, etc. come with a read aloud functionality that allows users to read aloud the AI's responses.
I used that feature to instead make the AI repeat back the text that i gave it -- effectively turning the platforms into text to speech tools. It's simple but it's worked for over 30k users, and the voices sound really nice and it's free to use!
You can get all of these extensions by visiting ai-readers.com
r/learnmachinelearning • u/arquno • 22d ago
r/learnmachinelearning • u/Ok_pettech • 22d ago
r/learnmachinelearning • u/No-Conclusion3720 • 22d ago
China's Ministry of Commerce just published Announcement No. 48 â the country's first export controls specifically targeting frontier AI models and training data. That is now a third distinct regulatory regime on top of the EU AI Act and active US executive orders on AI. Each framework has different requirements for which models can be used, how data must be routed, and what crosses a restricted border. The problem for enterprise teams is not awareness of the rules. It is that most production agentic deployments cannot answer the basic audit questions after the fact: which model did this agent invoke on this request, what data did that call touch, did any of it traverse a jurisdiction that any of the three regimes restricts? The invocation happens in milliseconds. The compliance review loop does not. For those of you running agentic workloads across regulated regions right now â US, EU, and now China â how are you actually tracking model invocations and data paths in a way that holds up to a real audit?
r/learnmachinelearning • u/obliviousphoenix2003 • 23d ago
Hello,
I am a research engineer and I work in academia so my code is mainly scripts all over the place.
I want to learn MLOps but if seems to be a lot of books/tutorials and I couldn't know where to start.
If you had to recommend 1 or 2 books for the basics with practical examples, which one would it be?
Many thanks
r/learnmachinelearning • u/the-random-guy-2002 • 23d ago
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/Critical-Fly1546 • 22d ago
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/Commercial_You- • 23d ago
hi, i want to start with ML, what would be a good resource which can teach ML from basics to advance?
is it the
any other suitable knowledge is welcomed, thanks.
i also wanna take my chance on gsoc..
r/learnmachinelearning • u/Dramatic_Category_56 • 22d ago
Hi guys
This guy
Instagram · dswithdennis
Claims that he has 25 years of experience in data science but really all he's doing is to open claude chat and show everyone that he has access to fable 5 and say shit stuff about CS .
r/learnmachinelearning • u/Complete-Standard950 • 23d ago
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!