This commit is contained in:
l.gabrysiak 2025-02-25 13:46:35 +01:00
parent 18dc6ab28a
commit 7796cc9ef0
1 changed files with 5 additions and 1 deletions

6
hft.py
View File

@ -12,6 +12,9 @@ import json
from collections import defaultdict
from huggingface_hub import login
import torch
torch.cuda.empty_cache()
login(token="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")
os.environ["TOKENIZERS_PARALLELISM"] = "false"
@ -173,7 +176,8 @@ training_args = TrainingArguments(
logging_steps=100,
save_strategy="steps",
save_steps=1000,
report_to="none"
report_to="none",
gradient_checkpointing=True
)
# Trening