mirror of
https://github.com/1038lab/ComfyUI-QwenTTS.git
synced 2026-11-04 23:37:45 +00:00
[GH-ISSUE #4] Torch OOM when loading large text sample #4
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
1038lab/ComfyUI-QwenTTS#4
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @NullCode1337 on GitHub (Jan 25, 2026).
Original GitHub issue: https://github.com/1038lab/ComfyUI-QwenTTS/issues/4
When trying to load a large video script into text box,
the node fills up the VRAM (and has no offloading to system memory),
after which it says there is no memory available
What should be the correct way to approach this generation?
Using sample workflow with VoiceDesign and everything else bypassed

@1038lab commented on GitHub (Jan 30, 2026):
Long scripts can blow up VRAM because TTS generation scales with token length and
max_new_tokens.Recommended approach:
max_new_tokens(try 512–2048 depending on chunk length).precision=bf16on CUDA.unload_models=Trueif you’re tight on VRAM.We also provide Text Token Count (QwenTTS) which can help pick a sensible token cap.
If you tell me:
I can recommend a safe “chunk size + token cap” recipe.