"tests/bert_generation/test_modeling_bert_generation.py" did not exist on "7fd1febf38bd01ad413abc56ed06700a9675c143"
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