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

[Model][Phi3-Small] Remove scipy from blocksparse_attention #6343

Merged
merged 3 commits into from
Jul 12, 2024

Conversation

mgoin
Copy link
Member

@mgoin mgoin commented Jul 11, 2024

Scipy is currently an optional dependency since we only use it once for Phi3-Small blocksparse attention. This PR proposes to remove scipy completely by re-implementing the CSR matrix calculation in a minimal and naive way. This is useful because users are confused by the need to install scipy themselves. The performance of this implementation shouldn't matter much since its result is cached.

FIX #6334

@mgoin mgoin marked this pull request as ready for review July 11, 2024 17:14
@DarkLight1337 DarkLight1337 merged commit d59eb98 into main Jul 12, 2024
71 checks passed
dtrifiro pushed a commit to opendatahub-io/vllm that referenced this pull request Jul 17, 2024
Alvant pushed a commit to compressa-ai/vllm that referenced this pull request Oct 26, 2024
@simon-mo simon-mo deleted the remove-scipy-blocksparse branch October 28, 2024 16:51
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.

[Bug]: Unable to run phi-3-small in latest release
3 participants