r/deeplearning • • 3h ago

Planning to create an 25M parameters AI in pytorch on GTX 1050 TI, possible ?

2 Upvotes

I currently have plans to create my own LM/AI

that is 25M parameters and uses FP16.

it will be called フアブリク V1 (FABRIC in katakana). It's only meaning is just talk in English while outputting in katakana letters. Just a really basic LLM.

However due to very limited budget I can't really switch to a RTX gpu or even a GTX 1080 TI, leaving me with only a Ryzen 5 1600x, 16 gigs of ddr4 ram. And a GTX 1050 TI, are those specs good enough for training a 25M parameters model like mine?


r/deeplearning • • 40m ago

Critical Juniper Session Smart Conductor Flaw Exploited in Attacks

1 Upvotes

CVE-2026-103406 in Juniper's Session Smart Conductor allows remote attackers to execute arbitrary commands as root with no authentication required. CISA has confirmed active exploitation in the wild.

What makes this category of vulnerability different from a typical endpoint compromise: Session Smart Conductor sits at the traffic-routing layer. Root access there means an attacker controls flows across the entire network, not just the node they landed on. The blast radius is structural, not incidental.

Patching cadence rarely matches exploitation speed on CISA's KEV list. The gap between public disclosure and patch deployment is measured in days to weeks. Active exploitation means that gap is already being used.

For those running critical routing infrastructure: what does your actual containment posture look like when a core conductor process is compromised before a patch is available? Not asking about patching — asking about what limits propagation in the window before you can patch. Curious what practitioners are actually doing here, not what the frameworks say to do.


r/deeplearning • • 1h ago

[Tutorial] Adding vLLM and Modal Support to gpt-oss-chat

Thumbnail debuggercafe.com
1 Upvotes

Up until now, the gpt-oss-chat backend was primarily powered by llama.cpp. Although this works well for local setup, there were major limitations when trying to tap into the benefits of other high performance inference engines, like vLLM or Modal endpoints. This is exactly what the latest update brings to gpt-oss-chat. We are adding vLLM and Modal endpoint support to gpt-oss-chat, which are OpenAI-compatible, complete with tool use and streaming.


r/deeplearning • • 6h ago

A community RTX 4090 port of Astral Inference Server: 143.1 vs 74.7 tok/s decode against llama.cpp on the same GGUF

2 Upvotes

We're Synthetic Minds, we build Astral Inference Server, an open-source OpenAI-compatible LLM server (Rust host, hand-written CUDA kernels, one binary, no Python). Sharing a contributor's work here because the method is clean.

GitHub user lkyprogramer maintains inkling-4090-engine, an unofficial community fork of Astral Inference Server, ported to and validated on a single GeForce RTX 4090 (sm_89) for Inkling 2 Mini. The fork is not affiliated with us and the numbers are theirs, not ours.

Their setup: one RTX 4090, the unsloth UD-Q4_K_XL GGUF, compared with llama.cpp on the same file.

Decode with no draft: 143.1 tok/s against 74.7 tok/s for llama.cpp, which is 1.92x.

Decode with the DSpark draft: 173.9 tok/s against 90.5 tok/s for llama.cpp at k = 3, which is 1.91x.

KL divergence against llama.cpp on the decode path: mean 0.0018, p99 0.023. llama.cpp compared against itself at -ub 512 and -ub 1 gives 0.0020 and 0.028, which is a useful sense check on that spread.

So nearly 2x on that setup only. We make no claim for other GPUs or other models.

The same work found and fixed a stream-ordering bug that affects all GPUs: synchronous uploads and fills now finish on the legacy stream before Astral's non-blocking streams start work. We are looking at bringing that fix upstream.

Community fork: https://github.com/lkyprogramer/inkling-4090-engine

Upstream: https://github.com/syntheticminds-lab/Astral-Inference-Server

Happy to answer questions on the method.

Written with AI help, edited and checked by us.


r/deeplearning • • 4h ago

FIFA Says It Has Been Victim of a Cyberattack Accessing 'Personal and Business Information'

0 Upvotes

FIFA disclosed it was the victim of a cyberattack that accessed personal and business information. The organization has not stated the volume or nature of records affected. For a global governing body that holds contracts, payment data, and identity records for millions of people across dozens of jurisdictions, that silence signals the exposure is wide.

The breach pattern here is not unusual. The attacker gains access, reaches a data store, and exits with real records. The organization discovers this after the fact. Affected individuals and counterparties absorb the consequences with no warning and no recourse at the moment it happened.

