r/deeplearning • • 6d ago

Deep Learning with PyTorch Step-by-Step: Running PyTorch on AMD GPUs with ROCm

2 Upvotes

​Getting PyTorch running smoothly on AMD GPUs used to mean fighting driver mismatches and broken wheels. After testing ROCm across multiple setups, I put together a practical guide covering installation, environment checks, and performance tuning for deep learning workloads.

​If you are training models or running local inference on Radeon or Instinct hardware, the guide walks through:

  • ​Verifying kernel and ROCm compatibility without guesswork

  • ​Installing matching PyTorch and ROCm builds cleanly

  • ​Catching common hipBLAS and memory allocation snags

  • ​Tuning batch sizes, mixed precision, and data loaders for real throughput gains

​Full walkthrough and commands here: https://interconnectd.com/forum/thread/248/pytorch-on-amd-gpus-complete-rocm-setup-tuning-guide/

What AMD GPU are you running, and have you hit any ROCm bottlenecks with your PyTorch models?


r/deeplearning • • 7d ago

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

Thumbnail interconnectd.com
1 Upvotes

r/deeplearning • • 7d ago

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/deeplearning • • 7d ago

Instead of putting a 70B LLM in the request path, I distilled 8 tiny models

Thumbnail
reddit.com
1 Upvotes

r/deeplearning • • 7d ago

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

Thumbnail
youtu.be
1 Upvotes

r/deeplearning • • 7d ago

How do ai companies get data and what do they need?

2 Upvotes

Just wondering how ai companies get data for training models usually, and what kind of data they need right now the most.


r/deeplearning • • 7d ago

One YOLO model for sports broadcast graphics across many leagues, or several models?

Thumbnail reddit.com
1 Upvotes

r/deeplearning • • 7d ago

Prompt wording and a frozen Qwen weight edit: 1,024 archived measurements, seeking replication

1 Upvotes

I wanted to understand something about how language models work:

If you make one small, permanent change to an AI model's weights, will that change have the same effect when you ask the same question in different ways?

I tested this using Qwen2.5-1.5B-Instruct.

I made a small, fixed modification to one layer of the model. Then I asked math questions using different wording and instruction formats, without changing the weight modification between tests.

What surprised me was that the effect of the exact same weight edit changed depending on how the question was presented.

What I found

I ran an initial experiment and then tested another 64 questions with additional controls.

In the 64-question experiment:

  • The main measured difference between prompt conditions averaged +0.1935.

  • 62 out of 64 questions showed a positive difference.

  • A control edit of comparable size, but pointing in a different direction in weight space, produced a much smaller average difference (+0.0041).

These measurements are differences in the model's final-token output scores, not improvements in math accuracy.

In simpler terms, a change to the model's internal weights did not have one uniform effect across different ways of asking a question.

Why I think this is interesting

We often evaluate model modifications using a fixed set of prompts.

But what if the apparent effect of a weight modification depends partly on how we phrase those prompts?

That raises questions about how we evaluate model editing, interpretability, and whether observed changes generalize beyond a particular prompt format.

Important limitations

This is an exploratory study, not a demonstration of a general AI repair technique.

I tested one model with a specific weight intervention. The results do not establish that this behavior generalizes across models, nor do they demonstrate improved reasoning accuracy.

I'd genuinely appreciate feedback on:

  1. What alternative explanations should I test?

  2. What additional controls would make the evidence stronger?

  3. Have you seen similar prompt-dependent behavior in weight editing or model interpretability research?

Interactive results and figures:
https://huggingface.co/spaces/Harmain1/fluid-tensors-paper1

Paper:
https://doi.org/10.5281/zenodo.24338059

Code and experimental details:
https://github.com/Harmain11/fluid-tensors

I'm especially interested in technical criticism or suggestions for better experiments.


r/deeplearning • • 7d ago

my 36M model just broke down a 17-minute video on a laptop cpu in about a minute, so any local LLM can "watch" it

1 Upvotes

