Open linkerlin opened 1 year ago
ModuleNotFoundError Traceback (most recent call last) in 1 from transformers import AutoTokenizer, AutoModel, TrainingArguments, AutoConfig ----> 2 from modeling_chatglm import ChatGLMForConditionalGeneration 3 import torch 4 import torch.nn as nn 5 from peft import get_peft_model, LoraConfig, TaskType
ModuleNotFoundError: No module named 'modeling_chatglm'
NOTE: If your import is failing due to a missing package, you can manually install dependencies using either !pip or !apt.
看看之前的执行步骤是不是异常了
ModuleNotFoundError Traceback (most recent call last) in
1 from transformers import AutoTokenizer, AutoModel, TrainingArguments, AutoConfig
----> 2 from modeling_chatglm import ChatGLMForConditionalGeneration
3 import torch
4 import torch.nn as nn
5 from peft import get_peft_model, LoraConfig, TaskType
ModuleNotFoundError: No module named 'modeling_chatglm'
NOTE: If your import is failing due to a missing package, you can manually install dependencies using either !pip or !apt.
To view examples of installing some common dependencies, click the "Open Examples" button below.