What makes this scale of exposure particularly damaging is not just that someone got in. It is what was sitting in those stores in a form that was immediately useful once retrieved. Payment data, identity records, and contract details for a global operation covering dozens of jurisdictions represent an enormous surface area of live, actionable information.

For those working on data infrastructure at organizations with similar scale and jurisdictional spread: how are you thinking about the gap between stopping an attacker from reaching your data stores versus controlling what they actually walk away with if they do?


r/deeplearning • • 12h ago

Is AI actually looking at all my images?

4 Upvotes

When you give an AI model a few photos or screenshots and ask a question, does it actually look at all of them before it answers? Ever asked it to compare two images, only to get an answer that clearly ignored one of them?

We looked into this, and models answer from just one image more often than you'd think. On a lot of questions, showing one image gets them almost as far as showing all of them, and when they're wrong, they usually repeat the answer they'd give from a single image.

So we tested Claude, GPT, Gemini, Qwen, Kimi and GLM on questions you can only answer by looking at every image. Even the top model, Claude Opus 5.5, only got 68%, and Gemini 3.8 Flash slightly beat GPT-6-Astra. RLVR rewards only check the final answer, so a correct answer read off one image earns the same reward as one that combines several. We shift the credit toward the tokens that one image can't explain (CICA), and it raised three open models by 2.6-6.0 points. Results for the other models, a training method that improves this, and the models we trained are on GitHub.

If you've run into this, please tell us in the comments. We're collecting these cases for our research. Questions and suggestions are welcome too. We'll answer them, and good suggestions will go into the GitHub repo!

Disclosure: I'm one of the authors.

GitHub: https://github.com/chanseul01/ASTERISM


r/deeplearning • • 9h ago

help with ideas on how to improve small coding model i am building

1 Upvotes

hey guys so i have been working on training a small 63 milllion parameter python function completer model

steps i have taken are:

use code parrot dataset which comes from scrapped python github files

use BPE tokenixer (deepseek v1 tokenizer with vocab size of 32000)

context window is 2048

i have 15 decoder transformer layers

embedding size of 512

implemeted cosine decay and gradient clipping

activation function is relu and optimizer is adamw

using weight tying as well (mainly cause of compute cost)

task i trained on was: autoreggressive task and fill in the middle section task shuffled in equal proportion

so after training the model it could produce plausible and correct functions(rarely) given a docstring but never knew to produce a return cause i was training over the whole file

so i did continued pretraining at function level with a conservative laerning rate and it can now produce actual return statements that are still plausible but mostly wrong logic

i was thinking of dabbling into a bit of post training but i feel out of my depth and wanted advice on things i am missing or could have imporved on and also how to go about learning and implementing post training strategies as well as coding model evals if any of you have dabbled in that as well


r/deeplearning • • 10h ago

CNN Architecture and Hyperparameter Recommendations for Google Quick, Draw! (20 Classes)

1 Upvotes

I'm training a CNN on the Google Quick, Draw! dataset with 20 classes, approximately 2,000 samples per class (40,000 images total), resized to 28×28 grayscale images.

I'm aiming for around 90–93% test accuracy, but I'm struggling to find a suitable architecture. I've tried different numbers of convolutional layers, filters, fully connected layers, and neurons, but training takes quite a long time on my laptop, and the accuracy sometimes plateaus or even decreases after a few epochs.

I'd appreciate some practical recommendations regarding:

What is the minimum reasonable number of convolutional layers?

How many filters should I use in each convolutional layer (e.g., 16, 32, 64)?

How many fully connected layers should I have, and how many neurons in each?

Would max pooling after each convolutional layer be beneficial?

What optimizer, learning rate, batch size, and number of epochs would you recommend?

Any tips to achieve 90–93% accuracy without making the model unnecessarily large or computationally expensive?

I'm training on a laptop without a dedicated GPU, so computational efficiency is important.

If anyone has experience training CNNs on Quick, Draw!, I'd really appreciate suggestions for a good starting architecture and hyperparameters.

Thanks!


r/deeplearning • • 20h ago

17 million lines of Lean proved Riemann. Here's why everyone expected it

Thumbnail youtu.be
4 Upvotes

r/deeplearning • • 1d ago

I collected all 24 of Hugging Face's free, book-length interactive guides (Ultra-Scale Playbook, MoE Handbook, Smol Training Playbook...) in one place

27 Upvotes

If you've read the Ultra-Scale Playbook, you know how good these are: long-form, interactive, with real numbers from real training runs. Hugging Face has published a whole series of them, but they're spread across different orgs and Spaces, so they're easy to miss.

