Fix dtype mismatch in AudioVAE.encode for bf16/fp16 audio VAE#14804
Fix dtype mismatch in AudioVAE.encode for bf16/fp16 audio VAE#14804Vek-Snap wants to merge 1 commit into
Conversation
Vek-Snap
commented
Jul 7, 2026
|
✅ All contributors have signed the CLA. Thank you! This PR is ready to be merged. |
|
I have read and agree to the Contributor License Agreement |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📜 Recent review details
|
| File | Change Summary |
|---|---|
| comfy/ldm/lightricks/vae/audio_vae.py | Cast mel_spec to the encoder's parameter dtype prior to encoding |
Sequence Diagram(s)
Not applicable — the change is a small dtype-casting adjustment within an existing function and does not alter control flow or component interactions.
Estimated code review effort: 1 (~2 minutes)
Related issues: None provided.
Related PRs: None provided.
Suggested labels: None provided.
Suggested reviewers: None provided.
Poem: A rabbit hopped by the audio stream, cast a dtype to match the dream, mel spectrograms now align, with encoder weights, all in a line, a tiny fix, a tidy gleam.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
| Check name | Status | Explanation |
|---|---|---|
| Title check | ✅ Passed | The title clearly describes the main change: fixing a dtype mismatch in AudioVAE.encode for bf16/fp16 models. |
| Description check | ✅ Passed | The description matches the implemented fix and explains the dtype mismatch and casting change accurately. |
| Docstring Coverage | ✅ Passed | No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. |
| Linked Issues check | ✅ Passed | Check skipped because no linked issues were found for this pull request. |
| Out of Scope Changes check | ✅ Passed | Check skipped because no linked issues were found for this pull request. |
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Comment @coderabbitai help to get the list of available commands.