Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FileNotFoundError: [Errno 2] No such file or directory #373

Open
VladislavLiubasiuk opened this issue Mar 9, 2023 · 1 comment
Open

Comments

@VladislavLiubasiuk
Copy link

Colab Check: True
INFO | main:general_startup:1479 - Running on Repo: https://github.com/ebolam/KoboldAI Branch: UI2
MESSAGE | Welcome to KoboldAI!
MESSAGE | You have selected the following Model: KoboldAI/GPT-NeoX-20B-Erebus
INIT | Starting | Flask
INIT | OK | Flask
INIT | Starting | Webserver
INIT | OK | Webserver

Downloading (…)lve/main/config.json: 100% 1.52k/1.52k [00:00<00:00, 132kB/s]
Exception in thread Thread-2:
Traceback (most recent call last):
File "/usr/lib/python3.9/threading.py", line 980, in _bootstrap_inner
self.run()
File "/usr/lib/python3.9/threading.py", line 917, in run
self._target(*self._args, **self._kwargs)
File "/content/KoboldAI-Client/aiserver.py", line 2803, in load_model
model_config = AutoConfig.from_pretrained(koboldai_vars.custmodpth, revision=args.revision, cache_dir="cache")
File "/usr/local/lib/python3.9/dist-packages/transformers/models/auto/configuration_auto.py", line 809, in from_pretrained
config_dict, unused_kwargs = PretrainedConfig.get_config_dict(pretrained_model_name_or_path, **kwargs)
File "/usr/local/lib/python3.9/dist-packages/transformers/configuration_utils.py", line 559, in get_config_dict
config_dict, kwargs = cls._get_config_dict(pretrained_model_name_or_path, **kwargs)
File "/usr/local/lib/python3.9/dist-packages/transformers/configuration_utils.py", line 644, in _get_config_dict
config_dict = cls._dict_from_json_file(resolved_config_file)
File "/usr/local/lib/python3.9/dist-packages/transformers/configuration_utils.py", line 730, in _dict_from_json_file
with open(json_file, "r", encoding="utf-8") as reader:
FileNotFoundError: [Errno 2] No such file or directory: 'cache/models--KoboldAI--GPT-NeoX-20B-Erebus/snapshots/1a80940a290452af71caf17a8e520955eb338e0f/config.json'

Happens on startup.

@VladislavLiubasiuk
Copy link
Author

Addendum, seems to happen both for NeoX 20B and Skein 20B as well... I suppose it is also the same for other models too?

ebolam pushed a commit that referenced this issue Jun 14, 2023
Making model backends respond to a specific type in the aiserver menu for now
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant