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
3f0a9b8d
Commit
3f0a9b8d
authored
May 22, 2024
by
wanglch
Browse files
Update single_dcu_train.py
parent
dcb1010d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
single_dcu_train.py
single_dcu_train.py
+1
-1
No files found.
single_dcu_train.py
View file @
3f0a9b8d
...
@@ -202,7 +202,7 @@ if __name__=='__main__':
...
@@ -202,7 +202,7 @@ if __name__=='__main__':
# 获取当前的日期和时间
# 获取当前的日期和时间
now
=
datetime
.
now
()
now
=
datetime
.
now
()
timestamp
=
now
.
strftime
(
"%Y%m%d_%H%M%S"
)
timestamp
=
now
.
strftime
(
"%Y%m%d_%H%M%S"
)
new_model_path
=
f
'saves/umt5_
{
timestamp
}
'
new_model_path
=
f
'
./
saves/umt5_
{
timestamp
}
'
model
.
module
.
save_pretrained
(
new_model_path
)
model
.
module
.
save_pretrained
(
new_model_path
)
tokenizer
.
save_pretrained
(
new_model_path
)
tokenizer
.
save_pretrained
(
new_model_path
)
print
(
"Done!"
)
print
(
"Done!"
)
...
...
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