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 pth_to_hf 报错 #794

Closed
SCUT-ChenBD opened this issue Jun 27, 2024 · 0 comments
Closed

convert pth_to_hf 报错 #794

SCUT-ChenBD opened this issue Jun 27, 2024 · 0 comments

Comments

@SCUT-ChenBD
Copy link

Llama2模型结构

Traceback (most recent call last):
File "xtuner/tools/model_converters/pth_to_hf.py", line 139, in
main()
File "xtuner/tools/model_converters/pth_to_hf.py", line 127, in main
model.to_hf(
File "xtuner/model/sft.py", line 325, in to_hf
self.llm.save_pretrained(save_dir, **save_pretrained_kwargs)
File "/opt/conda/lib/python3.10/site-packages/transformers/modeling_utils.py", line 2475, in save_pretrained
model_to_save.generation_config.save_pretrained(save_directory)
File "/opt/conda/lib/python3.10/site-packages/transformers/generation/configuration_utils.py", line 697, in save_pretrained
raise ValueError(
ValueError: The generation config instance is invalid -- .validate() throws warnings and/or exceptions. Fix these issues to save the configuration.

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