Add prompt_lookup_num_tokens parameter (#5296)
This commit is contained in:
parent
952a05a7c8
commit
e055967974
7 changed files with 9 additions and 0 deletions
|
@ -291,6 +291,9 @@ def generate_reply_HF(question, original_question, seed, state, stopping_strings
|
|||
if state['negative_prompt'] != '':
|
||||
generate_params['negative_prompt_ids'] = encode(state['negative_prompt'])
|
||||
|
||||
if state['prompt_lookup_num_tokens'] > 0:
|
||||
generate_params['prompt_lookup_num_tokens'] = state['prompt_lookup_num_tokens']
|
||||
|
||||
for k in ['epsilon_cutoff', 'eta_cutoff']:
|
||||
if state[k] > 0:
|
||||
generate_params[k] = state[k] * 1e-4
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue