Update README.md
Browse files
README.md
CHANGED
|
@@ -62,13 +62,13 @@ tokenizer = AutoTokenizer.from_pretrained(model_id)
|
|
| 62 |
|
| 63 |
|
| 64 |
# Text Generate Process
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
|
| 69 |
messages = [
|
| 70 |
{"role" : "system", "content" : ""}, # You can write a custom SystemPrompt here. However, it will not work properly (because SystemPrompt has not been learned).
|
| 71 |
-
{"role" : "user", "content" :
|
| 72 |
]
|
| 73 |
|
| 74 |
input_ids = tokenizer.apply_chat_template(
|
|
|
|
| 62 |
|
| 63 |
|
| 64 |
# Text Generate Process
|
| 65 |
+
instruction_ = input("instruction: ")
|
| 66 |
+
input_ = input("input: ")
|
| 67 |
+
user_ = f"# instruction:\n{instruction_}\n\n# input:\n{input_}" # The model uses this input template to quickly process various learning data and responses. (Therefore, if you do not use this template for input, the performance of Synapse-Model and the instructions of the persona may decline.)
|
| 68 |
|
| 69 |
messages = [
|
| 70 |
{"role" : "system", "content" : ""}, # You can write a custom SystemPrompt here. However, it will not work properly (because SystemPrompt has not been learned).
|
| 71 |
+
{"role" : "user", "content" : user_}
|
| 72 |
]
|
| 73 |
|
| 74 |
input_ids = tokenizer.apply_chat_template(
|