kmcode commited on
Commit
3c30fc5
·
verified ·
1 Parent(s): 80dda67

Upload folder using huggingface_hub

Browse files
Files changed (17) hide show
  1. trash2.py +113 -0
  2. wan21_480P/AllShrink_Uniform256_Inpaint15Other5_14BV3_LightSparseConcatPosiMaxPool3dV3196_ConcatProj_NoDecomp_RefTimeNew_SelfQKOVFFN_Only49_1e5_AW3_DS_Ref4/step-35000-epoch-0.safetensors +3 -0
  3. wan21_720P/AllShrink_720P_14BInp10POd_LightSparseConcatPosiMaxPool3dV2_ConcatProj_NoDecomp_RefTimeNew_SelfQKOVFFN_Only49_1e5_AW3_DS_Ref4_MinTraj256_W1000/step-31000-epoch-0.safetensors +3 -0
  4. wan22_480P/AllShrink_HighNoise14B22_WeightDecay3_Uniform256_Inpaint15Other7_14BV3_LightSparseConcatPosiMaxPool3dV3156_ConcatProj_NoDecomp_RefTimeNew_SelfQKOVFFN_Only49_1e5_AW3_DS_Ref4/step-40000-epoch-0.safetensors +3 -0
  5. wan22_480P/AllShrink_HighNoise14B22_WeightDecay3_Uniform256_Inpaint15Other7_14BV3_LightSparseConcatPosiMaxPool3dV3156_ConcatProj_NoDecomp_RefTimeNew_SelfQKOVFFN_Only49_1e5_AW3_DS_Ref4/step-50000-epoch-0.safetensors +3 -0
  6. wan22_480P/AllShrink_HighNoise14B22_WeightDecay3_Uniform256_Inpaint15Other7_14BV3_LightSparseConcatPosiMaxPool3dV3156_ConcatProj_NoDecomp_RefTimeNew_SelfQKOVFFN_Only49_1e5_AW3_DS_Ref4/step-60000-epoch-0.safetensors +3 -0
  7. wan22_480P/AllShrink_HighNoise14B22_WeightDecay3_Uniform256_Inpaint15Other7_14BV3_LightSparseConcatPosiMaxPool3dV3156_ConcatProj_NoDecomp_RefTimeNew_SelfQKOVFFN_Only49_1e5_AW3_DS_Ref4/step-72000-epoch-0.safetensors +3 -0
  8. wan22_480P/AllShrink_LowNoise14B22_WeightDecay3_Uniform256_Inpaint15Other7_14BV3_LightSparseConcatPosiMaxPool3dV3156_ConcatProj_NoDecomp_RefTimeNew_SelfQKOVFFN_Only49_1e5_AW3_DS_Ref4/step-25000-epoch-0.safetensors +3 -0
  9. wan22_480P/AllShrink_LowNoise14B22_WeightDecay3_Uniform256_Inpaint15Other7_14BV3_LightSparseConcatPosiMaxPool3dV3156_ConcatProj_NoDecomp_RefTimeNew_SelfQKOVFFN_Only49_1e5_AW3_DS_Ref4/step-30000-epoch-0.safetensors +3 -0
  10. wan22_480P/AllShrink_LowNoise14B22_WeightDecay3_Uniform256_Inpaint15Other7_14BV3_LightSparseConcatPosiMaxPool3dV3156_ConcatProj_NoDecomp_RefTimeNew_SelfQKOVFFN_Only49_1e5_AW3_DS_Ref4/step-35000-epoch-0.safetensors +3 -0
  11. wan22_480P/AllShrink_LowNoise14B22_WeightDecay3_Uniform256_Inpaint15Other7_14BV3_LightSparseConcatPosiMaxPool3dV3156_ConcatProj_NoDecomp_RefTimeNew_SelfQKOVFFN_Only49_1e5_AW3_DS_Ref4/step-41000-epoch-0.safetensors +3 -0
  12. wan22_480P_depth/AllShrink_HighNoise14B22_WeightDecay3_Depth50_Uniform256_Inpaint15Other7_14BV3_LightSparseConcatPosiMaxPool3dV3156_ConcatProj_NoDecomp_RefTimeNew_SelfQKOVFFN_Only49_1e5_AW3_DS_Ref4/step-50000-epoch-0.safetensors +3 -0
  13. wan22_480P_depth/AllShrink_HighNoise14B22_WeightDecay3_Depth50_Uniform256_Inpaint15Other7_14BV3_LightSparseConcatPosiMaxPool3dV3156_ConcatProj_NoDecomp_RefTimeNew_SelfQKOVFFN_Only49_1e5_AW3_DS_Ref4/step-60000-epoch-0.safetensors +3 -0
  14. wan22_480P_depth/AllShrink_HighNoise14B22_WeightDecay3_Depth50_Uniform256_Inpaint15Other7_14BV3_LightSparseConcatPosiMaxPool3dV3156_ConcatProj_NoDecomp_RefTimeNew_SelfQKOVFFN_Only49_1e5_AW3_DS_Ref4/step-71000-epoch-0.safetensors +3 -0
  15. wan22_480P_depth/AllShrink_LowNoise14B22_Depth50_WeightDecay3_Uniform256_Inpaint15Other7_14BV3_LightSparseConcatPosiMaxPool3dV3156_ConcatProj_NoDecomp_RefTimeNew_SelfQKOVFFN_Only49_1e5_AW3_DS_Ref4/step-27000-epoch-0.safetensors +3 -0
  16. wan22_720P/AllShrink_720PHighNoise14B22_WeightDecay3_Uniform256_Inpaint15Other7_14BV3_LightSparseConcatPosiMaxPool3dV3156_ConcatProj_NoDecomp_RefTimeNew_SelfQKOVFFN_Only49_1e5_AW3_DS_Ref4/step-75000-epoch-0.safetensors +3 -0
  17. wan22_720P/AllShrink_720PLowNoise14B22_WeightDecay3_Uniform256_Inpaint15Other7_14BV3_LightSparseConcatPosiMaxPool3dV3156_ConcatProj_NoDecomp_RefTimeNew_SelfQKOVFFN_Only49_1e5_AW3_DS_Ref4/step-40000-epoch-0.safetensors +3 -0
