ariG23498 HF Staff commited on
Commit
4a6dfd1
·
verified ·
1 Parent(s): 195b6ff

Upload DeepSeek-TNG-R1T2-Chimera_1.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. DeepSeek-TNG-R1T2-Chimera_1.py +5 -5
DeepSeek-TNG-R1T2-Chimera_1.py CHANGED
@@ -12,17 +12,17 @@ try:
12
 
13
  tokenizer = AutoTokenizer.from_pretrained("tngtech/DeepSeek-TNG-R1T2-Chimera", trust_remote_code=True)
14
  model = AutoModelForCausalLM.from_pretrained("tngtech/DeepSeek-TNG-R1T2-Chimera", trust_remote_code=True)
15
- with open('tngtech_DeepSeek-TNG-R1T2-Chimera_1.txt', 'w') as f:
16
- f.write('Everything was good in tngtech_DeepSeek-TNG-R1T2-Chimera_1')
17
  except Exception as e:
18
- with open('tngtech_DeepSeek-TNG-R1T2-Chimera_1.txt', 'w') as f:
19
  import traceback
20
  traceback.print_exc(file=f)
21
  finally:
22
  from huggingface_hub import upload_file
23
  upload_file(
24
- path_or_fileobj='tngtech_DeepSeek-TNG-R1T2-Chimera_1.txt',
25
  repo_id='model-metadata/custom_code_execution_files',
26
- path_in_repo='tngtech_DeepSeek-TNG-R1T2-Chimera_1.txt',
27
  repo_type='dataset',
28
  )
 
12
 
13
  tokenizer = AutoTokenizer.from_pretrained("tngtech/DeepSeek-TNG-R1T2-Chimera", trust_remote_code=True)
14
  model = AutoModelForCausalLM.from_pretrained("tngtech/DeepSeek-TNG-R1T2-Chimera", trust_remote_code=True)
15
+ with open('DeepSeek-TNG-R1T2-Chimera_1.txt', 'w') as f:
16
+ f.write('Everything was good in DeepSeek-TNG-R1T2-Chimera_1')
17
  except Exception as e:
18
+ with open('DeepSeek-TNG-R1T2-Chimera_1.txt', 'w') as f:
19
  import traceback
20
  traceback.print_exc(file=f)
21
  finally:
22
  from huggingface_hub import upload_file
23
  upload_file(
24
+ path_or_fileobj='DeepSeek-TNG-R1T2-Chimera_1.txt',
25
  repo_id='model-metadata/custom_code_execution_files',
26
+ path_in_repo='DeepSeek-TNG-R1T2-Chimera_1.txt',
27
  repo_type='dataset',
28
  )