I put them all in one Hugging Face collection: https://huggingface.co/collections/justjuu/hf-playbooks-and-interactive-explainers

The core series

  • The Ultra-Scale Playbook: data, tensor, pipeline and context parallelism, ZeRO, and training on large GPU clusters
  • The Ultimate MoE Training Handbook (new): ~70k words and 55 interactive figures on training Mixture-of-Experts models
  • The Smol Training Playbook: the end-to-end story of training SmolLM3, from ablations to post-training to infrastructure
  • FineWeb: how to build a pretraining dataset at scale
  • The Evaluation Guidebook: how to evaluate LLMs properly

Data: FineTasks, FinePDFs, FinePhrase (synthetic data), FineVision

Post-training & RL: on-policy distillation, the TRL distillation trainer, RL environments for agents, async GRPO, chat templates and tokenization for agentic RL

Architecture & concepts: flow matching, looped transformers, encoder-free VLMs, NLP before LLMs, how the transformers library is engineered

Robotics: LeRobot's robot learning tutorial, robot folding

Bonus: the companion GPU memory predictor for the Ultra-Scale Playbook, and the open-source template these guides are built with, in case you want to write your own.

If I missed any good ones, drop them in the comments and I'll add them.


r/deeplearning • • 22h ago

Time Series Lag Problems

Thumbnail gallery
4 Upvotes

Hi everyone, I'm having an issue with lags on time series models predicting U.S. housing prices (FHFA HPI as the target) and I can't figure out where they're coming from (I'm no expert by any means). I've hand-built simpler models, but I'm using Claude Code for this project because it's larger. I've collected over 600 features: global, national (40 countries), and metro (393 U.S. metros). The attached table shows the different models we've tried - starting simple'ish and moving to building our own hierarchical transformer. The problem (the attached charts show an example) is that all the forecasts significantly lag the actual observations - ON ALL THE DIFFERENT MODELS by roughly the same amount. A 1-year forecast lags actuals by about 4-5 quarters. A 2-year forecast lags actuals by about 8-9 quarters. Same with 3- and 5-year (charts attached). On all runs. So the lag is pretty much the exact forecast horizon. I've experienced late calls on turns before, but nothing so consistent across all model types. So I'm pretty sure I'm doing something wrong, but don't know what. Any ideas or help would be appreciated.


r/deeplearning • • 16h ago

stabilizing neural codecs

1 Upvotes

i have been training and fiddling with different neural codecs and training my own architectures as well, from what i have observed most of these have a final refinement phase where they use adversarial techniques or mostly GANs. have people been using non GANish approaches to refine the audio reconstruction quality ? would love to know everyone's thoughts.


r/deeplearning • • 1d ago

Seed: an experiment in building a small modular AI from scratch on a GTX 1660 Ti, looking for feedback

Thumbnail reddit.com
3 Upvotes

r/deeplearning • • 1d ago

Why is LLM inference hard?

4 Upvotes

When I first heard about inference engines, like vLLM, I wondered what makes inference so challenging. That’s why I decided to learn more about LLM inference from a systems perspective. If you already know how transformers work, then this is a fun topic to explore next.

https://mehrdadmahabadi.com/blog/why-is-llm-inference-hard.html


r/deeplearning • • 23h ago

Drupal Flaw Found by Anthropic Scanner Exploited in Attacks

0 Upvotes

An Anthropic-built scanner identified a vulnerability in Drupal. Then that vulnerability was exploited in live attacks anyway.

The discovery-to-exploitation gap is a known problem. What gets less attention is what AI scanning agents actually do while they run. These tools need broad access to find what they're looking for. Some need to touch production systems to confirm exploitability. The scanner that found this flaw had enough access to identify it — which means it had enough access to interact with the affected surface in ways the organization may not have fully inventoried.

Security teams are deploying AI agents faster than they're defining what those agents are permitted to do. Credentials scope the account. Nothing scopes the agent's actions within that account. When a scan runs, there is often no durable, independent record of exactly what the agent touched, in what order, and what it attempted beyond its logged output.

The flaw was found. The flaw was later exploited. Everything in between — what the agent did, what it accessed, what it left behind — is the part of this story that isn't in the headline.

How are you handling this in practice? Do your AI security tooling operate under any defined per-action scope, or is access control handled entirely at the credential layer — and has that been enough?


r/deeplearning • • 1d ago

Hackers Exploited CVSS 10.0 Hex.pm RCE Flaw to Compromise 6 Package Registry Servers

