junnyu / flash_small_wwm_cluecorpussmall
Other110Updated Apr 2, 2022
Downloads
11
Likes
0
Last updated
Apr 2, 2022
License
mit
ptoutputssentence = "pytorch: " for i, id in enumerate(tokenizer.encode(text)): if id == tokenizer.masktokenid: val,idx = ptoutputs[i].softmax(-1).topk(k=5) tokens = tokenizer.convertidstotokens(idx) newtokens = [] for v,t in zip(val.cpu(),tokens): newtokens.append(f"{t}+{roun…
Tasks & library
- fill mask
- transformers
Tags
- transformers
- pytorch
- flash
- fill-mask
Technical specifications
ParametersNot available
Librarytransformers
LanguagesNot available
Licensemit
