readme
Browse files
README.md
CHANGED
|
@@ -76,6 +76,7 @@ ERNIE-4.5-21B-A3B-Base is a text MoE Base model, with 21B total parameters and 3
|
|
| 76 |
The following contains a code snippet illustrating how to use the model generate content based on given inputs.
|
| 77 |
|
| 78 |
```python
|
|
|
|
| 79 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 80 |
|
| 81 |
model_name = "baidu/ERNIE-4.5-21B-A3B-Base-PT"
|
|
|
|
| 76 |
The following contains a code snippet illustrating how to use the model generate content based on given inputs.
|
| 77 |
|
| 78 |
```python
|
| 79 |
+
import torch
|
| 80 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 81 |
|
| 82 |
model_name = "baidu/ERNIE-4.5-21B-A3B-Base-PT"
|