#!/bin/bash # usage: run_worker.sh [extra_first_csv] g=$1; extra=${2:+--extra_csv_first $2} cd ~/msm_run/MultiShotMaster; source ~/msm_run/venv/bin/activate echo "$(date -u +%FT%T.%6NZ) [WORKER] gpu=$g start" CUDA_VISIBLE_DEVICES=$g python ~/gen_common/tok_hook_run.py diffsynth.models.wan_video_text_encoder ~/msm_run/logs/tokens_gpu$g.jsonl inference_episode.py \ --test_csv_path ~/msm_run/inputs/all_200.csv $extra --model_path_json checkpoints/model_configs/model_path_1.3B.json \ --target_width 832 --target_height 480 --output_folder ~/msm_run/outputs --claim_dir ~/msm_run/claims echo "$(date -u +%FT%T.%6NZ) [WORKER] gpu=$g EXIT_CODE=$?"