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

Yi-6B-Chat convert failed. #1587

Closed
ninehills opened this issue Dec 13, 2023 · 1 comment
Closed

Yi-6B-Chat convert failed. #1587

ninehills opened this issue Dec 13, 2023 · 1 comment

Comments

@ninehills
Copy link

$ ct2-transformers-converter --model ~/models/Yi-6B-Chat --output_dir ~/models/Yi-6B-Chat-CT2
Loading checkpoint shards: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 3/3 [00:01<00:00,  1.56it/s]
Traceback (most recent call last):
  File "/home/cynic/miniconda3/envs/openllm/bin/ct2-transformers-converter", line 8, in <module>
    sys.exit(main())
  File "/home/cynic/miniconda3/envs/openllm/lib/python3.10/site-packages/ctranslate2/converters/transformers.py", line 2008, in main
    converter.convert_from_args(args)
  File "/home/cynic/miniconda3/envs/openllm/lib/python3.10/site-packages/ctranslate2/converters/converter.py", line 50, in convert_from_args
    return self.convert(
  File "/home/cynic/miniconda3/envs/openllm/lib/python3.10/site-packages/ctranslate2/converters/converter.py", line 97, in convert
    model_spec.validate()
  File "/home/cynic/miniconda3/envs/openllm/lib/python3.10/site-packages/ctranslate2/specs/model_spec.py", line 590, in validate
    raise ValueError(
ValueError: Vocabulary has size 64002 but the model expected a vocabulary of size 64000
@vince62s
Copy link
Member

vince62s commented Jan 3, 2024

ValueError: Vocabulary has size 64002 but the model expected a vocabulary of size 64000
look for similar stuff in other issues, just a mismatch because of INST tags

@vince62s vince62s closed this as completed Jan 3, 2024
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

2 participants