#1308·ChatGLM3

在ChatGLM3-6B的微调过程中,遇到以下错误(在ChatGLM3-6B的微调过程中出现以下错误)ImportError: 无法从 'torch.distributed.elastic.agent.server.api' 中导入名为 'log' 的模块

作者: Scorponok31创建于 2024年8月5日更新于 2025年9月19日

╭─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮ │ /home/vivoadmin/miniconda3/envs/chatglm3_test20240726/chatglm3/ChatGLM3/finetune_demo/finetune_h │ │ f.py:537 in main │ │ │ │ 534 │ ) │ │ 535 │ │ │ 536 │ if auto_resume_from_checkpoint.upper() == "" or auto_resume_from_checkpoint is None: │ │ ❱ 537 │ │ trainer.train() │ │ 538 │ else: │ │ 539 │ │ def do_rf_checkpoint(sn): │ │ 540 │ │ │ model.gradient_checkpointing_enable() │ │ │ │ /home/vivoadmin/miniconda3/envs/chatglm3_test20240726/lib/python3.12/site-packages/transformers/ │ │ trainer.py:1885 in train │ │ │ │ 1882 │ │ │ finally: │ │ 1883 │ │ │ │ hf_hub_utils.enable_progress_bars() │ │ 1884 │ │ else: │ │ ❱ 1885 │ │ │ return inner_training_loop( │ │ 1886 │ │ │ │ args=args, │ │ 1887 │ │ │ │ resume_from_checkpoint=resume_from_checkpoint, │ │ 1888 │ │ │ │ trial=trial, │ │ │ │ /home/vivoadmin/miniconda3/envs/chatglm3_test20240726/lib/python3.12/site-packages/transformers/ │ │ trainer.py:2022 in _inner_training_loop │ │ │ │ 2019 │ │ │ │ │ 2020 │ │ │ self.model.gradient_checkpointing_enable(gradient_checkpointing_kwargs=gradi │ │ 2021 │ │ │ │ ❱ 2022 │ │ model = self._wrap_model(self.model_wrapped) …

内容来源: zai-org/ChatGLM3