fix: Add V100 (older) GPU Support for Mistral 7b Models #1279
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Introduction
This PR introduces changes that significantly improve support for running Mistral 7b models on V100 GPU architectures. By update the latest
transformers
package, we ensure both compatibility and performance for users with V100 GPUs.Changes
FLASH_ATTENTION
is not available, the system defaults to usingCausalLM
. This ensures that Mistral models remain operational even without Flash Attention support.Impact
These updates are particularly beneficial for users with V100 GPU architectures, which previously faced compatibility issues due to
flash-attention
package limitations. With these changes, we can expand our hardware support, reduce barriers to entry, and streamline the user experience for a significant segment of our user base.Additional Notes
The
transformers
package has been updated to version 4.35.2, which now includes support for Mistral models. This update is essential since theflash-attention
package does not support V100 GPUs, as discussed in Dao-AILab/flash-attention#148.Testing
I invite reviewers to pull this branch, test rigorously with V100 GPUs, and provide feedback on any aspects of this enhancement.
Before submitting
Pull Request section?
to it if that's the case.
NotImplementedError: Mistral model requires flash attention v2 #1253
NotImplementedError: Mistral model requires flash attention v2 #1208
V100 raiseError that may be too restrictive #319
documentation guidelines, and
here are tips on formatting docstrings.
Who can review?
@abhijithnair1