 How to use  Here is how to use this model:  ```python from transformers import BeitFeatureExtractor, BeitForMaskedImageModeling from PIL import Image import requests  url = 'http://images.cocodataset.org/val2017/000000039769.jpg' image = Image.open(requests.get(url, stream=True).raw)  feature_extractor = BeitFeatureExtractor.from_pretrained('microsoft/beit-large-patch16-224-pt22k') model = BeitForMaskedImageModeling.from_pretrained('microsoft/beit-large-patch16-224-pt22k')  inputs = feature_extractor(images=image, return_tensors="pt") outputs = model(**inputs) logits = outputs.logits ```  Currently, both the feature extractor and model support PyTorch.  