Skip to content
This repository was archived by the owner on Mar 11, 2026. It is now read-only.

Commit 29c8b6d

Browse files
authored
fix(script): replace osmo-dev function with direct osmo command usage (#30)
1 parent c8f0fd4 commit 29c8b6d

1 file changed

Lines changed: 2 additions & 19 deletions

File tree

scripts/submit-osmo-dataset-training.sh

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -61,23 +61,6 @@ EOF
6161
# Helpers
6262
#------------------------------------------------------------------------------
6363

64-
osmo-dev() {
65-
local args=()
66-
for arg in "$@"; do
67-
if [[ "$arg" == ./* || "$arg" == ../* || "$arg" == ~* ]] && [[ -e "$arg" ]]; then
68-
# Only convert if it looks like a relative path AND exists
69-
args+=("$(cd "$(dirname "$arg")" && pwd)/$(basename "$arg")")
70-
elif [[ "$arg" == /* ]]; then
71-
# Absolute paths pass through as-is
72-
args+=("$arg")
73-
else
74-
# Everything else (commands, flags, URLs) passes through unchanged
75-
args+=("$arg")
76-
fi
77-
done
78-
(cd /Users/allengreaves/projects/nvidia/OSMO && bazel run @osmo_workspace//src/cli -- "${args[@]}")
79-
}
80-
8164
derive_model_name() {
8265
printf '%s' "$1" | tr '[:upper:]' '[:lower:]' | sed -E 's/[^a-z0-9-]+/-/g; s/^-+//; s/-+$//; s/-+/-/g'
8366
}
@@ -169,7 +152,7 @@ done
169152
# Validation
170153
#------------------------------------------------------------------------------
171154

172-
require_tools osmo-dev rsync
155+
require_tools osmo rsync
173156

174157
[[ -f "$workflow" ]] || fatal "Workflow template not found: $workflow"
175158
[[ -d "$training_path" ]] || fatal "Training directory not found: $training_path"
@@ -248,7 +231,7 @@ fi
248231
# Submit Workflow
249232
#------------------------------------------------------------------------------
250233

251-
osmo-dev "${submit_args[@]}" || fatal "Failed to submit workflow"
234+
osmo "${submit_args[@]}" || fatal "Failed to submit workflow"
252235

253236
info "Workflow submitted successfully"
254237
info "Dataset uploaded: $dataset_bucket/$dataset_name"

0 commit comments

Comments
 (0)