Safetensors
llama
code
vananh0905 commited on
Commit
2a6d5ea
1 Parent(s): e41d78b

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
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
- {'role':'system','content':"You are a helpful assistant"},
51
- {'role': 'user', 'content': '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
 
 
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