text: 
  
  TITLE
  the change from single mask to multi mask support for pytorch
  
  COMMENTS
  24
  
  REACTIONS
  +1: 1
  -1: 0
  laugh: 0
  hooray: 0
  heart: 0
  rocket: 0
  eyes: 0
  
  BODY
  # What does this PR do?
  
  A draft PR for the Feature request to change from single mask to multi mask support for the fill mask pipeline.
  
  As discussed this is one a draft PR to discuss the changes that need to be made to the output format to jointly support multiple and single mask in one pipeline call. The PR implements the change for Pytorch and code has not been pushed in yet for  when the keyword argument is called.
  
  The pipeline tests are expected to fail since the output format changed.
  #10158 
  
  Example code that tests this feature is below.  
  ```
  import json
  from transformers import pipeline
  unmasker = pipeline('fill-mask', model='bert-base-uncased')
  t = unmasker("hi [MASK] morning I'm a [MASK] model.")
  print(json.dumps(t, indent=4))
  ```
  @LysandreJik 