checkpoint-100 / upload_f.sh
models4world's picture
Upload upload_f.sh with huggingface_hub
1e26b08 verified
#!/bin/bash
# Define the target repository and destination folder
REPO="models4world/checkpoint-100"
# Exclude the "global_step100" folder
EXCLUDE_FOLDER="global_step100"
# Loop through all files and folders in the current directory
for item in *; do
# Check if the item is not the excluded folder
if [[ "$item" != "$EXCLUDE_FOLDER" ]]; then
# Upload the item using huggingface-cli
echo "Uploading $item to $REPO..."
huggingface-cli upload "$REPO" "$item"
else
echo "Skipping excluded folder: $EXCLUDE_FOLDER"
fi
done
echo "Upload complete!"