Update README.md
Browse files
README.md
CHANGED
@@ -16,6 +16,9 @@ PanGu-α is proposed by a joint technical team headed by PCNL. It is the first l
|
|
16 |
### Use
|
17 |
|
18 |
```python
|
19 |
-
from transformers import AutoTokenizer
|
20 |
tokenizer = AutoTokenizer.from_pretrained("Hanlard/Pangu_alpha")
|
|
|
|
|
|
|
21 |
```
|
|
|
16 |
### Use
|
17 |
|
18 |
```python
|
19 |
+
from transformers import AutoTokenizer, AutoModelForCausalLM
|
20 |
tokenizer = AutoTokenizer.from_pretrained("Hanlard/Pangu_alpha")
|
21 |
+
model = AutoModelForCausalLM.from_pretrained("imone/pangu_2_6B", trust_remote_code=True)
|
22 |
+
|
23 |
+
|
24 |
```
|