Add ROCm 6.2 VRAM optimization for AMD GPUs (8-16GB)#17181
Closed
darkjive wants to merge 1 commit into
Closed
Conversation
This commit adds comprehensive ROCm 6.2 support and VRAM optimization for AMD GPUs, specifically targeting systems with 8-16GB VRAM. Changes: - Updated webui.sh to use ROCm 6.2 instead of 5.7 for AMD GPUs - Added webui-user-rocm62.sh: Optimized launch script with: * PyTorch ROCm 6.2 installation command * PYTORCH_HIP_ALLOC_CONF for memory fragmentation prevention * Optimized command-line flags (--medvram, --opt-split-attention, etc.) * Detailed inline documentation - Added ROCM_VRAM_OPTIMIZATION.md: Comprehensive 400+ line guide covering: * Launch configuration and environment variables * WebUI settings optimization * Generation settings for different VRAM amounts * ControlNet optimization techniques * Recommended workflows for quality and performance * Extensive troubleshooting section * Performance benchmarks - Added README_ROCM.md: Quick start guide for ROCm setup Key optimizations: - Memory fragmentation prevention via expandable_segments - Optimal command-line arguments for 16GB VRAM - Two-phase workflow (generate at 512x512, upscale separately) - ControlNet low VRAM mode configuration - Batch processing best practices Benefits: - Prevents OOM errors on 16GB VRAM GPUs - Improved stability for long generation sessions - Better quality outputs through optimized workflows - Faster iteration with recommended settings
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.
This commit adds comprehensive ROCm 6.2 support and VRAM optimization for AMD GPUs, specifically targeting systems with 8-16GB VRAM.
Changes:
Updated webui.sh to use ROCm 6.2 instead of 5.7 for AMD GPUs
Added webui-user-rocm62.sh: Optimized launch script with:
Added ROCM_VRAM_OPTIMIZATION.md: Comprehensive 400+ line guide covering:
Added README_ROCM.md: Quick start guide for ROCm setup
Key optimizations:
Benefits:
Description
Screenshots/videos:
Checklist: