Update README.md
Browse files
README.md
CHANGED
@@ -127,6 +127,7 @@ context = "<YOUR_CONTEXT_HERE>"
|
|
127 |
question = "<YOUR_QUESTION_HERE>"
|
128 |
prompt = template.replace('$DOC$', context.strip()).replace('$Q$', question.strip())
|
129 |
messages = [
|
|
|
130 |
{"role": "user", "content": prompt}
|
131 |
]
|
132 |
text = tokenizer.apply_chat_template(
|
|
|
127 |
question = "<YOUR_QUESTION_HERE>"
|
128 |
prompt = template.replace('$DOC$', context.strip()).replace('$Q$', question.strip())
|
129 |
messages = [
|
130 |
+
# {"role": "system", "content": "You are QwenLong-L1, created by Alibaba Tongyi Lab. You are a helpful assistant."}, # Use system prompt to define identity when needed.
|
131 |
{"role": "user", "content": prompt}
|
132 |
]
|
133 |
text = tokenizer.apply_chat_template(
|