VisoMaster icon indicating copy to clipboard operation
VisoMaster copied to clipboard

RTX 5000 series FIXED

Open tehMArs opened this issue 3 weeks ago • 1 comments

VisoMaster on RTX 50-series (Blackwell) — how-to

Stock requirements_cu124.txt pins torch cu124 — no kernels for sm_120, so the app crashes or runs on CPU. The steps below replace it with a working stack. Tested: Windows, conda, Python 3.10, RTX 5070 Ti.

:: 1. fresh env
conda create -n visomaster python=3.10 -y
conda activate visomaster

:: 2. app + dependencies (installs torch cu124 — replaced in step 3)
git clone https://github.com/visomaster/VisoMaster.git
cd VisoMaster
pip install -r requirements_cu124.txt

:: 3. replace broken GPU stack with Blackwell builds (also cleans any pre-installed torch)
pip uninstall -y torch torchvision torchaudio onnxruntime-gpu tensorrt tensorrt-cu12_libs tensorrt-cu12_bindings
pip install torch==2.11.0+cu128 torchvision==0.26.0+cu128 torchaudio==2.11.0+cu128 --index-url https://download.pytorch.org/whl/cu128
pip install onnxruntime-gpu==1.23.2

:: 4. optional: TensorRT mode (skip if you only use CUDA)
pip install --extra-index-url https://pypi.nvidia.com tensorrt-cu12_bindings==10.9.0.34 tensorrt-cu12_libs==10.9.0.34

  1. Paste this whole block into PowerShell (not cmd). It writes two small files into the env's site-packages — the content below is exactly what gets written. visomaster_env_fixes.py adds torch's CUDA DLL folder to PATH so onnxruntime finds them; ort_cuda_path.pth runs it on every python start and pre-imports typing_extensions (PySide6 / Python 3.10 bug workaround).
$sp = python -c "import sysconfig; print(sysconfig.get_paths()['purelib'])"
@'
import os

_here = os.path.dirname(os.path.abspath(__file__))
for _d in (os.path.join(_here, "torch", "lib"), os.path.join(_here, "tensorrt_libs")):
    if os.path.isdir(_d) and _d not in os.environ.get("PATH", "").split(os.pathsep):
        os.environ["PATH"] = _d + os.pathsep + os.environ.get("PATH", "")
'@ | Set-Content "$sp/visomaster_env_fixes.py"
@'
import visomaster_env_fixes
import typing_extensions
'@ | Set-Content "$sp/ort_cuda_path.pth"

:: 6. verify (expect: True NVIDIA GeForce RTX 5070 Ti / CUDAExecutionProvider in list)
python -c "import torch; print(torch.cuda.is_available(), torch.cuda.get_device_name(0))"
python -c "import onnxruntime as ort; print(ort.get_available_providers())"

:: 7. run
Start.bat

Notes:

  • Models: download the assets from the visomaster-assets release and extract into VisoMaster\dependencies\ (one-time).
  • Provider: Settings → General → Providers Priority → CUDA (default) or TensorRT (first run per model builds an engine ~30–40 s, cached in tensorrt-engines\). Do not use "TensorRT-Engine" on 50-series — its prebuilt engines are for older architectures.
  • If startup is slow once: normal, one-time JIT/engine build per model.
  • OOM at startup: close other GPU apps (local LLM servers etc.) and retry.

tehMArs avatar Nov 13 '26 09:11 tehMArs

https://github.com/VisoMasterFusion/VisoMaster-Fusion Step by step guide to install Conda and Visomaster for RTX 50xx series

JinJomes avatar Nov 13 '26 22:11 JinJomes