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

the fix replicates biases too if they exist (e.g. Qwen) #328

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

quic-morteza
Copy link
Contributor

The fix takes care of replicating KV heads for models that have biases in addition to weights (such as Qwen family). The KV replication doubles the throughput for Qwen/Qwen2.5-1.5B, that has 2-KV, if compiled with TS4. The script has been successfully tested for Qwen/Qwen2.5-1.5B and meta-llama/Llama-3.2-1B-Instruct.

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