update on input_ids
Browse files
app.py
CHANGED
@@ -38,7 +38,7 @@ def llama_generation(input_text: str,
|
|
38 |
header = '''Your are a helpful AI called amphisbeana.
|
39 |
You will help the user, by giving accurate but creative response.\n'''
|
40 |
|
41 |
-
input_ids = llama_tokenizer.encode(
|
42 |
return_tensors='pt').to('cuda')
|
43 |
|
44 |
# llama generation looks for the numeric vectors not the tensors so there is no need for **input_ids rather just input_ids
|
|
|
38 |
header = '''Your are a helpful AI called amphisbeana.
|
39 |
You will help the user, by giving accurate but creative response.\n'''
|
40 |
|
41 |
+
input_ids = llama_tokenizer.encode(header + input_text,
|
42 |
return_tensors='pt').to('cuda')
|
43 |
|
44 |
# llama generation looks for the numeric vectors not the tensors so there is no need for **input_ids rather just input_ids
|