Commit 218223bf authored by zhouxiang's avatar zhouxiang
Browse files

晚上命令行demo

parent ba9cb42a
Pipeline #703 canceled with stages
...@@ -26,10 +26,10 @@ if __name__ == "__main__": ...@@ -26,10 +26,10 @@ if __name__ == "__main__":
print("AI:", end = "") print("AI:", end = "")
curResponse = "" curResponse = ""
prompt = model.get_prompt(query, history) # prompt = model.get_prompt(query, history)
tokens = model.tokenizer_encode_string(prompt) # tokens = model.tokenizer_encode_string(prompt)
token_input_count = len(tokens) # token_input_count = len(tokens)
print("token_input_count", token_input_count) # print("token_input_count", token_input_count)
token_count = 0 token_count = 0
t0 = time.time() t0 = time.time()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment