[GH-ISSUE #278] Does rvc support training with cpu? #136

Open
opened 2026-10-20 09:55:48 +00:00 by bsakaguchi · 19 comments
Owner

Originally created by @c469591 on GitHub (May 13, 2023).
Original GitHub issue: https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI/issues/278

Hello, may I ask if RVC supports training with CPU? Because I don't have a separate graphics card, and I encountered an error in the second step of training, which showed "slow_conv2d_cpu" not implemented for 'Half'. Thank you!

Originally created by @c469591 on GitHub (May 13, 2023). Original GitHub issue: https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI/issues/278 Hello, may I ask if RVC supports training with CPU? Because I don't have a separate graphics card, and I encountered an error in the second step of training, which showed "slow_conv2d_cpu" not implemented for 'Half'. Thank you!
Author
Owner

@kalomaze commented on GitHub (May 13, 2023):

CPU inference of most AI models is already pretty slow as is. I don't think there is any popular machine learning software that has CPU training as an option. It would probably take weeks to get a decent result.

<!-- gh-comment-id:1546737916 --> @kalomaze commented on GitHub (May 13, 2023): CPU inference of most AI models is already pretty slow as is. I don't think there is any popular machine learning software that has CPU training as an option. It would probably take weeks to get a decent result.
Author
Owner

@fumiama commented on GitHub (May 14, 2023):

Maybe add later.

<!-- gh-comment-id:1546928225 --> @fumiama commented on GitHub (May 14, 2023): Maybe add later.
Author
Owner

@justinjohn0306 commented on GitHub (May 14, 2023):

@c469591 use google colab

<!-- gh-comment-id:1546929751 --> @justinjohn0306 commented on GitHub (May 14, 2023): @c469591 use google colab
Author
Owner

@fumiama commented on GitHub (May 15, 2023):

Yes, that's also a solution.

<!-- gh-comment-id:1547198204 --> @fumiama commented on GitHub (May 15, 2023): Yes, that's also a solution.
Author
Owner

@c469591 commented on GitHub (May 15, 2023):

I still hope this will be added to the new version.
Thanks!

<!-- gh-comment-id:1547221874 --> @c469591 commented on GitHub (May 15, 2023): I still hope this will be added to the new version. Thanks!
Author
Owner

@Sovenok-Hacker commented on GitHub (Jul 12, 2023):

I still hope this will be added to the new version. Thanks!

Yes. I have the same problem. I want to train a model but I don`t have a GPU.

<!-- gh-comment-id:1632758114 --> @Sovenok-Hacker commented on GitHub (Jul 12, 2023): > I still hope this will be added to the new version. Thanks! Yes. I have the same problem. I want to train a model but I don`t have a GPU.
Author
Owner

@RonFusaishi commented on GitHub (Sep 2, 2023):

considering google now banning RVC code, i think something like this is better than nothing.

<!-- gh-comment-id:1703826188 --> @RonFusaishi commented on GitHub (Sep 2, 2023): considering google now banning RVC code, i think something like this is better than nothing.
Author
Owner

@Sovenok-Hacker commented on GitHub (Sep 2, 2023):

considering google now banning RVC code, i think something like this is better than nothing.

Google is nuts

<!-- gh-comment-id:1703836606 --> @Sovenok-Hacker commented on GitHub (Sep 2, 2023): > considering google now banning RVC code, i think something like this is better than nothing. Google is nuts
Author
Owner

@RonFusaishi commented on GitHub (Sep 2, 2023):

Google is nuts

google and greed are one of the same thing unfortunately, you can still run it but only if you have a colab pro.

I personally blame the influx of zoomers abusing the damn thing just to spam youtube with their degenerate garbage, i saw this coming from a mile away.

<!-- gh-comment-id:1703847213 --> @RonFusaishi commented on GitHub (Sep 2, 2023): > Google is nuts google and greed are one of the same thing unfortunately, you can still run it but only if you have a colab pro. I personally blame the influx of zoomers abusing the damn thing just to spam youtube with their degenerate garbage, i saw this coming from a mile away.
Author
Owner

@yapvoonyee commented on GitHub (Sep 8, 2023):

I would like a cpu only version because I have an intel GPU.

<!-- gh-comment-id:1711123733 --> @yapvoonyee commented on GitHub (Sep 8, 2023): I would like a cpu only version because I have an intel GPU.
Author
Owner

@fumiama commented on GitHub (Sep 8, 2023):

I would like a cpu only version because I have an intel GPU.

You can try the dml or wait #278

<!-- gh-comment-id:1711743708 --> @fumiama commented on GitHub (Sep 8, 2023): > I would like a cpu only version because I have an intel GPU. You can try the `dml` or wait #278
Author
Owner

@loboere commented on GitHub (Sep 22, 2023):

I have a GPU and I want to infer with a CPU, because my GPU gives cuda errors, is there any parameter so that RVC does not detect the GPU?

<!-- gh-comment-id:1731777127 --> @loboere commented on GitHub (Sep 22, 2023): I have a GPU and I want to infer with a CPU, because my GPU gives cuda errors, is there any parameter so that RVC does not detect the GPU?
Author
Owner

@LoloCodes commented on GitHub (Oct 5, 2023):

so can we use cpus to train or not?

<!-- gh-comment-id:1749126478 --> @LoloCodes commented on GitHub (Oct 5, 2023): so can we use cpus to train or not?
Author
Owner

@treya-lin commented on GitHub (Nov 9, 2023):

It can. At least worked when tested on my linux server.
My server actually has gpu on it. To disable gpu, I added os.environ["CUDA_VISIBLE_DEVICES"] = "-1" before importing torch in infer/modules/train/train.py

from infer.lib.train import utils

hps = utils.get_hparams()
# os.environ["CUDA_VISIBLE_DEVICES"] = hps.gpus.replace("-", ",")
os.environ["CUDA_VISIBLE_DEVICES"] = "-1" # set this to "-1" if you wanna test cpu training on a server with gpu. Training with cpu does work, but it is extremely slow.

As for the speed, according to my very brief experience, for an epoch which costs 20s on a 1080 Ti GPU, it took about 2min on cpu.

<!-- gh-comment-id:1803612489 --> @treya-lin commented on GitHub (Nov 9, 2023): It can. At least worked when tested on my linux server. My server actually has gpu on it. To disable gpu, I added `os.environ["CUDA_VISIBLE_DEVICES"] = "-1"` before importing torch in `infer/modules/train/train.py` ``` from infer.lib.train import utils hps = utils.get_hparams() # os.environ["CUDA_VISIBLE_DEVICES"] = hps.gpus.replace("-", ",") os.environ["CUDA_VISIBLE_DEVICES"] = "-1" # set this to "-1" if you wanna test cpu training on a server with gpu. Training with cpu does work, but it is extremely slow. ``` As for the speed, according to my very brief experience, for an epoch which costs 20s on a 1080 Ti GPU, it took about 2min on cpu.
Author
Owner

@PurpBatBoi commented on GitHub (Jan 25, 2024):

It can. At least worked when tested on my linux server. My server actually has gpu on it. To disable gpu, I added os.environ["CUDA_VISIBLE_DEVICES"] = "-1" before importing torch in infer/modules/train/train.py

from infer.lib.train import utils

hps = utils.get_hparams()
# os.environ["CUDA_VISIBLE_DEVICES"] = hps.gpus.replace("-", ",")
os.environ["CUDA_VISIBLE_DEVICES"] = "-1" # set this to "-1" if you wanna test cpu training on a server with gpu. Training with cpu does work, but it is extremely slow.

As for the speed, according to my very brief experience, for an epoch which costs 20s on a 1080 Ti GPU, it took about 2min on cpu.

slow but still useful to ppl who wanna make models

<!-- gh-comment-id:1911185272 --> @PurpBatBoi commented on GitHub (Jan 25, 2024): > It can. At least worked when tested on my linux server. My server actually has gpu on it. To disable gpu, I added `os.environ["CUDA_VISIBLE_DEVICES"] = "-1"` before importing torch in `infer/modules/train/train.py` > > ``` > from infer.lib.train import utils > > hps = utils.get_hparams() > # os.environ["CUDA_VISIBLE_DEVICES"] = hps.gpus.replace("-", ",") > os.environ["CUDA_VISIBLE_DEVICES"] = "-1" # set this to "-1" if you wanna test cpu training on a server with gpu. Training with cpu does work, but it is extremely slow. > ``` > > As for the speed, according to my very brief experience, for an epoch which costs 20s on a 1080 Ti GPU, it took about 2min on cpu. slow but still useful to ppl who wanna make models
Author
Owner

@PurpBatBoi commented on GitHub (Jan 25, 2024):

I would like a cpu only version because I have an intel GPU.

You can try the dml or wait #278

what is 'dml'?

<!-- gh-comment-id:1911185617 --> @PurpBatBoi commented on GitHub (Jan 25, 2024): > > I would like a cpu only version because I have an intel GPU. > > You can try the `dml` or wait #278 what is 'dml'?
Author
Owner

@thefellaguy commented on GitHub (May 14, 2024):

I'm know I'm late to the game, but I've trained on CPU only with no issues. I let it run on all night on 6 cores and it gets the job done in 8-10 hours on harvest. Converting audio is about a 1:2 ratio. a 10 audio clip tales about 20 seconds to convert.

<!-- gh-comment-id:2109192514 --> @thefellaguy commented on GitHub (May 14, 2024): I'm know I'm late to the game, but I've trained on CPU only with no issues. I let it run on all night on 6 cores and it gets the job done in 8-10 hours on harvest. Converting audio is about a 1:2 ratio. a 10 audio clip tales about 20 seconds to convert.
Author
Owner

@GOSFO commented on GitHub (Aug 23, 2024):

I'm know I'm late to the game, but I've trained on CPU only with no issues. I let it run on all night on 6 cores and it gets the job done in 8-10 hours on harvest. Converting audio is about a 1:2 ratio. a 10 audio clip tales about 20 seconds to convert.

How did you configure your rvc?

<!-- gh-comment-id:2307631626 --> @GOSFO commented on GitHub (Aug 23, 2024): > I'm know I'm late to the game, but I've trained on CPU only with no issues. I let it run on all night on 6 cores and it gets the job done in 8-10 hours on harvest. Converting audio is about a 1:2 ratio. a 10 audio clip tales about 20 seconds to convert. How did you configure your rvc?
Author
Owner

@avachon100510 commented on GitHub (Dec 24, 2024):

I would like a cpu only version because I have an intel GPU.

You can try the dml or wait #278

what is 'dml'?

DirectML, or Direct Machine Learning.

<!-- gh-comment-id:2561255571 --> @avachon100510 commented on GitHub (Dec 24, 2024): > > > I would like a cpu only version because I have an intel GPU. > > > > > > You can try the `dml` or wait #278 > > what is 'dml'? DirectML, or Direct Machine Learning.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
RVC-Project/Retrieval-based-Voice-Conversion-WebUI#136
No description provided.