reduce demucs memory usage - #1918
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
audio_processing/demucs の ailia 推論時に memory_mode を明示設定し、Vulkan(FP32) 推論における VRAM 使用量を大幅に削減して推論完走性を改善する PR です。
Changes:
ailia.get_memory_mode(...)を用いたメモリ最適化設定を追加ailia.Net(...)生成時にmemory_modeを渡すよう変更(ONNX Runtime 経路は変更なし)
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
kyakuno
approved these changes
Aug 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
audio_processing/demucs のメモリ使用量を抑制する PR です。
本 PR 適用前は Vulkan(FP32) 推論で 30GB 程度の VRAM を要求していたのが、8GB 未満で全体推論が完走するようになります。