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
2fda2fd9
Commit
2fda2fd9
authored
May 15, 2024
by
wanglch
Browse files
Update multi_dcu_train.py
parent
d6620b5e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
multi_dcu_train.py
multi_dcu_train.py
+7
-0
No files found.
multi_dcu_train.py
View file @
2fda2fd9
...
...
@@ -149,6 +149,13 @@ if __name__=='__main__':
beam_size
=
4
no_repeat_ngram_size
=
2
folder_path
=
"/saves/train_dtk_weights"
# 检查文件夹是否存在
if
not
os
.
path
.
exists
(
folder_path
):
# 如果不存在,则创建文件夹
os
.
makedirs
(
folder_path
)
train_data
=
LCSTS
(
'/umt5/data/lcsts_tsv/data1.tsv'
)
valid_data
=
LCSTS
(
'/umt5/data/lcsts_tsv/data2.tsv'
)
...
...
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