Guest User

OVI Webui Manual Installation

a guest
Oct 4th, 2025
3,355
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.98 KB | None | 0 0
  1. Manual Install Method from my last Youtube video: https://youtu.be/2SvPfkXs3Nk
  2.  
  3.  
  4. Manual Installation Guide for Ovi (Windows)
  5.  
  6. Step 1: Prerequisites
  7. Install these first:
  8. - Git – https://git-scm.com/download/win
  9. - Python 3.10 (64-bit) – https://www.python.org/downloads/release/python-31011/
  10. - NVIDIA CUDA Toolkit 12.8 (or newer driver) – https://developer.nvidia.com/cuda-downloads
  11. (You don’t need to add CUDA to PATH; we use PyTorch cu128 wheels.)
  12.  
  13. Step 2: Download & Enter Ovi
  14. Open Command Prompt in the folder where you want it:
  15. git clone https://github.com/character-ai/Ovi.git
  16. cd Ovi
  17.  
  18. Step 3: Create Virtual Environment
  19. python -m venv venv
  20. CALL venv\Scripts\activate
  21.  
  22.  
  23. Step 4: Install PyTorch (CUDA 12.8 build)
  24. Known-good on Windows (Python 3.10):
  25. pip install --upgrade pip setuptools wheel
  26. pip install --index-url https://download.pytorch.org/whl/cu128 --extra-index-url https://pypi.org/simple ^
  27. torch==2.7.0+cu128 torchvision==0.22.0+cu128 torchaudio==2.7.0+cu128
  28.  
  29. Step 5: Install Ovi Dependencies
  30. pip install -r requirements.txt
  31.  
  32. Step 6: Faster Hugging Face Downloads (optional)
  33. pip install -U hf_transfer
  34.  
  35. Step 7: (Optional) FlashAttention for Speed
  36. - SKIP this on RTX 50xx / Blackwell (not compatible).
  37. - OK on 4000 series with this wheel:
  38. pip install triton-windows==3.4.0.post20
  39. pip install https://github.com/petermg/flash_attn_windows/releases/download/01/flash_attn-2.7.4.post1+cu128.torch270-cp310-cp310-win_amd64.whl
  40. If it errors, skip, Ovi still works without it.
  41.  
  42. Step 8: Download Model Weights
  43. python download_weights.py
  44.  
  45. Step 9: Download the Launcher (for next time)
  46. curl -L -o LAUNCHER-OVI.bat "https://huggingface.co/Aitrepreneur/test/resolve/main/LAUNCHER-OVI.bat?download=true"
  47.  
  48. Step 10: Run the WebUI
  49. If you’re tight on VRAM (<48 GB), add --cpu_offload.
  50. python gradio_app.py --cpu_offload
  51. Open local URL
  52.  
  53. Next time, double-click LAUNCHER-OVI.bat in the Ovi folder.
  54.  
  55.  
  56. Troubleshooting (Windows)
  57. - CUDA out of memory (OOM) → run with --cpu_offload WITH 5090 MINIMUM YOU HAVE BEEN WARNED!
  58. - nvidia-smi not found → install/update NVIDIA driver (CUDA 12.8+).
  59. - FlashAttention install fails → skip it.
  60.  
  61.  
  62.  
  63.  
  64.  
  65. Manual Installation Guide for RunPod
  66.  
  67. Step 1: Prerequisites
  68. - Create account: https://bit.ly/runpodAi
  69. - Deploy a pod with an NVIDIA GPU (≥32 GB VRAM recommended).
  70. - Open a terminal in /workspace.
  71.  
  72. Step 2: System Packages
  73. apt-get update -y
  74. apt-get install -y --no-install-recommends git git-lfs ffmpeg build-essential python3-venv curl
  75. git lfs install
  76.  
  77. Step 3: Clone & Enter Ovi
  78. cd /workspace
  79. git clone https://github.com/character-ai/Ovi.git
  80. cd Ovi
  81.  
  82. Step 4: Virtual Environment
  83. python3 -m venv .venv
  84. source .venv/bin/activate
  85. python -m pip install -U pip setuptools wheel
  86.  
  87. Step 5: Install Dependencies
  88. If your base image already has a compatible Torch/CUDA, you can skip installing Torch.
  89. Otherwise, install Torch (cu128) first, then Ovi deps:
  90. pip install --index-url https://download.pytorch.org/whl/cu128 --extra-index-url https://pypi.org/simple \
  91. torch==2.8.0+cu128 torchvision==0.23.0+cu128 torchaudio==2.8.0+cu128 || true
  92. pip install -r requirements.txt
  93.  
  94. Step 6: Faster Hugging Face Downloads (optional)
  95. pip install -U hf_transfer || true
  96. export HF_HUB_ENABLE_HF_TRANSFER=1
  97.  
  98. Step 7: (Optional) FlashAttention
  99. - Skip on RTX 50xx / Blackwell.
  100. - You can try the wheel/build; if it fails, continue without it:
  101. set +e
  102. pip install flash_attn --no-build-isolation
  103. set -e || true
  104.  
  105. Step 8: Download Weights
  106. python3 download_weights.py
  107.  
  108. Step 9: Launch
  109. export GRADIO_SERVER_NAME=0.0.0.0
  110. export GRADIO_SERVER_PORT=3000
  111. # Add --cpu_offload if VRAM is tight
  112. python3 gradio_app.py --cpu_offload
  113. Expose/forward port 3000 and open the public URL from RunPod.
  114.  
  115. Notes & Tips
  116. - <48 GB VRAM? Use --cpu_offload.
  117. - RTX 50xx / Blackwell? Don’t install FlashAttention.
  118. - Slow weights download? Ensure HF_HUB_ENABLE_HF_TRANSFER=1 and hf_transfer is installed.
  119.  
Add Comment
Please, Sign In to add comment