ariG23498 HF Staff commited on
Commit
11a1e4c
·
verified ·
1 Parent(s): 479bba7

Upload internlm_Intern-S1_1.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. internlm_Intern-S1_1.py +1 -1
internlm_Intern-S1_1.py CHANGED
@@ -9,7 +9,7 @@
9
  try:
10
  # Load model directly
11
  from transformers import AutoModelForCausalLM
12
- model = AutoModelForCausalLM.from_pretrained("internlm/Intern-S1", trust_remote_code=True, torch_dtype="auto"),
13
  with open('internlm_Intern-S1_1.txt', 'w') as f:
14
  f.write('Everything was good in internlm_Intern-S1_1.txt')
15
  except Exception as e:
 
9
  try:
10
  # Load model directly
11
  from transformers import AutoModelForCausalLM
12
+ model = AutoModelForCausalLM.from_pretrained("internlm/Intern-S1", trust_remote_code=True, torch_dtype="auto")
13
  with open('internlm_Intern-S1_1.txt', 'w') as f:
14
  f.write('Everything was good in internlm_Intern-S1_1.txt')
15
  except Exception as e: