Download add_files.sh from datablations/python-megatron: direct link, hf CLI and curl.
- Browser
- Download file 534 Bytes
-
https://huggingface.co/datasets/datablations/python-megatron/resolve/main/add_files.sh
- Command line
-
hf download hf://datasets/datablations/python-megatron/add_files.sh
-
curl -L -o add_files.sh https://huggingface.co/datasets/datablations/python-megatron/resolve/main/add_files.sh
534 Bytes
| # List of untracked files | |
| untracked_files=$(git status --porcelain | awk '{print $2}' | grep '^python84b/gpt2tok_python_84B_content_document.bin\.') | |
| # Loop through each untracked file | |
| for file in $untracked_files; do | |
| # Track the file using git lfs | |
| git lfs track "$file" | |
| # Add the file | |
| git add "$file" | |
| # Commit the changes | |
| git commit -m "Add $file" | |
| # Push the changes | |
| git push | |
| echo "Pushed $file" | |
| # Sleep for a moment to prevent potential resource exhaustion | |
| sleep 1 | |
| done | |