r/deeplearning • • 1d ago

Different Optimizers

Post image
72 Upvotes

r/deeplearning • • 23h ago

Rill: Rust-powered neighbor sampling for PyTorch GNNs - a quick demo

1 Upvotes

Hey everyone!

I've been working on an open-source project called Rill, and I put together a short video demonstrating how it works.

Rill is a Rust-powered library focused on graph data loading and neighbor sampling for Graph Neural Networks, with Python and PyTorch integration.

The motivation behind the project was to explore whether Rust could make graph ML data-loading workloads more efficient without sacrificing the familiar Python workflow.

Some things I've been working on:

  • Rust-powered core implementation
  • Python integration using PyO3
  • Parallel execution with Rayon
  • Integration with the PyTorch ecosystem
  • Benchmarks against PyG's NeighborLoader, including batch loading, end-to-end training, and memory usage

I've published the package on PyPI as well.

Links:

I've included a short demo video to show the workflow.

I'd appreciate feedback, especially from people experienced with Rust, PyTorch Geometric, or GNN infrastructure.

I'm particularly interested in feedback on the benchmarking methodology, API design, and potential improvements.


r/deeplearning • • 23h ago

In Attention why √dk

Post image
1 Upvotes

r/deeplearning • • 1d ago

Deep learning handwritten notes

Post image
12 Upvotes

r/deeplearning • • 1d ago

Hackers exploit critical WordPress WP Rocket flaw to breach sites

1 Upvotes

A critical vulnerability in WP Rocket, one of the most widely installed WordPress caching plugins, was actively exploited before most site operators had patched. WP Rocket has over 3 million active installs. Attackers used the flaw to gain unauthorized access to site environments and the data those environments held.

The uncomfortable part is not the plugin flaw itself. Plugin vulnerabilities ship constantly across every ecosystem. The uncomfortable part is what happens after: sensitive fields — user records, credentials, payment-adjacent data — are sitting in plaintext wherever that plugin can reach. Patch latency on a plugin with 3 million installs is measured in days to weeks, not hours. That window is the exposure.

Perimeter and authentication controls did not stop this. The plugin had legitimate access. Once the plugin was compromised, that access became the attacker's access. There was no second layer checking where the data was allowed to go or logging what actually moved.

This is not unique to WordPress or WP Rocket. Any system where sensitive fields travel or rest in plaintext through third-party code layers has this shape of risk.

For those running production systems with real PII exposure: what does your actual data-layer protection look like before data hits a plugin, cache, or third-party integration? Not the perimeter — the field level. Curious what approaches have held up in practice.


r/deeplearning • • 1d ago

Coded a minimal from-scratch version of grouped-query attention just to watch the KV cache behavior

0 Upvotes

I kept reading papers that switched to GQA for inference speed and kept nodding along without really grasping how the grouping actually changes the cache footprint during generation. Last weekend I wrote the smallest possible PyTorch version (under 60 lines, no external libs) that only does the forward pass on dummy sequences so I could print shapes and watch what gets cached at each step.

The part that finally clicked was seeing exactly how many unique key/value heads get reused across query heads and how that compounds with longer contexts. It also made the trade-off with full multi-head attention much more concrete than any diagram had.

I kept everything deliberately tiny so I could step through it with prints instead of treating it as a black box. Has anyone else done something similar with a small piece like this (maybe ROPE variants or sliding window attention) where writing the minimal code made the memory or speed difference obvious in a way reading never did?


r/deeplearning • • 1d ago

I built a lightweight interactive demo to step through convolution and pooling on your own images

1 Upvotes

When first trying to build intuition for convolutional neural networks beyond static textbook diagrams, tweaking a $3 \times 3$ kernel or adjusting stride on an actual photo to watch which pixel values survive pooling felt way harder than it needed to be. Most tutorials required spinning up a full Python environment or Jupyter notebook just to experiment with simple filter weights and see how edge detection or blurring behaves step by step.

