Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TerminatedWorkerError on "svc pre-hubert" #106

Closed
pierluigizagaria opened this issue Mar 24, 2023 · 6 comments
Closed

TerminatedWorkerError on "svc pre-hubert" #106

pierluigizagaria opened this issue Mar 24, 2023 · 6 comments
Labels
bug Something isn't working

Comments

@pierluigizagaria
Copy link

Traceback (most recent call last):
  File "/home/ubuntu/so-vits-svc/venv/bin/svc", line 8, in <module>
    sys.exit(cli())
  File "/home/ubuntu/so-vits-svc/venv/lib/python3.10/site-packages/click/core.py", line 1130, in __call__
    return self.main(*args, **kwargs)
  File "/home/ubuntu/so-vits-svc/venv/lib/python3.10/site-packages/click/core.py", line 1055, in main
    rv = self.invoke(ctx)
  File "/home/ubuntu/so-vits-svc/venv/lib/python3.10/site-packages/click/core.py", line 1657, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/ubuntu/so-vits-svc/venv/lib/python3.10/site-packages/click/core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/ubuntu/so-vits-svc/venv/lib/python3.10/site-packages/click/core.py", line 760, in invoke
    return __callback(*args, **kwargs)
  File "/home/ubuntu/so-vits-svc/venv/lib/python3.10/site-packages/so_vits_svc_fork/__main__.py", line 523, in pre_hubert
    preprocess_hubert_f0(
  File "/home/ubuntu/so-vits-svc/venv/lib/python3.10/site-packages/so_vits_svc_fork/preprocess_hubert_f0.py", line 102, in preprocess_hubert_f0
    Parallel(n_jobs=n_jobs)(
  File "/home/ubuntu/so-vits-svc/venv/lib/python3.10/site-packages/joblib/parallel.py", line 1098, in __call__
    self.retrieve()
  File "/home/ubuntu/so-vits-svc/venv/lib/python3.10/site-packages/joblib/parallel.py", line 975, in retrieve
    self._output.extend(job.get(timeout=self.timeout))
  File "/home/ubuntu/so-vits-svc/venv/lib/python3.10/site-packages/joblib/_parallel_backends.py", line 567, in wrap_future_result
    return future.result(timeout=timeout)
  File "/usr/lib/python3.10/concurrent/futures/_base.py", line 458, in result
    return self.__get_result()
  File "/usr/lib/python3.10/concurrent/futures/_base.py", line 403, in __get_result
    raise self._exception
joblib.externals.loky.process_executor.TerminatedWorkerError: A worker process managed by the executor was unexpectedly terminated. This could be caused by a segmentation fault while calling the function or by an excessive memory usage causing the Operating System to kill the worker.

I'm trying to train a model using WSL on windows with ROCm for AMD GPUs.
I'm getting this error when running the svc pre-hubert command.
How can I limit the RAM used?

@pierluigizagaria pierluigizagaria added the bug Something isn't working label Mar 24, 2023
@BlueAmulet
Copy link
Collaborator

You can reduce the number of workers by passing -n # to the command, personally I use -n 2 otherwise I run out of memory

@pierluigizagaria
Copy link
Author

Thank you! Unfortunately I discovered that ROCm does not work on WSL installations.

@34j
Copy link
Collaborator

34j commented Mar 25, 2023

Would you mind trying this version?

@pierluigizagaria
Copy link
Author

Sure, how can I easily install it?

@34j
Copy link
Collaborator

34j commented Mar 25, 2023

@34j
Copy link
Collaborator

34j commented Mar 26, 2023

Migrate to #120

@34j 34j closed this as not planned Won't fix, can't repro, duplicate, stale Mar 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants