junnyu / roformer_chinese_small

Other5742Updated Jan 3, 2022

Downloads

574

Likes

2

Last updated

Jan 3, 2022

License

Not available

text = "今天[MASK]很好,我[MASK]去公园玩。" tokenizer = RoFormerTokenizer.frompretrained("junnyu/roformerchinesesmall") ptmodel = RoFormerForMaskedLM.frompretrained("junnyu/roformerchinesesmall") ptinputs = tokenizer(text, returntensors="pt") with torch.nograd(): ptoutputs = ptmodel(ptin…

Tasks & library

  • fill mask
  • transformers

Tags

  • transformers
  • pytorch
  • tf
  • jax
  • roformer
  • fill-mask

Technical specifications

ParametersNot available
Librarytransformers
Languageszh
LicenseNot available