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

scaled_dot_product_attention() got an unexpected keyword argument 'scale' Error #763

Closed
ChangeNext opened this issue Nov 22, 2023 · 1 comment

Comments

@ChangeNext
Copy link

python generate/base.py --prompt "Hello, my name is" --checkpoint_dir checkpoints/stabilityai/stablelm-base-alpha-3b

occur error this

TypeError :scaled_dot_product_attention() got an unexpected keyword argument 'scale' Error

my torch version = 2.0.1+cu117

@Andrei-Aksionov
Copy link
Collaborator

Hello @ChangeNext
The current codebase relies on PyTorch >= 2.1:
https://github.com/Lightning-AI/lit-gpt/blob/21c1c5941fd56216875a250fb2c03053ba649793/requirements.txt#L1

Could you upgrade it?
Ideally upgrade all the packages in a freshly created virtual environment.

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

3 participants