sandz7 commited on
Commit
516209b
Β·
1 Parent(s): 9d8fdc0

update on input_ids

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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(input_text + header,
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