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

Apple Silicon support #5

Open
amrohendawi opened this issue Jan 20, 2024 · 2 comments
Open

Apple Silicon support #5

amrohendawi opened this issue Jan 20, 2024 · 2 comments

Comments

@amrohendawi
Copy link

amrohendawi commented Jan 20, 2024

In order to locally develop applications with this great model it is necessary to support it on apple silicon M1/M2/M3 chips.

The main missing requirement is flash_attn

@Zymrael
Copy link
Contributor

Zymrael commented Jan 21, 2024

This can be done by swapping out the inner_mha_cls in AttentionBlock forward call, using any other generic PyTorch implementation of attention.

@OdedKBio
Copy link

This can be done by swapping out the inner_mha_cls in AttentionBlock forward call, using any other generic PyTorch implementation of attention.

@Zymrael Can you elaborate more? seems like I need to switch in more then one place

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