Support upstream GPTQ once again. (#1451)

This commit is contained in:
USBhost 2023-04-21 10:43:56 -05:00 committed by GitHub
parent eddd016449
commit e1aa9d5173
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,7 +12,11 @@ import modules.shared as shared
sys.path.insert(0, str(Path("repositories/GPTQ-for-LLaMa"))) sys.path.insert(0, str(Path("repositories/GPTQ-for-LLaMa")))
import llama_inference_offload import llama_inference_offload
from modelutils import find_layers
try:
from modelutils import find_layers
except ImportError:
from utils import find_layers
try: try:
from quant import make_quant from quant import make_quant