AntonV HF Staff commited on
Commit
0e63afd
·
1 Parent(s): 0d456cf
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -76,8 +76,8 @@ from transformers import AutoModelForCausalLM, AutoTokenizer
76
  model_name = "baidu/ERNIE-4.5-300B-A47B-PT"
77
 
78
  # load the tokenizer and the model
79
- tokenizer = AutoTokenizer.from_pretrained(model_name, trust_remote_code=True)
80
- model = AutoModelForCausalLM.from_pretrained(model_name, trust_remote_code=True)
81
 
82
  # prepare the model input
83
  prompt = "Give me a short introduction to large language model."
 
76
  model_name = "baidu/ERNIE-4.5-300B-A47B-PT"
77
 
78
  # load the tokenizer and the model
79
+ tokenizer = AutoTokenizer.from_pretrained(model_name)
80
+ model = AutoModelForCausalLM.from_pretrained(model_name)
81
 
82
  # prepare the model input
83
  prompt = "Give me a short introduction to large language model."