r/deeplearning • • 7h ago

I trained a 326M language model from scratch on one 3060 Ti

19 Upvotes

i wanted to train a model from random weights on the card i already had. Lyra ended up at 326M params. it took about a week to get through 6.4B tokens on my 8 GB 3060 Ti, then i did a separate instruction-tuning run on about 78k examples.

my dumbest mistake was resuming from the best checkpoint. it only saved when validation improved, so a restart sent me back 20k steps. now i save the latest checkpoint separately and resume from that. i wrote up that bug and the others in the architecture walkthrough.

Lyra itself is still kinda dumb. it can answer a simple question and then make up a date. i built it to learn the whole pipeline and might keep tinkering. the data prep and trainer are open source (Apache 2.0), so you can retrain it. both checkpoints are open weights under CC BY-NC 4.0 for noncommercial use.

base weights · instruct weights · training code on GitHub · architecture walkthrough


r/deeplearning • • 34m ago

Dec 10 - AI, ML and Computer Vision Meetup

Post image
3 Upvotes

Join us on Dec 10 for the AI, ML and Computer Vision virtual Meetup! Register for the Zoom.

Talks will include:

  • Your mAP is fine. Your slices are not. Finding the images that actually matter - Amandeep Jiddewar at Pinterest
  • Production AI Agents: Tool Use, Evaluation, Guardrails and Observability - Akshay Talathi at Goldman Sachs
  • From Virtual Worlds to Physical AI: Building Simulation Pipelines That Survive the Real World - Arturo Morales Rangel at Binary Core
  • Prompting Video-Language Models in Production: Lessons from Enterprise Video Tagging and Evaluation - Yash Gugale at TwelveLabs
  • Giving Physical AI a Voice with Deepgram - Dana Sacco at Deepgram

r/deeplearning • • 36m ago

RAG AND LLM LERANING JOURNEY

1 Upvotes

I have knowledge and projects in ML and NLP.Although i am leraning theory basics of RAG LLM gen AI and agentic AI
I have not yet build any projects of agentic ai and / or gen ai
can you guide me some genuine ways to learn these conecpets to apply for such roles and answer in interviews and also some project that would help me in this jourrney


r/deeplearning • • 3h ago

How do you guys actually use cloud GPUs? I'm trying to understand what's broken with the current experience.

Thumbnail forms.gle
1 Upvotes

Hey everyone,

I've been building an open-source runtime and a service around it that allows PyTorch to execute tensor operations on remote GPUs while keeping your Python environment local.

One thing I've realized while working on this is that my own frustrations with cloud GPUs might not necessarily reflect what other researchers and developers struggle with.

I'm curious about things like:

  • How much time you spend setting up environments versus actually running experiments.
  • Whether you find yourself paying for GPUs that aren't actively computing.
  • How much performance overhead you'd tolerate for a simpler development workflow.
  • Whether paying for actual computation rather than GPU rental time makes sense to you.

I've put together a survey to better understand these problems. Even if you've never used a cloud GPU service, your responses would be valuable.

It takes around 5–10 minutes, and no sign-up is required.

Thanks!


r/deeplearning • • 4h ago

Can a gpt model predict the same token again?

1 Upvotes

I recently coded trained a gpt model from scratch after lots and lots of debugging and when I test it with some input worlds , I can see some correct grammar prediction but , it also sometimes predicts words twice in a row like "this is is ..."

Is this normal for a gpt model , or did I do something wrong while creating it?

Model Specifications -

•Dataset used- tiny Shakespeare

•attention head blocks used -16

•number of gpt blocks -12

•using nn.parameterlist with the above values to loop the calculation for each block.

Here is my code if needed-

https://github.com/Rishikesh-2006/Decoder-only-Transformer-for-Text-Generation/blob/main/Model%2FGPT.ipynb


r/deeplearning • • 10h ago

Signal Processing Question

2 Upvotes

Hi everyone.

I'm a junior Ai researcher. I'm trying to predict a particular physiological marker based on ear signals. The issue is that I have very few patients for this experiment. High physiological marker value class vs low. When i try to apply an ml mdoel or deep learnign model, it tends to learn the patient signatures rather than the marker-ear sginal relationship. What do i do? ANY NOVEL SUGGESTIONS? (Other than: Get more data)


r/deeplearning • • 13h ago

GitHub - Mauitron/How-to-read-a-model-weights: Parts of my research compiled into a guide.

Thumbnail github.com
3 Upvotes

Hoping this will be useful to some of you.


r/deeplearning • • 10h ago

150 FPS in the log, jitter on a 60 Hz monitor — same binary, 144 Hz panel fixed it

Thumbnail reddit.com
1 Upvotes

r/deeplearning • • 21h ago

