#
Applio Lightning Ai
Last update: May 5, 2025

#
Introduction
Lightning.Ai 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 with tons of VRAM.
Lightning doesn't have the best GPU hours but it does have the best GPUs out of all the other cloud options.
#
Pros & Cons
The pros & cons are subjective to your necessities.
- Has good GPU's.
- Has lots of VRAM
- TensorBoard included.
- You can leave training unsupervised.
- Takes some time to set up.
- Needs a phone number.
- Low GPU time depending on what GPU you choose.
- 2-3 Day verification wait time.
#
#
How to Setup
#
1. Set up Account.
- First make an acount with Lightning Ai
- Make sure you verify yourself with a phone number. Once you've done that you will get an email that looks like this:
You will need to wait 2-3 business days to become fully verified
- Once you are verified Lightning Ai will send you a email that conatins this:
#
#
2. Notebook and Setup.
Once you have become verified click this link and it should take you to your home page so you can create a notebook.
In the top right click
New Studio
- Set the studio type to code, teamspace to vision model and select any gpu you want for the machine. Click create when you've selected everything
- Once you are in the notebook go to the left side right under
main.py
and right click. SelectNew Notebook
.
- Select python 3 for your kernal.
- In the first cell paste in the code from this code block:
import sys
from IPython.display import clear_output
import codecs
import os
encoded_url = "uggcf://tvguho.pbz/VNUvfcnab/Nccyvb/"
decoded_url = codecs.decode(encoded_url, "rot_13")
repo_name_encoded = "Nccyvb"
repo_name = codecs.decode(repo_name_encoded, "rot_13")
!pip install -q uv
!git clone --depth 1 {decoded_url} --branch 3.2.9 --single-branch
%cd {repo_name}
clear_output()
print("Installing requirements...")
!uv pip install torch==2.7.0 torchvision torchaudio==2.7.0 \
--index-url https://download.pytorch.org/whl/cu128 \
-q
!uv pip install -r requirements.txt -q
!uv pip install pyngrok -q
clear_output()
print("✅ Finished installing requirements!")
- Click the run button once you've pasted the code.
- When it's done it will say
Finished installing requirements!
. When it says that paste in this second code block in another cell.
import codecs
import threading
import urllib.request
import time
import ipywidgets as widgets
from IPython.display import display
import os
from pyngrok import ngrok
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'
method = "gradio" # @param ["gradio", "localtunnel", "ngrok"]
ngrok_token = "If you selected the 'ngrok' method, obtain your auth token here: https://dashboard.ngrok.com/get-started/your-authtoken" # @param {type:"string"}
tensorboard = True #@param {type: "boolean"}
def start_gradio():
!python app.py --listen --share
def start_localtunnel():
!npm install -g localtunnel &>/dev/null
with open('url.txt', 'w') as file:
file.write('')
get_ipython().system_raw('lt --port 6969 >> url.txt 2>&1 &')
time.sleep(2)
endpoint_ip = urllib.request.urlopen('https://ipv4.icanhazip.com').read().decode('utf8').strip("\n")
with open('url.txt', 'r') as file:
tunnel_url = file.read()
tunnel_url = tunnel_url.replace("your url is: ", "")
print(f"Share Link: \033[0m\033[93m{tunnel_url}\033[0m", end="\033[0m\n")
password_endpoint_widget = widgets.Text(
value=endpoint_ip,
description='Password IP:',
disabled=True
)
display(password_endpoint_widget)
!python app.py --listen
def start_ngrok():
try:
ngrok.set_auth_token(ngrok_token)
ngrok.kill()
tunnel = ngrok.connect(6969)
print(f"Ngrok URL: \033[0m\033[93m{tunnel.public_url}\033[0m", end="\033[0m\n")
!python app.py --listen
except Exception as e:
print(f"Error starting ngrok: {e}")
def start_applio():
if method == 'gradio':
start_gradio()
elif method == 'localtunnel':
start_localtunnel()
elif method == 'ngrok':
start_ngrok()
if tensorboard:
%load_ext tensorboard
%reload_ext tensorboard
%tensorboard --logdir logs --bind_all
if "autobackups" not in globals():
autobackups = False
if autobackups:
thread = threading.Thread(target=backup_files)
thread.start()
thread_applio = threading.Thread(target=start_applio)
thread_applio.start()
while True:
time.sleep(5)
- Once again click the run button when you've pasted this code in another cell.
#
#
Using Applio
#
#
1. Open the Gardio link.
- To access Applio's UI click on the link next to
Running on public URL:
, after that it is basically the same as using Applio locally or on other cloud platforms.
#
2. Accessing Files.
- To upload a dataset, upload audio or anything else find the
Teamspace Drive
button on the right and click it.
The path to Applio is Studio > this_studio > Applio > Applio
Once you're there you can just drag and drop files.
To download files click on the file then click the three dots on the right of it and click download
#
3. Opening the Tensor Board.
- Find the Tensor board icon on the right side bar and click it.
- Once you've done that it will open the Tensor board. To learn how to use it go here
#
4. Opening the notebook.
- If you want to go back to the notebook simply click on the
Jupyter
icon on the right.
#
#
How to use Better GPUs
#
#
1. Swapping GPUs.
- To swap GPUs go to the GPU icon the the righ and click it.
- Then click on
GPU
and it will show you a list of GPUs you can use by clicking on them and then clicking request.
Here is a list of how long you can use each GPU before running out of hours.
- 22 hours monthly of T4 16gb
- 21 hours monthly of L4 24gb
- 8 hours monthly of A10G 24gb
- 6 hours monthly of L40 48gb