Upload internlm_Intern-S1_1.py with huggingface_hub
Browse files8 unmodified lines91011121314158 unmodified linestry:# Load model directlyfrom transformers import AutoModelForCausalLMmodel = AutoModelForCausalLM.from_pretrained("internlm/Intern-S1", trust_remote_code=True, torch_dtype="auto"),with open('internlm_Intern-S1_1.txt', 'w') as f:f.write('Everything was good in internlm_Intern-S1_1.txt')except Exception as e:8 unmodified lines91011121314158 unmodified linestry:# Load model directlyfrom transformers import AutoModelForCausalLMmodel = AutoModelForCausalLM.from_pretrained("internlm/Intern-S1", trust_remote_code=True, torch_dtype="auto")with open('internlm_Intern-S1_1.txt', 'w') as f:f.write('Everything was good in internlm_Intern-S1_1.txt')except Exception as e:
internlm_Intern-S1_1.py+1-1