This repository was archived by the owner on Mar 20, 2026. It is now read-only.
Commit 95294bf
refactor superclass of MaskedLMModel (#2170)
Summary:
masked_lm is actually encoder-only model
# Before submitting
- [ ] Was this discussed/approved via a Github issue? (no need for typos, doc improvements)
- [x] Did you read the [contributor guideline](https://github.com/pytorch/fairseq/blob/master/CONTRIBUTING.md)?
- [x] Did you make sure to update the docs?
- [ ] Did you write any new necessary tests?
## What does this PR do?
Class Refactor
## Did you have fun?
Make sure you had fun coding �
Pull Request resolved: #2170
Reviewed By: ngoyal2707
Differential Revision: D21725071
Pulled By: myleott
fbshipit-source-id: 75fd36008f3e3425f8f5180472734394046dfb771 parent 145bc9d commit 95294bf
1 file changed
Lines changed: 3 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | | - | |
40 | 39 | | |
41 | 40 | | |
42 | 41 | | |
| |||
0 commit comments