r/learnmachinelearning • u/oldKASPER • 1d ago
r/learnmachinelearning • u/DeerBest495 • 22h ago
Looking for Resources to Learn Applied AI / LLM Engineering for My Startup and Projects
Hey everyone!
I'm looking to learn Applied AI / LLM Engineering so I can build AI-powered products, work on my own projects, and eventually integrate AI into my startup.
I'm interested in learning topics like RAG, vector databases, fine-tuning (LoRA/QLoRA), AI agents, agent harnesses, context engineering, LLM internals (transformers, attention, KV cache), inference, and deploying production-ready AI applications.
I'm not particularly interested in training foundation models from scratch or going deep into ML research. I want to understand the fundamentals while focusing primarily on practical AI engineering.
Could you recommend some good books, courses, YouTube channels, blogs, technical documentation, GitHub repositories, or websites to learn these topics?
I'd also appreciate a suggested learning roadmap or sequence to follow.
Thanks!
r/learnmachinelearning • u/No-Conclusion3720 • 18h ago
Request An AI Agent Just Hacked the People Who Hunt Hackers: Your Perimeter Was Already Gone
Security researchers — the people who build detections and investigate compromises for a living — had their own environment infiltrated via an AI agent. That detail matters because it removes the usual excuse that the victim wasn't paying attention.
The pattern underneath is the same one showing up across incident reports right now: once a rogue or compromised agent is in the request path, its second action executes before any human has finished reading the first. The exposure window isn't measured in minutes. It is measured in the gap between one tool call completing and the next one firing.
That gap is structural. Agents don't pause for approval loops by default. They chain. And the assumption that a perimeter check at entry time covers what happens inside the session is exactly what this incident broke.
For those of you running agents in production or inside security tooling: how are you handling trust decisions between agent actions mid-session? Not at login, not at deploy — at the moment one specific tool call is about to execute. Curious what's actually working in practice.
r/learnmachinelearning • u/Stock_Noise_2635 • 22h ago
Which subject should an AIML aspirant choose for MDM? I have to choose among 5 subjects, and I am confused about which one to prioritize. The options are: 1. Robotics and Automation, 2. Geospatial Engineering, 3. DevOps, 4. FinTech, and 5. Smart Cities.
r/learnmachinelearning • u/No-Conclusion3720 • 15h ago
Request DoorDash breached by attackers using AI, user data accessed
DoorDash confirmed a breach where attackers used AI tooling to access user data. The attackers moved through systems in ways that bypassed traditional perimeter controls — the AI component let them automate reconnaissance and exfiltration steps that would have been noisy or slow if done manually.
What makes this pattern dangerous is not the breach itself but what it exposes about how sensitive data sits in live systems. Once an attacker has access to a service account or API credential, user PII — names, addresses, partial payment data — is often queryable in plaintext, routable to arbitrary destinations, and gone before any alert fires. The data exists in a form that can be moved, and nothing in the request path is evaluating whether that move should be allowed.
This is not a DoorDash-specific architecture failure. Most systems storing user data at scale tokenize at rest but leave the data exposed in transit between internal services. An attacker operating inside that perimeter can query and exfiltrate freely.
How are teams at your orgs actually handling this — specifically the gap between 'data is encrypted at rest' and 'data is queryable by anything with a valid credential at runtime'? Curious what controls people have found that actually work in practice rather than just on a compliance checklist.
r/learnmachinelearning • u/kbhaskar306 • 23h ago
Prompt Engineering Guide: How to Write Better AI Prompts for LLMs
Stop giving AI bad instructions! 🤖 Learn the science of prompt engineering to get exactly what you need. Master your prompts today.
#AI #PromptEngineering #TechTips #GenerativeAI
r/learnmachinelearning • u/Infinite-Jaguar-1753 • 23h ago
Project How should I train model for <1ms execution speed and <500mb ram and which model?
reddit.comr/learnmachinelearning • u/BigUnderstanding1307 • 1d ago
Project First GPU kernel project: built a 4-bit Paged KV-Cache (K4V4) decode engine from scratch in Triton (cuts Qwen2.5-3B VRAM by 3.2x)
Just finished my first real project writing GPU kernels from scratch. skipped vector addition and went straight for a full 4-bit paged KV-cache (K4V4) decode engine in Triton. it does on-the-fly INT4 packing into uint8, vLLM-style non-contiguous page tables, and Split-K online softmax reduction.
what's working in v2.0 right now:
- 3.2x smaller KV-cache (tested on Qwen2.5-3B at ~8.3k context, VRAM went from 291 MB down to 93 MB with 0.99056 cosine sim)
- asymmetric quant: per-channel scales for Keys, group-32 scales for Values, packed into uint8
- 24 pytest cases covering annoying edge cases like unaligned blocks and empty Split-K splits on short seqs (1 to 1025)
- end-to-end benchmarks with L2 cache flushing (
do_bench) vs native GQA (enable_gqa=True) on a T4, plus a modal script if anyone wants to run it on an H100
the catch & what's next (v2.1):
right now it's actually slower than FP16 SDPA on a T4 because the GQA query heads aren't fused yet, so each KV group does 4x redundant HBM reads. next step is fusing those GQA groups into shared tile loads with tl.dot and profiling on H100.
if anyone here has written a bunch of Triton kernels and sees something obvious I can improve before I tackle GQA fusion, let me know.
r/learnmachinelearning • u/Logical_Respect_2381 • 1d ago
Tutorial Mixture of Experts, token by token — a visual walkthrough
I made a short animation following the word “bank” in two sentences: “She deposited cash at the bank” and “They sat on the river bank.”
The example shows how context can change which experts the router picks. I also work through the numbers for one route so you can see how the two expert outputs get combined. I’d be curious whether the diagram makes that step easier to follow.
https://www.youtube.com/watch?v=ctRoV3RSIQ0. AI disclosure :I chose the examples and shaped the explanation of how each token moves through the model. I used AI tools to help create the animations and voice-over.
r/learnmachinelearning • u/Agreeable_Invite3485 • 1d ago
MIMIC-III credentialing rejected 10+ times over 1 year - I just need noteevents.csv, what am I doing wrong?
reddit.comr/learnmachinelearning • u/MurkyChallenge3390 • 1d ago
IIT Bombay End Sem ML question paper.
galleryHow to solve help..
r/learnmachinelearning • u/SaveWaterSheeeep • 1d ago
Project I made a little ML project that tries to detect biased language in news articles!
Hey everyone!
I've been messing around with machine learning lately and decided to build something around news bias detection, The idea is pretty simple. take a news article, split it into sentences, and see which ones contain language patterns associated with bias.
I used the BABE dataset and experimented with a few different models (Logistic Regression, Naive Bayes, SVM, and Random Forest), Eventually, I decided to turn it into an actual application instead of leaving everything in notebooks.
You can paste an article, get predictions for individual sentences, see their confidence scores, and even inspect which words influenced the predictions.
I also added a bunch of visualizations, including a little interactive 3D graph because... why not.
This was a pretty fun project to work on. I learned a lot about data cleaning, TF-IDF, model evaluation, hyperparameter tuning, and especially data leakage (which I initially underestimated).
The results aren't groundbreaking, and the model definitely has its limitations. It doesn't determine whether an article is factually biased or whether a publisher is trustworthy. It just looks for patterns it learned from the dataset.
Anyway, I made a short demo video showing how it works!
Would love to hear what you think or what you'd change/add. I'm still learning, so feedback is appreciated!
r/learnmachinelearning • u/shashank18-- • 21h ago
Day 1
Today real I realised late so I have done only some topics guys actually topic are
1). Supervised learning
2). UnSupervised learning
3). Reinforcement learning
4). Deep learning
5). Neural network series by 3 blue 1 brown
(5th topic only completed only one chapter )
And also suggest me some more topics and tag the resources so I can learn and become a trillionaire
r/learnmachinelearning • u/Suitable-Original-97 • 1d ago
Free notes for AI engineers: revise or learn Generative AI and Agentic AI with diagrams and code
If you are learning to become an AI engineer, or you already are one and want a quick way to revise, these notes are for you.
Every lesson starts with a simple diagram of the idea, then plain words, then the code. So you can understand a topic fast, or refresh it before an interview or a project.
Covers:
- LLM basics and tool calling
- RAG: from a PDF to an answer
- Agents: state, loops, memory, human approval
and many more
Each topic has runnable code on free API keys.
Notes: https://genai-notes.vercel.app
Code: https://github.com/dhruv608/genai-notes
Which topic do you find hardest to revise? I will add a clearer explanation.
More lessons are coming (GraphRAG, advanced agents and more). ⭐ Star the repo to keep it for revision and to get the updates.
r/learnmachinelearning • u/NoRoutine5857 • 1d ago
Help Doing a hackathon on agentic payments, what actually breaks for you when you buy online?
Hi guys, I'm doing a hackathon on agentic payments in e-commerce. Before building anything I wanted to find out what actually annoys people when they buy or pay for things online.
Made a small form, 2–3 min, anonymous.
The questions are about stuff that actually happened to you surprise fees, failed payments, chasing refunds, lost parcels not about AI. Happy to post the results back here.
r/learnmachinelearning • u/stubborn-boy • 2d ago
Discussion IIIT ALLAHABAD ML endsem
Saw someone from IIT Bombay post their ML endsem, and I had to post this. Yesterday we had our ML endsem.
Undergrad
r/learnmachinelearning • u/oldKASPER • 1d ago
Which one should I learn, LangChain or LangGraph, according to the industry standards? I want to learn only one.
r/learnmachinelearning • u/YousifAbdulhussein • 1d ago
Project My Chess GPT can finally beat me 🥲
Im 1300 to 1450 on chess.com, so I like to think I’m decent. Bittersweet to lose to my baby. Version 1 was trained on the GPT-2 architecture but with chess data.
Version 2, the one you see, was trained with a more modern architecture similar to LLAMA. It’s 80 million parameters. I trained this for 10 hours on an A100 on 2 billion tokens of chess games I got from lichess that were heavily filtered for quality.
I didn’t do a traditional chessbot with MCTS or alpha beta pruning because I wanted a project that would give me experience with LLMs but be computationally feasible at a small scale. Also, some emergent properties only appear on larger LLMs, but making this so hyper specific allows me to try them on this smaller scale.
I want to try improving it with self play RL. Do some interpretability work. I think I could do some interesting CoT/test-time compute work to improve the bot further. I don’t think CoT would add much performance wise on an 80 million parameter LLM trained on text instead of chess tokens, hence another reason for this project.
I need to go study some RL and interpretability next for all of this. If anyone has ideas for other cool/interesting work I can do on this beyond interpretability, self play rl, and chain of thought, please let me know!!
r/learnmachinelearning • u/Equivalent_Air_1690 • 1d ago
How to prepare for a RL researcher / AI scientist job or internship as a math phd student?
I'm 1st year math phd student as University of Edinburgh. My research is about theory of reinforcement learning, a very mathematical problem. Since academia positions are very hard to get compared to past few years, I'm also planning to go to the industry as well.
Even though I know the "math" (not coding) of some outdated machine learning techniques, such as neural network, gradient descent, VAE, GAN, flow matching, some RL algorithms, obviously these things are not enough to get a highly competitive RL researcher or AI scientist internship or even jobs.
However, I still have time to prepare because I'm just in the first year of my program. My goal is to get a RL researcher / AI scientist internship and a full-time job after graduation. I'm also interested in robotics because the mathematical formulation of it is quite interesting, which I will study myself.
One thing I should mention is that my supervisor does not want me to do other research at this stage. I'm probably not able to join CS or robotics labs and publish papers with them.
I would like to ask:
- What things about AI and robotics can I learn now? Implement transformer, LoRA, RL post-training? Be familiar with CUDA or jax?
- What projects can I do to put them on my personal website or github?
The questions are quite general because I don't know where to begin. Thanks in advance for your help.
r/learnmachinelearning • u/sakibbai • 2d ago
Coded a GPT2 Model using Python and Pytorch without Vibecoding
I have been building an LLM from scratch for learning purposes. Reading about transformers and LLMs never really scratched an itch that I have had. So, I started building one, without any vibe-coding. This is all "organic" code. With so much AI assisted coding, it is a nice change of pace.
The screenshot shows an output of a GPT2 model's output with an input prompt "I am hungry". The model has been pretrained on 20 public domain books for 10 epochs. It took around 50 minutes to train and the output looks quite real and non-giberish, right? Very iInteresting
Shout out to, Sebastian Raschka, PhD, as his resources really helped clear up things. Maybe later, I'll share a more in-depth idea about what I learned.
Link to the notebook : https://www.kaggle.com/code/sakibbai/building-a-basic-gpt2-from-scratch
r/learnmachinelearning • u/Fit-Reach-1058 • 1d ago
I built an open-source distributed security pipeline for LLM applications and AI agents (Python, Redis, PostgreSQL, MySQL)
I've been working on a problem I think deserves more attention in the LLM security space: most guardrails work reasonably well in a single process, but what happens when your AI application runs across multiple pods or replicas?
Consider a multi-turn jailbreak attempt or a user repeatedly exhausting tool-call budgets. In a distributed deployment, requests from the same user may hit different replicas. If session counters and rate limits rely on local state, your security controls can become inconsistent or simply fail.
That's why I built llm-security-pipeline: an asynchronous, distributed defensive pipeline designed to keep security state consistent even under multi-process contention.
It currently supports Redis (including Redis Cluster, with session counters pinned to a single hash slot for atomic updates), PostgreSQL, and MySQL.
What does it actually do?
- Multi-turn jailbreak mitigation: tracks session state across different application instances.
- Tool-calling protection: scope-gated capability tokens with cryptographically signed constraints.
- Side-channel exfiltration prevention: detects potential data leaks hidden in Markdown/HTML media tags and CSS "url()" references, including during streaming.
- Unicode attack protection: detects invisible Unicode codepoints and homoglyph attacks (e.g., Cyrillic characters used to bypass lexical filters).
- Zero-downtime signing key rotation: rotate cryptographic keys without interrupting the service.
A few honest limitations
I don't want to present this as a silver bullet:
- Lexical pattern lists currently cover 6 common languages. You'll likely need to extend them depending on your application's traffic.
- The library validates signed constraints but does not authenticate principals. Authentication belongs at the API gateway or another trusted boundary.
- No heuristic can replace proper red-teaming. The goal here is infrastructure-level enforcement, observability, and measurement, including shadow mode and Prometheus metrics.
Tech stack and availability
- Python 3.10+
- Redis, PostgreSQL, MySQL
- Fully open source under the MIT license
- Available on PyPI
GitHub: https://github.com/matteocacciola/llm-security-pipeline
I'd genuinely appreciate feedback, especially from people working on production-grade LLM applications.
A few things I'm particularly interested in:
- What security edge cases am I overlooking?
- Does the distributed state architecture make sense for high-contention workloads?
- How would you approach deadlock handling and transaction contention when multiple requests target the same session?
- Are there attack vectors I should explicitly address in future versions?
I'm particularly interested in critical feedback rather than just feature suggestions. If you spot a weakness in the design, I'd rather know about it now.
r/learnmachinelearning • u/ThoughtfulVoyager8 • 1d ago
Discussion Financial Pandit, Part 2 — What happens after you upload a bank statement?
r/learnmachinelearning • u/Pristine_Team6835 • 1d ago
Feeling like im behind everyone else, undergrad
galleryHi everyone, this is my first post here but I'm currently studying a foundations of ML module at my university (not particularly prestigious). We are quite a way through the course with an assignment coming up. I'm a joint honours maths and CS student in 3rd year and I haven't done much ML before. I was feeling good about my learning but seeing papers like this where I can't do some of the questions makes me feel bummed out. Especially because people were saying this was an easy paper in the comments. I understand most of them but we haven't covered neural networks or dimensionality reduction yet, but i think PCA is in the syllabus. For example q6, maybe q7, q13, q14 and q15. The rest I could probably do in my own time. I think its because they focus on memorising formulas and derivations and we've focussed more on project work. Just wondering if anyone else felt the same <3