Skip to content

Add Ministral 3 instruct support#3415

Open
dhandhalyabhavik wants to merge 4 commits into
openvinotoolkit:latestfrom
dhandhalyabhavik:ministral-3-support
Open

Add Ministral 3 instruct support#3415
dhandhalyabhavik wants to merge 4 commits into
openvinotoolkit:latestfrom
dhandhalyabhavik:ministral-3-support

Conversation

@dhandhalyabhavik

@dhandhalyabhavik dhandhalyabhavik commented Apr 15, 2026

Copy link
Copy Markdown

This PR adds a notebook for running Ministral-3 (Mistral AI's multimodal model) with OpenVINO, supporting both 3B and 8B model variants.
Model selection dropdown for choosing between Ministral-3-3B-Instruct-2512-BF16 and Ministral-3-8B-Instruct-2512-BF16
Image-based inference using OVModelForVisualCausalLM from optimum-intel (PR (huggingface/optimum-intel#1659))

Tested configurations

Tested and verified Ministral-3-3B-Instruct-2512-BF16 and Ministral-3-8B-Instruct-2512-BF16 both models,
Verified its working for CPU, dGPU, iGPU.

Note

openvino_genai.VLMPipeline does not support mistral3 model type yet, so this notebook uses the optimum-intel OVModelForVisualCausalLM pipeline for inference.

AI Disclaimer
Used AI to write notebook from above PR, performed end to end manual testing, verified both model on all listed devices.

- Add ministral-3.ipynb notebook for Ministral-3-3B-Instruct-2512 VLM
- Uses OVModelForVisualCausalLM from optimum-intel PR openvinotoolkit#1659
- INT4 weight compression by default
- Includes gradio_helper.py for interactive chatbot demo
- Exports from mistralai/Ministral-3-3B-Instruct-2512-BF16 model
…demo image

- Add model dropdown for 3B and 8B variants (Ministral-3-3B/8B-Instruct-2512-BF16)
- Remove broken device=GPU cell that crashed the kernel
- Replace ipywidgets device_widget with plain Python device selection
- Use qwen3-vl demo image (beach scene) for image inference
- Tested INT4 on both CPU and GPU for both model sizes
@review-notebook-app

Copy link
Copy Markdown

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@github-actions

Copy link
Copy Markdown
Contributor

This PR will be closed in a week because of 2 weeks of no activity.

@github-actions github-actions Bot added the Stale label May 29, 2026
@dhandhalyabhavik

Copy link
Copy Markdown
Author

@aleksandr-mokrov please review this PR.

@github-actions github-actions Bot removed the Stale label May 30, 2026
@github-actions

Copy link
Copy Markdown
Contributor

This PR will be closed in a week because of 2 weeks of no activity.

@github-actions github-actions Bot added Stale and removed Stale labels Jun 13, 2026
@dhandhalyabhavik

Copy link
Copy Markdown
Author

@aleksandr-mokrov please review this PR.

@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

This PR will be closed in a week because of 2 weeks of no activity.

@github-actions github-actions Bot added the Stale label Jul 1, 2026
@dhandhalyabhavik

Copy link
Copy Markdown
Author

@aleksandr-mokrov please review this PR.

@github-actions github-actions Bot removed the Stale label Jul 2, 2026
@@ -0,0 +1,386 @@
{

@aleksandr-mokrov aleksandr-mokrov Jul 10, 2026

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add disclaimer

⚠️ **EXPERIMENTAL NOTEBOOK**

This notebook demonstrates a model that has not been fully validated with OpenVINO and is using a custom branch of optimum-intel. It may be fully supported and validated in the future.

Reply via ReviewNB

@@ -0,0 +1,386 @@
{

@aleksandr-mokrov aleksandr-mokrov Jul 10, 2026

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line #4.    device = "GPU" if "GPU" in available else "CPU"

Please replace it with

from notebook_utils import device_widget
device = device_widget(default="AUTO", exclude=["NPU"])

Reply via ReviewNB

@aleksandr-mokrov aleksandr-mokrov left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix CI issues and the comments please


- Install requirements
- Convert and Optimize model
- Prepare OpenVINO GenAI Inference Pipeline

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It doesn't use genai

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.

2 participants