To make that feedback loop instant, I put together a small static web page where you can upload any image, adjust kernel size, stride, and padding, toggle between max and average pooling, and inspect both the resulting feature map and the raw tensor numbers updating live in real time. There is nothing to install, no GPU dependency, and it runs smoothly right in a mobile browser.

The whole thing is just a few hundred lines of vanilla JavaScript and HTML5 Canvas, so the source is easy to inspect, tweak, or fork if you want to add custom filters or activation functions. Link is in the comments for anyone who wants to play around with it.

What small visual tools or interactive sandboxes helped a neural network layer finally click for you the first time? Curious which concepts—like backprop, attention heads, or receptive fields—became much easier once you could actually watch the numbers move.


r/deeplearning • • 1d ago

Japan's largest power company JERA hacked, operations unaffected

1 Upvotes

Japan's largest power company JERA confirmed a breach last week. Operations were unaffected. The compromised system belonged to a third-party vendor, not JERA's own infrastructure.

That detail is the whole story. JERA's perimeter held. A vendor holding their data did not.

Third-party vendor incidents now account for the majority of critical-infrastructure data exposures. The primary organization often has no technical visibility into what form their data exists in once it has moved to a vendor environment. If that vendor is breached, the exposure depends entirely on decisions the vendor made, not the data owner.

The uncomfortable part: the breach path here was a sanctioned, authorized relationship. The vendor had the data because they were supposed to. The attacker exploited legitimate access, not a hole in JERA's own systems. That makes the standard perimeter-hardening conversation mostly irrelevant to this class of incident.

For people working in OT security, third-party risk, or data governance: once sensitive data leaves your environment for a vendor, what actually governs its exposure surface on the other side? And how do you know?


r/deeplearning • • 1d ago

Final year project is a mess and I genuinely don't know what to do anymore

2 Upvotes

I'm a final-year B.Tech student working on Human Activity Recognition using deep learning. My group members barely communicate, don't reply to messages and are always unavailable. Most of their work is AI-generated code that they barely understand.

Our mentor doesn't prefer meeting individual members, and because of the constant coordination issues, we haven't met her in two months. I know I should have contacted her earlier, and I genuinely regret that. I finally reached out today, but she said she's busy and will discuss the work in January. Our presentation is on 10th December, and she'll be evaluating us.

I've been working on my part, but I have several doubts regarding the research methodology and have no one to guide me. I also have semester exams and can't possibly handle the entire project alone.

If anyone has experience with HAR, deep learning or ML research and could help me clarify a few doubts, I'd genuinely appreciate it. I'm not asking anyone to do my project, I just need some guidance because I feel completely lost.


r/deeplearning • • 1d ago

Machine Learning Overview

10 Upvotes

r/deeplearning • • 1d ago

Opportunity: win $100 USD + VIP swag by building a dataset with Adaption (free, online, closes Dec 6)

2 Upvotes

Disclosure: I help run this at Hackyard, so I'm posting as the organizer.

Here is an opportunity to build something real and get it judged. The Adaption Dataset Challenge is online and free, Nov 16 to Dec 6, 2026 (closes 11:59 PM IST).

What you do: build an instruction-tuning dataset for a language or domain that gets little coverage, improve it with Adaption, then show before-and-after evaluation results. What you learn: how to prove a dataset got better, not just collect data.

What you can win: the first-place team gets $100 USD cash and 2 VIP swag boxes (the cash is only for submissions that use Adaption). Every registrant gets $500 in Adaption platform credits (credits, not cash).

Teams of 1 to 4, solo is fine, 18+. Details and registration: https://hackyard.org/events/adaption-labs

Dates are planned and may change. Happy to answer questions here.


r/deeplearning • • 1d ago

Bahdanau vs Luong Attention

Post image
1 Upvotes

r/deeplearning • • 1d ago

New Town Hall in Clash of Clans, so I labelled it in my segmentation dataset

