We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 033a8a4 commit f148354Copy full SHA for f148354
backend/app/services/music_service.py
@@ -805,7 +805,7 @@ def _pad_audio_token(token):
805
callback(progress, f"Generating audio... {i + 1}/{max_audio_frames} frames")
806
807
# Stack frames and explicitly preserve torch.long dtype (critical for MPS compatibility)
808
- # torch.stack may promote dtype to float on MPS, so we explicitly convert to long before CPU
+ # Explicitly ensure torch.long dtype is preserved (defensive fix for potential MPS backend issues)
809
frames = torch.stack(frames).permute(1, 2, 0).squeeze(0).to(dtype=torch.long).cpu()
810
811
# Sequential offload: Move HeartMuLa to CPU before loading HeartCodec
0 commit comments