InternLM / InternLM/lmdeploy

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

Open
#2,651 0 comments 0 reactions 1 assignee Claimed by @AllentDan View on GitHub
Dominant language
Python
Stars
8.1k
Forks
748
Avg merge
6d 2h
Merged PRs (30d)
54

Description

### 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](https://github.com/user-attachments/assets/2fdd58f4-0b67-42a4-b8fb-bf0762b723d4)

### 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

3. run script
```from transformers import AutoTokenizer
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

```Shell
transformers>=4.45.0
```

### Error traceback

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.