Buckets:
| import os | |
| from huggingface_hub import HfApi, login | |
| print("Iniciando entrenamiento MarsLM") | |
| # Entrenar modelo | |
| os.system( | |
| "python training/train.py " | |
| "--config configs/marslm-300M.yaml " | |
| "--train-file artifacts/data/tokens.pt " | |
| "--tokenizer-model artifacts/tokenizer/marslm.json " | |
| "--output-dir artifacts/checkpoints " | |
| "--epochs 3 " | |
| "--batch-size 1 " | |
| "--gradient-accumulation-steps 4" | |
| ) | |
| print("Subiendo checkpoint a Hugging Face") | |
| api = HfApi() | |
| api.upload_folder( | |
| folder_path="artifacts/checkpoints", | |
| repo_id="Ian26/MarsLM", | |
| repo_type="model" | |
| ) | |
| print("MarsLM actualizado") |
Xet Storage Details
- Size:
- 647 Bytes
- Xet hash:
- ec3974709fffa1173f04d82f720bf4285468827c145c83529730ff4d24a34032
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.