Add Berzelius curriculum training launchers
Browse files- train_dememwm_curric_base_recent_8a100_berzelius.sh +93 -0
- train_dememwm_curric_base_recent_8h200_berzelius.sh +93 -0
- train_dememwm_curric_event_trigger_8a100_berzelius.sh +93 -0
- train_dememwm_curric_event_trigger_8h200_berzelius.sh +93 -0
- train_dememwm_curric_event_trigger_no_memory_noise_8a100_berzelius.sh +93 -0
- train_dememwm_curric_event_trigger_no_memory_noise_8h200_berzelius.sh +93 -0
- train_dememwm_curric_event_trigger_no_route_8a100_berzelius.sh +93 -0
- train_dememwm_curric_event_trigger_no_route_8h200_berzelius.sh +93 -0
train_dememwm_curric_base_recent_8a100_berzelius.sh
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
#SBATCH --job-name=dememwm-curric-base-recent-8a100
|
| 3 |
+
#SBATCH --nodes=1
|
| 4 |
+
#SBATCH --ntasks-per-node=8
|
| 5 |
+
#SBATCH --cpus-per-task=8
|
| 6 |
+
#SBATCH --time=72:00:00
|
| 7 |
+
#SBATCH --output=slurm_logs/dememwm-curric-base-recent-8a100-%j.out
|
| 8 |
+
#SBATCH --error=slurm_logs/dememwm-curric-base-recent-8a100-%j.out
|
| 9 |
+
#SBATCH --account=berzelius-2025-436
|
| 10 |
+
#SBATCH --gres=gpu:A100-SXM4-80GB:8
|
| 11 |
+
#SBATCH --chdir=/proj/cvl/users/x_fahkh2/DeMemWM
|
| 12 |
+
|
| 13 |
+
set -eo pipefail
|
| 14 |
+
|
| 15 |
+
module load buildenv-gcccuda/12.1.1-gcc12.3.0
|
| 16 |
+
source $(conda info --base)/etc/profile.d/conda.sh
|
| 17 |
+
|
| 18 |
+
export PYTHONPATH="./:${PYTHONPATH:-}"
|
| 19 |
+
export HF_HOME=/proj/cvl/users/x_fahkh2/caches
|
| 20 |
+
export TORCH_HOME=/proj/cvl/users/x_fahkh2/caches
|
| 21 |
+
export PIP_CACHE_DIR=/proj/cvl/users/x_fahkh2/caches
|
| 22 |
+
export TMPDIR=/proj/cvl/users/x_fahkh2/caches
|
| 23 |
+
export TRITON_CACHE_DIR=/proj/cvl/users/x_fahkh2/caches
|
| 24 |
+
export CUDA_HOME=$CUDA_ROOT
|
| 25 |
+
export CUDA_VISIBLE_DEVICES=0,1,2,3,4,5,6,7
|
| 26 |
+
export WANDB_DISABLED=true
|
| 27 |
+
export HYDRA_FULL_ERROR=1
|
| 28 |
+
|
| 29 |
+
git checkout main
|
| 30 |
+
|
| 31 |
+
RUN_NAME=train_dememwm_curric_base_recent_a2d4r2_route_ntok8_8a100_bs8_global64_400k
|
| 32 |
+
OUTPUT_DIR=/proj/cvl/users/x_fahkh2/DeMemWM/results/${RUN_NAME}
|
| 33 |
+
CURRICULUM='{enabled:true,stages:[{name:no_updown,until_step:120000,dataset:{wo_updown:true}},{name:with_updown,until_step:400000,dataset:{wo_updown:false}}]}'
|
| 34 |
+
|
| 35 |
+
srun python -m main \
|
| 36 |
+
+name=${RUN_NAME} \
|
| 37 |
+
+output_dir=$OUTPUT_DIR/ \
|
| 38 |
+
auto_resume=true \
|
| 39 |
+
wandb.mode=offline \
|
| 40 |
+
"experiment.tasks=[training]" \
|
| 41 |
+
algorithm=dememwm_base \
|
| 42 |
+
+customized_load=true \
|
| 43 |
+
+seperate_load=true \
|
| 44 |
+
+diffusion_model_path=/proj/cvl/users/x_fahkh2/WorldMem_Repro/checkpoints/oasis500m.safetensors \
|
| 45 |
+
+vae_path=/proj/cvl/users/x_fahkh2/WorldMem_Repro/checkpoints/vit-l-20.safetensors \
|
| 46 |
+
dataset=video_minecraft_dememwm_latent \
|
| 47 |
+
dataset.save_dir=/proj/cvl/users/x_fahkh2/WorldMem_Repro/datasets/minecraft \
|
| 48 |
+
dataset.precomputed_feature_dir=/proj/cvl/users/x_fahkh2/WorldMem_Repro/datasets/minecraft/vae_features \
|
| 49 |
+
dataset.n_frames=8 \
|
| 50 |
+
dataset.n_frames_valid=700 \
|
| 51 |
+
dataset.context_length=100 \
|
| 52 |
+
dataset.single_eval_clip=true \
|
| 53 |
+
dataset.memory_selection.enabled=true \
|
| 54 |
+
dataset.memory_selection.max_anchor_frames=2 \
|
| 55 |
+
dataset.memory_selection.max_dynamic_frames=4 \
|
| 56 |
+
dataset.memory_selection.max_revisit_frames=2 \
|
| 57 |
+
dataset.memory_selection.pose_similarity_threshold=0.6 \
|
| 58 |
+
dataset.memory_selection.training_use_plucker=true \
|
| 59 |
+
dataset.memory_selection.training_plucker_weight=1.0 \
|
| 60 |
+
dataset.memory_selection.fov_overlap_threshold=0.6 \
|
| 61 |
+
dataset.memory_selection.min_total_selected_coverage=0.1 \
|
| 62 |
+
dataset.memory_selection.local_context_exclusion_frames=8 \
|
| 63 |
+
dataset.memory_selection.anchor_diverse_selection=true \
|
| 64 |
+
+dataset.memory_selection.pose_preselect_topk=64 \
|
| 65 |
+
+dataset.memory_selection.candidate_chunk_size=64 \
|
| 66 |
+
dataset.memory_selection.dynamic.selection_policy=recent \
|
| 67 |
+
algorithm.n_tokens=8 \
|
| 68 |
+
algorithm.context_frames=600 \
|
| 69 |
+
algorithm.chunk_size=1 \
|
| 70 |
+
algorithm.warmup_steps=10000 \
|
| 71 |
+
algorithm.trainability.train_full_dit=true \
|
| 72 |
+
algorithm.trainability.full_dit_start_step=40000 \
|
| 73 |
+
algorithm.trainability.lr.memory_modules=4.0e-5 \
|
| 74 |
+
algorithm.trainability.lr.base_dit=1.0e-5 \
|
| 75 |
+
algorithm.log_video=true \
|
| 76 |
+
algorithm.save_local=true \
|
| 77 |
+
algorithm.diffusion.sampling_timesteps=20 \
|
| 78 |
+
algorithm.noise_route.anchor=high \
|
| 79 |
+
algorithm.noise_route.dynamic=low \
|
| 80 |
+
algorithm.noise_route.revisit=all \
|
| 81 |
+
algorithm.memory_noise.enabled=true \
|
| 82 |
+
algorithm.memory_noise.mode=random_cleaner_fraction \
|
| 83 |
+
algorithm.memory_noise.anchor_max_fraction=0.25 \
|
| 84 |
+
algorithm.memory_noise.dynamic_max_fraction=0.50 \
|
| 85 |
+
algorithm.memory_noise.revisit_max_fraction=0.25 \
|
| 86 |
+
"experiment.training.curriculum=${CURRICULUM}" \
|
| 87 |
+
experiment.training.batch_size=8 \
|
| 88 |
+
experiment.training.optim.accumulate_grad_batches=1 \
|
| 89 |
+
experiment.validation.batch_size=1 \
|
| 90 |
+
experiment.validation.limit_batch=1 \
|
| 91 |
+
experiment.training.checkpointing.every_n_train_steps=5000 \
|
| 92 |
+
experiment.validation.val_every_n_step=5000 \
|
| 93 |
+
experiment.training.max_steps=400000
|
train_dememwm_curric_base_recent_8h200_berzelius.sh
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
#SBATCH --job-name=dememwm-curric-base-recent-8h200
|
| 3 |
+
#SBATCH --nodes=1
|
| 4 |
+
#SBATCH --ntasks-per-node=8
|
| 5 |
+
#SBATCH --cpus-per-task=8
|
| 6 |
+
#SBATCH --time=72:00:00
|
| 7 |
+
#SBATCH --output=slurm_logs/dememwm-curric-base-recent-8h200-%j.out
|
| 8 |
+
#SBATCH --error=slurm_logs/dememwm-curric-base-recent-8h200-%j.out
|
| 9 |
+
#SBATCH --account=berzelius-2025-436
|
| 10 |
+
#SBATCH --gres=gpu:8
|
| 11 |
+
#SBATCH --chdir=/proj/cvl/users/x_fahkh2/DeMemWM
|
| 12 |
+
|
| 13 |
+
set -eo pipefail
|
| 14 |
+
|
| 15 |
+
module load buildenv-gcccuda/12.9.1-gcc11
|
| 16 |
+
source $(conda info --base)/etc/profile.d/conda.sh
|
| 17 |
+
|
| 18 |
+
export PYTHONPATH="./:${PYTHONPATH:-}"
|
| 19 |
+
export HF_HOME=/proj/cvl/users/x_fahkh2/caches
|
| 20 |
+
export TORCH_HOME=/proj/cvl/users/x_fahkh2/caches
|
| 21 |
+
export PIP_CACHE_DIR=/proj/cvl/users/x_fahkh2/caches
|
| 22 |
+
export TMPDIR=/proj/cvl/users/x_fahkh2/caches
|
| 23 |
+
export TRITON_CACHE_DIR=/proj/cvl/users/x_fahkh2/caches
|
| 24 |
+
export CUDA_HOME=$CUDA_ROOT
|
| 25 |
+
export CUDA_VISIBLE_DEVICES=0,1,2,3,4,5,6,7
|
| 26 |
+
export WANDB_DISABLED=true
|
| 27 |
+
export HYDRA_FULL_ERROR=1
|
| 28 |
+
|
| 29 |
+
git checkout main
|
| 30 |
+
|
| 31 |
+
RUN_NAME=train_dememwm_curric_base_recent_a2d4r2_route_ntok8_8h200_bs16_global128_200k
|
| 32 |
+
OUTPUT_DIR=/proj/cvl/users/x_fahkh2/DeMemWM/results/${RUN_NAME}
|
| 33 |
+
CURRICULUM='{enabled:true,stages:[{name:no_updown,until_step:60000,dataset:{wo_updown:true}},{name:with_updown,until_step:200000,dataset:{wo_updown:false}}]}'
|
| 34 |
+
|
| 35 |
+
srun python -m main \
|
| 36 |
+
+name=${RUN_NAME} \
|
| 37 |
+
+output_dir=$OUTPUT_DIR/ \
|
| 38 |
+
auto_resume=true \
|
| 39 |
+
wandb.mode=offline \
|
| 40 |
+
"experiment.tasks=[training]" \
|
| 41 |
+
algorithm=dememwm_base \
|
| 42 |
+
+customized_load=true \
|
| 43 |
+
+seperate_load=true \
|
| 44 |
+
+diffusion_model_path=/proj/cvl/users/x_fahkh2/WorldMem_Repro/checkpoints/oasis500m.safetensors \
|
| 45 |
+
+vae_path=/proj/cvl/users/x_fahkh2/WorldMem_Repro/checkpoints/vit-l-20.safetensors \
|
| 46 |
+
dataset=video_minecraft_dememwm_latent \
|
| 47 |
+
dataset.save_dir=/proj/cvl/users/x_fahkh2/WorldMem_Repro/datasets/minecraft \
|
| 48 |
+
dataset.precomputed_feature_dir=/proj/cvl/users/x_fahkh2/WorldMem_Repro/datasets/minecraft/vae_features \
|
| 49 |
+
dataset.n_frames=8 \
|
| 50 |
+
dataset.n_frames_valid=700 \
|
| 51 |
+
dataset.context_length=100 \
|
| 52 |
+
dataset.single_eval_clip=true \
|
| 53 |
+
dataset.memory_selection.enabled=true \
|
| 54 |
+
dataset.memory_selection.max_anchor_frames=2 \
|
| 55 |
+
dataset.memory_selection.max_dynamic_frames=4 \
|
| 56 |
+
dataset.memory_selection.max_revisit_frames=2 \
|
| 57 |
+
dataset.memory_selection.pose_similarity_threshold=0.6 \
|
| 58 |
+
dataset.memory_selection.training_use_plucker=true \
|
| 59 |
+
dataset.memory_selection.training_plucker_weight=1.0 \
|
| 60 |
+
dataset.memory_selection.fov_overlap_threshold=0.6 \
|
| 61 |
+
dataset.memory_selection.min_total_selected_coverage=0.1 \
|
| 62 |
+
dataset.memory_selection.local_context_exclusion_frames=8 \
|
| 63 |
+
dataset.memory_selection.anchor_diverse_selection=true \
|
| 64 |
+
+dataset.memory_selection.pose_preselect_topk=64 \
|
| 65 |
+
+dataset.memory_selection.candidate_chunk_size=64 \
|
| 66 |
+
dataset.memory_selection.dynamic.selection_policy=recent \
|
| 67 |
+
algorithm.n_tokens=8 \
|
| 68 |
+
algorithm.context_frames=600 \
|
| 69 |
+
algorithm.chunk_size=1 \
|
| 70 |
+
algorithm.warmup_steps=5000 \
|
| 71 |
+
algorithm.trainability.train_full_dit=true \
|
| 72 |
+
algorithm.trainability.full_dit_start_step=20000 \
|
| 73 |
+
algorithm.trainability.lr.memory_modules=8.0e-5 \
|
| 74 |
+
algorithm.trainability.lr.base_dit=2.0e-5 \
|
| 75 |
+
algorithm.log_video=true \
|
| 76 |
+
algorithm.save_local=true \
|
| 77 |
+
algorithm.diffusion.sampling_timesteps=20 \
|
| 78 |
+
algorithm.noise_route.anchor=high \
|
| 79 |
+
algorithm.noise_route.dynamic=low \
|
| 80 |
+
algorithm.noise_route.revisit=all \
|
| 81 |
+
algorithm.memory_noise.enabled=true \
|
| 82 |
+
algorithm.memory_noise.mode=random_cleaner_fraction \
|
| 83 |
+
algorithm.memory_noise.anchor_max_fraction=0.25 \
|
| 84 |
+
algorithm.memory_noise.dynamic_max_fraction=0.50 \
|
| 85 |
+
algorithm.memory_noise.revisit_max_fraction=0.25 \
|
| 86 |
+
"experiment.training.curriculum=${CURRICULUM}" \
|
| 87 |
+
experiment.training.batch_size=16 \
|
| 88 |
+
experiment.training.optim.accumulate_grad_batches=1 \
|
| 89 |
+
experiment.validation.batch_size=1 \
|
| 90 |
+
experiment.validation.limit_batch=1 \
|
| 91 |
+
experiment.training.checkpointing.every_n_train_steps=5000 \
|
| 92 |
+
experiment.validation.val_every_n_step=5000 \
|
| 93 |
+
experiment.training.max_steps=200000
|
train_dememwm_curric_event_trigger_8a100_berzelius.sh
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
#SBATCH --job-name=dememwm-curric-event-8a100
|
| 3 |
+
#SBATCH --nodes=1
|
| 4 |
+
#SBATCH --ntasks-per-node=8
|
| 5 |
+
#SBATCH --cpus-per-task=8
|
| 6 |
+
#SBATCH --time=72:00:00
|
| 7 |
+
#SBATCH --output=slurm_logs/dememwm-curric-event-8a100-%j.out
|
| 8 |
+
#SBATCH --error=slurm_logs/dememwm-curric-event-8a100-%j.out
|
| 9 |
+
#SBATCH --account=berzelius-2025-436
|
| 10 |
+
#SBATCH --gres=gpu:A100-SXM4-80GB:8
|
| 11 |
+
#SBATCH --chdir=/proj/cvl/users/x_fahkh2/DeMemWM
|
| 12 |
+
|
| 13 |
+
set -eo pipefail
|
| 14 |
+
|
| 15 |
+
module load buildenv-gcccuda/12.1.1-gcc12.3.0
|
| 16 |
+
source $(conda info --base)/etc/profile.d/conda.sh
|
| 17 |
+
|
| 18 |
+
export PYTHONPATH="./:${PYTHONPATH:-}"
|
| 19 |
+
export HF_HOME=/proj/cvl/users/x_fahkh2/caches
|
| 20 |
+
export TORCH_HOME=/proj/cvl/users/x_fahkh2/caches
|
| 21 |
+
export PIP_CACHE_DIR=/proj/cvl/users/x_fahkh2/caches
|
| 22 |
+
export TMPDIR=/proj/cvl/users/x_fahkh2/caches
|
| 23 |
+
export TRITON_CACHE_DIR=/proj/cvl/users/x_fahkh2/caches
|
| 24 |
+
export CUDA_HOME=$CUDA_ROOT
|
| 25 |
+
export CUDA_VISIBLE_DEVICES=0,1,2,3,4,5,6,7
|
| 26 |
+
export WANDB_DISABLED=true
|
| 27 |
+
export HYDRA_FULL_ERROR=1
|
| 28 |
+
|
| 29 |
+
git checkout main
|
| 30 |
+
|
| 31 |
+
RUN_NAME=train_dememwm_curric_event_trigger_a2d4r2_route_ntok8_8a100_bs8_global64_400k
|
| 32 |
+
OUTPUT_DIR=/proj/cvl/users/x_fahkh2/DeMemWM/results/${RUN_NAME}
|
| 33 |
+
CURRICULUM='{enabled:true,stages:[{name:no_updown,until_step:120000,dataset:{wo_updown:true}},{name:with_updown,until_step:400000,dataset:{wo_updown:false}}]}'
|
| 34 |
+
|
| 35 |
+
srun python -m main \
|
| 36 |
+
+name=${RUN_NAME} \
|
| 37 |
+
+output_dir=$OUTPUT_DIR/ \
|
| 38 |
+
auto_resume=true \
|
| 39 |
+
wandb.mode=offline \
|
| 40 |
+
"experiment.tasks=[training]" \
|
| 41 |
+
algorithm=dememwm_base \
|
| 42 |
+
+customized_load=true \
|
| 43 |
+
+seperate_load=true \
|
| 44 |
+
+diffusion_model_path=/proj/cvl/users/x_fahkh2/WorldMem_Repro/checkpoints/oasis500m.safetensors \
|
| 45 |
+
+vae_path=/proj/cvl/users/x_fahkh2/WorldMem_Repro/checkpoints/vit-l-20.safetensors \
|
| 46 |
+
dataset=video_minecraft_dememwm_latent \
|
| 47 |
+
dataset.save_dir=/proj/cvl/users/x_fahkh2/WorldMem_Repro/datasets/minecraft \
|
| 48 |
+
dataset.precomputed_feature_dir=/proj/cvl/users/x_fahkh2/WorldMem_Repro/datasets/minecraft/vae_features \
|
| 49 |
+
dataset.n_frames=8 \
|
| 50 |
+
dataset.n_frames_valid=700 \
|
| 51 |
+
dataset.context_length=100 \
|
| 52 |
+
dataset.single_eval_clip=true \
|
| 53 |
+
dataset.memory_selection.enabled=true \
|
| 54 |
+
dataset.memory_selection.max_anchor_frames=2 \
|
| 55 |
+
dataset.memory_selection.max_dynamic_frames=4 \
|
| 56 |
+
dataset.memory_selection.max_revisit_frames=2 \
|
| 57 |
+
dataset.memory_selection.pose_similarity_threshold=0.6 \
|
| 58 |
+
dataset.memory_selection.training_use_plucker=true \
|
| 59 |
+
dataset.memory_selection.training_plucker_weight=1.0 \
|
| 60 |
+
dataset.memory_selection.fov_overlap_threshold=0.6 \
|
| 61 |
+
dataset.memory_selection.min_total_selected_coverage=0.1 \
|
| 62 |
+
dataset.memory_selection.local_context_exclusion_frames=8 \
|
| 63 |
+
dataset.memory_selection.anchor_diverse_selection=true \
|
| 64 |
+
+dataset.memory_selection.pose_preselect_topk=64 \
|
| 65 |
+
+dataset.memory_selection.candidate_chunk_size=64 \
|
| 66 |
+
dataset.memory_selection.dynamic.selection_policy=event_triggered \
|
| 67 |
+
algorithm.n_tokens=8 \
|
| 68 |
+
algorithm.context_frames=600 \
|
| 69 |
+
algorithm.chunk_size=1 \
|
| 70 |
+
algorithm.warmup_steps=10000 \
|
| 71 |
+
algorithm.trainability.train_full_dit=true \
|
| 72 |
+
algorithm.trainability.full_dit_start_step=40000 \
|
| 73 |
+
algorithm.trainability.lr.memory_modules=4.0e-5 \
|
| 74 |
+
algorithm.trainability.lr.base_dit=1.0e-5 \
|
| 75 |
+
algorithm.log_video=true \
|
| 76 |
+
algorithm.save_local=true \
|
| 77 |
+
algorithm.diffusion.sampling_timesteps=20 \
|
| 78 |
+
algorithm.noise_route.anchor=high \
|
| 79 |
+
algorithm.noise_route.dynamic=low \
|
| 80 |
+
algorithm.noise_route.revisit=all \
|
| 81 |
+
algorithm.memory_noise.enabled=true \
|
| 82 |
+
algorithm.memory_noise.mode=random_cleaner_fraction \
|
| 83 |
+
algorithm.memory_noise.anchor_max_fraction=0.25 \
|
| 84 |
+
algorithm.memory_noise.dynamic_max_fraction=0.50 \
|
| 85 |
+
algorithm.memory_noise.revisit_max_fraction=0.25 \
|
| 86 |
+
"experiment.training.curriculum=${CURRICULUM}" \
|
| 87 |
+
experiment.training.batch_size=8 \
|
| 88 |
+
experiment.training.optim.accumulate_grad_batches=1 \
|
| 89 |
+
experiment.validation.batch_size=1 \
|
| 90 |
+
experiment.validation.limit_batch=1 \
|
| 91 |
+
experiment.training.checkpointing.every_n_train_steps=5000 \
|
| 92 |
+
experiment.validation.val_every_n_step=5000 \
|
| 93 |
+
experiment.training.max_steps=400000
|
train_dememwm_curric_event_trigger_8h200_berzelius.sh
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
#SBATCH --job-name=dememwm-curric-event-8h200
|
| 3 |
+
#SBATCH --nodes=1
|
| 4 |
+
#SBATCH --ntasks-per-node=8
|
| 5 |
+
#SBATCH --cpus-per-task=8
|
| 6 |
+
#SBATCH --time=72:00:00
|
| 7 |
+
#SBATCH --output=slurm_logs/dememwm-curric-event-8h200-%j.out
|
| 8 |
+
#SBATCH --error=slurm_logs/dememwm-curric-event-8h200-%j.out
|
| 9 |
+
#SBATCH --account=berzelius-2025-436
|
| 10 |
+
#SBATCH --gres=gpu:8
|
| 11 |
+
#SBATCH --chdir=/proj/cvl/users/x_fahkh2/DeMemWM
|
| 12 |
+
|
| 13 |
+
set -eo pipefail
|
| 14 |
+
|
| 15 |
+
module load buildenv-gcccuda/12.9.1-gcc11
|
| 16 |
+
source $(conda info --base)/etc/profile.d/conda.sh
|
| 17 |
+
|
| 18 |
+
export PYTHONPATH="./:${PYTHONPATH:-}"
|
| 19 |
+
export HF_HOME=/proj/cvl/users/x_fahkh2/caches
|
| 20 |
+
export TORCH_HOME=/proj/cvl/users/x_fahkh2/caches
|
| 21 |
+
export PIP_CACHE_DIR=/proj/cvl/users/x_fahkh2/caches
|
| 22 |
+
export TMPDIR=/proj/cvl/users/x_fahkh2/caches
|
| 23 |
+
export TRITON_CACHE_DIR=/proj/cvl/users/x_fahkh2/caches
|
| 24 |
+
export CUDA_HOME=$CUDA_ROOT
|
| 25 |
+
export CUDA_VISIBLE_DEVICES=0,1,2,3,4,5,6,7
|
| 26 |
+
export WANDB_DISABLED=true
|
| 27 |
+
export HYDRA_FULL_ERROR=1
|
| 28 |
+
|
| 29 |
+
git checkout main
|
| 30 |
+
|
| 31 |
+
RUN_NAME=train_dememwm_curric_event_trigger_a2d4r2_route_ntok8_8h200_bs16_global128_200k
|
| 32 |
+
OUTPUT_DIR=/proj/cvl/users/x_fahkh2/DeMemWM/results/${RUN_NAME}
|
| 33 |
+
CURRICULUM='{enabled:true,stages:[{name:no_updown,until_step:60000,dataset:{wo_updown:true}},{name:with_updown,until_step:200000,dataset:{wo_updown:false}}]}'
|
| 34 |
+
|
| 35 |
+
srun python -m main \
|
| 36 |
+
+name=${RUN_NAME} \
|
| 37 |
+
+output_dir=$OUTPUT_DIR/ \
|
| 38 |
+
auto_resume=true \
|
| 39 |
+
wandb.mode=offline \
|
| 40 |
+
"experiment.tasks=[training]" \
|
| 41 |
+
algorithm=dememwm_base \
|
| 42 |
+
+customized_load=true \
|
| 43 |
+
+seperate_load=true \
|
| 44 |
+
+diffusion_model_path=/proj/cvl/users/x_fahkh2/WorldMem_Repro/checkpoints/oasis500m.safetensors \
|
| 45 |
+
+vae_path=/proj/cvl/users/x_fahkh2/WorldMem_Repro/checkpoints/vit-l-20.safetensors \
|
| 46 |
+
dataset=video_minecraft_dememwm_latent \
|
| 47 |
+
dataset.save_dir=/proj/cvl/users/x_fahkh2/WorldMem_Repro/datasets/minecraft \
|
| 48 |
+
dataset.precomputed_feature_dir=/proj/cvl/users/x_fahkh2/WorldMem_Repro/datasets/minecraft/vae_features \
|
| 49 |
+
dataset.n_frames=8 \
|
| 50 |
+
dataset.n_frames_valid=700 \
|
| 51 |
+
dataset.context_length=100 \
|
| 52 |
+
dataset.single_eval_clip=true \
|
| 53 |
+
dataset.memory_selection.enabled=true \
|
| 54 |
+
dataset.memory_selection.max_anchor_frames=2 \
|
| 55 |
+
dataset.memory_selection.max_dynamic_frames=4 \
|
| 56 |
+
dataset.memory_selection.max_revisit_frames=2 \
|
| 57 |
+
dataset.memory_selection.pose_similarity_threshold=0.6 \
|
| 58 |
+
dataset.memory_selection.training_use_plucker=true \
|
| 59 |
+
dataset.memory_selection.training_plucker_weight=1.0 \
|
| 60 |
+
dataset.memory_selection.fov_overlap_threshold=0.6 \
|
| 61 |
+
dataset.memory_selection.min_total_selected_coverage=0.1 \
|
| 62 |
+
dataset.memory_selection.local_context_exclusion_frames=8 \
|
| 63 |
+
dataset.memory_selection.anchor_diverse_selection=true \
|
| 64 |
+
+dataset.memory_selection.pose_preselect_topk=64 \
|
| 65 |
+
+dataset.memory_selection.candidate_chunk_size=64 \
|
| 66 |
+
dataset.memory_selection.dynamic.selection_policy=event_triggered \
|
| 67 |
+
algorithm.n_tokens=8 \
|
| 68 |
+
algorithm.context_frames=600 \
|
| 69 |
+
algorithm.chunk_size=1 \
|
| 70 |
+
algorithm.warmup_steps=5000 \
|
| 71 |
+
algorithm.trainability.train_full_dit=true \
|
| 72 |
+
algorithm.trainability.full_dit_start_step=20000 \
|
| 73 |
+
algorithm.trainability.lr.memory_modules=8.0e-5 \
|
| 74 |
+
algorithm.trainability.lr.base_dit=2.0e-5 \
|
| 75 |
+
algorithm.log_video=true \
|
| 76 |
+
algorithm.save_local=true \
|
| 77 |
+
algorithm.diffusion.sampling_timesteps=20 \
|
| 78 |
+
algorithm.noise_route.anchor=high \
|
| 79 |
+
algorithm.noise_route.dynamic=low \
|
| 80 |
+
algorithm.noise_route.revisit=all \
|
| 81 |
+
algorithm.memory_noise.enabled=true \
|
| 82 |
+
algorithm.memory_noise.mode=random_cleaner_fraction \
|
| 83 |
+
algorithm.memory_noise.anchor_max_fraction=0.25 \
|
| 84 |
+
algorithm.memory_noise.dynamic_max_fraction=0.50 \
|
| 85 |
+
algorithm.memory_noise.revisit_max_fraction=0.25 \
|
| 86 |
+
"experiment.training.curriculum=${CURRICULUM}" \
|
| 87 |
+
experiment.training.batch_size=16 \
|
| 88 |
+
experiment.training.optim.accumulate_grad_batches=1 \
|
| 89 |
+
experiment.validation.batch_size=1 \
|
| 90 |
+
experiment.validation.limit_batch=1 \
|
| 91 |
+
experiment.training.checkpointing.every_n_train_steps=5000 \
|
| 92 |
+
experiment.validation.val_every_n_step=5000 \
|
| 93 |
+
experiment.training.max_steps=200000
|
train_dememwm_curric_event_trigger_no_memory_noise_8a100_berzelius.sh
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
#SBATCH --job-name=dememwm-curric-event-nomemnoise-8a100
|
| 3 |
+
#SBATCH --nodes=1
|
| 4 |
+
#SBATCH --ntasks-per-node=8
|
| 5 |
+
#SBATCH --cpus-per-task=8
|
| 6 |
+
#SBATCH --time=72:00:00
|
| 7 |
+
#SBATCH --output=slurm_logs/dememwm-curric-event-nomemnoise-8a100-%j.out
|
| 8 |
+
#SBATCH --error=slurm_logs/dememwm-curric-event-nomemnoise-8a100-%j.out
|
| 9 |
+
#SBATCH --account=berzelius-2025-436
|
| 10 |
+
#SBATCH --gres=gpu:A100-SXM4-80GB:8
|
| 11 |
+
#SBATCH --chdir=/proj/cvl/users/x_fahkh2/DeMemWM
|
| 12 |
+
|
| 13 |
+
set -eo pipefail
|
| 14 |
+
|
| 15 |
+
module load buildenv-gcccuda/12.1.1-gcc12.3.0
|
| 16 |
+
source $(conda info --base)/etc/profile.d/conda.sh
|
| 17 |
+
|
| 18 |
+
export PYTHONPATH="./:${PYTHONPATH:-}"
|
| 19 |
+
export HF_HOME=/proj/cvl/users/x_fahkh2/caches
|
| 20 |
+
export TORCH_HOME=/proj/cvl/users/x_fahkh2/caches
|
| 21 |
+
export PIP_CACHE_DIR=/proj/cvl/users/x_fahkh2/caches
|
| 22 |
+
export TMPDIR=/proj/cvl/users/x_fahkh2/caches
|
| 23 |
+
export TRITON_CACHE_DIR=/proj/cvl/users/x_fahkh2/caches
|
| 24 |
+
export CUDA_HOME=$CUDA_ROOT
|
| 25 |
+
export CUDA_VISIBLE_DEVICES=0,1,2,3,4,5,6,7
|
| 26 |
+
export WANDB_DISABLED=true
|
| 27 |
+
export HYDRA_FULL_ERROR=1
|
| 28 |
+
|
| 29 |
+
git checkout main
|
| 30 |
+
|
| 31 |
+
RUN_NAME=train_dememwm_curric_event_trigger_no_memory_noise_a2d4r2_route_ntok8_8a100_bs8_global64_400k
|
| 32 |
+
OUTPUT_DIR=/proj/cvl/users/x_fahkh2/DeMemWM/results/${RUN_NAME}
|
| 33 |
+
CURRICULUM='{enabled:true,stages:[{name:no_updown,until_step:120000,dataset:{wo_updown:true}},{name:with_updown,until_step:400000,dataset:{wo_updown:false}}]}'
|
| 34 |
+
|
| 35 |
+
srun python -m main \
|
| 36 |
+
+name=${RUN_NAME} \
|
| 37 |
+
+output_dir=$OUTPUT_DIR/ \
|
| 38 |
+
auto_resume=true \
|
| 39 |
+
wandb.mode=offline \
|
| 40 |
+
"experiment.tasks=[training]" \
|
| 41 |
+
algorithm=dememwm_base \
|
| 42 |
+
+customized_load=true \
|
| 43 |
+
+seperate_load=true \
|
| 44 |
+
+diffusion_model_path=/proj/cvl/users/x_fahkh2/WorldMem_Repro/checkpoints/oasis500m.safetensors \
|
| 45 |
+
+vae_path=/proj/cvl/users/x_fahkh2/WorldMem_Repro/checkpoints/vit-l-20.safetensors \
|
| 46 |
+
dataset=video_minecraft_dememwm_latent \
|
| 47 |
+
dataset.save_dir=/proj/cvl/users/x_fahkh2/WorldMem_Repro/datasets/minecraft \
|
| 48 |
+
dataset.precomputed_feature_dir=/proj/cvl/users/x_fahkh2/WorldMem_Repro/datasets/minecraft/vae_features \
|
| 49 |
+
dataset.n_frames=8 \
|
| 50 |
+
dataset.n_frames_valid=700 \
|
| 51 |
+
dataset.context_length=100 \
|
| 52 |
+
dataset.single_eval_clip=true \
|
| 53 |
+
dataset.memory_selection.enabled=true \
|
| 54 |
+
dataset.memory_selection.max_anchor_frames=2 \
|
| 55 |
+
dataset.memory_selection.max_dynamic_frames=4 \
|
| 56 |
+
dataset.memory_selection.max_revisit_frames=2 \
|
| 57 |
+
dataset.memory_selection.pose_similarity_threshold=0.6 \
|
| 58 |
+
dataset.memory_selection.training_use_plucker=true \
|
| 59 |
+
dataset.memory_selection.training_plucker_weight=1.0 \
|
| 60 |
+
dataset.memory_selection.fov_overlap_threshold=0.6 \
|
| 61 |
+
dataset.memory_selection.min_total_selected_coverage=0.1 \
|
| 62 |
+
dataset.memory_selection.local_context_exclusion_frames=8 \
|
| 63 |
+
dataset.memory_selection.anchor_diverse_selection=true \
|
| 64 |
+
+dataset.memory_selection.pose_preselect_topk=64 \
|
| 65 |
+
+dataset.memory_selection.candidate_chunk_size=64 \
|
| 66 |
+
dataset.memory_selection.dynamic.selection_policy=event_triggered \
|
| 67 |
+
algorithm.n_tokens=8 \
|
| 68 |
+
algorithm.context_frames=600 \
|
| 69 |
+
algorithm.chunk_size=1 \
|
| 70 |
+
algorithm.warmup_steps=10000 \
|
| 71 |
+
algorithm.trainability.train_full_dit=true \
|
| 72 |
+
algorithm.trainability.full_dit_start_step=40000 \
|
| 73 |
+
algorithm.trainability.lr.memory_modules=4.0e-5 \
|
| 74 |
+
algorithm.trainability.lr.base_dit=1.0e-5 \
|
| 75 |
+
algorithm.log_video=true \
|
| 76 |
+
algorithm.save_local=true \
|
| 77 |
+
algorithm.diffusion.sampling_timesteps=20 \
|
| 78 |
+
algorithm.noise_route.anchor=high \
|
| 79 |
+
algorithm.noise_route.dynamic=low \
|
| 80 |
+
algorithm.noise_route.revisit=all \
|
| 81 |
+
algorithm.memory_noise.enabled=false \
|
| 82 |
+
algorithm.memory_noise.mode=random_cleaner_fraction \
|
| 83 |
+
algorithm.memory_noise.anchor_max_fraction=0.25 \
|
| 84 |
+
algorithm.memory_noise.dynamic_max_fraction=0.50 \
|
| 85 |
+
algorithm.memory_noise.revisit_max_fraction=0.25 \
|
| 86 |
+
"experiment.training.curriculum=${CURRICULUM}" \
|
| 87 |
+
experiment.training.batch_size=8 \
|
| 88 |
+
experiment.training.optim.accumulate_grad_batches=1 \
|
| 89 |
+
experiment.validation.batch_size=1 \
|
| 90 |
+
experiment.validation.limit_batch=1 \
|
| 91 |
+
experiment.training.checkpointing.every_n_train_steps=5000 \
|
| 92 |
+
experiment.validation.val_every_n_step=5000 \
|
| 93 |
+
experiment.training.max_steps=400000
|
train_dememwm_curric_event_trigger_no_memory_noise_8h200_berzelius.sh
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
#SBATCH --job-name=dememwm-curric-event-nomemnoise-8h200
|
| 3 |
+
#SBATCH --nodes=1
|
| 4 |
+
#SBATCH --ntasks-per-node=8
|
| 5 |
+
#SBATCH --cpus-per-task=8
|
| 6 |
+
#SBATCH --time=72:00:00
|
| 7 |
+
#SBATCH --output=slurm_logs/dememwm-curric-event-nomemnoise-8h200-%j.out
|
| 8 |
+
#SBATCH --error=slurm_logs/dememwm-curric-event-nomemnoise-8h200-%j.out
|
| 9 |
+
#SBATCH --account=berzelius-2025-436
|
| 10 |
+
#SBATCH --gres=gpu:8
|
| 11 |
+
#SBATCH --chdir=/proj/cvl/users/x_fahkh2/DeMemWM
|
| 12 |
+
|
| 13 |
+
set -eo pipefail
|
| 14 |
+
|
| 15 |
+
module load buildenv-gcccuda/12.9.1-gcc11
|
| 16 |
+
source $(conda info --base)/etc/profile.d/conda.sh
|
| 17 |
+
|
| 18 |
+
export PYTHONPATH="./:${PYTHONPATH:-}"
|
| 19 |
+
export HF_HOME=/proj/cvl/users/x_fahkh2/caches
|
| 20 |
+
export TORCH_HOME=/proj/cvl/users/x_fahkh2/caches
|
| 21 |
+
export PIP_CACHE_DIR=/proj/cvl/users/x_fahkh2/caches
|
| 22 |
+
export TMPDIR=/proj/cvl/users/x_fahkh2/caches
|
| 23 |
+
export TRITON_CACHE_DIR=/proj/cvl/users/x_fahkh2/caches
|
| 24 |
+
export CUDA_HOME=$CUDA_ROOT
|
| 25 |
+
export CUDA_VISIBLE_DEVICES=0,1,2,3,4,5,6,7
|
| 26 |
+
export WANDB_DISABLED=true
|
| 27 |
+
export HYDRA_FULL_ERROR=1
|
| 28 |
+
|
| 29 |
+
git checkout main
|
| 30 |
+
|
| 31 |
+
RUN_NAME=train_dememwm_curric_event_trigger_no_memory_noise_a2d4r2_route_ntok8_8h200_bs16_global128_200k
|
| 32 |
+
OUTPUT_DIR=/proj/cvl/users/x_fahkh2/DeMemWM/results/${RUN_NAME}
|
| 33 |
+
CURRICULUM='{enabled:true,stages:[{name:no_updown,until_step:60000,dataset:{wo_updown:true}},{name:with_updown,until_step:200000,dataset:{wo_updown:false}}]}'
|
| 34 |
+
|
| 35 |
+
srun python -m main \
|
| 36 |
+
+name=${RUN_NAME} \
|
| 37 |
+
+output_dir=$OUTPUT_DIR/ \
|
| 38 |
+
auto_resume=true \
|
| 39 |
+
wandb.mode=offline \
|
| 40 |
+
"experiment.tasks=[training]" \
|
| 41 |
+
algorithm=dememwm_base \
|
| 42 |
+
+customized_load=true \
|
| 43 |
+
+seperate_load=true \
|
| 44 |
+
+diffusion_model_path=/proj/cvl/users/x_fahkh2/WorldMem_Repro/checkpoints/oasis500m.safetensors \
|
| 45 |
+
+vae_path=/proj/cvl/users/x_fahkh2/WorldMem_Repro/checkpoints/vit-l-20.safetensors \
|
| 46 |
+
dataset=video_minecraft_dememwm_latent \
|
| 47 |
+
dataset.save_dir=/proj/cvl/users/x_fahkh2/WorldMem_Repro/datasets/minecraft \
|
| 48 |
+
dataset.precomputed_feature_dir=/proj/cvl/users/x_fahkh2/WorldMem_Repro/datasets/minecraft/vae_features \
|
| 49 |
+
dataset.n_frames=8 \
|
| 50 |
+
dataset.n_frames_valid=700 \
|
| 51 |
+
dataset.context_length=100 \
|
| 52 |
+
dataset.single_eval_clip=true \
|
| 53 |
+
dataset.memory_selection.enabled=true \
|
| 54 |
+
dataset.memory_selection.max_anchor_frames=2 \
|
| 55 |
+
dataset.memory_selection.max_dynamic_frames=4 \
|
| 56 |
+
dataset.memory_selection.max_revisit_frames=2 \
|
| 57 |
+
dataset.memory_selection.pose_similarity_threshold=0.6 \
|
| 58 |
+
dataset.memory_selection.training_use_plucker=true \
|
| 59 |
+
dataset.memory_selection.training_plucker_weight=1.0 \
|
| 60 |
+
dataset.memory_selection.fov_overlap_threshold=0.6 \
|
| 61 |
+
dataset.memory_selection.min_total_selected_coverage=0.1 \
|
| 62 |
+
dataset.memory_selection.local_context_exclusion_frames=8 \
|
| 63 |
+
dataset.memory_selection.anchor_diverse_selection=true \
|
| 64 |
+
+dataset.memory_selection.pose_preselect_topk=64 \
|
| 65 |
+
+dataset.memory_selection.candidate_chunk_size=64 \
|
| 66 |
+
dataset.memory_selection.dynamic.selection_policy=event_triggered \
|
| 67 |
+
algorithm.n_tokens=8 \
|
| 68 |
+
algorithm.context_frames=600 \
|
| 69 |
+
algorithm.chunk_size=1 \
|
| 70 |
+
algorithm.warmup_steps=5000 \
|
| 71 |
+
algorithm.trainability.train_full_dit=true \
|
| 72 |
+
algorithm.trainability.full_dit_start_step=20000 \
|
| 73 |
+
algorithm.trainability.lr.memory_modules=8.0e-5 \
|
| 74 |
+
algorithm.trainability.lr.base_dit=2.0e-5 \
|
| 75 |
+
algorithm.log_video=true \
|
| 76 |
+
algorithm.save_local=true \
|
| 77 |
+
algorithm.diffusion.sampling_timesteps=20 \
|
| 78 |
+
algorithm.noise_route.anchor=high \
|
| 79 |
+
algorithm.noise_route.dynamic=low \
|
| 80 |
+
algorithm.noise_route.revisit=all \
|
| 81 |
+
algorithm.memory_noise.enabled=false \
|
| 82 |
+
algorithm.memory_noise.mode=random_cleaner_fraction \
|
| 83 |
+
algorithm.memory_noise.anchor_max_fraction=0.25 \
|
| 84 |
+
algorithm.memory_noise.dynamic_max_fraction=0.50 \
|
| 85 |
+
algorithm.memory_noise.revisit_max_fraction=0.25 \
|
| 86 |
+
"experiment.training.curriculum=${CURRICULUM}" \
|
| 87 |
+
experiment.training.batch_size=16 \
|
| 88 |
+
experiment.training.optim.accumulate_grad_batches=1 \
|
| 89 |
+
experiment.validation.batch_size=1 \
|
| 90 |
+
experiment.validation.limit_batch=1 \
|
| 91 |
+
experiment.training.checkpointing.every_n_train_steps=5000 \
|
| 92 |
+
experiment.validation.val_every_n_step=5000 \
|
| 93 |
+
experiment.training.max_steps=200000
|
train_dememwm_curric_event_trigger_no_route_8a100_berzelius.sh
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
#SBATCH --job-name=dememwm-curric-event-noroute-8a100
|
| 3 |
+
#SBATCH --nodes=1
|
| 4 |
+
#SBATCH --ntasks-per-node=8
|
| 5 |
+
#SBATCH --cpus-per-task=8
|
| 6 |
+
#SBATCH --time=72:00:00
|
| 7 |
+
#SBATCH --output=slurm_logs/dememwm-curric-event-noroute-8a100-%j.out
|
| 8 |
+
#SBATCH --error=slurm_logs/dememwm-curric-event-noroute-8a100-%j.out
|
| 9 |
+
#SBATCH --account=berzelius-2025-436
|
| 10 |
+
#SBATCH --gres=gpu:A100-SXM4-80GB:8
|
| 11 |
+
#SBATCH --chdir=/proj/cvl/users/x_fahkh2/DeMemWM
|
| 12 |
+
|
| 13 |
+
set -eo pipefail
|
| 14 |
+
|
| 15 |
+
module load buildenv-gcccuda/12.1.1-gcc12.3.0
|
| 16 |
+
source $(conda info --base)/etc/profile.d/conda.sh
|
| 17 |
+
|
| 18 |
+
export PYTHONPATH="./:${PYTHONPATH:-}"
|
| 19 |
+
export HF_HOME=/proj/cvl/users/x_fahkh2/caches
|
| 20 |
+
export TORCH_HOME=/proj/cvl/users/x_fahkh2/caches
|
| 21 |
+
export PIP_CACHE_DIR=/proj/cvl/users/x_fahkh2/caches
|
| 22 |
+
export TMPDIR=/proj/cvl/users/x_fahkh2/caches
|
| 23 |
+
export TRITON_CACHE_DIR=/proj/cvl/users/x_fahkh2/caches
|
| 24 |
+
export CUDA_HOME=$CUDA_ROOT
|
| 25 |
+
export CUDA_VISIBLE_DEVICES=0,1,2,3,4,5,6,7
|
| 26 |
+
export WANDB_DISABLED=true
|
| 27 |
+
export HYDRA_FULL_ERROR=1
|
| 28 |
+
|
| 29 |
+
git checkout main
|
| 30 |
+
|
| 31 |
+
RUN_NAME=train_dememwm_curric_event_trigger_no_route_a2d4r2_ntok8_8a100_bs8_global64_400k
|
| 32 |
+
OUTPUT_DIR=/proj/cvl/users/x_fahkh2/DeMemWM/results/${RUN_NAME}
|
| 33 |
+
CURRICULUM='{enabled:true,stages:[{name:no_updown,until_step:120000,dataset:{wo_updown:true}},{name:with_updown,until_step:400000,dataset:{wo_updown:false}}]}'
|
| 34 |
+
|
| 35 |
+
srun python -m main \
|
| 36 |
+
+name=${RUN_NAME} \
|
| 37 |
+
+output_dir=$OUTPUT_DIR/ \
|
| 38 |
+
auto_resume=true \
|
| 39 |
+
wandb.mode=offline \
|
| 40 |
+
"experiment.tasks=[training]" \
|
| 41 |
+
algorithm=dememwm_base \
|
| 42 |
+
+customized_load=true \
|
| 43 |
+
+seperate_load=true \
|
| 44 |
+
+diffusion_model_path=/proj/cvl/users/x_fahkh2/WorldMem_Repro/checkpoints/oasis500m.safetensors \
|
| 45 |
+
+vae_path=/proj/cvl/users/x_fahkh2/WorldMem_Repro/checkpoints/vit-l-20.safetensors \
|
| 46 |
+
dataset=video_minecraft_dememwm_latent \
|
| 47 |
+
dataset.save_dir=/proj/cvl/users/x_fahkh2/WorldMem_Repro/datasets/minecraft \
|
| 48 |
+
dataset.precomputed_feature_dir=/proj/cvl/users/x_fahkh2/WorldMem_Repro/datasets/minecraft/vae_features \
|
| 49 |
+
dataset.n_frames=8 \
|
| 50 |
+
dataset.n_frames_valid=700 \
|
| 51 |
+
dataset.context_length=100 \
|
| 52 |
+
dataset.single_eval_clip=true \
|
| 53 |
+
dataset.memory_selection.enabled=true \
|
| 54 |
+
dataset.memory_selection.max_anchor_frames=2 \
|
| 55 |
+
dataset.memory_selection.max_dynamic_frames=4 \
|
| 56 |
+
dataset.memory_selection.max_revisit_frames=2 \
|
| 57 |
+
dataset.memory_selection.pose_similarity_threshold=0.6 \
|
| 58 |
+
dataset.memory_selection.training_use_plucker=true \
|
| 59 |
+
dataset.memory_selection.training_plucker_weight=1.0 \
|
| 60 |
+
dataset.memory_selection.fov_overlap_threshold=0.6 \
|
| 61 |
+
dataset.memory_selection.min_total_selected_coverage=0.1 \
|
| 62 |
+
dataset.memory_selection.local_context_exclusion_frames=8 \
|
| 63 |
+
dataset.memory_selection.anchor_diverse_selection=true \
|
| 64 |
+
+dataset.memory_selection.pose_preselect_topk=64 \
|
| 65 |
+
+dataset.memory_selection.candidate_chunk_size=64 \
|
| 66 |
+
dataset.memory_selection.dynamic.selection_policy=event_triggered \
|
| 67 |
+
algorithm.n_tokens=8 \
|
| 68 |
+
algorithm.context_frames=600 \
|
| 69 |
+
algorithm.chunk_size=1 \
|
| 70 |
+
algorithm.warmup_steps=10000 \
|
| 71 |
+
algorithm.trainability.train_full_dit=true \
|
| 72 |
+
algorithm.trainability.full_dit_start_step=40000 \
|
| 73 |
+
algorithm.trainability.lr.memory_modules=4.0e-5 \
|
| 74 |
+
algorithm.trainability.lr.base_dit=1.0e-5 \
|
| 75 |
+
algorithm.log_video=true \
|
| 76 |
+
algorithm.save_local=true \
|
| 77 |
+
algorithm.diffusion.sampling_timesteps=20 \
|
| 78 |
+
algorithm.noise_route.anchor=all \
|
| 79 |
+
algorithm.noise_route.dynamic=all \
|
| 80 |
+
algorithm.noise_route.revisit=all \
|
| 81 |
+
algorithm.memory_noise.enabled=true \
|
| 82 |
+
algorithm.memory_noise.mode=random_cleaner_fraction \
|
| 83 |
+
algorithm.memory_noise.anchor_max_fraction=0.25 \
|
| 84 |
+
algorithm.memory_noise.dynamic_max_fraction=0.50 \
|
| 85 |
+
algorithm.memory_noise.revisit_max_fraction=0.25 \
|
| 86 |
+
"experiment.training.curriculum=${CURRICULUM}" \
|
| 87 |
+
experiment.training.batch_size=8 \
|
| 88 |
+
experiment.training.optim.accumulate_grad_batches=1 \
|
| 89 |
+
experiment.validation.batch_size=1 \
|
| 90 |
+
experiment.validation.limit_batch=1 \
|
| 91 |
+
experiment.training.checkpointing.every_n_train_steps=5000 \
|
| 92 |
+
experiment.validation.val_every_n_step=5000 \
|
| 93 |
+
experiment.training.max_steps=400000
|
train_dememwm_curric_event_trigger_no_route_8h200_berzelius.sh
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
#SBATCH --job-name=dememwm-curric-event-noroute-8h200
|
| 3 |
+
#SBATCH --nodes=1
|
| 4 |
+
#SBATCH --ntasks-per-node=8
|
| 5 |
+
#SBATCH --cpus-per-task=8
|
| 6 |
+
#SBATCH --time=72:00:00
|
| 7 |
+
#SBATCH --output=slurm_logs/dememwm-curric-event-noroute-8h200-%j.out
|
| 8 |
+
#SBATCH --error=slurm_logs/dememwm-curric-event-noroute-8h200-%j.out
|
| 9 |
+
#SBATCH --account=berzelius-2025-436
|
| 10 |
+
#SBATCH --gres=gpu:8
|
| 11 |
+
#SBATCH --chdir=/proj/cvl/users/x_fahkh2/DeMemWM
|
| 12 |
+
|
| 13 |
+
set -eo pipefail
|
| 14 |
+
|
| 15 |
+
module load buildenv-gcccuda/12.9.1-gcc11
|
| 16 |
+
source $(conda info --base)/etc/profile.d/conda.sh
|
| 17 |
+
|
| 18 |
+
export PYTHONPATH="./:${PYTHONPATH:-}"
|
| 19 |
+
export HF_HOME=/proj/cvl/users/x_fahkh2/caches
|
| 20 |
+
export TORCH_HOME=/proj/cvl/users/x_fahkh2/caches
|
| 21 |
+
export PIP_CACHE_DIR=/proj/cvl/users/x_fahkh2/caches
|
| 22 |
+
export TMPDIR=/proj/cvl/users/x_fahkh2/caches
|
| 23 |
+
export TRITON_CACHE_DIR=/proj/cvl/users/x_fahkh2/caches
|
| 24 |
+
export CUDA_HOME=$CUDA_ROOT
|
| 25 |
+
export CUDA_VISIBLE_DEVICES=0,1,2,3,4,5,6,7
|
| 26 |
+
export WANDB_DISABLED=true
|
| 27 |
+
export HYDRA_FULL_ERROR=1
|
| 28 |
+
|
| 29 |
+
git checkout main
|
| 30 |
+
|
| 31 |
+
RUN_NAME=train_dememwm_curric_event_trigger_no_route_a2d4r2_ntok8_8h200_bs16_global128_200k
|
| 32 |
+
OUTPUT_DIR=/proj/cvl/users/x_fahkh2/DeMemWM/results/${RUN_NAME}
|
| 33 |
+
CURRICULUM='{enabled:true,stages:[{name:no_updown,until_step:60000,dataset:{wo_updown:true}},{name:with_updown,until_step:200000,dataset:{wo_updown:false}}]}'
|
| 34 |
+
|
| 35 |
+
srun python -m main \
|
| 36 |
+
+name=${RUN_NAME} \
|
| 37 |
+
+output_dir=$OUTPUT_DIR/ \
|
| 38 |
+
auto_resume=true \
|
| 39 |
+
wandb.mode=offline \
|
| 40 |
+
"experiment.tasks=[training]" \
|
| 41 |
+
algorithm=dememwm_base \
|
| 42 |
+
+customized_load=true \
|
| 43 |
+
+seperate_load=true \
|
| 44 |
+
+diffusion_model_path=/proj/cvl/users/x_fahkh2/WorldMem_Repro/checkpoints/oasis500m.safetensors \
|
| 45 |
+
+vae_path=/proj/cvl/users/x_fahkh2/WorldMem_Repro/checkpoints/vit-l-20.safetensors \
|
| 46 |
+
dataset=video_minecraft_dememwm_latent \
|
| 47 |
+
dataset.save_dir=/proj/cvl/users/x_fahkh2/WorldMem_Repro/datasets/minecraft \
|
| 48 |
+
dataset.precomputed_feature_dir=/proj/cvl/users/x_fahkh2/WorldMem_Repro/datasets/minecraft/vae_features \
|
| 49 |
+
dataset.n_frames=8 \
|
| 50 |
+
dataset.n_frames_valid=700 \
|
| 51 |
+
dataset.context_length=100 \
|
| 52 |
+
dataset.single_eval_clip=true \
|
| 53 |
+
dataset.memory_selection.enabled=true \
|
| 54 |
+
dataset.memory_selection.max_anchor_frames=2 \
|
| 55 |
+
dataset.memory_selection.max_dynamic_frames=4 \
|
| 56 |
+
dataset.memory_selection.max_revisit_frames=2 \
|
| 57 |
+
dataset.memory_selection.pose_similarity_threshold=0.6 \
|
| 58 |
+
dataset.memory_selection.training_use_plucker=true \
|
| 59 |
+
dataset.memory_selection.training_plucker_weight=1.0 \
|
| 60 |
+
dataset.memory_selection.fov_overlap_threshold=0.6 \
|
| 61 |
+
dataset.memory_selection.min_total_selected_coverage=0.1 \
|
| 62 |
+
dataset.memory_selection.local_context_exclusion_frames=8 \
|
| 63 |
+
dataset.memory_selection.anchor_diverse_selection=true \
|
| 64 |
+
+dataset.memory_selection.pose_preselect_topk=64 \
|
| 65 |
+
+dataset.memory_selection.candidate_chunk_size=64 \
|
| 66 |
+
dataset.memory_selection.dynamic.selection_policy=event_triggered \
|
| 67 |
+
algorithm.n_tokens=8 \
|
| 68 |
+
algorithm.context_frames=600 \
|
| 69 |
+
algorithm.chunk_size=1 \
|
| 70 |
+
algorithm.warmup_steps=5000 \
|
| 71 |
+
algorithm.trainability.train_full_dit=true \
|
| 72 |
+
algorithm.trainability.full_dit_start_step=20000 \
|
| 73 |
+
algorithm.trainability.lr.memory_modules=8.0e-5 \
|
| 74 |
+
algorithm.trainability.lr.base_dit=2.0e-5 \
|
| 75 |
+
algorithm.log_video=true \
|
| 76 |
+
algorithm.save_local=true \
|
| 77 |
+
algorithm.diffusion.sampling_timesteps=20 \
|
| 78 |
+
algorithm.noise_route.anchor=all \
|
| 79 |
+
algorithm.noise_route.dynamic=all \
|
| 80 |
+
algorithm.noise_route.revisit=all \
|
| 81 |
+
algorithm.memory_noise.enabled=true \
|
| 82 |
+
algorithm.memory_noise.mode=random_cleaner_fraction \
|
| 83 |
+
algorithm.memory_noise.anchor_max_fraction=0.25 \
|
| 84 |
+
algorithm.memory_noise.dynamic_max_fraction=0.50 \
|
| 85 |
+
algorithm.memory_noise.revisit_max_fraction=0.25 \
|
| 86 |
+
"experiment.training.curriculum=${CURRICULUM}" \
|
| 87 |
+
experiment.training.batch_size=16 \
|
| 88 |
+
experiment.training.optim.accumulate_grad_batches=1 \
|
| 89 |
+
experiment.validation.batch_size=1 \
|
| 90 |
+
experiment.validation.limit_batch=1 \
|
| 91 |
+
experiment.training.checkpointing.every_n_train_steps=5000 \
|
| 92 |
+
experiment.validation.val_every_n_step=5000 \
|
| 93 |
+
experiment.training.max_steps=200000
|