Post image
1 Upvotes

I've been building a segmentation dataset from Clash of Clans screens for a while, and when the new Town Hall (TH19) dropped I figured the dataset should have it too. So it's labelled now, same polygon style as everything else on screen.

The image is a real frame with its labels next to it. If anyone's curious, there's a free sample and a viewer where you can click around the masks:
https://huggingface.co/datasets/nihatxp/clash-of-clans-screen-segmentation-sample
https://huggingface.co/spaces/nihatxp/coc-dataset-viewer

Feedback on label quality is very welcome, it's the part I care about most


r/deeplearning • • 2d ago

I built a free place to practice PyTorch hands-on in the browser: autograd, nn.Module, attention, with real tests

21 Upvotes

When I was learning deep learning, I could follow the math and the tutorials, but I had nowhere to practice writing the pieces myself and get feedback, without setting up a GPU environment or a notebook for every exercise.

So I built Queryosity, where you write real PyTorch against hidden tests right in the browser (CPU, tiny tensors, so it runs fast):

  • tensors, broadcasting and autograd
  • writing nn.Modules and training loops from scratch
  • attention, layer norm, causal masks, gradient clipping
  • the math underneath: linear algebra, calculus (chain rule, gradient descent), probability

How it works: each submission runs in a sandboxed container with CPU PyTorch; outputs are compared with tolerances for floats and tensors. There's a hint coach that asks questions and points at your bug instead of giving the answer, and spaced repetition brings problems back before you forget them.

The Easy problems and all lessons are free, no account needed to try: queryosity.dev

I'd love feedback from this community: which deep learning concepts would you most want hands-on exercises for?


r/deeplearning • • 1d ago

YOLO26 / YOLOE in cpp. CPU with GPU offloading

Thumbnail github.com
2 Upvotes

The app is actually with my own pure C system. This one is built on top of ggml / llama.cpp. It's better on PC plus it has the llama.cpp GPU offloading ( all GPUs ) . I need to fix some threading issues then I'll upload the app using this system to the repo.

https://www.youtube.com/shorts/LdhYoXquvbY


r/deeplearning • • 1d ago

Convolution Operation (*)

Post image
3 Upvotes

r/deeplearning • • 1d ago

Made a new video harness engineering

Thumbnail youtu.be
0 Upvotes

Would love to have ur feedback guys


r/deeplearning • • 2d ago

I'm building Rill - Rust-powered graph infrastructure for GNNs and PyTorch

5 Upvotes

Hey everyone!

I've been working on something called Rill, an open-source project focused on building high-performance graph machine learning infrastructure using Rust.

This started as an exploration of how Rust could be used to make graph data processing more efficient while keeping things accessible to the Python and PyTorch ecosystem. The more I worked on it, the bigger the idea became.

I wanted to share it here, get some honest feedback, and hopefully connect with people interested in Rust, systems engineering, and graph machine learning.

Project links:

* GitHub: https://github.com/Joy-Majumder/Rill

* PyPI: https://pypi.org/project/rill-gnn/

So, what exactly is Rill?

Rill is a Rust-powered graph machine learning infrastructure project.

The initial focus is on graph data loading and sampling for Graph Neural Networks (GNNs), with the broader goal of developing efficient primitives for graph storage, feature access, and data processing.

Graph workloads can become expensive as datasets grow. Moving large amounts of graph data, sampling neighborhoods, and preparing batches for training can introduce significant overhead.

I want to explore how much of this infrastructure can benefit from Rust's performance, memory safety, and concurrency model without sacrificing the flexibility of Python-based ML workflows.

What is under the hood?

Some of the technologies and concepts involved:

* Rust: Core performance-oriented implementation.

* PyO3: Connecting Rust functionality with Python.

* Rayon: Parallel execution.

* PyTorch: Integration with the existing ML ecosystem.

* Zero-copy: Exploring ways to reduce unnecessary data movement.

