微调时遇到的问题

请问能帮我看看这个问题吗? 用了notebook的初始环境,python3.7,是不是包的版本问题?

TypeError: GPT3ForTextGeneration: init() missing 1 required positional argument: 'rank'

During handling of the above exception, another exception occurred:

╭─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮ │ in :51 │ │ │ │ 48 │ │ 49 # 构造 trainer 并进行训练 │ │ 50 trainer = build_trainer( │ │ ❱ 51 │ name=Trainers.nlp_base_trainer, default_args=kwargs) │ │ 52 trainer.train() │ │ 53 │ │ │ │ /opt/conda/lib/python3.7/site-packages/modelscope/trainers/builder.py:39 in build_trainer │ │ │ │ 36 │ │ │ register_plugins_repo(configuration.safe_get('plugins')) │ │ 37 │ │ │ register_modelhub_repo(model_dir, │ │ 38 │ │ │ │ │ │ │ │ configuration.get('allow_remote', False)) │ │ ❱ 39 │ return build_from_cfg(cfg, TRAINERS, default_args=default_args) │ │ 40 │ │ │ │ /opt/conda/lib/python3.7/site-packages/modelscope/utils/registry.py:215 in build_from_cfg │ │ │ │ 212 │ │ │ return obj_cls(**args) │ │ 213 │ except Exception as e: │ │ 214 │ │ # Normal TypeError does not print class name. │ │ ❱ 215 │ │ raise type(e)(f'{obj_cls.name}: {e}') │ │ 216 │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────╯ TypeError: NlpEpochBasedTrainer: GPT3ForTextGeneration: init() missing 1 required positional argument: 'rank'

展开
收起
游客edq3niizay5ak 2023-04-28 17:06:11 231 分享 版权
0 条回答
写回答
取消 提交回答

包含命名实体识别、文本分类、分词、关系抽取、问答、推理、文本摘要、情感分析、机器翻译等多个领域

热门讨论

热门文章

还有其他疑问?
咨询AI助理