In short.
Phi-3-Vision-128K-Instruct is a Microsoft model for developers and researchers building applications that read an image and text instructions and generate text responses. Its card describes a 4.2-billion-parameter open-weight model suited to image understanding, OCR and chart or table questions. The main catches are that it works best with a single image, performs worse outside English, and by default needs a GPU that supports flash attention. According to the card, it combines an image encoder, a connector, a projector and the Phi-3 Mini language model, supports 128K tokens of context, and was trained on 500 billion vision and text tokens with supervised fine-tuning and direct preference optimization. The card says the weights were released on 21 May 2024 and declares the model MIT-licensed. The full licence text was not captured. The card reports benchmark results from Microsoft's own internal platform. Some of these favour the model against the comparison models, and others do not. These results were not independently checked, and nothing was run for this review.
Researched and written by an AI model and checked by a second AI model. How it works
The selected scope is the complete model card (README) at the pinned revision, including its metadata and its declaration that the model is MIT-licensed. Everything the card links to is excluded: the technical report, the Microsoft blog, Azure AI Studio, the Phi-3 Cookbook and finetuning recipe, sample_inference.py, the data summary card, the separate LICENSE file, the ONNX build and the Phi-3.5 model pages. The full licence text, its copyright and permission notices, and any redistribution rights for the README itself are unknown. The model weights and the repository's custom code were not inspected. No code was executed and the model was not run or tested. The benchmark figures are the vendor's own and were not reproduced. Running costs, minimum GPU memory and current Transformers compatibility are not stated in the evidence and remain unknown.
The overview
What this resource is
This is the Hugging Face model card (README) for microsoft/Phi-3-vision-128k-instruct, pinned at the revision shown in the captured URL. The model is called Phi-3-Vision-128K-Instruct and belongs to Microsoft's Phi-3 family. The card describes it as a lightweight open multimodal model built on synthetic data and filtered public websites, with a focus on reasoning-dense text and vision data.
In the card's size and context table, the Vision model appears as a single 128K-context variant, with Hugging Face and ONNX (CUDA) builds listed alongside the Mini, Small and Medium text models. The card's release type is open weight. The card's metadata tags are nlp, code and vision.
Overall assessment
On the card's evidence, this is a well-documented small vision-language model, declared MIT-licensed by its publisher, with clear intended uses, usage code and responsible-AI guidance. Its strengths are a compact size (4.2B parameters), a long context window, a declared MIT licence, and self-reported benchmark scores that are strong on chart, science-diagram and text-in-image tasks.
The main caveats are that the benchmark numbers come from Microsoft's own internal platform and were not independently verified here. The card says the model is best with a single image. It is English-centred. Its install instructions date from the spring 2024 state of the Transformers library. The card does not establish how accurate the model is on any particular workload, so anyone adopting it should run their own evaluation.
Who it is for
The card says the model is intended for broad commercial and research use in English. It is meant for general-purpose AI systems and applications with visual and text input that need: memory or compute constrained environments, latency-bound scenarios, general image understanding, OCR, and chart and table understanding. It also describes the model as a building block for generative-AI-powered features and for research on efficient language and multimodal models.
This makes it relevant to developers and researchers who can run a Python and PyTorch GPU stack and who want a small, locally hosted vision model rather than a hosted API. It is not a no-code tool. The card warns against using it for consequential decisions such as housing, employment or credit, and for legal or health advice, without further assessment and safeguards.
Capabilities
Inputs are text and images, and the output is generated text. The card lists general image understanding, OCR, and chart and table understanding as primary uses. Its training data includes synthetic chart, table, diagram and slide images, and the card describes instruction-following chat data used in post-training.
The card reports zero-shot results from Microsoft's internal benchmark platform for Phi-3 Vision-128K-In: MMMU 40.4, MMBench 80.5, ScienceQA 90.8, MathVista 44.5, InterGPS 38.1, AI2D 76.7, ChartQA 81.4, TextVQA 70.9 and POPE 85.8. The comparison models are LLaVA-1.6 Vicuna-7B, QWEN-VL Chat, Llama3-Llava-Next-8B, Claude-3 Haiku, Gemini 1.0 Pro V and GPT-4V-Turbo.
In that table, the Phi-3 vision model scores higher than GPT-4V-Turbo on ScienceQA, AI2D, ChartQA, TextVQA and POPE, and lower on MMMU, MMBench, MathVista and InterGPS. On POPE, LLaVA-1.6 Vicuna-7B (87.2) and Llama3-Llava-Next-8B (87.0) score above it. These are the vendor's own figures and were not reproduced. The card does not describe the prompts, settings or evaluation code, so the results should be read as indicative only.
The card also says that, for code, most of the training data is Python using common packages. It recommends manually verifying API use if the model produces Python that uses other packages, or code in other languages.
Using it
Requirements
The card lists example package versions: flash_attn 2.5.8, numpy 1.24.4, Pillow 10.3.0, Requests 2.31.0, torch 2.3.0, torchvision 0.18.0 and transformers 4.40.2. It says the model had been integrated into the development version of Transformers (4.40.2) when the card was written. Until an official release, users should either pass trust_remote_code=True when loading or install Transformers from its Git repository.
On hardware, the card says the model uses flash attention by default, which needs certain GPU types. It says it was tested on NVIDIA A100, A6000 and H100 GPUs. It also notes that setting the attention implementation to eager disables flash attention. The sample code loads the model onto a CUDA device. The card does not state minimum GPU memory, CPU-only support or throughput, so those are unknown from this evidence. The card also lists an ONNX CUDA build, but that build was not reviewed.
How it works
According to the card, the model has 4.2B parameters and consists of an image encoder, a connector, a projector and the Phi-3 Mini language model. The card lists these components but does not detail how they pass image information between them. The context length is 128K tokens.
Training used 512 H100-80G GPUs for 1.5 days on 500B vision and text tokens, between February and April 2024. Post-training combined supervised fine-tuning and direct preference optimization for instruction adherence and safety. The card describes the model as static, trained on an offline dataset with a cutoff of 15 March 2024.
The card describes the training data in four groups: filtered public documents, educational data and code; selected interleaved image-text data; new synthetic textbook-like data including charts, tables, diagrams and slides; and chat-format supervised data. The card says image and text sources were filtered to remove or scrub personal data. It points to the technical report for more detail, but that report was not part of the captured scope.
Setup
The card's route is to install the dependencies above and then load the model with AutoModelForCausalLM.from_pretrained. That call takes the model id, device_map set to cuda, trust_remote_code=True, torch_dtype set to auto, and an attention implementation of flash_attention_2 (or eager to disable flash attention). The processor is then loaded with AutoProcessor.from_pretrained, also with trust_remote_code=True.
The trust_remote_code option lets Python code shipped in the model repository run on your machine. That code was not part of the captured card and was not inspected, so anyone setting this up should review it first. The card says the model is also available in Azure AI Studio and points to a Phi-3 Cookbook finetuning recipe for vision. Those linked pages were excluded from this review.
The card was written when support existed only in the development version of Transformers, so it does not establish whether current releases load the model without trust_remote_code. Nothing was installed or run for this report.
Worked example from the card
The card's sample code builds a message list. The first user turn is a placeholder for image 1 plus the question 'What is shown in this image?'. An assistant turn then describes a bar chart about meeting-preparation survey responses. A second user turn asks for insightful questions to spark discussion.
The code downloads the chart image from a URL with requests and opens it with Pillow. It formats the prompt with the tokenizer's chat template, passes the prompt and image to the processor, and moves the tensors to the first CUDA device. It then calls generate with max_new_tokens of 500 and temperature 0.0, with sampling disabled (do_sample False). It strips the input tokens from the output and decodes the remainder to text.
The card's chat format uses the markers user, image_1, end and assistant. A multi-turn version is also shown. The card says the model is best suited to a single image input in this chat format. This section describes the card's example, which was not executed for this review, so no output is claimed.
Assessment & evidence
Limitations and risks
The card says the Phi models are trained mainly on English text. Other languages, and less-represented English varieties, may perform worse. The metadata tags the language as multilingual, but the intended-use text says English, so multilingual quality should not be assumed.
The card lists these risks: unfair or stereotyping outputs, inappropriate or offensive content, and fabricated or outdated information. It also says that models with vision may be able to identify individuals in images, and that safety post-training steers this model to refuse such requests. It suggests extra mitigations, such as blurring faces before processing, and user consent flows where the law requires them. Other risks it names are misuse (fraud, spam, malware production) and use in high-risk or sensitive domains without safeguards.
It recommends retrieval augmented generation to ground answers in context, safety classifiers, feedback mechanisms and telling users they are talking to an AI. The card says the model is best with a single image, so this evidence leaves multi-image prompts untested. The knowledge cutoff is 15 March 2024. The card says the model is not designed or evaluated for all downstream purposes, and developers should evaluate accuracy, safety and fairness before relying on it.
Reasoning behind this assessment
The assessment rests on what the card states: model size and architecture, intended uses, training description, tested hardware, example code, licence declaration and the responsible-AI section. Together these describe a usable open-weight model with a specific scope and stated caveats.
The card's benchmark table supports a claim that the model is competitive for its size on chart, science-diagram and text-in-image tests. It does not support a claim that it matches the comparison models in general. The same table shows it behind GPT-4V-Turbo on four of the nine listed benchmarks. Because the figures are vendor-reported and the evaluation details are not in the card, they are treated as unverified. No execution or independent testing informs this report.
Alternatives
The card's own header links to the Phi-3.5 family, including Phi-3.5-vision-instruct at [https://huggingface.co/microsoft/Phi-3.5-vision-instruct]. It does not say how that model compares or whether it replaces this one, so that comparison was not assessed. The card also lists an ONNX build of this model (Phi-3-vision-128k-instruct-onnx-cuda), plus text-only Phi-3 Mini, Small and Medium models for use cases that do not need images.
The benchmark table names other vision-language models: LLaVA-1.6 Vicuna-7B, QWEN-VL Chat, Llama3-Llava-Next-8B, Claude-3 Haiku, Gemini 1.0 Pro V and GPT-4V-Turbo. The card does not provide hosting, licence or cost details for any of these, so a choice between them needs separate research.
Evidence base
The source is Microsoft's model card at [https://huggingface.co/microsoft/Phi-3-vision-128k-instruct/raw/ed2772fabe9dc9acd0caad54b62761d92520cc44/README.md]. It is the vendor's own description, so claims about quality, safety and data handling are the publisher's and are not independently verified. The benchmark results are publisher-reported and were not reproduced.
The card covers the model summary, intended uses, usage instructions, chat format, sample code, responsible-AI considerations, training details, datasets, benchmarks, software, hardware, licence and trademarks. It does not include the licence file text, the technical report, the data summary card, the sample inference script, the finetuning recipe or any model files, so those were not reviewed. No code from the card was run, so the model's behaviour is untested here.
Access & freshness
Costs
The card states no price for the model weights. It describes an open-weight release that it declares MIT-licensed and does not describe any fee for downloading or using the weights. Running costs are not stated and so are unknown. These include GPU rental or purchase, electricity, hosting, and any Azure AI Studio usage charges (the card mentions Azure AI Studio but gives no pricing).
The only figures given are for training, not use: 512 H100-80G GPUs for 1.5 days. They indicate how the model was built, not what it costs to run. Anyone adopting it should work out their own inference and engineering costs.
Licence and rights
The card's metadata declares license: mit, and its License section says the model is licensed under the MIT licence. This is the publisher's declaration about the model. The card also says nothing in the model card should be read as a restriction or modification of the licence the model is released under.
The separate LICENSE file linked from the card was outside the captured scope. The full licence text, including its copyright holder line and permission notice, is therefore unknown from this evidence, and the exact conditions for using or redistributing the model cannot be confirmed here. The card does not state any licence or redistribution terms for the README text itself, so redistribution rights for the card are unknown.
The Trademarks section says use of Microsoft trademarks and logos is subject to Microsoft's brand guidelines and must not imply Microsoft sponsorship. The card also puts the legal responsibility on developers: they must follow applicable laws, including privacy and trade compliance, for their use case.
Freshness
The card says the model was trained between February and April 2024, has a data cutoff of 15 March 2024, and had its weights released on 21 May 2024. The captured text has no later model-version note. Its header does promote the Phi-3.5 models, which shows that newer related models existed when the card was last edited. The card says future tuned versions may be released.
The setup instructions refer to a development version of Transformers 4.40.2 and pinned 2024-era package versions. These may no longer match current library releases, and the card gives no update. Current compatibility is unknown from this evidence. The page was captured on 14 November 2026, and the card's own dates are over two years earlier.
Suggested next steps
Before adopting it, check that you have a supported NVIDIA GPU (A100, A6000 or H100 are the tested types) or be ready to use the eager attention fallback. Check the current Transformers documentation for how to load the model. Read the repository's custom code before enabling trust_remote_code, or choose a loading path that does not need it if one is available.
Build a small evaluation set from your own images, such as the documents, charts or screenshots you care about, and compare the answers with the Phi-3.5 vision model and any other candidates. Test English and non-English inputs separately, and compare single-image with multi-image prompts. Add safeguards suited to your use case, such as face blurring, grounding with retrieval and human review for high-stakes outputs. Read the full MIT LICENSE text before redistributing the weights or derivatives.