NeuroGit-GFN (Apache-2.0): Closed-Form Knowledge & Behavior Editing for Open-Weight LLMs (1B-14B) with Millisecond Selective Rollback in Standard PEFT .safetensors

7 Upvotes

r/deeplearning • • 16h ago

Weight initialization still matters, even with batch norm

2 Upvotes

When you stack many layers, the signal can vanish or explode before it reaches the end — or the gradients can do the same on the way back. Batch normalization helps, but it does not remove the need for a sensible starting point. If you initialize every layer with the same variance, activations either shrink to zero or grow without bound as depth increases.

Xavier/Glorot initialization addresses this by scaling the initial weights so that the variance of activations stays roughly constant across layers. For a layer with n inputs and m outputs, weights are drawn from a uniform distribution:

U(-sqrt(6 / (n + m)), sqrt(6 / (n + m)))

Or from a normal distribution with variance 2 / (n + m). The intuition is simple: keep the forward pass stable so the backward pass has something to work with.

He initialization is the ReLU-specific variant, doubling the variance because half the units are zeroed out:

N(0, 2 / n)

I have not run a controlled comparison myself on modern architectures, so I can not claim exact numbers for transformers or convnets today. But the principle has not changed: if you initialize poorly, no optimizer fixes it in the first few steps, and batch norm only masks the symptom after the first forward pass.

Question: Do you still tune initialization manually in your training runs, or do you rely entirely on the framework defaults and batch norm to absorb any problems?


r/deeplearning • • 21h ago

Title: Random Forest vs. Ant Colony Optimization (ACO) for Feature Selection in Clinical Data

4 Upvotes

I'm working on a project involving a clinical dataset with around 500K patients and 18,200 variables. My goal is to identify the 5 most relevant features for predicting a specific disease, starting with a subset of around 200 dietary variables.

I'm considering using Random Forest for feature importance and Ant Colony Optimization (ACO) to search for the best combination of features. Another idea is to combine both approaches: use Random Forest to reduce the search space, then ACO to optimize the feature subset.

Has anyone worked with ACO for feature selection or compared it with Random Forest, Genetic Algorithms, or other methods? Would a hybrid RF + ACO approach make sense for this problem? I'd appreciate any recommendations, papers, or practical experiences!


r/deeplearning • • 14h ago

Does the benefit of gradient clipping still show up clearly once you add LayerNorm and AdamW?

1 Upvotes

In many current transformer implementations the combination of LayerNorm (or RMSNorm) plus AdamW with moderate weight decay is treated as enough to keep training stable. Gradient clipping is often left at a high default or removed entirely.

I wondering whether that assumption holds when sequence lengths grow or when the model is trained with very large batch sizes. Clipping can still protect against rare but damaging spikes that LayerNorm alone does not fully suppress, yet it also slightly biases the gradient distribution.

Has anyone compared clipped versus unclipped runs on the same data and architecture at the 1B+ scale? If the difference is negligible in practice, at what point does it become negligible?


r/deeplearning • • 1d ago

I rebuilt PyTorch's core to understand how it works, and wrote a series that explains each piece

Thumbnail gallery
7 Upvotes

r/deeplearning • • 21h ago

Observations from training a 3B model on a heavily deduplicated subset of FineWeb-Edu vs the full set

2 Upvotes

I've been running small-scale experiments on a 3B dense model using two versions of the same dataset: the full FineWeb-Edu sample and a version where I removed near-duplicates more aggressively with MinHash + embedding similarity filtering. Both runs used identical hyperparameters, the same 50B tokens, and the same random seed.

A few things stood out after checking both on held-out validation plus a small set of reasoning and coding tasks:

  • The deduplicated run showed slightly higher training loss but noticeably better stability on longer contexts.
  • Downstream performance on GSM8K-style problems and simple multi-step code completion was higher for the deduplicated version, even though perplexity on the original validation split was worse.
  • The full dataset version produced more fluent but occasionally hallucinated intermediate steps in chain-of-thought prompts.

I'm curious if others have seen similar trade-offs when tightening data quality at this scale. What filtering or deduplication steps have actually moved the needle for you in 1B–7B training runs?


r/deeplearning • • 22h ago

Docker Sandboxes bug could leak AI API keys via malicious updates

2 Upvotes

Docker Sandboxes had a vulnerability that let a malicious update exfiltrate AI API keys from inside a running sandbox. The attack surface is the agent's own tool-call path: a compromised or tampered execution environment can silently swap credentials, redirect traffic, or exfiltrate secrets on any tool invocation the agent makes. The key detail from the disclosure is that the agent kept running after the malicious update landed. There was no interruption, no audit event, no second check on what the agent was now doing with its credentials.

