text-embedding
copied
enable acc
Signed-off-by: junjie.jiang <junjie.jiang@zilliz.com>
@ -56,7 +56,7 @@ def create_model(model_name, checkpoint_path, device):
return model
# @accelerate
@accelerate
class Model:
def __init__(self, model_name, checkpoint_path, device):
self.device = device