Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct naming pegasus x #18896

Merged
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit Hold shift + click to select a range
a817577
add first generation tutorial
patrickvonplaten Jun 21, 2022
cdf3983
Merge branch 'main' of https://github.com/huggingface/transformers
patrickvonplaten Jun 21, 2022
f4ec985
Merge branch 'main' of https://github.com/huggingface/transformers
patrickvonplaten Jun 22, 2022
5edcbd9
Merge branch 'main' of https://github.com/huggingface/transformers
patrickvonplaten Jun 23, 2022
855eed9
Merge branch 'main' of https://github.com/huggingface/transformers
patrickvonplaten Jun 23, 2022
64eb136
Merge branch 'main' of https://github.com/huggingface/transformers
patrickvonplaten Jun 30, 2022
677983c
Merge branch 'main' of https://github.com/huggingface/transformers
patrickvonplaten Jul 18, 2022
232a594
Merge branch 'main' of https://github.com/huggingface/transformers
patrickvonplaten Aug 17, 2022
fe3a2e5
Merge branch 'main' of https://github.com/huggingface/transformers
patrickvonplaten Aug 19, 2022
fe9cc03
Merge branch 'main' of https://github.com/huggingface/transformers
patrickvonplaten Aug 26, 2022
17446d3
Merge branch 'main' of https://github.com/huggingface/transformers
patrickvonplaten Aug 26, 2022
0590843
Merge branch 'main' of https://github.com/huggingface/transformers
patrickvonplaten Aug 31, 2022
bb7e53f
Merge branch 'main' of https://github.com/huggingface/transformers
patrickvonplaten Sep 5, 2022
e19bcbe
[Pegasus X] correct naming
patrickvonplaten Sep 5, 2022
74e24e1
[Generation] Remove
patrickvonplaten Sep 5, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tests/models/pegasus_x/test_modeling_pegasus_x.py
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ def default_tokenizer(self):
return PegasusTokenizer.from_pretrained("google/pegasus-x-base")

def test_inference_no_head(self):
model = PegasusXModel.from_pretrained("pegasus-x-base").to(torch_device)
model = PegasusXModel.from_pretrained("google/pegasus-x-base").to(torch_device)
input_ids = _long_tensor([[0, 31414, 232, 328, 740, 1140, 12695, 69, 46078, 1588, 2]])
decoder_input_ids = _long_tensor([[2, 0, 31414, 232, 328, 740, 1140, 12695, 69, 46078, 1588]])
inputs_dict = prepare_pegasus_x_inputs_dict(model.config, input_ids, decoder_input_ids)
Expand All @@ -574,7 +574,7 @@ def test_inference_no_head(self):
self.assertTrue(torch.allclose(output[:, :3, :3], expected_slice, atol=TOLERANCE))

def test_inference_head(self):
model = PegasusXForConditionalGeneration.from_pretrained("pegasus-x-base").to(torch_device)
model = PegasusXForConditionalGeneration.from_pretrained("google/pegasus-x-base").to(torch_device)

# change to intended input
input_ids = _long_tensor([[0, 31414, 232, 328, 740, 1140, 12695, 69, 46078, 1588, 2]])
Expand Down