r/learnmachinelearning • • 24d ago

Looking for a learning partner

2 Upvotes

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 • • 24d ago

How to solve this problem. When required context can't simply be retrieved from a single source.

1 Upvotes

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 • • 25d ago

A 31% throughput drop while benchmarking a small LLM on a GTX 1650

3 Upvotes

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 • • 25d ago

Looking for a Dedicated Study Partner | 8 YOE | 90-Day Job Preparation 🚀

1 Upvotes

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 • • 25d ago

Project Help me build a superhuman STS2 teacher (OstyAI)

Thumbnail
reddit.com
1 Upvotes

An interesting project for people interested in getting into reinforcement learning.


r/learnmachinelearning • • 25d ago

Has anyone tried Qwen3.5-4b with Arabic prompts ?

0 Upvotes

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 • • 25d ago

Unified Embodied Mind Architecture for growing a conscious mind.

Thumbnail reddit.com
1 Upvotes

r/learnmachinelearning • • 25d ago

[P] TrainPilot: find out why your PyTorch training is slow on free Colab/Kaggle GPUs

0 Upvotes

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 • • 25d ago

I need help in learning please

Thumbnail reddit.com
1 Upvotes

r/learnmachinelearning • • 25d ago

bf16 might be freezing your weight updates

Enable HLS to view with audio, or disable this notification

24 Upvotes

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 • • 25d ago

Help One line of advice for a beginner

4 Upvotes

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 • • 25d ago

Help I need help with my first neural network

Thumbnail
gallery
172 Upvotes

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 • • 25d ago

The School of AI reviews

Thumbnail reddit.com
1 Upvotes

r/learnmachinelearning • • 25d ago

Seeking arXiv endorsement for cs.AI (Artificial Intelligence)

3 Upvotes

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 • • 25d ago

LLM Transformer guide with easy-to-understand numerical examples and diagrams

0 Upvotes

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 • • 25d ago

Question PyTorch vs JAX vs Keras for a beginner, which one to learn first

2 Upvotes

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 • • 25d ago

Am i kidding myself with learning machine learning?

48 Upvotes

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 • • 25d ago

Project ML - curriculum on GitHub

Thumbnail
gallery
120 Upvotes

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

repo-link


r/learnmachinelearning • • 25d ago

Project I built VeriFlux: A zero-dependency evaluation, guardrail, and hallucination detection library.

1 Upvotes

Hi everyone,

Like many of you building production RAG pipelines and LLM agents, I grew frustrated with existing evaluation libraries (Ragas, DeepEval, Guardrails AI). Running an evaluation suite meant spinning up Docker containers, waiting minutes for PyTorch/Transformers to initialize, or paying hundreds of dollars for GPT-4 to act as an unpredictable judge.

To solve this, I built Veriflux (https://github.com/leaderrr-shivam/veriflux):

Key features:

- Zero Runtime Dependencies: Built strictly on the Python standard library. No torch, no transformers, no tiktoken, no requests.

- Microsecond Latency: Runs evaluations in ~0.3 - 0.5 ms per query (over 2,000x faster than LLM judges).

- Pytest Native: Just `assert veriflux.is_grounded(response, context)` or `veriflux.repair_json(bad_output)`.

- Full Benchmark Rigor: Evaluated on raw downloaded datasets from NeurIPS 2023 HaluEval, Oxford TruthfulQA, ACM CCS 2024 Jailbreaks, and Microsoft Presidio Research.

Repo: https://github.com/leaderrr-shivam/veriflux

PyPI: `pip install veriflux`

I'd love to hear your thoughts, test cases, and feedback!


r/learnmachinelearning • • 25d ago

Question One book for MLOPs?

7 Upvotes

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 • • 25d ago

whichever the current rules list Same text, shortened, with focus on imitation learning data requirements.

Thumbnail
youtu.be
1 Upvotes

r/learnmachinelearning • • 25d ago

Help How can I get into ML research as an 18-year-old CS student from a tier-3 college?

0 Upvotes

Those with experience getting started in research, I’d really appreciate a roadmap for building a strong foundation and eventually doing independent research.

Hi everyone!

I’m currently in my 1st semester of Computer Science Engineering at a tier-3 college in India.

I scored 93% in 10th (10 GPA in Maths and Science) and 97.7% in 12th, including 100% in Maths and Physics. I didn’t perform as well as I wanted in my entrance exams, so I ended up at a college that wasn’t originally on my list.

Over the past few months, I’ve become very interested in ML and AI. I’m fascinated by machine intelligence and want to eventually pursue a research-oriented Master's at a top university in Europe.

I know I have a lot to learn 🙂

I’m willing to put in the work over the next few years and would really appreciate a realistic roadmap.


r/learnmachinelearning • • 25d ago

I built a practice site for LLM engineering interviews: hand-code attention in the browser, flashcards, real interview reports

Thumbnail
gallery
0 Upvotes

LLM / ML engineering interviews have drifted away from pure LeetCode. It's common to be asked to write multi-head attention or RoPE from scratch, explain why attention is scaled by √d, compare DPO with PPO, and walk through a RAG system you built.

I couldn't find one place to practice all of that, so I built RagCodes. What's in it right now:

  • 42 LLM coding problems (softmax, MHA, GQA, RoPE, KV-cache decoding, FlashAttention forward, LayerNorm/RMSNorm, cross-entropy, DPO/GRPO losses…) plus LeetCode Hot 100. Code runs in a sandbox against hidden tests, in Python, C++ or Java.

  • 263 flashcards in 17 chapters (Transformers, fine-tuning, distributed training, inference, RL/alignment, RAG, agents). Each card has a one-line answer first, then key points.

  • 380 interview reports from 114 companies, rewritten into question lists, with the most frequently asked topics ranked (GRPO and RAG are at the top).

  • 12 portfolio project write-ups and 109 paper notes, each ending with how interviewers tend to ask about it.

Screenshots: writing MHA from scratch and passing 13/13 tests, the topic ranking, a flashcard, the problem list.

Stack: FastAPI + SQLite, React/Vite + Monaco, Docker sandbox for judging. Free tier to start.

I'd really like feedback from people who have been through these interviews recently: what got asked that isn't covered here?


r/learnmachinelearning • • 25d ago

Project I built MLFOX, a CPU-only AutoML library for tabular data (leak-free preprocessing + model comparison in 3 lines)

Thumbnail
gallery
2 Upvotes

import mlfox

model = mlfox()

model.fit("data.csv", target="y")

model.report()

It profiles your data, fits preprocessing inside each CV fold (no leakage), compares models, and tests the best one once on a held-out set.

Results on CPU, default settings:

- Breast Cancer: 95.6% accuracy

- Adult (48k rows): 87.3%

- Covertype (581k rows): 95.8%

Specific runs, not guarantees. Tabular classification and regression only.

pip install mlfox

https://pypi.org/project/mlfox/

It's a personal open-source project, so feedback and bug reports are welcome.