You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.The text was updated successfully, but these errors were encountered: