Update README.md
Browse files
README.md
CHANGED
|
@@ -67,8 +67,10 @@ model = AutoModelForCausalLM.from_pretrained(
|
|
| 67 |
)
|
| 68 |
|
| 69 |
# prepare the model input
|
|
|
|
| 70 |
question = "<Your Question>"
|
| 71 |
messages = [
|
|
|
|
| 72 |
{"role": "user", "content": question}
|
| 73 |
]
|
| 74 |
text = tokenizer.apply_chat_template(
|
|
|
|
| 67 |
)
|
| 68 |
|
| 69 |
# prepare the model input
|
| 70 |
+
system_prompt = "你是海洋知识专家,负责解答各类海洋相关问题(You are a marine knowledge expert, responsible for answering all marine-related questions)."
|
| 71 |
question = "<Your Question>"
|
| 72 |
messages = [
|
| 73 |
+
{"role": "system", "content": system_prompt},
|
| 74 |
{"role": "user", "content": question}
|
| 75 |
]
|
| 76 |
text = tokenizer.apply_chat_template(
|