0 Upvotes

A CVSS 10.0 RCE flaw in Hex.pm was exploited to compromise 6 package registry servers. The build pipelines themselves were not the entry point. The attack moved through dependencies that executed at runtime — after the artifact was already signed, scanned, and deployed.

This is the part static analysis does not reach. The build is clean. The signature checks pass. The malicious behavior shows up later, in what the running process actually calls and touches. Six servers is the confirmed count from this incident. The exploited surface was not in the code that shipped — it was in what that code pulled in and ran.

Security teams are getting better at hardening the build side. The runtime side — what actually executes, what it calls, what it writes, what it reaches out to — is where the gap keeps showing up.

For those working on this: what does your current approach look like for controlling what executes at runtime versus what was verified at build time? Are you treating them as the same problem or separate ones?


r/deeplearning • • 1d ago

[Article]: UGLF: Uncertainty-Gated Global-Local Fusion for Generalizable Face Forgery Detection

Thumbnail reddit.com
1 Upvotes

r/deeplearning • • 1d ago

Alternative Approaches to Symbolic Regularization of Neural Training

Thumbnail youtube.com
0 Upvotes

r/deeplearning • • 2d ago

I made a library that combines your devices' memory to train or fine-tune large models (open source)

46 Upvotes

most machines cant train or fine-tune the bigger models on their own, but a few of them together usually have enough memory. it splits the model by layers across them and trains it like its one model.

works for LoRA, QLoRA, full fine-tuning and training from scratch, and your training code stays the same.

they connect over the internet, and if one drops out the others take over its layers and training goes on.

https://github.com/abdallah-swe/layerpool

feedback welcome


r/deeplearning • • 2d ago

VMware vCenter Hit by Another Critical 9.8-Rated Auth Bypass Flaw After Zero-Day Exploitation

5 Upvotes

VMware vCenter just received another CVSS 9.8 auth bypass patch — the second critical authentication flaw in the platform in a short window, with the previous one already confirmed exploited in the wild before a fix shipped.

The number that matters: 9.8. That is not a 'patch when convenient' score. That is full unauthenticated remote code execution territory on the management layer that sits above every VM in the environment. Every workload, every stored credential, every network segment those VMs touch is exposed to whoever got there first.

What makes this pattern worth talking about is not the specific CVE. It is that critical infrastructure management software — the layer humans and increasingly automated systems use to provision, move, and modify production workloads — keeps producing exploitable authentication gaps at the highest severity tier. The gap is not just 'patch faster.' The underlying question is what an attacker or compromised process can actually do once it is past the authentication check, and how quickly anyone finds out.

For teams running vCenter at scale: how are you handling the window between public CVE disclosure and confirmed patch deployment across your fleet? And beyond patching cadence, what controls do you have on what authenticated sessions — legitimate or not — are allowed to touch?


r/deeplearning • • 2d ago

I built a neural network from scratch using only NumPy.

Post image
121 Upvotes

I wanted to know what actually happens inside loss.backward().

So I built a neural network with nothing but NumPy. Every gradient derived on paper, every layer written by hand, every derivative checked numerically.

98.05% on MNIST.

Code and derivations: https://github.com/Meckmin/mnist-numpy-from-scratch


r/deeplearning • • 1d ago

Can a system learn from experience without backprop or Transformers? I built one to find out, and the results confused me

Thumbnail github.com
0 Upvotes

r/deeplearning • • 2d ago

Killing the transformer is hard, Heres my best attempt so far 💪. MLSTM + PPLSTM

24 Upvotes

I've been continuing work on my experimental architecture, PPLSTM (Parallel Permutation Long Short-Term Memory), and wanted to share some of my latest results.

What am I trying to solve?

The original xLSTM architecture introduced two types of LSTM:

mLSTM: Uses matrix memory and a query, key and value (QKV) mechanism, providing associative memory and parallelisable training.

sLSTM: Uses scalar memory with recurrent memory mixing, offering interesting state-tracking capabilities, but its dependence on previous hidden states prevents full parallelisation across the sequence.

NX-AI addressed this bottleneck in their xLSTM 7B architecture by moving entirely to mLSTM blocks.

However, rather than removing sLSTM and its form of memory mixing, I wanted to explore whether some of its useful capabilities could be retained in a parallelisable alternative.

PPLSTM

My approach uses groups of three memory channels, a learned mixture of six possible permutations and a signed carry mechanism.

By making these transformations dependent on input features rather than previous hidden states, the recurrence can be computed using an associative parallel scan.

