Saved model weights and training checkpoints. This directory is gitignored — model files are too large for git.
Do not use git or git LFS for model weights. Use one of these instead:
Free, ML-native, version-controlled model hosting.
# Upload
from huggingface_hub import HfApi
api = HfApi()
api.upload_file(
path_or_fileobj="checkpoints/best_model.pt",
path_in_repo="best_model.pt",
repo_id="UTMIST/my-project",
repo_type="model",
)
# Download
from huggingface_hub import hf_hub_download
path = hf_hub_download(repo_id="UTMIST/my-project", filename="best_model.pt")Simple for small teams. Upload manually or via Colab's Drive mount.
If you're already using W&B for experiment tracking.
import wandb
run = wandb.init()
artifact = wandb.Artifact("model", type="model")
artifact.add_file("checkpoints/best_model.pt")
run.log_artifact(artifact)checkpoints/
├── best_model.pt # best by val accuracy
├── latest_model.pt # most recent epoch
└── epoch_50.pt # specific epoch snapshot