This commit is contained in:
oobabooga 2023-12-19 21:36:57 -08:00
parent 2289e9031e
commit fadb295d4d
3 changed files with 3 additions and 4 deletions

View file

@ -10,7 +10,6 @@ from TTS.api import TTS
from TTS.utils.synthesizer import Synthesizer
from modules import chat, shared, ui_chat
from modules.logging_colors import logger
from modules.ui import create_refresh_button
from modules.utils import gradio

View file

@ -27,10 +27,10 @@ def setup_logging():
def get(self):
return self.buffer
from rich.theme import Theme
from rich.logging import RichHandler
from rich.console import Console
from rich.logging import RichHandler
from rich.pretty import install as pretty_install
from rich.theme import Theme
from rich.traceback import install as traceback_install
level = logging.DEBUG

View file

@ -414,8 +414,8 @@ def ExLlamav2_HF_loader(model_name):
def HQQ_loader(model_name):
try:
from hqq.core.quantize import HQQBackend, HQQLinear
from hqq.engine.hf import HQQModelForCausalLM
from hqq.core.quantize import HQQLinear, HQQBackend
except ModuleNotFoundError:
logger.error("HQQ is not installed. You can install it with:\n\npip install hqq")
return None