请问能帮我看看这个问题吗? 用了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'