AnomalyGPT / model /__init__.py
FantasticGu
initial commit
a73717c
raw
history blame contribute delete
411 Bytes
from .agent import DeepSpeedAgent
from .openllama import OpenLLAMAPEFTModel
# from .openllama_CLIP import OpenLLAMAPEFTModel_CLIP
from .ImageBind import models
def load_model(args):
agent_name = args['models'][args['model']]['agent_name']
model_name = args['models'][args['model']]['model_name']
model = globals()[model_name](**args)
agent = globals()[agent_name](model, args)
return agent