Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d5eb762

Browse files
authored
Set replace_with_kernel_inject=True in BERT fill-mask example (deepspeedai#225)
This PR sets replace_with_kernel_inject=True in the BERT fill-mask inference example.
1 parent 37bbe13 commit d5eb762

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

inference/huggingface/fill-mask/test-bert.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
pipe.model,
1515
mp_size=world_size,
1616
dtype=torch.float,
17-
injection_policy={BertLayer : ('output.dense')}
17+
replace_with_kernel_inject=True
1818
)
1919

2020
pipe.device = torch.device(f'cuda:{local_rank}')

0 commit comments

Comments
 (0)