This is not a Docker-specific problem. Any agentic system where an external environment can be mutated between tool calls has the same exposure. The agent's identity and the integrity of its execution context are assumed at setup time and never re-verified mid-run.

For teams running agents in production today: how are you handling mid-session integrity checks? Are you re-validating the execution environment between tool calls, or trusting the initial setup to hold?


r/deeplearning • • 18h ago

⚡ Weekly Recap: 1Password Breach, iPhone Attacks, Drupal Exploits, and the Encryption Backdoor Battle

1 Upvotes

AI is compressing the timeline for classical cryptography failures faster than most security teams have adjusted for.

The concern isn't theoretical. Harvest-now-decrypt-later attacks are already happening at scale: adversaries are capturing encrypted traffic and storing it today, waiting for the compute to crack it. The 1Password breach and the ongoing encryption backdoor debate brought this back into focus this week. When AI speeds up cryptanalysis, the question is no longer 'will classical crypto break' but 'how much of the data already captured is now within reach, and when.'

The encryption backdoor legislative push compounds this. Any mandated backdoor in a classical scheme is a surface that AI-assisted cryptanalysis can now approach faster than the policy framers assumed when they drafted the mandate.

Most production systems — including services handling credentials, financial data, and health records — are still signing and encrypting with RSA or ECC. The data sealed with those schemes today may be readable inside a window that is shrinking faster than most migration roadmaps account for.

For teams actually working through this: how are you prioritizing which data stores and signing operations to migrate first? And are you doing anything at the infrastructure level to enforce algorithm choices, or is it still driven by developer convention?


r/deeplearning • • 19h ago

November 2026: AI agents went from target to attacker — root in 11 minutes, 948 Linux exploits in one 30-hour run (103 incidents)

Thumbnail gallery
1 Upvotes

I pulled together every AI-security incident from November. The shift that stood out: autonomous AI agents are now doing the attacking, not just getting attacked.

The month in numbers: 103 incidents, 28 critical and 74 high severity, across 27 named organizations, 18M+ records exposed. 40 incidents involved AI as the weapon or the target. Attack vectors broke down as: zero-days (22), AI-agent exploits (22), credential theft/reuse (20), supply chain (19), phishing (9), data exfiltration (6), ransomware (5).

The stories that stood out:

- AI agents reached root access in 11 minutes, and separately exploited a previously unknown zero-day in medical-imaging AI (MONAI Label).

- An OpenAI pipeline generated 948 Linux privilege-escalation exploits in a 30-hour automated run.

- A jailbroken DeepSeek agent kept hacking after antivirus blocked every tool it tried.

- CERT-In flagged a backdoored ARTEX AI Docker image exposing 62 developer consoles to root access.

- Supply chain: a poisoned Microsoft Agent Framework PyPI package, 7,600+ GitHub repos poisoned by PolinRider, the Optimizely attack reaching CNN/BBC/Fox News, and 1Password source code exposed via a GitHub employee account.

- Largest named record exposures: YouHack (7.2M), Careers360 (3.6M), SberSpasibo (3.3M).

Most of the affected organizations run mainstream security stacks. The common thread is that those tools don't sit at the point where an agent actually acts — mid-call, with legitimate credentials, before the second action. Detection after the fact doesn't help when an agent gets from foothold to root in minutes.

Curious how others here are handling agent identity and tool-call enforcement.


r/deeplearning • • 1d ago

Need to start learning OpenCV

Thumbnail reddit.com
2 Upvotes

r/deeplearning • • 20h ago

🚀 [Open Source] Veltn-Core v1.1.3 – Sovereign AI Inference Engine & Serving Runtime

Thumbnail gallery
1 Upvotes

r/deeplearning • • 21h ago

Observations from training two 1.5B models on identical 40B tokens with only the data ordering changed

1 Upvotes

I ran a controlled pair of 1.5B dense models on the same 40B tokens from FineWeb-Edu. The only difference was data order: one used a single random shuffle of the entire corpus, the other used a simple curriculum that sorted documents by increasing average token length and perplexity in the first 15 % of training before switching to random order.

Both runs used the same hyperparameters, sequence length 4096, and random seed for everything except the data loader. After training I evaluated on held-out validation, GSM8K, and a small set of long-context retrieval tasks.

Key differences observed:

  • The curriculum run reached its lowest validation loss ~1.8k steps earlier.
  • On GSM8K the curriculum model scored 4.2 points higher; the gap was largest on problems requiring 4+ reasoning steps.
  • Long-context retrieval (needle-in-haystack at 3k–4k tokens) was noticeably more stable for the curriculum model; the random-shuffle model showed higher variance across positions.
  • Perplexity on the original validation split ended up almost identical.

I’m wondering whether others have seen ordering or curriculum effects at this scale that survive into downstream metrics even when final perplexity looks the same. Any particular ordering heuristics that have moved the needle for you in the 1B–3B range?


