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

微调合并的模型 不能用transformers加载 #6383

Closed
1 task done
flowermlh opened this issue Dec 19, 2024 · 2 comments
Closed
1 task done

微调合并的模型 不能用transformers加载 #6383

flowermlh opened this issue Dec 19, 2024 · 2 comments
Labels
npu This problem is related to NPU devices solved This problem has been already solved

Comments

@flowermlh
Copy link

Reminder

  • I have read the README and searched the existing issues.

System Info

华为昇腾910B npu

Reproduction

使用lora微调之后,然后合并模型。
之后用AutoTokenizer加载模型失败。

from transformers import AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained('/home/jovyan/lama-3-chinese-8b-lora-merge', local_files_only=True)

报错:
Exception: data did not match any variant of untagged enum ModelWrapper at line 1251003 column 3

Expected behavior

No response

Others

No response

@github-actions github-actions bot added the pending This problem is yet to be addressed label Dec 19, 2024
@hiyouga
Copy link
Owner

hiyouga commented Dec 19, 2024

把原来的 tokenizer 复制并覆盖到新的目录

@hiyouga hiyouga closed this as completed Dec 19, 2024
@hiyouga hiyouga added solved This problem has been already solved npu This problem is related to NPU devices and removed pending This problem is yet to be addressed labels Dec 19, 2024
@flowermlh
Copy link
Author

把原来的 tokenizer 复制并覆盖到新的目录

image
请问是这三个文件吗?
tokenizer.json
tokenizer_config.json
special_tokens_map.json
谢谢!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
npu This problem is related to NPU devices solved This problem has been already solved
Projects
None yet
Development

No branches or pull requests

2 participants