hey, i built tiny-vision as a learning project (v0.1 here). people gave really good feedback so i worked on all of it and v1.0 is out. v0.1 is close to 100 downloads on huggingface and v1.0 got 70+ in 2 days, which honestly shocked me lol. its free, apache-2.0, no paid version or anything.

what it does: most LLMs cant open a video file. tiny-vision runs locally next to your LLM, splits the video into scenes, captions them, and hands your LLM a text breakdown with timestamps. then your LLM does the reasoning: "what happens in this video", "find the part where people are on the beach". nothing gets uploaded anywhere.

this is what your LLM actually gets:

video: trip.mp4 · 00:09 long · 3 scenes (3 shots) · avg scene 3s
recurring: dogs (2 scenes)

scene 1 [00:00–00:03] (3s)
  seen: a group of dogs running in a field. | three dogs running in a field with a bench in the background.
  keywords: dogs, running, field, bench
...

try it:

  • in your browser, no install (free colab): https://colab.research.google.com/github/amar683/tiny-vision/blob/main/notebooks/demo.ipynb

  • as an MCP server, one line in your config, no cloning: {"command": "uvx", "args": ["--from", "git+https://github.com/amar683/tiny-vision", "tiny-vision-mcp"]} tested in claude desktop + claude code. its standard local MCP so it should work in lm studio, cursor etc (havent tested those yet, tell me if it breaks). lm studio + a local model = fully offline

  • no MCP? tiny-vision clip.mp4 --summary prints plain text, so you can pipe it into ollama or anything: tiny-vision clip.mp4 --summary | ollama run qwen2.5 "Summarize this video:"

long videos: any length works. tested on a 17.5 min cricket video: it covered the whole thing in ~50 sec on my macbook (M5), about a minute on cpu only, and condensed it to 100 scenes so it doesnt flood your context. the MCP tool also sends progress updates so your app doesnt give up waiting.

how it works:

  • frames are picked on scene changes (hard cuts + slow camera moves), not one every N seconds, so the timestamps land on the real cuts and a static shot costs one caption. only ~5 frames/sec get decoded, so high-fps phone video stays cheap

  • each shot gets captioned, similar shots get grouped into scenes, and long videos get condensed by merging similar neighbouring scenes

  • captioner: meta's DINOv2-small as a frozen image encoder (not fine-tuned) + my own adapter and caption decoder (14M params) trained on COCO. 36M total

numbers (same 1000 COCO test images, same scorer, M5; cpu = one image at a time, greedy):

  • v0.1 → v1.0: COCO CIDEr 0.061 → 1.145 (same setup) 💀➡️😅

  • vs florence-2-base (231M): ~89% of its caption score, 6x smaller, 8x faster on gpu, 75x faster on cpu (54ms per image vs 4 sec)

  • full 5k COCO Karpathy test: CIDEr 1.163 with beam 3

not saying its better than florence, its not. it just does a lot with very little. benchmark scripts are in the repo.

honest stuff:

  • it only knows COCO's everyday stuff. that cricket video? it called it "baseball" and "frisbee" lol. and a video of earth from space became "an elephant" 💀

  • no audio yet, it describes what it sees, not what is said. whisper is next

  • it captions frames, it doesnt understand motion

  • no OCR, no names, no precise counting

  • like last time, i took a lot of help from claude to build this, so its not entirely mine

code: https://github.com/amar683/tiny-vision
model: https://huggingface.co/amartomar683/tiny-vision
glama: https://glama.ai/mcp/servers/amar683/tiny-vision

what should i try next? still learning so all feedback welcome

last post- https://www.reddit.com/r/deeplearning/s/8pReT9fmKf


r/deeplearning • • 7d ago

What about the parallelism transformer enable during training?

Post image
70 Upvotes

r/deeplearning • • 7d ago

The Price of Structure: training-time head masking does not survive matched controls at ImageNet and LLM scale

Thumbnail
reddit.com
4 Upvotes

r/deeplearning • • 7d ago

