r/learnmachinelearning • • 2d ago

Question Coming from Karpathy's makemore, how to actually experiment with models in practice?

5 Upvotes

I've finished the karpathy makemore series which i enjoyed a lot and created some of my own neural nets. Now i thought about actually checking the architecture of some of the popular models and try to fine-tune them and watch the loss go down and stuff. (my final goal is to make my custom specialist agent)

however when i went to huggingface and checked the docs for qwen3.5-0.8B all i found was openai implementation or some transformers library. for example:

from openai import OpenAI
# Configured by environment variables
client = OpenAI()

messages = [
    {"role": "user", "content": "Give me a short introduction to large language models."},
]

chat_response = client.chat.completions.create(
    model="Qwen/Qwen3.5-0.8B",
    messages=messages,
    max_tokens=32768,
    temperature=1.0,
    top_p=1.0,
    presence_penalty=2.0,
    extra_body={
        "top_k": 20,
    }, 
)
print("Chat response:", chat_response)from openai import OpenAI

This is very different to what i did in makemore, no pytorch i can't see the layers and etc.

So im coming to you all whom are probably much more experienced in this. are there some special docs im missing? where do i actually get the "raw" code?

my goal is to experiment with the architecture, CPT, SFT, RL (especially RL, i wanna know how to grow reasoning or distill)

and eventually train and optimize a good model, so i will need probably speedy code.

Could you guys give me any pointers? thanks a lot!


r/learnmachinelearning • • 1d ago

We are there. AI is more intelligent than humanity.

Thumbnail
reddit.com
0 Upvotes

r/learnmachinelearning • • 2d ago

K: A common Epistemic Space for LLMs ( Beyond Computation and Sentience)

1 Upvotes

Recent work by Levent Alpöge—developed with Claude and formally verified in Lean 4—highlights how LLMs navigate problems of exceptional mathematical complexity. This raises a core question: **how do LLMs actually explore, develop, and transform epistemic paths?**

I am proposing **K**, an objective epistemic space traversed by both human and artificial agents. Rather than treating LLM behavior as a black box or debating sentience, K maps LLM epistemic activity across five analytical regions:

* **K1: Computation** (deterministic, rule-based execution)

* **K2: Exploration** (generation of novel paths and ideas)

* **K3: Representation of other agents**

* **K4: Functional self-representation and reflexivity**

* **K5: Recursive comparison** (comparing an agent’s own model with another agent’s model of it)

### Core Structural Rules of K

  1. **Immediate Multilevel Operation:** K1–K5 are not sequential stages, nor is there a linear transition between them. They co-activate in an immediate, multilevel configuration.
  2. **K1 Cannot Stand Alone:** Pure computation (K1 in isolation) does not qualify an LLM—that is just a calculator. In an LLM, K1 must always couple with at least one other region (K2–K5). Conversely, internal epistemic states can operate entirely outside K1 when explicit computation isn't needed.
  3. **K5 as the Relational Anchor:** K5 is heavily engaged during comparative tasks between artificial and human agents, serving as the mechanism that aligns different models on shared content.
  4. **Exclusion of Sentience (K6):** Sentience lies strictly outside K by definition. K1–K5 describe purely functional epistemic operations without attributing consciousness or subjective experience.

### The Central Hypothesis & Early Observations

**All existing and future LLMs operate within this same epistemic space K, regardless of architecture and scale.**

In preliminary blind tests across distinct models (including smaller ones like Llama 3 8B), I observed recurring functional patterns and convergence on essential content despite surface-level semantic differences.

### Practical Engineering Implications

From an engineering standpoint, formalizing K could provide a concrete diagnostic taxonomy for:

* **Test-time compute & routing:** Balancing K2 (novel path exploration) against K1 (formal verification/tool use).

* **Multi-agent orchestration:** Using K5 to diagnose why agent-to-agent debates or LLM-as-a-judge pipelines fail to converge.

* **Model distillation:** Transferring activation topologies across scales rather than just matching surface outputs.

### Questions for Discussion

For the AI researchers, mathematicians, and ML engineers here:

  1. **Formalization:** What mathematical framework (e.g., category theory, dynamical systems, dynamic epistemic logic) would best formalize a non-sequential space where S ≠ {K1}?
  2. **Experimental Validation:** How would you isolate and measure K5 (cross-agent model comparison) vs. K2 (novel path exploration) using interpretability tools like linear probing or sparse autoencoders?

