-
Notifications
You must be signed in to change notification settings - Fork 30.2k
⚠️ 🔴 Add ministral model #40247
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
base: main
Are you sure you want to change the base?
⚠️ 🔴 Add ministral model #40247
Conversation
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
still have to check the slow tests, but rest is ready @ArthurZucker |
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.
Nice!
run-slow: ministral |
This comment contains run-slow, running the specified jobs: models: ['models/ministral'] |
run-slow: ministral |
…ormers into model-add-ministral
4096cd7
to
2eed170
Compare
@ArthurZucker tests are ready. One note: after this merges, if i open a pr in mistralai/Ministral-8B-Instruct-2410 to change the architecture to |
…ormers into model-add-ministral
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!
Regarding BC, we are kinda obliged to break with a proper
[For maintainers] Suggested jobs to run (before merge) run-slow: auto, ministral |
run-slow: auto, ministral |
This comment contains run-slow, running the specified jobs: models: ['models/auto', 'models/ministral'] |
# The sliding window alternating layers are not always activated depending on the config | ||
if self.has_sliding_layers: | ||
causal_mask_mapping["sliding_attention"] = create_sliding_window_causal_mask(**mask_kwargs) |
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.
ministral must have siliding and non sliding! let's update the forwaard to make sur it always creates it!
Yep we can have that! |
It is breaking: once we change
old versions will not recognize that architecture. Thats why I was worried 😅 |
Coming from #39799, adding Ministral model to support its interleaved attention.