RstoneCommand commited on
Commit
59f254f
·
verified ·
1 Parent(s): 23193b3

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +4 -4
README.md CHANGED
@@ -62,13 +62,13 @@ tokenizer = AutoTokenizer.from_pretrained(model_id)
62
 
63
 
64
  # Text Generate Process
65
- instruction = input("instruction: ")
66
- inputs = input("input: ")
67
- user = f"# instruction:\n{instruction}\n\n# input:\n{inputs}" # 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(
 
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(