trash2.py ADDED
@@ -0,0 +1,113 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import os
2
+ import subprocess
3
+ from concurrent.futures import ThreadPoolExecutor
4
+
5
+ # --- Configuration ---
6
+ MANIFEST_ROOT = "/root/hf_repo/weights"
7
+ FSX_ROOT = "/fsx_scanline/from_eyeline/koichi/motion-aware-vid-stylization/train_ckpt/Netflix65K"
8
+ DEST_ROOT = "/hf_repo/weights"
9
+
10
+ def find_copy_tasks():
11
+ """
12
+ 1. Scans MANIFEST_ROOT for model folders.
13
+ 2. Scans inside those folders for specific .safetensors files.
14
+ Returns: list of (model_alias, ckpt_folder, filename)
15
+ """
16
+ tasks = []
17
+
18
+ if not os.path.exists(MANIFEST_ROOT):
19
+ print(f"Error: Manifest root {MANIFEST_ROOT} does not exist.")
20
+ return []
21
+
22
+ print(f"Scanning {MANIFEST_ROOT} for specific safetensor files...")
23
+
24
+ try:
25
+ model_aliases = [d for d in os.listdir(MANIFEST_ROOT) if os.path.isdir(os.path.join(MANIFEST_ROOT, d))]
26
+ except OSError as e:
27
+ print(f"Error reading manifest root: {e}")
28
+ return []
29
+
30
+ for alias in model_aliases:
31
+ alias_path = os.path.join(MANIFEST_ROOT, alias)
32
+
33
+ try:
34
+ # Find checkpoint folders (e.g. AllShrink_...)
35
+ checkpoints = [d for d in os.listdir(alias_path) if os.path.isdir(os.path.join(alias_path, d))]
36
+ except OSError:
37
+ continue
38
+
39
+ for ckpt_folder in checkpoints:
40
+ ckpt_full_path = os.path.join(alias_path, ckpt_folder)
41
+
42
+ # --- CRITICAL CHANGE ---
43
+ # We look inside the folder to see WHICH safetensors file is there
44
+ try:
45
+ files_in_ckpt = os.listdir(ckpt_full_path)
46
+ target_files = [f for f in files_in_ckpt if f.endswith('.safetensors')]
47
+
48
+ if not target_files:
49
+ # Optional: warning if a folder is empty
50
+ # print(f"Warning: No safetensors found in {alias}/{ckpt_folder}")
51
+ pass
52
+
53
+ for filename in target_files:
54
+ # We create a task for this SPECIFIC file
55
+ tasks.append((alias, ckpt_folder, filename))
56
+
57
+ except OSError:
58
+ continue
59
+
60
+ print(f"Found {len(tasks)} specific files to copy.")
61
+ return tasks
62
+
63
+ def process_copy(task):
64
+ """
65
+ Copies a SINGLE file from FSX to Destination using rclone copyto
66
+ """
67
+ alias, ckpt_folder, filename = task
68
+
69
+ # 1. Source File (Flat FSX structure)
70
+ # /fsx/.../Netflix65K/{ckpt_folder}/{filename}
71
+ src_file_path = os.path.join(FSX_ROOT, ckpt_folder, filename)
72
+
73
+ # 2. Dest File (Nested structure)
74
+ # /hf_repo/weights/{alias}/{ckpt_folder}/{filename}
75
+ dest_file_path = os.path.join(DEST_ROOT, alias, ckpt_folder, filename)
76
+
77
+ # Check if the specific file exists on FSX source
78
+ if not os.path.exists(src_file_path):
79
+ print(f"[{alias}] MISSING SOURCE: {filename} (Expected at {src_file_path})")
80
+ return
81
+
82
+ # 3. Use 'copyto' for single files
83
+ # This is more precise than 'copy'
84
+ cmd = [
85
+ "rclone", "copyto",
86
+ src_file_path,
87
+ dest_file_path,
88
+ "--transfers", "4",
89
+ "--progress"
90
+ ]
91
+
92
+ try:
93
+ result = subprocess.run(cmd, capture_output=True, text=True)
94
+
95
+ if result.returncode == 0:
96
+ print(f"[{alias}] SUCCESS: {filename}")
97
+ else:
98
+ print(f"[{alias}] ERROR copying {filename}: {result.stderr.strip()}")
99
+
100
+ except Exception as e:
101
+ print(f"[{alias}] CRASHED on {filename}: {e}")
102
+
103
+ if __name__ == "__main__":
104
+ all_tasks = find_copy_tasks()
105
+
106
+ # Parallel execution
107
+ # Since we are copying individual large files, 4-8 workers is usually optimal
108
+ if all_tasks:
109
+ print(f"Starting parallel copy with {min(len(all_tasks), 8)} workers...")
110
+ with ThreadPoolExecutor(max_workers=8) as executor:
111
+ executor.map(process_copy, all_tasks)
112
+
113
+ print("All tasks completed.")
wan21_480P/AllShrink_Uniform256_Inpaint15Other5_14BV3_LightSparseConcatPosiMaxPool3dV3196_ConcatProj_NoDecomp_RefTimeNew_SelfQKOVFFN_Only49_1e5_AW3_DS_Ref4/step-35000-epoch-0.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1e54dc2d7c7a1468ba5337f77946b23e14a0360ed6d59cde1bb0691b33aa4acd
3
+ size 39677671844
wan21_720P/AllShrink_720P_14BInp10POd_LightSparseConcatPosiMaxPool3dV2_ConcatProj_NoDecomp_RefTimeNew_SelfQKOVFFN_Only49_1e5_AW3_DS_Ref4_MinTraj256_W1000/step-31000-epoch-0.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f9384969028ff625f2e603eeb45ea3df066ede1812d383bf8a98a1b757dd5062
3
+ size 39676881004
wan22_480P/AllShrink_HighNoise14B22_WeightDecay3_Uniform256_Inpaint15Other7_14BV3_LightSparseConcatPosiMaxPool3dV3156_ConcatProj_NoDecomp_RefTimeNew_SelfQKOVFFN_Only49_1e5_AW3_DS_Ref4/step-40000-epoch-0.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2e3d4cbaacf72a49cbf8ff0bd1951dae1656b5c6004428fe6329f239a4a9b0c9
3
+ size 39677234564
wan22_480P/AllShrink_HighNoise14B22_WeightDecay3_Uniform256_Inpaint15Other7_14BV3_LightSparseConcatPosiMaxPool3dV3156_ConcatProj_NoDecomp_RefTimeNew_SelfQKOVFFN_Only49_1e5_AW3_DS_Ref4/step-50000-epoch-0.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4c61a76dabcc219e07e2ac24577732b7aab547da814ce5c47b65a065b9b4f02b
3
+ size 39677234564
wan22_480P/AllShrink_HighNoise14B22_WeightDecay3_Uniform256_Inpaint15Other7_14BV3_LightSparseConcatPosiMaxPool3dV3156_ConcatProj_NoDecomp_RefTimeNew_SelfQKOVFFN_Only49_1e5_AW3_DS_Ref4/step-60000-epoch-0.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:188fedd0be2dfd00c61e61c42150336c79633c895390c8d568833155ac6adc00
3
+ size 39677234564
wan22_480P/AllShrink_HighNoise14B22_WeightDecay3_Uniform256_Inpaint15Other7_14BV3_LightSparseConcatPosiMaxPool3dV3156_ConcatProj_NoDecomp_RefTimeNew_SelfQKOVFFN_Only49_1e5_AW3_DS_Ref4/step-72000-epoch-0.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fb031a295739ec385aee871dcd53de6e3edf06e844021491a0c885ecdcc61340
3
+ size 39677234564
wan22_480P/AllShrink_LowNoise14B22_WeightDecay3_Uniform256_Inpaint15Other7_14BV3_LightSparseConcatPosiMaxPool3dV3156_ConcatProj_NoDecomp_RefTimeNew_SelfQKOVFFN_Only49_1e5_AW3_DS_Ref4/step-25000-epoch-0.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e475618be89c83b1e740e534197e43894ffebb730fa8e3e62bb3cd7ba0294b59
3
+ size 39677234564
wan22_480P/AllShrink_LowNoise14B22_WeightDecay3_Uniform256_Inpaint15Other7_14BV3_LightSparseConcatPosiMaxPool3dV3156_ConcatProj_NoDecomp_RefTimeNew_SelfQKOVFFN_Only49_1e5_AW3_DS_Ref4/step-30000-epoch-0.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e30bf7d0c20a9f96c1197140d46a288608a1453e8805c3079de9519f476ba373
3
+ size 39677234564
wan22_480P/AllShrink_LowNoise14B22_WeightDecay3_Uniform256_Inpaint15Other7_14BV3_LightSparseConcatPosiMaxPool3dV3156_ConcatProj_NoDecomp_RefTimeNew_SelfQKOVFFN_Only49_1e5_AW3_DS_Ref4/step-35000-epoch-0.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d306bd2ede4863f48b02595af65b7307bd0a19df5a83443d76e39d362d34c6c0
3
+ size 39677234564
wan22_480P/AllShrink_LowNoise14B22_WeightDecay3_Uniform256_Inpaint15Other7_14BV3_LightSparseConcatPosiMaxPool3dV3156_ConcatProj_NoDecomp_RefTimeNew_SelfQKOVFFN_Only49_1e5_AW3_DS_Ref4/step-41000-epoch-0.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2c359703e4999562abb595153ccf5cfa6c289bf3f3b05c11448e46d9d56e2588
3
+ size 39677234564
wan22_480P_depth/AllShrink_HighNoise14B22_WeightDecay3_Depth50_Uniform256_Inpaint15Other7_14BV3_LightSparseConcatPosiMaxPool3dV3156_ConcatProj_NoDecomp_RefTimeNew_SelfQKOVFFN_Only49_1e5_AW3_DS_Ref4/step-50000-epoch-0.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9c7260ed9cca333da8571e262238d330768a752ea2dfe2b2051765e42fd5f2f5
3
+ size 39677234564
wan22_480P_depth/AllShrink_HighNoise14B22_WeightDecay3_Depth50_Uniform256_Inpaint15Other7_14BV3_LightSparseConcatPosiMaxPool3dV3156_ConcatProj_NoDecomp_RefTimeNew_SelfQKOVFFN_Only49_1e5_AW3_DS_Ref4/step-60000-epoch-0.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e74f0acb534c0db9310a9ccd6de1c3ff564fc74aab041f8742708a6c446d5083
3
+ size 39677234564
wan22_480P_depth/AllShrink_HighNoise14B22_WeightDecay3_Depth50_Uniform256_Inpaint15Other7_14BV3_LightSparseConcatPosiMaxPool3dV3156_ConcatProj_NoDecomp_RefTimeNew_SelfQKOVFFN_Only49_1e5_AW3_DS_Ref4/step-71000-epoch-0.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fa4982acd728f6bff7fdb8accd01ef31a04d8b942090ef9cd028e6919237f12b
3
+ size 39677234564
wan22_480P_depth/AllShrink_LowNoise14B22_Depth50_WeightDecay3_Uniform256_Inpaint15Other7_14BV3_LightSparseConcatPosiMaxPool3dV3156_ConcatProj_NoDecomp_RefTimeNew_SelfQKOVFFN_Only49_1e5_AW3_DS_Ref4/step-27000-epoch-0.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:50bdab27e0ebe13a7e5ed153839b6acdb55020407b2a045189e479b5f60f9a19
3
+ size 39677234564
wan22_720P/AllShrink_720PHighNoise14B22_WeightDecay3_Uniform256_Inpaint15Other7_14BV3_LightSparseConcatPosiMaxPool3dV3156_ConcatProj_NoDecomp_RefTimeNew_SelfQKOVFFN_Only49_1e5_AW3_DS_Ref4/step-75000-epoch-0.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8976eaf82ec53b9b37a241499c8e09a21be165626594a34608f365c05f5075e4
3
+ size 39677234564
wan22_720P/AllShrink_720PLowNoise14B22_WeightDecay3_Uniform256_Inpaint15Other7_14BV3_LightSparseConcatPosiMaxPool3dV3156_ConcatProj_NoDecomp_RefTimeNew_SelfQKOVFFN_Only49_1e5_AW3_DS_Ref4/step-40000-epoch-0.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6771b4db4cd0bd893bed3013baab0d67b9c4ee6859dccd0af2761b489a1cd7ed
3
+ size 39677234564