Eugene Cheah (picocreator)
commited on
Commit
•
c30b41b
1
Parent(s):
194fd29
readme tweak
Browse files
README.md
CHANGED
@@ -26,8 +26,8 @@ User: {instruction}
|
|
26 |
Assistant:"""
|
27 |
|
28 |
|
29 |
-
model = AutoModelForCausalLM.from_pretrained("RWKV/rwkv-5-world-
|
30 |
-
tokenizer = AutoTokenizer.from_pretrained("RWKV/rwkv-5-world-
|
31 |
|
32 |
text = "请介绍北京的旅游景点"
|
33 |
prompt = generate_prompt(text)
|
@@ -82,8 +82,8 @@ User: {instruction}
|
|
82 |
Assistant:"""
|
83 |
|
84 |
|
85 |
-
model = AutoModelForCausalLM.from_pretrained("RWKV/rwkv-5-world-
|
86 |
-
tokenizer = AutoTokenizer.from_pretrained("RWKV/rwkv-5-world-
|
87 |
|
88 |
text = "介绍一下大熊猫"
|
89 |
prompt = generate_prompt(text)
|
@@ -129,8 +129,8 @@ User: {instruction}
|
|
129 |
|
130 |
Assistant:"""
|
131 |
|
132 |
-
model = AutoModelForCausalLM.from_pretrained("RWKV/rwkv-5-world-
|
133 |
-
tokenizer = AutoTokenizer.from_pretrained("RWKV/rwkv-5-world-
|
134 |
|
135 |
texts = ["请介绍北京的旅游景点", "介绍一下大熊猫", "乌兰察布"]
|
136 |
prompts = [generate_prompt(text) for text in texts]
|
|
|
26 |
Assistant:"""
|
27 |
|
28 |
|
29 |
+
model = AutoModelForCausalLM.from_pretrained("RWKV/rwkv-5-world-7b", trust_remote_code=True).to(torch.float32)
|
30 |
+
tokenizer = AutoTokenizer.from_pretrained("RWKV/rwkv-5-world-7b", trust_remote_code=True)
|
31 |
|
32 |
text = "请介绍北京的旅游景点"
|
33 |
prompt = generate_prompt(text)
|
|
|
82 |
Assistant:"""
|
83 |
|
84 |
|
85 |
+
model = AutoModelForCausalLM.from_pretrained("RWKV/rwkv-5-world-7b", trust_remote_code=True, torch_dtype=torch.float16).to(0)
|
86 |
+
tokenizer = AutoTokenizer.from_pretrained("RWKV/rwkv-5-world-7b", trust_remote_code=True)
|
87 |
|
88 |
text = "介绍一下大熊猫"
|
89 |
prompt = generate_prompt(text)
|
|
|
129 |
|
130 |
Assistant:"""
|
131 |
|
132 |
+
model = AutoModelForCausalLM.from_pretrained("RWKV/rwkv-5-world-7b", trust_remote_code=True).to(torch.float32)
|
133 |
+
tokenizer = AutoTokenizer.from_pretrained("RWKV/rwkv-5-world-7b", trust_remote_code=True)
|
134 |
|
135 |
texts = ["请介绍北京的旅游景点", "介绍一下大熊猫", "乌兰察布"]
|
136 |
prompts = [generate_prompt(text) for text in texts]
|