Update README.md
Browse files
README.md
CHANGED
@@ -6,8 +6,8 @@
|
|
6 |
```python
|
7 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
8 |
|
9 |
-
model = AutoModelForCausalLM.from_pretrained("
|
10 |
-
tokenizer = AutoTokenizer.from_pretrained("
|
11 |
|
12 |
text = "\nIn a shocking finding, scientist discovered a herd of dragons living in a remote, previously unexplored valley, in Tibet. Even more surprising to the researchers was the fact that the dragons spoke perfect Chinese."
|
13 |
prompt = f'Question: {text.strip()}\n\nAnswer:'
|
@@ -30,8 +30,8 @@ Answer: The researchers were shocked to discover that the dragons in the valley
|
|
30 |
```python
|
31 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
32 |
|
33 |
-
model = AutoModelForCausalLM.from_pretrained("
|
34 |
-
tokenizer = AutoTokenizer.from_pretrained("
|
35 |
|
36 |
text = "请介绍北京的旅游景点"
|
37 |
prompt = f'Question: {text.strip()}\n\nAnswer:'
|
|
|
6 |
```python
|
7 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
8 |
|
9 |
+
model = AutoModelForCausalLM.from_pretrained("BBuf/rwkv-5-world-1b5", trust_remote_code=True)
|
10 |
+
tokenizer = AutoTokenizer.from_pretrained("BBuf/rwkv-5-world-1b5", trust_remote_code=True)
|
11 |
|
12 |
text = "\nIn a shocking finding, scientist discovered a herd of dragons living in a remote, previously unexplored valley, in Tibet. Even more surprising to the researchers was the fact that the dragons spoke perfect Chinese."
|
13 |
prompt = f'Question: {text.strip()}\n\nAnswer:'
|
|
|
30 |
```python
|
31 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
32 |
|
33 |
+
model = AutoModelForCausalLM.from_pretrained("BBuf/rwkv-5-world-1b5", trust_remote_code=True).to(0)
|
34 |
+
tokenizer = AutoTokenizer.from_pretrained("BBuf/rwkv-5-world-1b5", trust_remote_code=True)
|
35 |
|
36 |
text = "请介绍北京的旅游景点"
|
37 |
prompt = f'Question: {text.strip()}\n\nAnswer:'
|