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
starcoder2_pytorch
Commits
1a9e39eb
Commit
1a9e39eb
authored
Jun 13, 2024
by
dengjb
Browse files
Update finetune.py
parent
768d526a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
finetune.py
finetune.py
+2
-2
No files found.
finetune.py
View file @
1a9e39eb
...
...
@@ -130,8 +130,8 @@ def main(args):
print
(
"Saving the last checkpoint of the model"
)
model
.
save_pretrained
(
os
.
path
.
join
(
args
.
output_dir
,
"final_checkpoint/"
))
if
args
.
push_to_hub
:
trainer
.
push_to_hub
(
"Upload model"
)
#
if args.push_to_hub:
#
trainer.push_to_hub("Upload model")
print
(
"Training 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