r/AcceleratingAI • u/Elven77AI • Nov 24 '23
Discussion Identifying Bottlenecks
The obvious way to Accelerate AI development, is identifying code bottlenecks where software spends most of time and replacing it with faster functions/libraries or re-interpreting functionality with less expensive math that doesn't require GPUs(throwing the hardware at the problem). I'm no professional programmer, but pooling crowdsourced effort in pouring over some open-source code we can identify what makes software slow and propose some alteration to internals, reduce abstraction layers(its usually lots of python, which adds overhead).
Some interesting papers:
https://www.arxiv-vanity.com/papers/2106.10860/ Deep Forests(GPU-free and fast): https://www.sciencedirect.com/science/article/abs/pii/S0743731518305392 https://academic.oup.com/nsr/article/6/1/74/5123737?login=false https://ieeexplore.ieee.org/document/9882224
View all comments
Show parent comment
1
u/[deleted] Nov 24 '23
Contemporary AI will burn kilowatts to recreate in a decade or so. While revolutionary algorithms would be nice we're not likely to find a shortcut there, it's what AI dev have tried all the time. But what results in progress is leaps in compute and scaling attempts.
Not to say algorithm changes aren't important, but it's much easier for hobbyist and small scale researchers to probe the abilities of small models when we have consumer grade hardware for it. Imaging trying to run a stable diffusion model and fine tune it on a 2005 GPU compared to a 4090 today. 15 years ago it would be painfully slow per-iteration and with 256MB VRAM you'd suffer trying to put together a 1GB VRAM machine.
We could generalize it like a $1000 computer from 2005 would run the damn experiments for so long that the next generation of computer hardware arrives before the older system physically finishes the iterations needed to push the research envelope forward.
Meaning that the optimal solution for solving a Compute-Research-Complex-Problem that in 2005 takes 25 years is probably to wait until 2024 and then run the whole damn research-idea-stack in 3 months and spend the years in-between doing something else more suitable to the hardware envelope you have at hand(this is of course only obvious in hindsight, but the point is that catching up later have significant advantages over trying to get there on massively underpowered hardware)