Skip to content
Merged
Changes from 12 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -730,9 +730,9 @@ def load_model_weights_sub_commands_gcs(
" && /opt/google-cloud-sdk/bin/gcloud config set disable_usage_reporting true 2>/dev/null"
)

file_selection_str = '--include="*.model" --include="*.model.v*" --include="*.json" --include="*.safetensors" --include="*.txt" --exclude="optimizer*"'
if trust_remote_code:
file_selection_str += ' --include="*.py"'
# gcloud storage rsync only supports --exclude (Python regex), not --include.
# Exclude optimizer files; all other files in the checkpoint path are synced.
file_selection_str = '--exclude="optimizer.*"'
Comment thread
greptile-apps[bot] marked this conversation as resolved.
Outdated

subcommands.append(
f"/opt/google-cloud-sdk/bin/gcloud storage rsync -r"
Expand Down