logo
Browse Source

Deal with model & Model

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

4
auto_transformers.py

@ -25,7 +25,6 @@ from transformers import AutoTokenizer, AutoConfig, AutoModel
from towhee.operator import NNOperator
from towhee import register
# from towhee.serve.triton.triton_client import TritonClient
# from towhee.dc2 import accelerate
import warnings
@ -132,9 +131,6 @@ class AutoTransformers(NNOperator):
@property
def _model(self):
# if isinstance(self.model, TritonClient):
# model = create_model(self.model_name, self.checkpoint_path, self.device)
# else:
model = self.model.model
return model

Loading…
Cancel
Save