Inspiration
StreamTogether but this time all viewers with a GPU can collaborate to produce the show.
Other existing infinite "slop" apps that have gone viral but are simply uneconomical for anyone to run, thus dampening the creative opportunities.
What it does
It produces a continuous realtime AI show, in which users can purchase or bid on different segments as well as donate GPU power to produce or upscale video clips.
In a twitch extension, viewers can vote on what prompts and starting/end frames are used to generate the clips in a twitch extension. Viewers can also donate bits through the extension to jump the line and guarantee their segment is included. The streamer can moderate and check these clips through a moderation portal.
And its all running on a highly optimized inference engine that produces the best in the world live AI video for < 2$ an hour, on 2 5090 GPUs. Other AI generation solutions cost literally thousands of dollars per day and this is multiple orders of magnitude cheaper than other solutions.
Additionally, it can even be free if a couple viewers donate GPU power through the crowdsource inference workers that run on consumer GPUs.
How we built it.
CODEX: Built entirely using codex end to end. Both in terms of planning, debugging, running, implementing. The entire thing done using codex and codex along as the AI coding tool.
Running on a vercel hosted website that creates a browser stream source for streams to put in OBS.
Created a locally run custom node, that allows viewers to see available/requested prompts and videos, and allows a user to either generate the video or upscale it, and then upload it to the site where the streamer can moderate and then stream the clip.
Has twitch extension functionally that allows a user to donate bits in order to submit a prompt to the streamer/workers as well as allows users to vote on upcoming prompts, ect.
I pulled in some existing research being done on video speed/cost optimizations. The custom video inference node used FastH3-trim. 5 Step diffusion inference. Sol attention. Custom fused kernel code. An upscale node on sol-r refinery with cached latents to speed it up even further. All of these optimizations put together reduced it from 90GB of vram, to fitting on a 4090 GPU, with 20GB of VRam. Additionally, speed optimizations allow it to run in realtime continuously on 2 5090 GPUs.
Challenges we ran into
Making local GPU inference run in a well optimized way, such that anyone can contribute their GPU power required significant optimization and implementation of ideas from research papers.
Moderation, and ensuring that video clips are safe to stream was solved via allowing mods to curate the content.
Creating worker queues that allow anyone to submit work to so the stream generation can be decentralized.
Accomplishments that we're proud of
Innovated integration of AI video with crowd sources, community prompting.
Getting best in the world live video for the 2$ an hour price point and getting inference code to run on consumer GPUs.
Using these speedups in a way where any viewer can contribute to the stream, allowing someone with even only a couple viewers to have live, continuous, AI generated video for free.
What we learned
There are a ton of low hanging fruit and research optimizations for video and nobody has put them all together in 1 place to fulling optimize video generation, and viewers/consumers have underutilized GPU hardware that can be used for something fun.
When the price point and generation problem of live AI video is solved it opens up many creative opportunities.
What's next for Slop Together
Release the app publicly, and make it installable in a couple clips, for anyone to use.
Built With
- comfyui
- diffusion
- fal.ai
- h3max