#
Mainline Kaggle
Last update: Oct 23, 2024

#
Introduction
Kaggle is a cloud platform for using AI apps, powered by virtual machines with powerful GPU's.
It's a great alternative for training RVC voice models through the cloud, since it has the best GPUs.
You only get 30 free GPU hours per week.
#
Pros & Cons
The pros & cons are subjective to your necessities.
- Has good GPU's
- Has 30 GPU hours
- Fast
- TensorBoard included
- You can leave training unsupervised.
- Takes some time to set up.
- Doesn't have Mangio-Crepe
#
#
How to Setup
#
#
1. Set up account.
Start by making an account here.
Verify your acount with a phone number so you can turn on the "internet" option.

#
#
2. Clone notebook and setup.
Go to Hina's mainline notebook and click "Copy and Edit"
Under session settings in the sidebar turn on "internet". Make sure persistance is on for both files and varibles.
Turn on T4 X2 GPUs in accelerator.
d: (Optional) Turn on headless mode so you can run so you can run the GPU on all sessions and save your progress. Go to the top right and click "Save version" then open the advanced dropdown.

Warning
Your runtime will continue draining when you're not running any cells with this option on.
#
#
3. Ngrok.
Scroll down to the fifth cell and you should see a section where you put your ngrok token. If you dont have a ngrok acount sign up here.
2. Once you have an acount you can authenticate your ngrok tunnel agent here: https://dashboard.ngrok.com/get-started/your-authtoken
put the Ngrok token in the quotation marks like so:
Warning
There is a monthly limit rate with Ngrok so dont be supprised if training is suddenly interrupted.
#
#
3. Starting the Cells.
- From top to bottom execute all the cells. With first being:

- The second cell will take ~5 minutes to load.

- when its finished it will look like this:

- If you want to use a pretrain now is the time to download it. Add a new code cell and type this in then run it:

#
!wget LINK TO PRETRAIN
- Run the third cell.

- Once you run the final cell it will give you three links.

RVC url: is to open RVC's gui.
File url: is to open Imjoy Elfinder gui.
Tensorboard: is to open the Tensorboard.
#
The Imjoy Elfinder WebGUI
The interface should look like this with your D and G files being located here. Here you can manage your files within Kaggle. Whenever you want to download files from the Imjoy GUI just double click. Downloading files uses up the Ngrok bandwith data.

#
#
Starting RVC
#
#
1. Click the RVC link.
It should take you to the GUI where you can then go to the top and click the 'Train' tab.

#
2. Setup.
- Run through the normal RVC setup with setting your model name, sample rate and such. If you are unable to see the 32k sample rate click on V1 then swap back to V2.
Only use V2 Don't use V1 or you will get an error.
- In the file manager create a folder named
dataset
anywhere then drag and drop your dataset in it. Then continue with normal RVC setup and training
#
3. Syncing Graphs.
- For syncing graphs you need to train however many epochs you have set you save frequency then go into the file manager and find your model which should be in
assest/weights
, in its name it should have a step count and epoch count like this:model_name_e(number)_s(number)
.
E means epochs and S means steps.
- Once you know how many steps the model trained for stop training the model by stopping the cell.

- Then start the same cell and open the file manager and navigate to
assest/weights
and delete all of your previous models.

- Then navigate to the 32k.json file which is located in the V2 folder of /configs and download it by double clicking it, then delete it.

- Open the file you have just downloaded in notepad and edit
log_interval
to the amount of steps your model took, save it then replace the old 32k.json file.

- Now go to your /logs/ folder and do the same thing. Modify the log interval of the config.json with your step count. Delete the config.json that's already in the /logs/ folder and replace it with your copy.

- Now delete
Eval folder, tf-events file, G & D_23333333 files and train log file
in /logs/ folder.
#
4. Resuming Training.
- Do not process and feature extract again because those files are already in the /logs/ folder. Use the same model name, sample rate, batch size, pretrain, and save frequency to train the model again in the RVC GUI.