Commit
·
836cb0b
1
Parent(s):
31c1277
Update README.md
Browse files
README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
| 3 |
## 二、使用方法
|
| 4 |
```python
|
| 5 |
from transformers import AutoModelForSeq2SeqLM, AutoTokenizer
|
| 6 |
-
model_path = '
|
| 7 |
model = AutoModelForSeq2SeqLM.from_pretrained(model_path, trust_remote_code=True, cache_dir=model_path)
|
| 8 |
tokenizer = AutoTokenizer.from_pretrained(model_path, trust_remote_code=True, cache_dir=model_path)
|
| 9 |
input_text = ["Welcome to download and use!"]
|
|
|
|
| 3 |
## 二、使用方法
|
| 4 |
```python
|
| 5 |
from transformers import AutoModelForSeq2SeqLM, AutoTokenizer
|
| 6 |
+
model_path = 'ENLP/mrasp2'
|
| 7 |
model = AutoModelForSeq2SeqLM.from_pretrained(model_path, trust_remote_code=True, cache_dir=model_path)
|
| 8 |
tokenizer = AutoTokenizer.from_pretrained(model_path, trust_remote_code=True, cache_dir=model_path)
|
| 9 |
input_text = ["Welcome to download and use!"]
|