mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2026-04-20 22:13:43 +00:00
Fix latest transformers being super slow
This commit is contained in:
parent
8b3c7aa795
commit
b69f435311
1 changed files with 2 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue