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/Help] tokenizer collapse? #1446

Open
1 task done
CoinCheung opened this issue Jan 12, 2024 · 0 comments
Open
1 task done

[BUG/Help] tokenizer collapse? #1446

CoinCheung opened this issue Jan 12, 2024 · 0 comments

Comments

@CoinCheung
Copy link

CoinCheung commented Jan 12, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

tokenizer collapse

Expected Behavior

No response

Steps To Reproduce

model_name = 'THUDM/chatglm3-6b-base'
config = AutoConfig.from_pretrained(model_name, trust_remote_code=True, use_fast=False)
tokenizer = AutoTokenizer.from_pretrained(model_name, config=config, trust_remote_code=True)
print([tokenizer.decode(el) for el in [1833, 2893]])

Environment

- OS:
- Python:
- Transformers:
- PyTorch:
- CUDA Support (`python -c "import torch; print(torch.cuda.is_available())"`) :

Anything else?

On my platform, the output is same:
image

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

1 participant