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

[Bug] use new 4bits quantizated models of internlm2, decoded word starts with a blank. #2651

Open
3 tasks
zhulinJulia24 opened this issue Oct 24, 2024 · 0 comments
Assignees

Comments

@zhulinJulia24
Copy link
Collaborator

Checklist

  • 1. I have searched related issues but cannot get the expected help.
  • 2. The bug has not been fixed in the latest version.
  • 3. Please note that if the bug-related issue you submitted lacks corresponding environment info and a minimal reproducible demo, it will be challenging for us to reproduce and resolve the issue, reducing the likelihood of receiving feedback.

Describe the bug

image

Reproduction

  1. do quantization on transformers>=4.45.0

lmdeploy lite auto_awq internlm/internlm2_5-7b-chat --work-dir internlm2_5-7b-chat-inner-4bits --batch-size 32

  1. run script
tokenizer = AutoTokenizer.from_pretrained('/nvme/qa_test_models/internlm/internlm2_5-7b-chat-inner-4bits', trust_remote_code=True)

decode = tokenizer.decode(2)
print(decode)
print(tokenizer.encode(decode))

Environment

transformers>=4.45.0

Error traceback

No response

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