How to use zai-org/chatglm-6b with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("zai-org/chatglm-6b", trust_remote_code=True, dtype="auto")
错误提示表明在解码过程中发生了错误,导致索引超出范围。可能是由于数据集中的标签不正确或者数据集处理过程中出现了问题。
根据日志信息,问题似乎出现在print_dataset_example(train_dataset[0])这行代码中。这行代码试图打印训练数据集的第一个示例的标签,但在解码标签时出现了错误。
· Sign up or log in to comment