ariG23498 HF Staff commited on
Commit
c3d5e34
·
verified ·
1 Parent(s): 0780491

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

Browse files
custom_code/17-06-25/Motif-Technologies_Motif-2.6B_0.py ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ with open(f'Motif-Technologies_Motif-2.6B_0_exception.txt', 'w') as f:
17
+ import traceback
18
+ traceback.print_exc(file=f)
19
+ from huggingface_hub import upload_file
20
+ upload_file(
21
+ path_or_fileobj=f'Motif-Technologies_Motif-2.6B_0_exception.txt',
22
+ repo_id='model-metadata/model-code-exception',
23
+ path_in_repo=f'17-06-25/Motif-Technologies_Motif-2.6B_0_exception.txt',
24
+ repo_type='dataset',
25
+ )