瀏覽代碼

Fix prompt encoding

Lengyue 2 年之前
父節點
當前提交
ed46e8396c
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      tools/llama/generate.py

+ 1 - 1
tools/llama/generate.py

@@ -525,7 +525,7 @@ def main(
         )
         print(f"Encoded text: {text}")
 
-    if use_prompt and iterative_prompt:
+    if use_prompt:
         encoded_prompt = encode_tokens(
             tokenizer,
             prompt_text,