* Graph sampling and data loading: The initial focus for GNN workloads.

The project also sits within the broader graph ML ecosystem, including PyTorch Geometric.

Why am I building this?

Honestly, I enjoy working at the intersection of systems engineering and machine learning.

Rust has a lot to offer beyond traditional backend development, and graph machine learning is an interesting area where performance and memory efficiency really matter.

I don't want to build another GNN framework just for the sake of it. I'd rather work on the infrastructure underneath these workflows and see whether it can make graph ML development more efficient.

The long-term vision is to make Rill useful to both researchers and developers working with graph-based machine learning.

Where is the project right now?

Rill is still early-stage, and there is plenty of work ahead.

I'm particularly interested in improving:

* Graph representation and storage.

* Efficient neighborhood sampling.

* Data-loading performance.

* Python and PyTorch interoperability.

* Memory efficiency and zero-copy operations.

* Parallel execution and scalability.

* Reproducible performance benchmarking.

I'm also interested in exploring how GPU-oriented workflows could fit into the longer-term architecture.

I'm not claiming Rill is a replacement for PyTorch Geometric or DGL. Those are established projects with mature ecosystems. I see Rill as an opportunity to experiment with a different approach to graph infrastructure.

A little transparency about AI

Rill was developed with significant assistance from AI coding tools.

Architecture, design decisions, and research direction are human-driven, while implementation, testing, benchmarking, and documentation involved collaborative AI-assisted development.

I remain responsible for reviewing the code, validating results, and maintaining the project's quality and direction.

I think being transparent about how modern open-source software is developed is important.

I'd genuinely love your feedback

If you work with Rust, PyTorch, GNNs, or performance-critical data pipelines, I'd love to hear your thoughts.

A few things I'm curious about:

  1. Would you consider using Rust-based infrastructure in your graph ML workflow?
  2. What are the biggest bottlenecks you've encountered with graph data loading and neighbor sampling?
  3. What would you expect from a project like Rill before considering it for research or production?
  4. Are there architectural decisions or interoperability challenges I should pay more attention to?

And if you're interested in contributing, experimenting, or simply following the development, you're very welcome.

I'm building this in public, learning along the way, and hoping to turn Rill into something genuinely useful for the community.

GitHub: https://github.com/Joy-Majumder/Rill

Thanks for reading! <3


r/deeplearning • • 1d ago

[P] I turned my GPU-memory experiments into an installable PyTorch runtime — 11.2% lower training memory on GPT-2, with a matched ablation

Post image
1 Upvotes

r/deeplearning • • 2d ago

I built a free, interactive graph theory platform two years ago, and it just reached 10,000 monthly visitors worldwide!

3 Upvotes

Hey everyone!

Back in 2024, I started working on LearnGraphTheory.org as a personal project with a simple goal: to make graph theory, algorithms, and mathematical optimization easier to learn through interactive visualizations.

As someone with a background in mathematics and operations research, I've always felt that these subjects could be taught in a more intuitive and interactive way.

What started as a small project has gradually grown into an educational platform that now receives 10,000 monthly visitors from around the world, mainly through organic growth.

Over the past two years, I've continuously worked on improving the platform and adding new features, including:

- 80+ interactive algorithms with step-by-step visualizations.

- 70+ educational articles and tutorials.

- 20 video lessons.

- Interactive 2D and 3D graph visualizations.

- Built-in Python and JavaScript code editors.

- 8 mathematical optimization calculators.

- Operations research tools for vehicle routing, project scheduling, linear programming, and more.

- Real-world map-based algorithm visualizations.

- Cloud saving and synchronization.

- Support for six different languages.

It's been really rewarding to see people from different countries using the platform, whether they're students, teachers, researchers, or developers.

One of my main goals is to keep the platform's interactive learning resources freely accessible to everyone. I'm also exploring ways to make the project financially sustainable without putting these resources behind a paywall.

There's still a lot I want to add, including more advanced algorithms, optimization tools, educational content, and additional languages.

