Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rectify code of the LayoutLM series models and adjust it to amp_level mode #693

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Bourn3z
Copy link
Collaborator

@Bourn3z Bourn3z commented Apr 17, 2024

Thank you for your contribution to the MindOCR repo.
Before submitting this PR, please make sure:

Motivation

之前由于amp功能bug,LayoutLM系列模型全部通过手动插入cast算子的方式,实现混合精度训练加速。现经过验证问题已解决,因此整改LayoutLM系列模型代码,调整yaml中控制混合精度参数的方式。

use_float16: True

Test Plan

(How should this PR be tested? Do you require special setup to run the test or repro the fixed bug?)

Related Issues and PRs

(Is this PR part of a group of changes? Link the other relevant PRs and Issues here. Use https://help.github.com/en/articles/closing-issues-using-keywords for help on GitHub syntax)

@Bourn3z Bourn3z force-pushed the dev-layoutlm branch 3 times, most recently from 7a8567d to 3d716b6 Compare April 17, 2024 07:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant