-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
Interleaving sliding window for Ministral-8B-Instruct-2410 #10591
Interleaving sliding window for Ministral-8B-Instruct-2410 #10591
Conversation
👋 Hi! Thank you for contributing to the vLLM project. Once the PR is approved and ready to go, your PR reviewer(s) can run CI to test the changes comprehensively before merging. To run CI, PR reviewers can do one of these:
🚀 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why does it change llama.py
? the file
https://huggingface.co/mistralai/Ministral-8B-Instruct-2410/blob/main/config.json#L3
seems to indicate it uses MistralForCausalLM
We use the same |
vllm/model_executor/models/llama.py
Outdated
@@ -167,13 +167,24 @@ def __init__( | |||
rope_scaling=rope_scaling, | |||
is_neox_style=is_neox_style, | |||
) | |||
|
|||
layer_idx: int = int(prefix.split(".")[0]) | |||
if isinstance(config.interleaved_sliding_window, int): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
need to check hasattr(config, "interleaved_sliding_window")
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you add the model as a test? Possibly just to the existing test_mistral.py
The model is already used in the tests in Changed it manually to:
and it everything passes. So as soon as https://huggingface.co/mistralai/Ministral-8B-Instruct-2410/discussions/18 is merged the tests will use the new interleaved attn automatically |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay sounds good, LGTM
Signed-off-by: youkaichao <[email protected]>
Signed-off-by: youkaichao <[email protected]>
@patrickvonplaten do we need to follow any merge order for this pr and https://huggingface.co/mistralai/Ministral-8B-Instruct-2410/discussions/18 ? |
If ok, I'd maybe wait until the next public VLLM release and then merge: https://huggingface.co/mistralai/Ministral-8B-Instruct-2410/discussions/18 as otherwise the default implementation will fail |
Thanks for cleaning up the PR @youkaichao |
Signed-off-by: youkaichao <[email protected]> Co-authored-by: youkaichao <[email protected]> Signed-off-by: Andrew Feldman <[email protected]>
Signed-off-by: youkaichao <[email protected]> Co-authored-by: youkaichao <[email protected]> Signed-off-by: cedonley <[email protected]>
Signed-off-by: youkaichao <[email protected]> Co-authored-by: youkaichao <[email protected]>
Signed-off-by: youkaichao <[email protected]> Co-authored-by: youkaichao <[email protected]>
Same as #10584 but for: https://huggingface.co/mistralai/Ministral-8B-Instruct-2410
Test with:
from https://huggingface.co/mistralai/Ministral-8B-Instruct-2410/discussions/18