Skip to content

refactor(audio-gen): apply backend review feedback to ThinkSound and ACE-Step#2594

Merged
fl0rianr merged 1 commit into
lemonade-sdk:mainfrom
pwilkin:refactor/backend-env-review
Jul 8, 2026
Merged

refactor(audio-gen): apply backend review feedback to ThinkSound and ACE-Step#2594
fl0rianr merged 1 commit into
lemonade-sdk:mainfrom
pwilkin:refactor/backend-env-review

Conversation

@pwilkin

@pwilkin pwilkin commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Applies the review feedback from #2580 (superm1) to the already-merged audio-generation backends, matching the changes made on the OpenMOSS (#2580) and Trellis (#2581) PRs:

  • Split the combined ROCm/CUDA env setup into explicit per-backend branches
  • Raise UnsupportedOperationException instead of silently defaulting to vulkan when no supported backend is detected
  • Unnamed unused parameters instead of (void) casts

… error

Applies the review feedback from lemonade-sdk#2580 to the merged ThinkSound and
ACE-Step backends: separate ROCm and CUDA loader-path branches, an
UnsupportedOperationException instead of a blind vulkan fallback when no
compatible GPU backend is detected, and unnamed unused parameters instead
of (void) casts.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EbpKMPt3rkoxTRJMaDwWXv
@github-actions github-actions Bot added the enhancement New feature or request label Jul 8, 2026

@fl0rianr fl0rianr left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for going after this.

Small wording / intent clarification: this change looks consistent with the existing backend-selection flow to me. It removes the unconditional fallback to vulkan when get_supported_backends() returns no candidates, while still allowing vulkan when system-info considers it supported.

One small nuance: Lemonade’s Vulkan support rows intentionally include cpu/x86_64 in some recipes as a proxy for generic Vulkan-capable systems / iGPU paths, not necessarily as a pure CPU backend. sd-cpp uses the same pattern, while also having a dedicated cpu backend.

So I think the code is fine, but the PR description / error text might be slightly clearer as “no supported backend detected” rather than “no supported GPU backend detected”. Otherwise it can sound like Vulkan should only count when an explicit AMD/NVIDIA GPU is detected, which is not quite how Lemonade models Vulkan today.

@pwilkin

pwilkin commented Jul 8, 2026

Copy link
Copy Markdown
Contributor Author

Aight, changed it :)

@fl0rianr fl0rianr left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was a bit nitty but I thought letting you know this had it's worth on its own. Approving.

@fl0rianr fl0rianr added this pull request to the merge queue Jul 8, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jul 8, 2026
@fl0rianr fl0rianr added this pull request to the merge queue Jul 8, 2026
Merged via the queue into lemonade-sdk:main with commit 2515773 Jul 8, 2026
83 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants