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

#3746 introduces error in convert-mpt-hf-to-gguf.py #3783

Closed
maddes8cht opened this issue Oct 25, 2023 · 3 comments
Closed

#3746 introduces error in convert-mpt-hf-to-gguf.py #3783

maddes8cht opened this issue Oct 25, 2023 · 3 comments
Labels
bug Something isn't working stale

Comments

@maddes8cht
Copy link
Contributor

Expected Behavior

In release b1412 i can successfully run the convert-mpt-hf-to-gguf.py script.

Current Behavior

With the changes introduced with #3746, I get an error with each mpt model:

python convert-mpt-hf-to-gguf.py e:\hf\mpt-7b-storywriter\
gguf: loading model mpt-7b-storywriter
gguf: found 2 model parts
This gguf file is for Little Endian only
gguf: get model metadata
gguf: get tokenizer metadata
gguf: get gpt2 tokenizer vocab
Traceback (most recent call last):
  File "e:\hf\llama.cpp\convert-mpt-hf-to-gguf.py", line 140, in <module>
    if tokenizer.added_tokens_decoder[i].special:
AttributeError: 'GPTNeoXTokenizerFast' object has no attribute 'added_tokens_decoder'

Environment and Context

Windows 10, running convert scripts in a conda environment with python 3.10.13

@maddes8cht maddes8cht added the bug Something isn't working label Oct 25, 2023
@Galunid
Copy link
Collaborator

Galunid commented Oct 25, 2023

You need to update your transformers package to at least v4.34.0. #3586 (comment)
Can be closed.

@maddes8cht
Copy link
Contributor Author

Ah thanks, that solved the problem.
I have my (right now: almost) complete set of MPT gguf models now available at https://huggingface.co/maddes8cht ( alongside the falcons)

@github-actions github-actions bot added the stale label Mar 19, 2024
Copy link
Contributor

github-actions bot commented Apr 2, 2024

This issue was closed because it has been inactive for 14 days since being marked as stale.

@github-actions github-actions bot closed this as completed Apr 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working stale
Projects
None yet
Development

No branches or pull requests

2 participants