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

RuntimeError with dtypes #17

Open
biirving opened this issue Apr 2, 2024 · 1 comment
Open

RuntimeError with dtypes #17

biirving opened this issue Apr 2, 2024 · 1 comment

Comments

@biirving
Copy link

biirving commented Apr 2, 2024

When running the command
python unllama_token_clf.py conll2003 7b
I get the following:

RuntimeError: Expected attn_mask dtype to be bool or to match query dtype, but got attn_mask.dtype: float and query.dtype: c10::BFloat16 instead.

I am running on an A100, with cuda 12.1, transformers 4.37.2, and torch 2.1.2.

@SeanLee97
Copy link
Contributor

Could you downgrade transformers to 4.32.1?
Or you can try this new repo with newer transformers: https://github.com/WhereIsAI/BiLLM

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