mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2026-03-18 19:34:39 +01:00
Fix latest transformers being super slow
This commit is contained in:
parent
8b3c7aa795
commit
b69f435311
|
|
@ -131,6 +131,8 @@ def load_tokenizer(model_name, tokenizer_dir=None):
|
|||
|
||||
|
||||
def load_model_HF(model_name):
|
||||
torch._dynamo.config.disable = True
|
||||
|
||||
path_to_model = Path(f'{shared.args.model_dir}/{model_name}')
|
||||
params = {
|
||||
'low_cpu_mem_usage': True,
|
||||
|
|
|
|||
Loading…
Reference in a new issue