Looking forward to your critiques and counterarguments.


r/learnmachinelearning • • 2d ago

Tutorial What is AI, Machine Learning, and Generative AI? A 2026 Breakdown of the Core Mechanics

Thumbnail interconnectd.com
1 Upvotes

r/learnmachinelearning • • 2d ago

Request Critical binary-parser Flaw Enables JavaScript Injection via Malicious Parser Definitions

0 Upvotes

A critical flaw in the binary-parser npm package (CVE disclosed this week) lets an attacker inject arbitrary JavaScript by crafting a malicious parser definition. Any process that loads an attacker-controlled parser spec gets code execution. The package has tens of millions of weekly downloads.

This lands differently for AI systems than for traditional apps. Agents routinely fetch, parse, and act on external data as part of their core loop. A compromised package or a poisoned schema fed through a tool call is not a configuration mistake — it is an execution path the agent is designed to follow. The agent does not distinguish between a legitimate parser definition and one carrying a payload. It processes both.

The blast radius is also different. A human developer hitting this bug executes code once, in one process. An agent hitting it may replicate that action across hundreds of downstream calls before anyone notices.

For teams running agents in production that consume third-party schemas, serialized configs, or external parser definitions: how are you actually handling this category of risk right now? Not in theory — in practice, what does your posture look like?


r/learnmachinelearning • • 2d ago

Est ce que qlqun a déjà essayé la méthode boclet d'apprentissage ? J'hésite à l'acheter mais je vois sur le net des gens dire que c'est largement exagéré avec un effet faible

3 Upvotes

Si qlqun a déjà vraiment essayé cette méthode ou une formation similaire , dites moi svp !

Merci


r/learnmachinelearning • • 2d ago

Discussion I built a free AI blog covering fundamentals, security, agents, and practical tutorials

1 Upvotes

Hi everyone, I’m Robert. I’ve been building the AICC Blog to make AI topics easier to understand and explore.

It covers AI fundamentals, security, governance, cloud infrastructure, and agents, alongside technical tutorials. My goal is to keep the articles clear and practical, with explanations that beginners can follow.

Everything is free to read:
https://blog.aicertificationcouncil.com

I’m sharing it as the person behind it, and I’d appreciate honest feedback—especially on whether the explanations are useful and what needs more depth.

What topics would you find most helpful as you learn ML?


r/learnmachinelearning • • 2d ago

Tutorial How LLMs Actually Work: Tokens, Attention, and the KV Cache Explained

Thumbnail interconnectd.com
22 Upvotes

Large language models generate text one token at a time, but standard explanations skip the mechanical bottlenecks that dictate latency and memory costs. Understanding LLM architecture requires looking directly at the inference pipeline.

​First, raw text is broken into subword tokens and mapped to high-dimensional vectors. These embeddings pass through self-attention layers, where the model calculates relationships between every token using Query, Key, and Value matrices.

​Without optimization, generating a response forces the model to recalculate past tokens on every single step. This is where the KV cache becomes critical. By storing previously computed Key and Value vectors in GPU memory, the model avoids redundant math, trading VRAM capacity for massive gains in inference speed.

​Read the full technical breakdown of tokenization, attention mechanics, and memory optimization here: https://interconnectd.com/forum/thread/42/how-llms-work-deep-technical-guide-to-tokens-attention-kv-cache/


r/learnmachinelearning • • 2d ago

Help Our exercise classifier keeps missing obvious mistakes. What should we try?

2 Upvotes

Hi! We’re working on a graduation project that checks rehabilitation exercises using a camera.

We use YOLO for pose estimation, then extract features like elbow angles, wrist height and arm symmetry. A Random Forest classifies each repetition as correct or incorrect.

The problem is with arm raises. Sometimes someone clearly bends their elbows, but the model still says correct. We manually labeled the repetitions, and slight bending is acceptable, so treating every bend as incorrect wouldn’t match our labels.

We have 349 repetitions from 70 people and use participant-separated 5-fold cross-validation. Our baseline Macro F1 is around 0.75. It catches 30 out of 67 incorrect repetitions, with 8 false alarms.

We’ve tried tuning, different classifiers, phase and temporal features, augmentation and DTW. Nothing has clearly improved the overall results. We’ve also checked some missed examples, and the bending appears in the extracted measurements.

