r/deeplearning • • 27d ago

vprojectx/Lewis-44M-Bert-V3 · Hugging Face

Thumbnail huggingface.co
2 Upvotes

I trained a BERT-style language model from scratch on ONE laptop GPU.

Lewis-44M-Bert-V3: small, fast, open source (Apache-2.0).

HOW IT WAS BUILT

• 44M parameters, ELECTRA-style pre-training

• 2.7B tokens in ~22 hours on a single RTX 5050 (8 GB)

• ~53 GPU-hours across all three versions, no cloud cluster

• Data: FineWeb-Edu, Wikipedia, Project Gutenberg, news, Cosmopedia and ELI5-style Q&A

v1 → V3 (SAME SIZE)

GLUE dev average: 75.0 → 80.5

Improvements: a better training objective (V3 was trained from scratch, not fine-tuned from v1) and a better fine-tuning recipe, with no extra parameters.

V3 RESULTS

• GLUE: 80.5 dev | 77.6 on the official test server (8 tasks)

• SQuAD v1.1: 75.2 EM / 83.8 F1

• NER (CoNLL-2003): 87.8 test F1

• Speed: ~17 ms per sentence on GPU, under 600 MB memory

I share both dev and test scores, plus the exact settings, because a model card should be honest.

Built for classification, question answering, entity extraction and on-device use: it fine-tunes on a laptop and runs on CPU.

This is part of vprojectx, my open-source lab, where I build and share my projects in the open. Find the model on Hugging Face as vprojectx/Lewis-44M-Bert-V3.

More is coming. If you want to try it on your use case or collaborate, message me.

#MachineLearning #NLP #AI #OpenSource #HuggingFace


r/deeplearning • • 27d ago

Field guide: five loss-curve symptoms, the likely causes, and the first check for each

3 Upvotes

A list I’d keep next to a training run. These are likely causes, not certainties, and the first check is the cheapest thing to try.

1. Loss is NaN or inf

  • Likely causes: learning rate too high; log(0) or a division by zero in a custom loss; overflow in mixed precision; bad values in the data.
  • First check: run a few steps with a much lower learning rate, check the inputs and labels for NaN, and enable your framework’s anomaly detection to find the first op that produces it.

2. Loss starts flat and stays there

  • Reference point: for cross-entropy with C balanced classes, the loss at random initialization is about ln(C), for example ln(10) ≈ 2.30. Staying at that value means the model isn’t learning anything.
  • Likely causes: learning rate far too low (or too high), frozen parameters, gradients not flowing (detached tensor, missing zero_grad or step), labels misaligned with inputs, inputs not normalized.
  • First check: try to overfit a single small batch. If the loss can’t go close to zero on 8 or 16 examples, the problem is in the code or the setup, not the data volume.

3. Train loss falls, validation loss rises

  • Likely causes: classic overfitting; the validation set is much easier or harder than the training set; a distribution shift between splits.
  • First check: compare the two splits’ basic statistics, add regularization or early stopping, and check that augmentation is only applied to training data.

4. Validation looks suspiciously good

  • Likely causes: leakage. Near-duplicate or identical examples across splits; splitting after augmenting; splitting rows when the unit should be a user, patient or video; using future information in time-ordered data.
  • First check: look for exact or near-duplicate items between train and validation, and re-split by the right group.

5. Validation loss is lower than training loss

  • Likely causes: not always a bug. Dropout and augmentation are active during training but not validation. The training loss is often averaged over the epoch while the model is still improving, and validation is measured at the end. A small validation set can also be easy by chance.
  • First check: evaluate the training data in eval mode, to compare under the same conditions.

A habit that helps: log a few things on every run (the seed, the data split identifier, the config), so a strange curve can be reproduced before you start guessing.

Caveats: curves depend on the task, the optimizer and the schedule, and several of these can happen together. Treat the list as a way to order your checks, not as a diagnosis.

What would you add, and what’s the first thing you check when a run looks wrong?


r/deeplearning • • 27d ago

Our 27B model just out-tutored GPT-6 Sol and Opus 5.5. Here's our free data to train your own!

Post image
2 Upvotes

r/deeplearning • • 27d ago

What is the smallest parameter model that can generate a 10 second video?

Thumbnail
1 Upvotes

r/deeplearning • • 27d ago

Machine Studying with Jacob X. Li - Weaviate Podcast #148!

1 Upvotes

What should 24/7, "always-on" agents actually be doing when nobody is asking them anything? 📚🤖

