datawhalechina / self-llm

《开源大模型食用指南》基于Linux环境快速部署开源大模型,更适合中国宝宝的部署教程
Apache License 2.0
6.14k stars 753 forks source link

模型微调时报错,报内核版本问题 Detected kernel version 5.4.0 #125

Open hgsw opened 1 month ago

hgsw commented 1 month ago

在模型微调时,执行如下代码报错: trainer = Trainer( model=model, args=args, train_dataset=tokenized_id, data_collator=DataCollatorForSeq2Seq(tokenizer=tokenizer, padding=True), ) 报错信息: Detected kernel version 5.4.0, which is below the recommended minimum of 5.5.0; this can cause the process to hang. It is recommended to upgrade the kernel to the minimum version or higher. 有时不会报错,有时就会出现。

KMnO4-zx commented 1 month ago

你用的是什么环境呀