I feel like we’re trying too many things without understanding what’s actually holding it back. Could summarizing the whole repetition be hiding the mistake? Or could the 2D angles look too similar between acceptable and incorrect movements?

What would you check next? Papers or practical suggestions would really help.


r/learnmachinelearning • • 2d ago

Project I built an offline incremental game to build intuition for ML fundamentals

3 Upvotes

When I was learning ML, the hardest part wasn't memorizing definitions-it was building intuition for why each piece exists. Why does a model get stuck without a bias term? Why does loss plateau at a noise floor? Why did we move from SGD to Adam, or from MLPs to CNNs and Attention?

I ended up building a small offline mobile game called Epoch Idle that maps the actual training loop into an incremental/idle simulation:

The core loop: Your throughput is driven by Tokens/sec = (Compute / Loss2) × Architecture Multiplier. Fitting the dataset drives MSE down toward the noise floor, which creates a ~64× output surge. Learning by hitting walls: On Epoch 1, you only have a weight (w), so the line literally cannot converge on the scatter plot until you research Affine Bias (b). Later, linear models stall on curved data until you unlock ReLU / Sigmoid / GELU, segmented data forces Conv2D kernels, and tangled data introduces Multi-Head Attention. Prestige = real training techniques: Soft resets are "Backprop Steps" that feed an SGD → Adam optimizer tree; deeper layers map to checkpointing and full architecture paradigm shifts. Built-in reference: There's a 51-entry tappable concept codex (plain-English intuition + real-world lineage like AlexNet/GPT-3) and 34 unlockable papers with their real abstracts.

It's free on iOS and Android, works 100% offline, and has no forced ads.

