Add optimized inference scripts, memory utilities, and Studio documentation #73
+1,388
−239
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This commit introduces the core optimized scripts and documentation for the TurboDiffusion framework:
TurboDiffusionStudio: (turbo_diffusion_t5_cache_optimize_v6.py) A unified Gradio-based Web interface for both Text-to-Video and Image-to-Video generation
All scripts include optimizations co-developed by Waverly Edwards and Google Gemini, and received support (cache_t5.py) by Johhn D. Pope, to maximize performance on consumer GPUs.
I was able to run this on a 5090, maxing out at 117 frames in 136 seconds (I2V) and 160 seconds (T2V), 16:9 aspect ratio using sagesla attention. Technically the T2V can be done in 126 seconds, using sla attention but I cant explain why sagesla seems to always outperform sla, except in this instance.
To reproduce without the gradio interface, utilize the committed files and this attached metadata, which can be used as a script.
t2v_20260101_085350_metadata.txt

i2v_20260101_063848_metadata.txt
(This is the original image used for I2V)
There are three anomalies.