Update README.md
Browse files
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 |
|