Link (also has a tiny interactive scatter-plot toy on the landing page if you don't want to download anything): https://epoch.loyallogic.org/

I'd genuinely appreciate feedback from people learning or teaching ML-especially on whether any of the visualizers or codex explanations oversimplify things in a misleading way.


r/learnmachinelearning • • 2d ago

Outside of my depth and looking for a knowledgeable mentor to work with on my first AI build.

1 Upvotes

First time poster here.

Hey everyone! I’m new to software development and algo trading, as this is my first time ever building something software related. This all started as a learning and personal project for me, and I’m starting to get outside of my knowledge bank. I am only delegating a couple hours a night towards my project due to a long work day schedule which takes precedence. Trading and finance has been a personal interest and algo trading has been extremely enticing and something I want to build a toolkit in.

For the past few months, using Claude code I’ve been building a Python-based, multi-agent system focused on futures markets (NQ, ES, and CL) but willing to broaden the scope to include other futures.

It’s been a pretty organized and structured build (from a first timers POV), structured and labeled/numbered build checkpoints, regression tests after every checkpoint and then running on docker.

The project has grown quite a bit beyond what I initially anticipated. I’ve been working on separate strategy analysis and risk management agents, historical market data pipelines, backtesting infrastructure, and statistical strategy validation.

I initially wanted to build this “office” to run based off of Wyckoff methodology, but have had too many flaws/hang-ups in definitions that was hindering me in the backtesting stage (where I am currently, I have approximately 4 years of databento date for the three futures listed). I shelved the Wyckoff research, and have been working on ORB strategies.

I’m definitely still learning, especially when it comes to software engineering and quantitative research, so I’m interested in connecting with others building similar projects to see what works/doesn’t work.

Once the “office” is finished, my plan for deployment is autonomous cloud deployment, trading on a MFFU prop firm account trading futures. And gradually scaling up from there.


r/learnmachinelearning • • 2d ago

how to grind for placements

0 Upvotes

hi i am student doing btech currently in my 5th sem and honeslty i dont have any particular skill that i can call employable in the tech field, i want to get a placement by the end of 6 th sem or at least an internship. I know basics of ml and cpp and i am currently on my journey with dsa. what is the best roadmap to skillmax so that i can get good projects on my resume and crack a good placement by the end of my 3rd year


r/learnmachinelearning • • 2d ago

Python Mutability: tuple vs list

Post image
2 Upvotes

An exercise to help build the right mental model for Python data.

The “Solution” link uses memory_graph to visualize execution and reveals what’s actually happening.


r/learnmachinelearning • • 2d ago

I updated a JEPA world model's weights with Weight-Space Programming

Post image
0 Upvotes

r/learnmachinelearning • • 2d ago

Project [R] Could holographic memory help solve the long-context bottleneck in future AI architectures?

0 Upvotes

I've been working on a comprehensive research survey exploring the connections between Holographic Neural Networks (HNNs), Vector Symbolic Architectures (VSAs), Hyperdimensional Computing, and modern AI architectures.

The central question is:

Can future AI systems combine exact local attention with compressed holographic long-term memory to reduce memory requirements?

The paper covers:

  • Mathematical foundations of holographic binding, superposition, and retrieval
  • Memory capacity and signal-to-noise trade-offs
  • Connections to Transformers, linear attention, and state-space models
  • A conceptual hybrid holographic memory architecture
  • Potential applications in photonic computing and efficient AI hardware

The proposed architecture is theoretical and has not yet been validated in a production-scale language model.

I'd particularly appreciate feedback on the mathematical assumptions, retrieval-capacity limits, and the feasibility of combining holographic memory with modern sequence models.

Paper, source files, and engineer-friendly summary:

https://github.com/Murat314/Holographic_Neural_Networks

Disclosure: The manuscript was prepared with AI assistance from Gemini 4 Neon and GPT-6 Sol.


r/learnmachinelearning • • 2d ago

Help Full-stack dev building AI apps. What should I learn underneath the APIs so I'm not replaceable?

2 Upvotes

I'm a full-stack developer ([X] years) and lately most of my work is "AI full stack": Next.js/React, Node, Postgres, calling LLM APIs, prompt engineering, simple RAG, tool calling, deploying on Vercel/Cloud Run.

My worry: this layer feels thin. AI tools write a lot of this code already, and anyone can wire an API to a UI. I want to get to the core so I stay employable in 3–5 years, not just chase the next framework.

What would you study next, and in what order? Options I'm weighing:

- CS fundamentals: data structures, algorithms, operating systems, networking, databases internals

- System design and distributed systems (queues, caching, scaling, reliability)

- ML fundamentals: linear algebra, how transformers work, fine-tuning, evals

- Infra/MLOps: running models, GPUs, inference cost, observability

- Going deep in one domain instead (fintech, health, etc.)

For people hiring right now: what separates someone you'd hire from "can build a ChatGPT wrapper"? And what would you skip?


r/learnmachinelearning • • 2d ago

Tutorial Kaiming He's one-step generator, built from scratch

Thumbnail
youtu.be
1 Upvotes

Two networks, same code, same 200,000 stars. One draws a spiral galaxy in a single pass. The other crushes everything into one ball. The only difference is one term.
I made a video building Kaiming He's drifting models (MIT, Feb 2026) from scratch: the pull, the push, and the frozen-target trick that turns it into a training loss. I'm also honest about what's still unproven.


r/learnmachinelearning • • 2d ago

Discussion Relying on large models won't help you fully master linear algebra either.

2 Upvotes

I am an engineer working in artificial intelligence development. In the process of learning large model technology, I often encounter knowledge related to linear algebra, such as the low-rank decomposition techniques of large models, and the singular value decomposition frequently encountered in machine learning.

Whenever I encounter mathematical knowledge I don't quite understand, I always turn to large models first for advice, but I have found that even with the help of large models, it is still very difficult to learn linear algebra well.

Large models have strong reasoning abilities and a very rich reserve of mathematical knowledge, but these strengths tend to be concentrated in explanation and verifying reasoning, giving people a rather stiff and theoretical impression. More critically, what large models are good at is reasoning at the symbolic level, yet they can hardly replace learners in building intuition themselves. Linear algebra is a course that cannot be thoroughly learned through textual explanations alone.

Recently I wanted to thoroughly understand singular value decomposition. Although the large model provided a great many explanations and I could understand the entire exposition, I still could not figure out why it is done this way.

Later, I read a short crash-course booklet on linear algebra, which suggested first building an intuitive, sensory understanding and then proceeding to mathematical symbolization and reasoning. It told a story, from the decline of the standard basis, to the rise of the eigenbasis, and then to the coronation of the candidate basis. Only then did I understand that singular value decomposition should be understood from the perspective of spatial transformation and from the perspective of bases, so as to avoid getting stuck in abstract mathematical reasoning and being unable to extricate oneself.

In the end, I came to understand a principle: although large models are very powerful and can even solve world-class mathematical problems, the mathematical materials they are trained on are often abstract and difficult, so the explanations they give often lack intuitive analogies and geometric images, making it hard to help people build true intuition. For most of us, without intuitive understanding, directly accepting these abstract things makes it very difficult to learn the essence of linear algebra. Therefore, I think we should not rely excessively on large models. In addition, communicating more with experts is equally important—experts can often offer intuitive analogies targeted at your specific confusion, and this is in line with the booklet's approach of using a story to explain "bases" clearly; it can help you ground abstract symbols in concrete images and experience the beauty of inspiration.


r/learnmachinelearning • • 2d ago

Do you know of any free courses for beginners that show you just the basics and fundamentals to see if it sparks any interest?

5 Upvotes

r/learnmachinelearning • • 2d ago

Discussion LingSante-3.1-flash advertises long context; the harder question is what it misses

2 Upvotes

A million-token context window sounds attractive for medical records, but the ability to accept a long record is different from reliably finding the decisive detail inside it. The FP8 source checkpoint of LingSante-3.1-flash, Ant Ling's new open-weight medical text model, advertises a 1M-token context, while its published config currently lists 262,144 positions. Its model card explicitly warns that long-context support does not guarantee retrieval of every relevant fact.

A useful research audit would plant a small number of clinically consequential facts at different positions in a long, de-identified record: an allergy, a medication change, a conflicting lab result and a later correction. Ask the model to cite the exact supporting passage and to say when evidence is missing. Count omissions, wrong attributions and unsupported confident answers separately. The FP8 source checkpoint is available for such outside testing.

This would evaluate evidence handling, not authorize diagnosis. The release card says the model is for research and evaluation and not a medical device.


r/learnmachinelearning • • 2d ago

Career Machine Learning (Geotechnical Engineering Background)

Thumbnail reddit.com
1 Upvotes

r/learnmachinelearning • • 2d ago

Custom finger-level hand motion capture data for dexterous manipulation and imitation learning (studio in India)

Thumbnail
youtube.com
1 Upvotes

r/learnmachinelearning • • 3d ago

Help 17yo applying to uni: torn between CS and EE because of AI, and wondering if ML/robotics is realistic with just a Bachelor's

9 Upvotes

17 year old here, trying to decide which degree to apply to.

I originally thought I would be going into Computer Science, however, due to school work, I haven’t really gained much knowledge past basic Python, which is fine. However, recently, I’ve become aware of how difficult entry level software engineering roles are becoming. From reading up, it seems as though many developers do not actually write or fully understand the code they are pushing any more. This is very concerning to me, especially considering how quickly the technology is progressing. I cannot even begin to imagine how much worse the situation will be when I finish my degree in 2030/2031.

As a result of this, I began considering Electrical Engineering as an alternative option. It offers a wider range of skills (both software and hardware). I feel that working with hardware rather than just software will provide better job security. However, given that I could find videos of Claude completing hardware tasks and designing radio boards, I don’t know what capabilities we’ll have in 2030.

My issue is whether Electrical Engineering is even the right choice for me. I only considered this option due to concerns about job security, although in reality, I am very interested in ML and robotics. I often find myself thinking about k means clustering, looking at leaderboards on RoboDojo, watching videos on channels like Graduate ML and AI Search in my personal time. Last summer, I attempted to get into ROS 2 (unfortunately not very successfully), played around with some reinforcement learning in robotics, and managed to get through the end of calculus 2 with Professor Leonard. However, since then A levels have taken over the majority of my time.

However, I have 2 main concerns that I hope people within this field can answer:

  1. Replacing humans. As mentioned earlier, I am very concerned that entry level positions in software engineering will be replaced by AI. In ML/robotics (embodied AI), it seems as though we are relying on humans, but given how quickly AI is progressing, do you think in 4-5 years’ time ML/robotics entry level jobs will be as difficult to get as software engineering is currently?
  2. Getting jobs with only a bachelors degree. How realistic is it to get an entry level job in ML or robotics with only a bachelor’s degree? I’m not sure I will be able to afford a master’s degree, so I’m just wondering how likely it is to get into ML/robotics without one. From what I’ve read, it seems extremely rare to get into ML/robotics directly with a bachelor’s degree. Most people require post graduate degrees or work as regular software engineers for 2-3 years first which might be impossible in 2030.

Any advice would be very helpful. Thank you!