mod
This commit is contained in:
parent
18dc6ab28a
commit
7796cc9ef0
6
hft.py
6
hft.py
|
|
@ -12,6 +12,9 @@ import json
|
||||||
from collections import defaultdict
|
from collections import defaultdict
|
||||||
from huggingface_hub import login
|
from huggingface_hub import login
|
||||||
|
|
||||||
|
import torch
|
||||||
|
torch.cuda.empty_cache()
|
||||||
|
|
||||||
login(token="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")
|
login(token="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")
|
||||||
os.environ["TOKENIZERS_PARALLELISM"] = "false"
|
os.environ["TOKENIZERS_PARALLELISM"] = "false"
|
||||||
|
|
||||||
|
|
@ -173,7 +176,8 @@ training_args = TrainingArguments(
|
||||||
logging_steps=100,
|
logging_steps=100,
|
||||||
save_strategy="steps",
|
save_strategy="steps",
|
||||||
save_steps=1000,
|
save_steps=1000,
|
||||||
report_to="none"
|
report_to="none",
|
||||||
|
gradient_checkpointing=True
|
||||||
)
|
)
|
||||||
|
|
||||||
# Trening
|
# Trening
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue