"...git@developer.sourcefind.cn:chenpangpang/transformers.git" did not exist on "649ffbf5752c5f839ab9691e0cdc23ae874008a3"
Fix training speed regression introduced by "optimize VRAM for calculating...
Fix training speed regression introduced by "optimize VRAM for calculating pos_bias in LayoutLM v2, v3 (#26139)" (#30988) * Revert "optimize VRAM for calculating pos_bias in LayoutLM v2, v3 (#26139)" This reverts commit a7e0ed82 . * Instead of reverting commit, wrap indexing in torch.no_grad context * Apply wrapping in LayoutLMv2 * Add comments explaining reason for no_grad * Fix code format --------- Co-authored-by:Kevin Koehncke <kevin.koehncke@uipath.com>
Showing
Please register or sign in to comment