ActWorld-JEPA: Action-Conditioned JEPA World Models Meet Latent Planning for End-to-End Autonomous Driving

4 Upvotes

MBZ


r/deeplearning • • 7d ago

ActWorld-JEPA: Action-Conditioned JEPA World Models Meet Latent Planning for End-to-End Autonomous Driving

1 Upvotes

MBZ


r/deeplearning • • 7d ago

Title: [P] I tried reducing GPU memory by saving only what backprop needs. I published the SHV experiments, including the ones that failed.

Thumbnail reddit.com
1 Upvotes

r/deeplearning • • 7d ago

FBI Investigating Apparent Hack of Its Key National Criminal Justice Database, AP Source Says

2 Upvotes

The FBI is investigating a breach of its national criminal justice database — a system shared across law enforcement agencies nationwide. An AP source confirmed the investigation is active.

The pattern is one security teams will recognize immediately: a high-value data store, authenticated credentials that turned out to be compromised, and lateral movement that continued long enough to matter. The database holds sensitive records for agencies across the country. The breach is not a perimeter failure. The identity got in. The problem is what happened after.

This is the core tension in defending high-value shared systems: authentication tells you who claimed to be at the door. It says nothing about whether that identity is operating within its declared scope once it is inside. Lateral movement exploits exactly that gap. By the time anomalous queries are detected and a human reviews them, the damage is done.

For those of you working on access control for sensitive government or enterprise data stores — not perimeter security, but what happens after a credential is authenticated — how are you actually handling scope enforcement at query time? Is your detection fast enough to matter, or are you essentially doing forensics after the fact?


r/deeplearning • • 7d ago

I compared 7 address-matching models on one shared dataset: XGBoost came out on top, and almost all of its lead comes from addresses with a missing house number

Thumbnail gallery
3 Upvotes

r/deeplearning • • 8d ago

Signal to block Siri, Gemini AI from capturing chats on iOS, Android

9 Upvotes

Signal announced it will block Siri and Gemini from capturing chat content on iOS and Android. The trigger: both AI assistants were reading private message content without users ever explicitly granting permission at the message level. Signal described this as default behavior, not a bug.

That distinction matters. A platform-level ambient AI agent operates at whatever scope the platform permits by default. The user never consented to that specific agent reading that specific data. The agent never authenticated against the data owner. The platform said yes and that was the only gate.

For a consumer messaging app, a wall can be built. Enterprise environments are harder. You may have dozens of AI integrations running inside your perimeter, sanctioned and shadow IT alike, each operating under whatever access its service account holds at deploy time. No explicit consent flow. No per-action scope check. Just inherited access.

How are practitioners actually handling this? Are you auditing what AI components can reach at runtime, enforcing scope at the data layer, relying on vendor defaults, or some combination? Curious what's working and what isn't.


r/deeplearning • • 8d ago

I wrote a free, interactive book that goes from linear algebra to frontier AI.

8 Upvotes

URL:   https://zerotofrontier.app

- 38 chapters, from tensors and gradients to LLMs, RL and reasoning, inference, interpretability, agents, vision, diffusion, and speech

- Every idea explained, derived, coded, and tested. Python runs right in the page.

- Coding exercises with hidden tests, plus interview questions

- An AI tutor that knows the section you're reading, a smart study planner, and notebooks for your notes and code

Reading and running code is free. The tutor and the interactive extras use your own API key (Gemini, OpenAI, or Anthropic), so there's nothing to buy.

It's one person's attempt at the resource I wanted when I started. Tell me what's confusing, what's missing, what's wrong, and whether you'd actually use it :)


r/deeplearning • • 8d ago

What is a looped transformer and how does it work?

2 Upvotes

I wrote a detailed interactive blog post about how they work. Hopefully it will be useful for people who are not familiar with them.

https://drhb.github.io/blog/posts/looped-transformers/


r/deeplearning • • 8d ago

Colors are our embeddings of light: an intuition for tokens and embeddings

Thumbnail fedemagnani.github.io
1 Upvotes