# Set the oss-related params oss_access_id="LTAI5t7KXu1snpo1Wo2vayS3" # OSS的AccessKeyId oss_access_key="n9kO1y62GiNmARUFzmOzZLPwAagKvL" # OSS的AccessKeySecret oss_bucket="ai-cv-research" # queue=video_enhance_h20 # 队列名 # queue=video_enhance_h20_na # queue=video_enhance_810e # 队列名 # queue=content_aigc_video_split # 队列名 # queue=open_llm_ada # queue=video_enhance_h20_public queue=video_temp_h20 algo_name=pytorch280 # 指定pytorch版本号 higher pytorch version will unmatch with nvidia driver oss_endpoint="oss-cn-hangzhou.aliyuncs.com" nfs_args="" if [ "$queue" = "video_enhance_h20_public" ]; then oss_endpoint="oss-cn-hangzhou-internal.aliyuncs.com" nfs_args="" elif [ "$queue" = "video_enhance_810e" ] || [ "$queue" = "content_aigc_video_split" ]; then algo_name=pytorch280 fi cluster_file=./nebula_configs/cluster.json custom_env="PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True,XFORMERS_FORCE_DISABLE_TRITON=1,TOKENIZERS_PARALLELISM=false" if [ "$queue" = "video_enhance_810e" ] || [ "$queue" = "content_aigc_video_split" ]; then custom_env="${custom_env},NCCL_NET_PLUGIN=none,NCCL_IB_TC=136,NCCL_IB_SL=5,NCCL_IB_GID_INDEX=3,NCCL_SOCKET_IFNAME=eth0,NCCL_IB_HCA=mlx5 " fi worker_count=8 args="--multi_gpu --num_processes ${worker_count} --mixed_precision bf16 \ scripts/infer_panodata_test.py \ --K 21 \ --dataset_base_path=/data/oss_bucket_0/Users/liuxiaoyu/zhilu/PanoData-v4/ \ --dataset_metadata_path=test.txt \ --dataset_prompt_path=perspective_prompts.jsonl \ --model_root=.. \ --checkpoint=../LiveWorld/ckpts/lora/model.pt \ --state_adapter_checkpoint=../LiveWorld/ckpts/state_adapter/model.pt \ --system-config configs/infer_system_config_portable_14B.yaml \ --max_samples=300 \ --num_frames=81 \ --camera_preload_workers 16 \ --num_shards ${worker_count} \ --auto_shard \ --fps 16 \ --quality 5 \ --seed 71 \ --camera_translation_scale 1.0 \ --prefetch 1 \ --save_queue_size 2 \ --encoder_threads 4 \ --output_path=./outputs_panodata/LiveWorld-K21 \ --skip_existing" job_name="infer_LiveWorld-K21" # run the following command nebulactl run mdl --queue=$queue \ --entry="" \ --launcher=accelerate \ --algo_name=$algo_name \ --worker_count=$worker_count \ --user_params="${args}" \ --file.cluster_file=$cluster_file \ --job_name="$job_name" \ --max_failover_times=0 \ --ignore=datasets/*,models/*,Results/*,results/*,tb_logger/*,wandb/*,tmp/*,*.git*,summary/*,*.pyc* \ --oss_access_id="$oss_access_id" \ --oss_access_key="$oss_access_key" \ --oss_bucket="$oss_bucket" \ --oss_endpoint="$oss_endpoint" \ ${nfs_args} \ --force \ --enable_oss_cache=true \ --env='PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True,FFMPEG_PATH=/data/oss_bucket_0/Users/qidong/AIGC/image_editing/environments/ffmpeg,TOKENIZERS_PARALLELISM=false,HF_ENDPOINT=https://hf-mirror.com'