I would love to hear your thoughts, especially from people studying or working in mathematics, computer science, and operations research.

Are there any particular algorithms, tools, or features you'd like to see added to the platform?

You can check it out here: https://learngraphtheory.org/

Thanks to everyone who has supported the project so far!


r/deeplearning • • 2d ago

Need Good Notes

0 Upvotes

I am learning AI engineering topics like ML,DL,Rags etc from Campus X yt playlists and I want good notes for AI engineering because at the end I will retain the stuff from notes... So if anyone have any good resources please let me know...I have lizard book pdf which I can read but need notes to revise. If anyone has campus X paid notes which you can share that would be really helpful as I cant afford 1100, I will purchase those notes after I start earning but for the time being please share if anyone has purchased...

Thank you for your help and time !


r/deeplearning • • 2d ago

A mathematical comparison of ReLU, Sigmoid and Tanh (Share your thoughts, Thankyou)

Post image
19 Upvotes

Recently, I've been looking more closely at activation functions, particularly ReLU, Sigmoid and Tanh, while working with neural network architectures as I've been reading research papers and exploring different aspects of model behavior, I kept finding myself returning to one question how much do the mathematical characteristics of an activation function influence what happens during training? I wanted to investigate this beyond the usual definitions and equations so, I started examining how these functions respond to like different input values, how their curves evolve around zero, and how their gradients change as the inputs move further from that point I put together two sets of plots to study this one comparing the activation functions themselves and another examining their derivatives, working through the equations and visualizing the results made it easier to identify some of the differences that are not immediately obvious when looking at the functions individually, the derivative comparison was particularly interesting ReLU follows a piecewise pattern, while Sigmoid and Tanh exhibit saturation as their inputs move towards larger magnitudes, this is also reflected in their derivatives

ReLU: 1 for positive inputs and 0 for negative inputs
Sigmoid: reaches a maximum derivative of 0.25 at zero
Tanh: reaches a maximum derivative of 1 at zero

These differences are worth examining in the context of backpropagation, where gradient magnitudes influence how information is propagated through a network and how its parameters are updated, in particular, the diminishing gradients in saturated regions raise interesting considerations around learning dynamics and optimization, this was a useful exercise in connecting the mathematical behavior of activation functions with their implications for neural network training, I'm interested in taking this further and exploring how these differences manifest across actual experiments, particularly in terms of convergence, optimization and model performance

Sharing the plots as a record of what I've been working on recently


r/deeplearning • • 2d ago

JJ Suna V1.1: 5B MIT open-weights AI music model (48 kHz stereo) trained on free Kaggle T4 x2 GPUs — weights + free browser demo

Thumbnail suna.jjcoders.com
1 Upvotes

r/deeplearning • • 2d ago

Built 3 LLM architectures from scratch in pure PyTorch (42M Dense vs. 117M-A67M MoE vs. 20M Looped) – Code & HF Checkpoints

23 Upvotes

I built `Spell-Talker` to compare three transformer architectures from scratch in pure PyTorch without high-level training wrappers, keeping the backbone fixed (`512` context, `8` heads, `512` dim, `RMSNorm`, `SwiGLU`, weight-tied `32k` vocab):

Dense (`CustomGPT` – 41.8M): Standard 8-layer decoder baseline.

Sparse MoE (`CustomMoEGPT` – 117.3M total / 67.0M active): Top-2 gating across 4 SwiGLU experts per layer with auxiliary load-balancing loss.

Looped Recurrent (`LoopedCustomGPT` – 20.3M): Single weight-tied transformer block unrolled 8 times during training using truncated BPTT (`bptt_steps=8`), scalable up to 32 steps at inference.

Trained on TinyStories on a single consumer GPU (RTX 3050).

GitHub: https://github.com/BitGeek29/spell-talker

Happy to share training curves or discuss MoE router stability and truncated BPTT in looped blocks!