Upload folder using huggingface_hub
Browse files- src/train_hf.py +4 -1
src/train_hf.py
CHANGED
|
@@ -58,7 +58,10 @@ def train():
|
|
| 58 |
fp16=False, # Enable if you have Tensor Cores (NVIDIA)
|
| 59 |
gradient_checkpointing=True, # CRITICAL for 5B model memory
|
| 60 |
dataloader_num_workers=0,
|
| 61 |
-
report_to="tensorboard"
|
|
|
|
|
|
|
|
|
|
| 62 |
)
|
| 63 |
|
| 64 |
trainer = Trainer(
|
|
|
|
| 58 |
fp16=False, # Enable if you have Tensor Cores (NVIDIA)
|
| 59 |
gradient_checkpointing=True, # CRITICAL for 5B model memory
|
| 60 |
dataloader_num_workers=0,
|
| 61 |
+
report_to="tensorboard",
|
| 62 |
+
push_to_hub=True, # Save artifacts to HF Hub
|
| 63 |
+
hub_model_id="Hexa09/hexa-tts-5b", # Target repo
|
| 64 |
+
hub_strategy="every_save"
|
| 65 |
)
|
| 66 |
|
| 67 |
trainer = Trainer(
|