ericsorides commited on
Commit
67cacd1
·
verified ·
1 Parent(s): e4c2452

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -115,7 +115,7 @@ def generate_text(model_path, prompt, tokenizer, max_gen_tokens, total_sequence,
115
  elif name == 'tree_attention': continue
116
  else:
117
  old_name = name.replace("past_key_values", "present")
118
- inputs_dict[name] = outs_dictionary[old_name][:, next_index-old_j:context-window+(next_index - old_j), :]
119
 
120
  answer = tokenizer.decode(total_input[0], skip_special_tokens=True, clean_up_tokenization_spaces=False)
121
  return answer
 
115
  elif name == 'tree_attention': continue
116
  else:
117
  old_name = name.replace("past_key_values", "present")
118
+ inputs_dict[name] = outs_dictionary[old_name][:, :, next_index-old_j:context-window+(next_index - old_j), :]
119
 
120
  answer = tokenizer.decode(total_input[0], skip_special_tokens=True, clean_up_tokenization_spaces=False)
121
  return answer