mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-25 17:29:22 +01:00
Set use_cache=True by default for all models
This commit is contained in:
parent
5190e153ed
commit
47e490c7b4
@ -265,9 +265,7 @@ def generate_reply_HF(question, original_question, seed, state, stopping_strings
|
||||
if state['ban_eos_token']:
|
||||
generate_params['suppress_tokens'] = [shared.tokenizer.eos_token_id]
|
||||
|
||||
if shared.args.no_cache:
|
||||
generate_params.update({'use_cache': False})
|
||||
|
||||
generate_params.update({'use_cache': not shared.args.no_cache})
|
||||
if shared.args.deepspeed:
|
||||
generate_params.update({'synced_gpus': True})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user