Explorar o código

Fix prompt encoding

Lengyue %!s(int64=2) %!d(string=hai) anos
pai
achega
ed46e8396c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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,