unload_tts() doesnt unload the voice model from video memory #349
Labels
No Label
bug
duplicate
enhancement
help wanted
insufficient info
invalid
news
not a bug
question
wontfix
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: mrq/ai-voice-cloning#349
Loading…
Reference in New Issue
Block a user
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?
hi,
noticed that there seems to be an issue with unload_tts() not removing the model from the video memory.
i've noticed that the main python process took 4GB video memory while training + the training thread taking another 6GB
starting the webui with
--defer-tts-load
parameter results in the kinda expected behavior, (the main thread still uses ~100MB video memory, but that's pretty much nothing compared to 4GB...)edit: all of the above was only tested with tortoise
I'm pretty sure there's a magical Python issue where this isn't actually working as intended. I remember that
Defer TTS Load
is pretty much a requirement for the non-TTS tasks (transcription, training) because of this issue.I'm not really sure what to do about it outside of moving the
tts.autoregressive_model
and company to cpu withtts.autoregressive_model.cpu()
before the delete and crossing my fingers.i tried to find the root of the problem, but haven't succeed yet. thought you might have an idea.
is run_training() maybe already called on another thread/process and therefor not able to release the resources of the main thread?did some tests and the process id for run_training() is the same as for the main thread, so it should be fine