logo
Browse Source

Change accelerate to comment since not yet supported in latest release

Signed-off-by: Jael Gu <mengjia.gu@zilliz.com>
main
Jael Gu 2 years ago
parent
commit
082f59f277
  1. 4
      auto_transformers.py

4
auto_transformers.py

@ -22,7 +22,7 @@ from transformers import AutoTokenizer, AutoModel, AutoModelForMaskedLM, AutoMod
from towhee.operator import NNOperator
from towhee import register
from towhee.dc2 import accelerate
# from towhee.dc2 import accelerate
import warnings
import logging
@ -35,7 +35,7 @@ log = logging.getLogger('run_op')
warnings.filterwarnings('ignore')
@accelerate
# @accelerate
class Model:
def __init__(self, model_name, device, checkpoint_path):
try:

Loading…
Cancel
Save