Browse Source

Fix prompt encoding

Lengyue 2 năm trước cách đây
mục cha
commit
ed46e8396c
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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,