Skip to content

Commit

Permalink
Update README to match master->main branch change (facebookresearch#3922
Browse files Browse the repository at this point in the history
)

Summary:
Loading xlmr doesn't work because trying to pull from master branch, which has been changed to main.

Pull Request resolved: facebookresearch#3922

Reviewed By: erichan1

Differential Revision: D31415771

Pulled By: dianaml0

fbshipit-source-id: a4b1b533b5596a4d3556c97c2f15847e444aeea9
  • Loading branch information
erichan1 authored and facebook-github-bot committed Oct 7, 2021
1 parent ce6c9ee commit 36eac86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/xlmr/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ Model | average | en | es | de | ar | hi | vi | zh
##### Load XLM-R from torch.hub (PyTorch >= 1.1):
```python
import torch
xlmr = torch.hub.load('pytorch/fairseq', 'xlmr.large')
xlmr = torch.hub.load('pytorch/fairseq:main', 'xlmr.large')
xlmr.eval() # disable dropout (or leave in train mode to finetune)
```

Expand Down

0 comments on commit 36eac86

Please sign in to comment.