rm remote
Browse files
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
|
| 80 |
-
model = AutoModelForCausalLM.from_pretrained(model_name
|
| 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."
|