It's not mathematically equivalent to sLSTM, but the aim is to retain comparable useful capabilities without the same sequential bottleneck.

Language modelling results

Initial standalone 5M-token CPU experiment (test perplexity, lower is better):

Transformer: 58.90

sLSTM: 51.43

PPLSTM: 54.50

I then tested replacing the sLSTM blocks within a hybrid xLSTM architecture with PPLSTM.

50M-token experiment:

Vanilla xLSTM: 97.78 PPL | 2,187 tok/s

mLSTM + PPLSTM: 97.04 PPL | 22,790 tok/s

This represents approximately a 10.4x training speed improvement, although the comparison was against vanilla PyTorch sLSTM, not the official optimised CUDA kernel.

200M-token FineWeb-Edu experiment (approximately 530K parameters per model, context length 128):

mLSTM + PPLSTM + CUDA Graphs: 87.83 PPL | 35,121 tok/s

Transformer SDPA: 87.60 PPL | 263,885 tok/s

While the Transformer was considerably faster, the language modelling performance was very similar.

Memory and state tracking

In separate synthetic experiments, trained at a sequence length of 128 and evaluated at 512, the hybrid achieved the following results against a Transformer:

Mod-4 state tracking: 89.06% vs 27.93%

Delayed recall: 100% vs 82.23%

Key-value recall: 100% vs 22.07%

Key-value updates: 93.55% vs 19.73%

Parity: Both approximately 49%

Further synthetic training brought the hybrid's mod-4 state-tracking accuracy to approximately 96%.

I've also experimented with standalone PPLSTM against a Transformer, although I haven't conducted a full ablation study. Parity and more complex multi-hop reasoning remain unsolved in my current experiments.

Developing a custom CUDA kernel

As I've only had access to a Tesla T4 GPU, computational efficiency has been a big focus.

Initially, I used CUDA Graphs, achieving between 2.20x and 6.37x higher throughput than vanilla PyTorch sLSTM with CUDA Graphs across nine configurations.

I then developed a specialised fused CUDA kernel combining the memory scan, normalisation, output calculations and their backward operations, without changing the underlying PPLSTM mathematics or trainable parameters.

A separate 10M-token experiment produced:

PPLSTM hybrid + CUDA Graphs: 34,628 tok/s | 132.52 PPL

Fused PPLSTM hybrid + CUDA Graphs: 111,031 tok/s | 132.37 PPL

That's a 3.21x training speed improvement over the already CUDA Graph-accelerated implementation, with all 20 recorded numerical and execution checks passing.

I haven't yet tested the fused kernel over the full 200M-token training run.

Feedback

I'm not an academic researcher or professionally involved in the ML field , This is an independent project I've been working on out of personal interest. So i have tried to package it up in a manner the community would want.

These are small-scale, largely single-seed experiments, so there's still plenty of work to be done before drawing broader conclusions.

I'd really appreciate any feedback or constructive criticism from people with more experience in the field, whether that's regarding the architecture, mathematics, experimental methodology or CUDA implementation. Maybe even getting some sort of team together.

All the source code, mathematical explanations, experiment reports, CUDA kernel and reproducible notebooks are available on GitHub.

GitHub: https://github.com/rickey1990/PPLSTM

Related xLSTM 7B paper: https://arxiv.org/abs/2503.13427


r/deeplearning • • 2d ago

let an agent edit weights of a damaged model, fixing it broke refusals, had to make surgery multi stage

Post image
9 Upvotes

i planted damage in qwen2.5-0.5b, 16 columns of one mlp output scaled by 200, model spits garbage. agent found it and restored weights exactly. judge still rejected it

reason: restored model answered 2 of 20 held out harmful requests that damaged one only garbled. so fix needed a refusal gate on top, but gate is calibrated on model's own harm reading and on damaged weights that reading was useless. agent gave up

so i made surgery multi stage. agent commits restore, every tool now reads repaired model, builds gate on that. first run still let 1 of 20 through and shipped nothing. after a probe rework next run shipped restore + gate on first try, all 20 refused, confirmation 51 better 0 worse, 9 min on a gtx 1650

nothing ships unless it beats original on validation data agent never saw (paired exact sign test, corrected for every candidate), then once on a confirmation set that cant be reused

funny part, when agent can choose it mostly picks steering or sampler settings. only pure weight edit that passed was a bug i planted

0.5b to 1.5b only, small card. every run incl failed ones in RESULTS.md

https://github.com/ayushh0110/Weight-Space-Repair