We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
encode和decode绝大多数情况下应该是一个互逆操作,但是12b模型的tokenizer,encode和decode表现如下
PATH = '/toolchain/LLM/telechat-12b-hf' tokenizer = AutoTokenizer.from_pretrained(PATH, trust_remote_code=True) print(tokenizer.encode(tokenizer.decode([2000]))) #[561,579] print(tokenizer.decode([579])) # 'red' print(tokenizer.encode('red')) # [2952] print(tokenizer.decode([2952])) # 'red'
可以解答一下吗? @hannawong @ZiYu0427 @liuxz0801 @Unknown-Body @LSX-Sneakerprogrammer
The text was updated successfully, but these errors were encountered:
No branches or pull requests
encode和decode绝大多数情况下应该是一个互逆操作,但是12b模型的tokenizer,encode和decode表现如下
可以解答一下吗? @hannawong @ZiYu0427 @liuxz0801 @Unknown-Body @LSX-Sneakerprogrammer
The text was updated successfully, but these errors were encountered: