From 9c2e7c0fab385c8208a17a19feaa43cacf44bcf1 Mon Sep 17 00:00:00 2001 From: oobabooga <112222186+oobabooga@users.noreply.github.com> Date: Wed, 26 Apr 2023 03:29:09 -0300 Subject: [PATCH] Fix path on models.py --- modules/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/models.py b/modules/models.py index bd1cb5e..a6c45cc 100644 --- a/modules/models.py +++ b/modules/models.py @@ -56,7 +56,7 @@ def find_model_type(model_name): elif any((k in model_name_lower for k in ['gpt4chan', 'gpt-4chan'])): return 'gpt4chan' else: - config = AutoConfig.from_pretrained(f"{shared.args.model_dir}/{model_name}") + config = AutoConfig.from_pretrained(Path(f'{shared.args.model_dir}/{model_name}')) # Not a "catch all", but fairly accurate if config.to_dict().get("is_encoder_decoder", False): return 'HF_seq2seq'