mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Fallback to transformers if hf_bleeding_edge not available
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
import os, sys
|
||||
from typing import Optional
|
||||
from hf_bleeding_edge import AutoConfig
|
||||
try:
|
||||
from hf_bleeding_edge import AutoConfig
|
||||
except ImportError:
|
||||
from transformers import AutoConfig
|
||||
|
||||
import warnings
|
||||
import utils
|
||||
|
Reference in New Issue
Block a user