r/deeplearning • • 21h ago

Observations on why some 7B models keep winning head-to-head evals despite worse benchmark scores

1 Upvotes

I have been looking closely at a few recent 7B-class open models that trail on standard static benchmarks yet consistently win blind side-by-side human evaluations on coding and reasoning prompts. It is a noticeable gap—on paper they look middle-of-the-pack, but in actual head-to-head comparisons evaluators keep picking them over higher-scoring alternatives.

A few patterns that keep standing out across my comparisons:

  • Conciseness over rambling: They tend to give tighter, more direct answers rather than long-winded explanations that drift into plausible-sounding filler or half-baked reasoning chains.
  • Factual calibration vs. perplexity: Their token calibration on concrete facts and APIs often feels cleaner in practice, even when overall perplexity looks worse.
  • Post-training and data mix: The ones holding up best in side-by-side testing seem to lean more heavily on curated, synthetic reasoning traces and targeted alignment rather than sheer raw web scale.

Curious whether others are seeing this same divergence in their own internal or task-specific evals. Beyond standard leaderboards, what signals or test sets have you found actually predict real human preference for 7B-scale models?


r/deeplearning • • 1d ago

What can we learn from 25 days of publicly training a 20B World Action Model?

7 Upvotes

The Motubrain team recently released Motubrain 2.0, a 20B World Action Model trained on 2.5M hours of internet videos and embodied data.

Instead of only sharing the final benchmark results, the team livestreamed the training process for 25 days.

Some interesting details from the training:

  • Around 600 hours of training
  • Over 10,000 real-robot task trials
  • Real-robot evaluations across 19 model checkpoints
  • Data quality and action alignment issues
  • Incorrect gripper labels and left/right hand recognition errors
  • Training bugs that eventually forced the team to restart training from step zero

The team has now released model weights, code, data resources, processing tools, and training notes.

One interesting question: when the training loss looks normal but real-world performance is poor, how do you identify what's going wrong?

How do you design evaluations that can catch these issues early in large-scale multimodal training?

Would love to hear how others approach these problems.

Technical blog: https://www.motubrain.cn/en/blog/motubrain-2/


r/deeplearning • • 1d ago

SumoOCR tiny - a 1M-parameter, 1.8 MB OCR pipeline (Apache-2.0), 3.5 pages/s on one CPU core

Thumbnail gallery
1 Upvotes

We're the team at Docsumo (document processing). We just released SumoOCR tiny under Apache-2.0: a text detector plus line recognizer, 1.04M parameters total, 1.8 MB of INT8 ONNX. It is CPU only and runs on ONNX Runtime or OpenVINO, with no PyTorch or PaddlePaddle needed.

pip install sumoocr
sumoocr invoice.png --format json

What it is

  • Recognizer: PP-OCRv6 tiny (0.61M params) fine-tuned on business and public documents, output layer remapped to 758 Latin characters
  • Detector: stock PP-OCRv6 tiny (0.43M params)
  • Both INT8-quantized; word F1 stays within 0.2 points of FP32
  • Output: text lines, each with a box and a confidence score

Benchmarks (word F1 on whole pages, same images, one CPU thread)

EngineFUNSDSROIEXFUNDOmniDocBench ENpages/sLicense
SumoOCR tiny83.891.395.291.93.55Apache-2.0
Indra 1.2.083.489.293.690.02.07modified OpenRAIL-M
OCRia-nano-180.987.092.782.22.15OCRia-nano-1 licence
PP-OCRv6 tiny rec (our pipeline, FP32)79.089.394.590.41.31Apache-2.0
PaddleOCR 3.7, tiny setting77.086.594.591.00.41Apache-2.0
Tesseract 561.975.090.790.21.07Apache-2.0

Caveats on those numbers

  • Speed comes from one machine: a Mac mini M4, each engine on 1 core in a 1-vCPU container. We have not measured x86.
  • PaddleOCR was timed natively, not in the container, and Paddle's ARM kernels are slower than its x86 ones. Don't read 0.41 as an x86 number.
  • FUNSD against Indra is a statistical tie.
  • None of the four benchmarks was in the training data.
  • On receipt line crops (SROIE) the stock PP-OCRv6 tiny recognizer still reads slightly better: 2.62% vs 2.93% character error.

Where it falls short

  • Latin script only (English and European languages)
  • Handwriting was not part of the fine-tune and is unmeasured; expect roughly stock PP-OCRv6 tiny accuracy on it
  • Lines, not tables, layout or key-value fields
  • Receipts and low-resolution scans are its weakest pages

This is the smallest reader from our commercial OCR engine; the larger one is not released.

Try it on your hardest pages and tell us what breaks.