Di Zhang
commited on
Update README.md
Browse files
README.md
CHANGED
@@ -66,11 +66,11 @@ For queries in ShareGPT format like,
|
|
66 |
You can format it into this InternLM2 Dialogue format like,
|
67 |
```
|
68 |
def InternLM2_format(instruction,prompt,answer,history):
|
69 |
-
|
70 |
"<|system|>:",
|
71 |
"{}"
|
72 |
]
|
73 |
-
|
74 |
"<|user|>:",
|
75 |
"{}\n",
|
76 |
"<|Bot|>:\n"
|
|
|
66 |
You can format it into this InternLM2 Dialogue format like,
|
67 |
```
|
68 |
def InternLM2_format(instruction,prompt,answer,history):
|
69 |
+
prefix_template=[
|
70 |
"<|system|>:",
|
71 |
"{}"
|
72 |
]
|
73 |
+
prompt_template=[
|
74 |
"<|user|>:",
|
75 |
"{}\n",
|
76 |
"<|Bot|>:\n"
|