ChatGLM-6B icon indicating copy to clipboard operation
ChatGLM-6B copied to clipboard

[Help] 微调的时候,可以修改max_source_length和max_target_length吗?

Open darkqiank opened this issue 3 years ago • 1 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Current Behavior

微调的时候,输出的信息都很短,我看训练的参数max_source_length和max_target_length只有64。我进行调整之后,将max_source_length设为128,max_target_length设为512,训练后的结果更差了,这个参数应该怎么调整啊?

Expected Behavior

No response

Steps To Reproduce

将train.sh的max_source_length设为128,max_target_length设为512

Environment

- OS:Ubuntu 20.04
- Python: 3.9
- Transformers: 4.27.1
- PyTorch:
- CUDA Support (`python -c "import torch; print(torch.cuda.is_available())"`) :

Anything else?

No response

darkqiank avatar Apr 06 '23 00:04 darkqiank

同问,好像length改大以后,怎么调lr效果都不好

ish505 avatar Apr 06 '23 06:04 ish505