Comments (3)
这部分代码是没问题的,checkpoints是可选参数,这个checkpoints设置实际上是不必要的,显存优化效果不明显
至于NSP训练,想问您是使用提供的NSP model进行finetune吗?
这个模型checkpoint的参数,由于在不同版本的paddle的迭代过程中出了些问题,尽量避免再对其finetune;如果需要finetune的话,可以尝试在config中加上一行use_amp="False"
,之前测试可以正常训练,可以尝试一下,速度就会慢一倍
from knover.
这部分代码是没问题的,checkpoints是可选参数,这个checkpoints设置实际上是不必要的,显存优化效果不明显
至于NSP训练,想问您是使用提供的NSP model进行finetune吗?
这个模型checkpoint的参数,由于在不同版本的paddle的迭代过程中出了些问题,尽量避免再对其finetune;如果需要finetune的话,可以尝试在config中加上一行use_amp="False"
,之前测试可以正常训练,可以尝试一下,速度就会慢一倍
_calc_logits的定义是这样的
def _calc_logits(self, enc_out, checkpoints=None, seq_pos=None):
代码调用fc_out = self._calc_logits(outputs["enc_out"], inputs["tgt_pos"])这个会把inputs["tgt_pos"]传给checkpoints,这样参数就错位了,得改成fc_out = self._calc_logits(outputs["enc_out"], seq_pos=inputs["tgt_pos"])或者fc_out = self._calc_logits(outputs["enc_out"],None, inputs["tgt_pos"])
我训练NSP是为了做模型融合,就是多技能对话那个比赛,上面这个错就是尝试训练NSP任务的时候出现的,后来我按我说的那样改了就能正常训练了。
非常感谢耐心回答: )
from knover.
嗯,这个没有查看参数对位的问题,现在把这个不必要的checkpoint去掉了
在#31 已经修复了
from knover.
Related Issues (20)
- Plato-KAG部署环境下如何输入topic和knowledge
- 请问Link theWorld这个论文中2.1节Service Information的service API是如何构建的
- Plato-KAG文档 HOT 1
- 加载数据时发现报错[WARN] Invalid example: context too long / no context - Example HOT 2
- WARN,读数据时显示context过长或无content HOT 1
- 使用single_gpu训练报错TypeError: __new__() got multiple values for argument data_id HOT 4
- PLATO stage-1训练之后output里没有输出 HOT 1
- InvalidArgumentError: Broadcast dimension mismatch HOT 2
- PLATO stage1训练发现内存一直在增长,训练到9w步后,出现内存溢出,这是什么原因? HOT 4
- PLATO-KAG生成的回复能否使用NSP模型的score排序 HOT 2
- 关于PLATO-KAG模型部署后的回答生成 HOT 2
- Release of training code for QKConv HOT 11
- KAG训练中mean_mlm_ce指标的意义是什么 HOT 2
- KAG训练中mean_mlm_ce指标的意义是什么
- lr scheduler参数设置 HOT 4
- Changing the allowed maximum conversation length in Plato-2 HOT 1
- Using PLATO-XL for inference on 3 or more GPUs HOT 2
- Methods of PLATO-KAG pre-training for other languages
- 训练plato2.2L
- AG-DST模型开源了吗 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from knover.