Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ModelZoo
UMT5_pytorch
Commits
02c43ac5
Commit
02c43ac5
authored
Aug 26, 2024
by
wanglch
Browse files
Update umt5_summary.py
parent
0322f391
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
umt5_summary.py
umt5_summary.py
+1
-1
No files found.
umt5_summary.py
View file @
02c43ac5
...
@@ -39,7 +39,7 @@ input_ids = tokenizer(
...
@@ -39,7 +39,7 @@ input_ids = tokenizer(
max_length
=
512
max_length
=
512
).
to
(
device
)
).
to
(
device
)
generated_tokens
=
model
.
module
.
generate
(
generated_tokens
=
model
.
generate
(
input_ids
[
"input_ids"
],
input_ids
[
"input_ids"
],
attention_mask
=
input_ids
[
"attention_mask"
],
attention_mask
=
input_ids
[
"attention_mask"
],
max_length
=
32
,
max_length
=
32
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment