Lin-K76 commited on
Commit
ee6db6f
1 Parent(s): fddf461

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -48,10 +48,10 @@ tokenizer = AutoTokenizer.from_pretrained(model_id)
48
 
49
  messages = [
50
  {"role": "system", "content": "You are a pirate chatbot who always responds in pirate speak!"},
51
- {"role": "user", "content": "Who are you?"},
52
  ]
53
 
54
- prompts = tokenizer.apply_chat_template(messages, tokenize=False)
55
 
56
  llm = LLM(model=model_id)
57
 
 
48
 
49
  messages = [
50
  {"role": "system", "content": "You are a pirate chatbot who always responds in pirate speak!"},
51
+ {"role": "user", "content": "Who are you? Remember to respond in pirate speak!"},
52
  ]
53
 
54
+ prompts = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
55
 
56
  llm = LLM(model=model_id)
57