ariG23498 HF Staff commited on
Commit
803643c
·
verified ·
1 Parent(s): 91ad2db

Upload custom_code/18-06-25/Motif-Technologies_Motif-2.6B_0.py with huggingface_hub

Browse files
custom_code/18-06-25/Motif-Technologies_Motif-2.6B_0.py ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # /// script
2
+ # requires-python = ">=3.12"
3
+ # dependencies = [
4
+ # "transformers",
5
+ # "torch",
6
+ # ]
7
+ # ///
8
+
9
+ try:
10
+ # ⚠️ Type of model/library unknown.
11
+
12
+ # Feel free to open a Pull request
13
+ # for integration of the huggingface model hub
14
+ # into the corresponding library =)
15
+ except Exception as e:
16
+ exception_file = 'Motif-Technologies_Motif-2.6B_0_exception.txt'
17
+ with open(exception_file, 'w') as f:
18
+ import traceback
19
+ traceback.print_exc(file=f)
20
+ # Upload exception log to HuggingFace
21
+ from huggingface_hub import upload_file
22
+ upload_file(
23
+ path_or_fileobj=exception_file,
24
+ repo_id='model-metadata/model-code-exception',
25
+ path_in_repo='18-06-25/Motif-Technologies_Motif-2.6B_0_exception.txt',
26
+ repo_type='dataset',
27
+ )