Fix version string with rocm

This commit is contained in:
Zuellni
2023-09-26 10:12:34 +02:00
parent 3e4428d83c
commit 8cd538d470
3 changed files with 3 additions and 4 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
# ComfyUI ExLlama Nodes
A simple prompt generator for [ComfyUI](https://github.com/comfyanonymous/ComfyUI) using [ExLlama](https://github.com/turboderp/exllama).
A simple prompt generator for [ComfyUI](https://github.com/comfyanonymous/ComfyUI) utilizing [ExLlama](https://github.com/turboderp/exllama).
## Installation
Clone the repository to `custom_nodes` in your ComfyUI directory and install dependencies:
+2 -2
View File
@@ -6,9 +6,9 @@ from colorama import Fore
from comfy.utils import ProgressBar
if not torch.cuda.is_available():
raise Exception(f"\n{Fore.RED}No CUDA detected. ExLlama doesn't support CPU.{Fore.RESET}")
raise Exception(f"\n{Fore.RED}ExLlama doesn't support CPU mode.{Fore.RESET}")
cuda = torch.version.cuda.replace(".", "")
cuda = str(torch.version.cuda or torch.version.hip).replace(".", "")
pckg = f"cu{cuda}-cp{sys.version_info.major}{sys.version_info.minor}"
try:
-1
View File
@@ -19,7 +19,6 @@ app.registerExtension({
for (let i = position; i < this.widgets.length; i++) {
this.widgets[i].onRemove?.();
}
this.widgets.length = position;
}