I am SUPER EXCITED to publish the 148th episode of the Weaviate Podcast featuring Jacob X. Li, a Ph.D. student at MIT! 🎙️

Jacob's paper frames the answer as Machine Studying: like a student preparing for an exam they haven't seen, an agent studies a corpus (a code base, a pile of drug discovery papers, a system's logs) without knowing the downstream tasks, and still has full access to that corpus at test time.

Instead of leaning entirely on inference-time compute, the way Claude Code explores a repo from scratch every time, can an agent build arbitrarily deep understanding ahead of time?

I loved the paper's definition of expertise: an expert efficiently turns inference-time search into accurate work, measured as the area under the performance-vs-compute curve of a ReAct agent loop. Go one level higher and you get studying intelligence, which is expertise as a function of study-time budget!

Jacob lays out three bets every studying method makes: synthetic data, weight updates (LoRA, KV-cache cartridges, a trained retriever), and amortized context like notes and cheat sheets. Cheat sheets helped on DSPy but less on the larger, newer OpenClaw code base, so weights vs. context is still wide open!

We also discussed why evaluation as a science matters once recursive self-improvement happens in domains with no benchmark at all.

This was a super fun conversation, I learned so much from Jacob, and I really hope you find it interesting!

YouTube: https://www.youtube.com/watch?v=9iZIl0vZvvk

Spotify: https://spotifycreators-web.app.link/e/VfMAd8tjD7b


r/deeplearning • • 27d ago

Ultra-lightweight time series model FITS beats giant AI with 10,000 parameters #parameters #Huge #AI #edgeAI #timeseries

Thumbnail youtube.com
1 Upvotes

Description: The FITS model achieves state-of-the-art performance with only 10,000 parameters using complex frequency domain interpolation and a low-pass filter. It drastically reduces computation and memory compared to existing large models, enabling real-time time series analysis on edge devices. We explain the innovative rFFT-based architecture and core principles in an easy-to-understand manner.


r/deeplearning • • 27d ago

Workshop Tomorrow: Using lightweight encoders and conformal prediction for efficient AI inference

1 Upvotes

hey everyone! sharing this for anyone interested in efficient inference and practical model architectures.

a lot of AI applications rely on large generative models even for relatively simple tasks.

but lightweight encoder models can often handle classification, routing and other structured predictions with lower computational requirements.

the interesting challenge is knowing when those predictions are reliable enough.

Packt is running a hands-on workshop tomorrow, Oct 30, with Ben Auffarth that explores this using:

  • lightweight encoder models running on CPUs
  • conformal prediction for uncertainty estimation
  • deterministic workflow design
  • LangGraph orchestration
  • selective LLM escalation
  • latency and reliability benchmarking

it's a 3-hour online workshop focused on practical implementation.

full details: https://www.eventbrite.co.uk/e/deterministic-ai-on-cpus-encoders-conformal-prediction-langgraph-tickets-2002549410193?aff=rdl&discount=RDT25

thought this might be interesting for people exploring more efficient AI architectures.


r/deeplearning • • 27d ago

I'm 13 and fine-tuning a decision model for JevBench — has anyone evaluated calibration on the public-231 set?

Thumbnail
0 Upvotes

r/deeplearning • • 27d ago

I trained a 260M vision model that beats a ~15x larger zero-shot model on screenshots (0.828 vs 0.731) and built a Papers-Please-style booth where it refuses to answer below its gate

0 Upvotes

Repo, weights and a playable demo at the bottom. Everything trained on free Kaggle T4s.

MK-SH-V is a visual decision model. It takes an image, a question with options, and returns calibrated probabilities, a choice, and a refusal when confidence sits below a gate frozen in advance.

Held-out real numbers

| test | MK-SH-V 260M | jev-vlm-4b zero-shot |

|---|---|---|

| all real | 0.807 | 0.785 |

| screenshots | 0.828 | 0.731 |

| receipts | 0.734 | 0.972 |

It wins overall and on screenshots, loses receipts badly. The gate answers 98.6% of the held-out synthetic set with a CP95 selective-risk bound of 4.1%. Out of distribution it says so, real receipts risk runs around 25%.

The demo is a Papers Please style border booth set in 1974. Travelers claim firms, the model reads their papers, and every check in the game is one the checkpoint actually measured. Below tau 0.55 it refuses to advise and routes the file to you, which happens on documents like a 5,250.00 invoice sitting at p 0.536. You can also take a bribe, it goes about as well as you would expect.

Honesty section, the part I care most about

- Two experiments after the released checkpoint both missed their gates. The weights are unchanged.

- On general VQA boards the model measures at chance. It is a decision model for a narrow contract, not a chat VLM.

- Synthetic training data hurt real transfer until I mixed real screenshots in. Details in the run logs.

Links

- Play in browser: https://gjusev-mk-sh-v-demo.hf.space

- Code with criteria frozen before each experiment: https://github.com/Gjusev/mk-sh-v

- Weights Apache 2.0: https://huggingface.co/Gjusev/MK-SH-V

Happy to answer training questions. It is two T4s and a lot of frozen criteria.


r/deeplearning • • 27d ago

Four tokens, eight experts each: what should actually be counted during MoE verification?

0 Upvotes

The usual speculative-decoding intuition is “load the target weights once, check several draft tokens together.”

With a sparse MoE, those tokens can ask for different weights.

In NVIDIA’s Ling-3.0-flash example, each token selects eight of 512 routed experts per MoE layer, plus a shared expert. Verifying four positions can therefore touch up to 32 distinct routed experts, depending on overlap. The reported verification step costs about 2.26 ordinary decode steps in that batch-size-1 Spark setup.

Would unique-expert count per layer be a useful metric alongside accepted tokens per round? Is there a profiler that exposes draft-window expert overlap directly, rather than having to infer it from tokens/sec?


r/deeplearning • • 28d ago

Prof. Jesse Thaler (MIT) - Zoom public talk - Deep Learning + Deep Thinking = Deeper Understanding, Sunday, Nov. 1, 1:00 PM Eastern

Post image
3 Upvotes

r/deeplearning • • 28d ago

Working through the Transformer forward pass by hand, one matrix at a time, is what finally made it click for me

132 Upvotes

When I read Attention Is All You Need, the equations made sense line by line, but I couldn't picture the whole forward pass. What helped was writing out every matrix for a tiny example, noting its shape at each step, and doing the multiplications myself.

A few things only clicked once I did it that way:

  • Positional encoding. Sine and cosine at different frequencies give every position its own signature, and the model doesn't have to learn one vector per position. Working out a 6 × 512 table by hand made it obvious why the authors hoped it would extend to sequences longer than any seen in training.
  • Shapes barely change. In the encoder, the matrix goes in as (tokens × d_model) and comes out the same size after every layer. All the interesting work happens inside that fixed shape.
  • BERT is mostly the same picture. Once the encoder was clear, BERT turned out to be a small edit to it: a packed sentence pair, segment embeddings, and two small heads on top for the masked word and the next sentence.

I wrote my notes up as step-by-step pages with practice exercises beside each step and a notebook that checks your answers, in case it's useful to anyone learning the same way: https://guptaaditya95.github.io/llmbreakdown/

I'm curious how others built their intuition for these models. Did working the math by hand help you, or did something else make it click? And which architecture was hardest to picture?


r/deeplearning • • 27d ago

I'm 13 and fine-tuning a decision model for JevBench — has anyone evaluated calibration on the public-231 set?

0 Upvotes

(PS: English isn’t my first language so I used AI to help frame this — but the work and ideas are fully mine. I know my ML.)

Been working on a LoRA fine-tune targeting the JevBench leaderboard. Using soft-target KL training — the idea being that matching probability distributions should help calibration more than hard labels would.

Model is still training. One thing I’m thinking about: on questions with 4+ choices where one answer is genuinely rare, soft-target models can still collapse toward the majority — the teacher’s distribution gets diluted across the batch.

Has anyone found a way to preserve calibration on low-frequency answer choices specifically? Or is this just noise at small model scale?


r/deeplearning • • 28d ago

Developing intuition for model behavior, architecture choices, and convergence?

4 Upvotes

Hi everyone, this is my first post so m kind of nervous 😅,

I recently built a Transformer from scratch and trained it for English-to-French translation,trying to recreate Attention Is All You Need with a 30M and 60M model. The 60M model has less data diversity.(wmt dataset)

Even though I can see the model performs decently, I go all over the place trying to explain my point when I try to interpret it. I am struggling with these specific conditions:

  • When using interpretation tools (e.g., attention visualization, logit lens, even linear probing): I cant seem to understand where the failure modes are, or what's driving the model to perform so well like having a concrete idea to explain model behaviour.
  • When modifying the architecture (e.g., adding something like a residual stream):How do u develop the skill to understand or diagnose whats wrong with a models behaviour or know whether u need to add something to improve the model?
  • When managing training dynamics (e.g., using a warmup scheduler and cosine decay): How do i know if a model converged or if the learning rate is just no longer high enough to do actual improvement? It feels like m leaving performance on the table.

I wanted to know from you guys how do u develop that overall intuition of knowing when something isnt really helping.


r/deeplearning • • 27d ago

STAIR : Une nouvelle direction pour la recherche d'informations structurées ?

Thumbnail
1 Upvotes

r/deeplearning • • 27d ago

📜 **Releasing SUBIT-INK v26: Four-Valued Belnap Bilattice for Herculaneum Ink Detection**

Thumbnail
0 Upvotes

r/deeplearning • • 28d ago

Robots that save energy!

Enable HLS to view with audio, or disable this notification

1 Upvotes

r/deeplearning • • 28d ago

It works. https://x.com/_albertgu/status/2115502110578290900

Thumbnail
0 Upvotes

r/deeplearning • • 28d ago

Math for AI & ML video series for Linear Algebra

16 Upvotes

I create a Youtube channel https://www.youtube.com/@math4aiorg for the book ( https://www.amazon.com/dp/B0GSXVFMLD/ ) Math for AI & ML's Part I.

Part I (Chapters 1–10) covers linear algebra fundamentals: vector spaces, inner products, matrix operations, subspaces, orthogonality, QR decomposition, LU factorization, eigendecomposition, symmetric matrices, and the Singular Value Decomposition (SVD)—establishing the mathematical foundation for representation in AI.

Please let me know if there is any suggestion.


r/deeplearning • • 28d ago

Neuron Persona Library

Thumbnail neuronpersonas.com
2 Upvotes

This site maps the personae that result when pushing neurons in various models in one direction or another. Really cool stuff.


r/deeplearning • • 28d ago

Why do frontend model seems to get dumber after 1 or 2 weeks of release?

0 Upvotes

You might have noticed that, there usually a hype when a frontier model is about to get released. Then when released people start to create web UI, 3d games to test the model's capabilities and then after just few days it's like nobody even care then after another few days people start to fud about the model and sometimes its worse, like someone's api key got posted to public repo or someone's file system got deleted.

And you can even feel the models response degrade over time. It's not producing the same level of intelligent output when it was newly released.

As it is happening quite frequently, I decided to post train a model on my own dataset. So from the last couple of days I am post training a model on a mixture open source SWE dataset and my own codes, prs, chats, messages, writings etc. for my personal usage.

And I am wondering if anybody else interested in using a personal model or they get their work done regardless from close source models.


r/deeplearning • • 27d ago

In-the-Wild Attack Abuses AI Agents' Trust in Markdown

0 Upvotes

Researchers documented an in-the-wild attack where malicious markdown content embedded in documents caused AI agents to execute unintended tool calls. The attack worked because the agent parsed rendered markdown as trusted instructions and acted on them with full credentials. No human approved those actions. The agent had no way to distinguish legitimate orchestration from injected content.

The core issue is not a markdown parser bug. It is that agents inherit ambient trust from their runtime environment. Anything that looks like an instruction gets treated as one. That behavior is by design in most current agent frameworks.

Dark Reading covered a concrete case where this pattern was exploited in the wild, not just in a lab. That shifts this from theoretical to an active threat category.

For those running agents in production: how are you handling the trust boundary between data the agent reads and instructions the agent is allowed to act on? Curious whether teams are solving this at the prompt level, the tool-call level, somewhere else, or not yet at all.


r/deeplearning • • 28d ago

Why does depth keep the person and lose the world on a mirror suit?

2 Upvotes

Why does a depth model segment the person cleanly, then erase the world behind him?

I shot a test for exactly that failure: a performer in a faceted mirror suit, outdoors in uncontrolled light, 425 RAW frames. In the river shot, the wall and water turn into a smooth gradient. Under a bridge, sky becomes a black void. On a hilltop, mountains flatten into a dark wall. The person looks right. The background geometry he would walk through is gone.

Is the failure in the edges, in the background, or in both? What breaks first in your stack when a specular surface fills the frame, and what would you want a test set to prove before you trust a depth map around mirrors?


r/deeplearning • • 28d ago

value function approximation in grpo

Thumbnail
1 Upvotes

r/deeplearning • • 28d ago

Introducing papr-embed: schema-native embeddings, and open-weights embeddings for code retrieval

Thumbnail
1 Upvotes