vananh0905
commited on
Commit
•
2a6d5ea
1
Parent(s):
e41d78b
Update README.md
Browse files
README.md
CHANGED
@@ -47,8 +47,8 @@ from transformers import AutoTokenizer, AutoModelForCausalLM
|
|
47 |
tokenizer = AutoTokenizer.from_pretrained("Fsoft-AIC/XMAiNframe-instruct-10.5b")
|
48 |
model = AutoModelForCausalLM.from_pretrained("Fsoft-AIC/XMAiNframe-instruct-10.5b")
|
49 |
messages=[
|
50 |
-
{'
|
51 |
-
{'
|
52 |
]
|
53 |
inputs = tokenizer.apply_chat_template(messages, add_generation_prompt=True, return_tensors="pt").to(model.device)
|
54 |
|
|
|
47 |
tokenizer = AutoTokenizer.from_pretrained("Fsoft-AIC/XMAiNframe-instruct-10.5b")
|
48 |
model = AutoModelForCausalLM.from_pretrained("Fsoft-AIC/XMAiNframe-instruct-10.5b")
|
49 |
messages=[
|
50 |
+
{'from':'system', 'value': "You are a helpful assistant"},
|
51 |
+
{'from': 'human', 'value': 'What is the future of Mainframe?'}
|
52 |
]
|
53 |
inputs = tokenizer.apply_chat_template(messages, add_generation_prompt=True, return_tensors="pt").to(model.device)
|
54 |
|