FlagAI-Open / FlagAI

FlagAI (Fast LArge-scale General AI models) is a fast, easy-to-use and extensible toolkit for large-scale model.
Apache License 2.0
3.83k stars 416 forks source link

[Question]: 无法下载aquila-7b模型 #346

Closed heshuguo closed 1 year ago

heshuguo commented 1 year ago

Description

https://github.com/FlagAI-Open/FlagAI/tree/master/examples/Aquila#3-%E6%8E%A8%E7%90%86inference

按照上推理的例子执行代码报错: [2023-06-11 10:55:04,664] [INFO] [logger.py:85:log_dist] [Rank -1] Unsupported bmtrain The model_name: aquila-7b is not be supported All supported models are ['bert-base-en', 'roberta-base-ch', 't5-base-en', 't5-base-ch', 'glm-large-ch', 'alm-1.0', 'glm-large-en', 'glm-large-en-generation', 'gpt2-base-ch', 'gpt2-base-en', 'cpm-large-ch', 'opt-125m-en', 'opt-350m-en', 'opt-1.3b-en', 'opt-2.7b-en', 'opt-6.7b-en', 'opt-13b-en', 'opt-30b-en', 'opt-66b-en', 'glm-10b-ch', 'cpm3', 'cpm3-train', 'galactica-1.3b-en', 'galactica-6.7b-en', 'galactica-30b-en', 'galactica-120b-en', 'vit-base-p16-224', 'vit-base-p16-384', 'vit-base-p32-224', 'vit-base-p32-384', 'vit-large-p16-224', 'vit-large-p16-384', 'vit-large-p32-224', 'vit-large-p32-384', 'clip-base-p32-224', 'clip-base-p16-224', 'clip-large-p14-224', 'clip-large-p14-336', 'altdiffusion', 'altdiffusion-m9', 'swinv1-base-patch4-window7-224', 'swinv2-base-patch4-window8-256', 'swinv2-base-patch4-window16-256', 'swinv2-small-patch4-window16-256', 'altclip-xlmr-l', 'altclip-xlmr-l-m9', 'altclip-bert-b', 'eva-clip'] Traceback (most recent call last): File "/data/FlagAI/examples/Aquila/hadi.py", line 16, in model = loader.get_model() File "/usr/local/python3.9/lib/python3.9/site-packages/flagai/auto_model/auto_loader.py", line 271, in get_model return self.model AttributeError: 'AutoLoader' object has no attribute 'model'

Alternatives

No response

etyhh commented 1 year ago

same issue here, how did you solved this problem?

BAAI-OpenPlatform commented 1 year ago

same issue here, how did you solved this problem?

Maybe just updating to the latest version?

etyhh commented 1 year ago

update to latest version works,thanks