This repository was archived by the owner on Mar 11, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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-
8164derive_model_name () {
8265 printf ' %s' " $1 " | tr ' [:upper:]' ' [:lower:]' | sed -E ' s/[^a-z0-9-]+/-/g; s/^-+//; s/-+$//; s/-+/-/g'
8366}
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 "
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
253236info " Workflow submitted successfully"
254237info " Dataset uploaded: $dataset_bucket /$dataset_name "
You can’t perform that action at this time.
0 commit comments