ariG23498 HF Staff commited on
Commit
9d0b16d
·
verified ·
1 Parent(s): ff99b75

Upload Kijai_WanVideo_comfy_fp8_scaled_0.py with huggingface_hub

Browse files
Kijai_WanVideo_comfy_fp8_scaled_0.py ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # /// script
2
+ # requires-python = ">=3.12"
3
+ # dependencies = [
4
+ # "torch",
5
+ # "torchvision",
6
+ # "transformers",
7
+ # "accelerate",
8
+ # "peft",
9
+ # ]
10
+ # ///
11
+
12
+ try:
13
+ # integration status unknown.
14
+
15
+ # Please clone model and use locally.
16
+
17
+ # Also feel free to open a Pull request
18
+ # for integration of the huggingface model hub
19
+ # into the corresponding library =)
20
+ with open('Kijai_WanVideo_comfy_fp8_scaled_0.txt', 'w', encoding='utf-8') as f:
21
+ f.write('Everything was good in Kijai_WanVideo_comfy_fp8_scaled_0.txt')
22
+ except Exception as e:
23
+ with open('Kijai_WanVideo_comfy_fp8_scaled_0.txt', 'w', encoding='utf-8') as f:
24
+ import traceback
25
+ traceback.print_exc(file=f)
26
+ finally:
27
+ from huggingface_hub import upload_file
28
+ upload_file(
29
+ path_or_fileobj='Kijai_WanVideo_comfy_fp8_scaled_0.txt',
30
+ repo_id='model-metadata/code_execution_files',
31
+ path_in_repo='Kijai_WanVideo_comfy_fp8_scaled_0.txt',
32
+ repo_type='dataset',
33
+ )