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

Add support for cohere2 #1157

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

Blaizzy
Copy link
Contributor

@Blaizzy Blaizzy commented Dec 14, 2024

Adds support for Cohere2 with sliding attention.

Thanks a lot to @N8python for the inspiration!

Bf16
Screenshot 2024-12-14 at 4 53 12 PM

4bit
Screenshot 2024-12-14 at 5 10 12 PM

@Blaizzy Blaizzy changed the title add support for cohere2 Add support for cohere2 Dec 14, 2024
@Blaizzy Blaizzy marked this pull request as draft December 14, 2024 15:17
@Blaizzy Blaizzy marked this pull request as ready for review December 14, 2024 16:13
@Blaizzy
Copy link
Contributor Author

Blaizzy commented Dec 14, 2024

Thanks @N8python!

Verified this change saves ~2GB for 4bit:

Screenshot 2024-12-14 at 11 35 09 PM

and ~1.2GB for bf16:
Screenshot 2024-12-14 at 10 20 56 PM

@Blaizzy Blaizzy mentioned this pull request Dec 14, 2024
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

Successfully merging this pull request may close these issues.

1 participant