simplecloud commited on
Commit
12ccb27
·
verified ·
1 Parent(s): 37f8096

Upload folder using huggingface_hub

Browse files
VTimeLLM/.vscode/launch.json ADDED
@@ -0,0 +1,102 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "version": "0.2.0",
3
+ "configurations": [
4
+ {
5
+ "name": "Debug MDPO Training",
6
+ "type": "python",
7
+ "request": "launch",
8
+ "program": "${workspaceFolder}/scripts/train/debug_mdpo_train.sh",
9
+ "console": "integratedTerminal",
10
+ "cwd": "${workspaceFolder}",
11
+ "env": {
12
+ "PYTHONPATH": "${workspaceFolder}:${env:PYTHONPATH}",
13
+ "CUDA_VISIBLE_DEVICES": "1",
14
+ "TRANSFORMERS_OFFLINE": "1",
15
+ "WANDB_PROJECT": "vtimellm"
16
+ },
17
+ "args": [],
18
+ "justMyCode": false,
19
+ "stopOnEntry": false
20
+ },
21
+ {
22
+ "name": "Debug Python Training Direct",
23
+ "type": "python",
24
+ "request": "launch",
25
+ "module": "vtimellm.train.train_dpo_mem",
26
+ "console": "integratedTerminal",
27
+ "cwd": "${workspaceFolder}",
28
+ "env": {
29
+ "PYTHONPATH": "${workspaceFolder}:${env:PYTHONPATH}",
30
+ "CUDA_VISIBLE_DEVICES": "1",
31
+ "TRANSFORMERS_OFFLINE": "1",
32
+ "WANDB_PROJECT": "vtimellm",
33
+ "RANK": "1",
34
+ "MASTER_PORT": "29571"
35
+ },
36
+ "args": [
37
+ "--deepspeed", "./scripts/zero2.json",
38
+ "--lora_enable", "True",
39
+ "--lora_r", "8",
40
+ "--lora_alpha", "128",
41
+ "--training_stage", "3",
42
+ "--finetuning", "True",
43
+ "--model_name_or_path", "./checkpoints/vicuna-7b-v1.5",
44
+ "--version", "v1",
45
+ "--data_path", "./data/activitynet/mdpo-train.json",
46
+ "--data_folder", "./data/activitynet/videos/train",
47
+ "--feat_folder", "./data/activitynet/clipvitl14-vtimellm.pth",
48
+ "--pretrain_mm_mlp_adapter", "./checkpoints/vtimellm-vicuna-v1-5-7b-stage1/mm_projector.bin",
49
+ "--stage2_path", "./checkpoints/vtimellm-vicuna-v1-5-7b-stage2",
50
+ "--stage3_path", "./checkpoints/vtimellm-vicuna-v1-5-7b-stage3",
51
+ "--stage4_path", "checkpoints/vtimellm-vicuna-v1-5-7b-activitynet-stage4",
52
+ "--output_dir", "./outputs/vtimellm-vicuna-v1-5-7b-activitynet-stage5",
53
+ "--bf16", "True",
54
+ "--max_steps", "100",
55
+ "--per_device_train_batch_size", "2",
56
+ "--gradient_accumulation_steps", "4",
57
+ "--evaluation_strategy", "no",
58
+ "--save_strategy", "no",
59
+ "--save_steps", "50000",
60
+ "--save_total_limit", "10",
61
+ "--learning_rate", "1e-6",
62
+ "--freeze_mm_mlp_adapter", "True",
63
+ "--weight_decay", "0.",
64
+ "--warmup_ratio", "0.1",
65
+ "--lr_scheduler_type", "cosine",
66
+ "--logging_steps", "1",
67
+ "--tf32", "True",
68
+ "--model_max_length", "2048",
69
+ "--gradient_checkpointing", "True",
70
+ "--dataloader_num_workers", "4",
71
+ "--lazy_preprocess", "True",
72
+ "--report_to", "none",
73
+ "--run_name", "vtimellm-vicuna-v1-5-7b-activitynet-stage5",
74
+ "--gamma", "0.0",
75
+ "--beta", "0.5",
76
+ "--dpo_alpha", "1.0",
77
+ "--train4dpo"
78
+ ],
79
+ "justMyCode": false,
80
+ "stopOnEntry": false
81
+ },
82
+ {
83
+ "name": "Debug with DeepSpeed",
84
+ "type": "python",
85
+ "request": "launch",
86
+ "program": "${workspaceFolder}/scripts/train/debug_deepspeed.py",
87
+ "console": "integratedTerminal",
88
+ "cwd": "${workspaceFolder}",
89
+ "env": {
90
+ "PYTHONPATH": "${workspaceFolder}:${env:PYTHONPATH}",
91
+ "CUDA_VISIBLE_DEVICES": "1",
92
+ "TRANSFORMERS_OFFLINE": "1",
93
+ "WANDB_PROJECT": "vtimellm",
94
+ "RANK": "1",
95
+ "MASTER_PORT": "29571"
96
+ },
97
+ "args": [],
98
+ "justMyCode": false,
99
+ "stopOnEntry": false
100
+ }
101
+ ]
102
+ }
VTimeLLM/.vscode/settings.json ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "python.defaultInterpreterPath": "/home/jisoo/.conda/envs/vtimellm/bin/python",
3
+ "python.terminal.activateEnvironment": true,
4
+ "python.condaPath": "/home/jisoo/.conda/bin/conda",
5
+ "python.envFile": "${workspaceFolder}/.env",
6
+ "python.analysis.extraPaths": [
7
+ "${workspaceFolder}",
8
+ "${workspaceFolder}/vtimellm",
9
+ "${workspaceFolder}/vtimellm/train",
10
+ "${workspaceFolder}/vtimellm/model"
11
+ ],
12
+ "python.analysis.autoImportCompletions": true,
13
+ "python.analysis.typeCheckingMode": "basic",
14
+ "python.analysis.autoSearchPaths": true,
15
+ "python.analysis.diagnosticMode": "workspace",
16
+ "python.analysis.stubPath": "${workspaceFolder}/typings",
17
+ "python.linting.enabled": true,
18
+ "python.linting.pylintEnabled": false,
19
+ "python.linting.flake8Enabled": true,
20
+ "python.linting.mypyEnabled": false,
21
+ "python.formatting.provider": "black",
22
+ "python.sortImports.args": ["--profile", "black"],
23
+ "files.associations": {
24
+ "*.py": "python"
25
+ },
26
+ "terminal.integrated.env.linux": {
27
+ "PYTHONPATH": "${workspaceFolder}:${env:PYTHONPATH}",
28
+ "CUDA_VISIBLE_DEVICES": "1",
29
+ "TRANSFORMERS_OFFLINE": "1",
30
+ "WANDB_PROJECT": "vtimellm"
31
+ },
32
+ "terminal.integrated.defaultProfile.linux": "bash",
33
+ "terminal.integrated.profiles.linux": {
34
+ "bash": {
35
+ "path": "/bin/bash",
36
+ "args": ["-l"]
37
+ }
38
+ }
39
+ }
VTimeLLM/data/activitynet/videos/val/v_Amgt0yzQido.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a3b50a90af31035e4960350e383a7aad015484be19a014ccf4bad204bc7c5589
3
+ size 12102300
VTimeLLM/data/activitynet/videos/val/v_EVtM8DKW4bc.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e39f5c8b2963fe2143ab88f0c3f54be349b5bcd9c852b0f07a825b34c099a21e
3
+ size 39032571
VTimeLLM/data/activitynet/videos/val/v_dB50ZkOlDzY.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:383d02b3b60d5e467ba052b0e387ff9f31375c5cd2382300506265f7e3956d9d
3
+ size 4115639
VTimeLLM/data/activitynet/videos/val/v_skIP_U4EYDQ.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:022e4223381232299816b69ae716f8f98b9fdf8409091886d6a96c458ec666e9
3
+ size 1802295
VTimeLLM/data/activitynet/videos/val/v_xOmfJGR5fBw.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:442e7fa862077b854c3654fbe2e7aedaa7606b9c882e6e90d111ec4f4fd38b78
3
+ size 90494950