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

Convert HF to ggml error. #33

Open
phamkhactu opened this issue Aug 8, 2023 · 0 comments
Open

Convert HF to ggml error. #33

phamkhactu opened this issue Aug 8, 2023 · 0 comments

Comments

@phamkhactu
Copy link

Thanks for great repo!!

I have HF model(llama) like that

image

But when I using script: python convert_hf_to_ggml.py ../7b/ ../7b/. I get error:

  File "convert_hf_to_ggml.py", line 81, in <module>
    config = AutoConfig.from_pretrained(model_name,   local_files_only=True)
  File "/home/tupk/anaconda3/envs/nlp/lib/python3.8/site-packages/transformers/models/auto/configuration_auto.py", line 955, in from_pretrained
    config_dict, unused_kwargs = PretrainedConfig.get_config_dict(pretrained_model_name_or_path, **kwargs)
  File "/home/tupk/anaconda3/envs/nlp/lib/python3.8/site-packages/transformers/configuration_utils.py", line 617, in get_config_dict
    config_dict, kwargs = cls._get_config_dict(pretrained_model_name_or_path, **kwargs)
  File "/home/tupk/anaconda3/envs/nlp/lib/python3.8/site-packages/transformers/configuration_utils.py", line 672, in _get_config_dict
    resolved_config_file = cached_file(
  File "/home/tupk/anaconda3/envs/nlp/lib/python3.8/site-packages/transformers/utils/hub.py", line 388, in cached_file
    raise EnvironmentError(
OSError: ../7b-vi/ does not appear to have a file named config.json. Checkout 'https://huggingface.co/../7b-vi//None' for available files.

How can I fix it?
Thank you

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