From d15ac177bb6588c885f41129d81d82a82c81ce7e Mon Sep 17 00:00:00 2001 From: Jael Gu Date: Thu, 30 Mar 2023 11:01:08 +0800 Subject: [PATCH] Update accelerate Signed-off-by: Jael Gu --- auto_transformers.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/auto_transformers.py b/auto_transformers.py index b4055ce..1a06d98 100644 --- a/auto_transformers.py +++ b/auto_transformers.py @@ -25,7 +25,11 @@ from transformers import AutoTokenizer, AutoConfig, AutoModel, AutoModelForMaske from towhee.operator import NNOperator from towhee import register -# from towhee.dc2 import accelerate +try: + from towhee import accelerate +except: + def accelerate(func): + return func import warnings import logging