Update all references to canonical models (#29001)
* Script & Manual edition * Update
This commit is contained in:
@@ -527,7 +527,7 @@ class RobertaModelTest(ModelTesterMixin, GenerationTesterMixin, PipelineTesterMi
|
||||
class RobertaModelIntegrationTest(TestCasePlus):
|
||||
@slow
|
||||
def test_inference_masked_lm(self):
|
||||
model = RobertaForMaskedLM.from_pretrained("roberta-base")
|
||||
model = RobertaForMaskedLM.from_pretrained("FacebookAI/roberta-base")
|
||||
|
||||
input_ids = torch.tensor([[0, 31414, 232, 328, 740, 1140, 12695, 69, 46078, 1588, 2]])
|
||||
with torch.no_grad():
|
||||
@@ -547,7 +547,7 @@ class RobertaModelIntegrationTest(TestCasePlus):
|
||||
|
||||
@slow
|
||||
def test_inference_no_head(self):
|
||||
model = RobertaModel.from_pretrained("roberta-base")
|
||||
model = RobertaModel.from_pretrained("FacebookAI/roberta-base")
|
||||
|
||||
input_ids = torch.tensor([[0, 31414, 232, 328, 740, 1140, 12695, 69, 46078, 1588, 2]])
|
||||
with torch.no_grad():
|
||||
@@ -565,7 +565,7 @@ class RobertaModelIntegrationTest(TestCasePlus):
|
||||
|
||||
@slow
|
||||
def test_inference_classification_head(self):
|
||||
model = RobertaForSequenceClassification.from_pretrained("roberta-large-mnli")
|
||||
model = RobertaForSequenceClassification.from_pretrained("FacebookAI/roberta-large-mnli")
|
||||
|
||||
input_ids = torch.tensor([[0, 31414, 232, 328, 740, 1140, 12695, 69, 46078, 1588, 2]])
|
||||
with torch.no_grad():
|
||||
|
||||
Reference in New Issue
Block a user