SkyworkAI / Skywork

Skywork series models are pre-trained on 3.2TB of high-quality multilingual (mainly Chinese and English) and code data. We have open-sourced the model, training data, evaluation data, evaluation methods, etc. 天工系列模型在3.2TB高质量多语言和代码数据上进行预训练。我们开源了模型参数,训练数据,评估数据,评估方法。
Other
1.21k stars 111 forks source link

为什么不直接用model返回的loss而要自己计算呢? #79

Closed Chandler-Bing closed 3 months ago

Chandler-Bing commented 4 months ago

compute_loss 这里为什么要自己计算呢?一般模型传入label_ids,会返回loss