alt.freeweights.phi / Phi-3.5-vision-instruct
From: microsoft <huggingface.co/microsoft>Newsgroups: alt.freeweights.phiSubject:

Phi-3.5-vision-instruct

Date: 2026-11-14Commit: 12b77fbSigned: 2DC28CC7B26A283B ✓

Image text to text model with 4.1B parameters. Safetensors weights, 8.30 GB in all. Published by microsoft under MIT.

4.1B params8.30GBPhi-3.5-vision-instructsafetensorspermissive
FactsParams4.1BSize8.30 GBFormatssafetensorsTaskimage text to textLicenseMITFrom sourcepermissive
$ fw get microsoft/Phi-3.5-vision-instruct
# manifest sha256 bdb0673d5dda… · 8.30 GB · 21 files
$ fw verify ./Phi-3.5-vision-instruct microsoft/Phi-3.5-vision-instruct
From sourceHosted (signed)microsoft/Phi-3.5-vision-instructLast check: 2026-11-14 21:23 UTC

Get help: custom fine-tune or private deploy. We review your setup before we quote.

Works with

Overview

Size
8.30 GB
Weights
8.29 GB (safetensors)
Parameters
4.1B
Formats
safetensors
Task
image text to text
License
MIT (permissive)
Files
21, each with a sha256
Publisher
microsoft
Added
2026-11-14
Section
alt.freeweights.phi
Lineage

Original release from the publisher.

Where these bytes come from
Publisher at the pinned commit→You

Sources are tried in order. A file counts only when its size and sha256 match the manifest. Sources are checked when you ask for them, not on a timer.

Sources
BadgeHostLast checkResult
From sourcehuggingface.co2026-11-14 21:23 UTCpassed

Model card

From the publisher at commit 12b77fb. Shown as plain text with links; images open at the publisher.

Model Summary#

Phi-3.5-vision is a lightweight, state-of-the-art open multimodal model built upon datasets which include - synthetic data and filtered publicly available websites - with a focus on very high-quality, reasoning dense data both on text and vision. The model belongs to the Phi-3 model family, and the multimodal version comes with 128K context length (in tokens) it can support. The model underwent a rigorous enhancement process, incorporating both supervised fine-tuning and direct preference optimization to ensure precise instruction adherence and robust safety measures.

🏡 Phi-3 Portal

📰 Phi-3 Microsoft Blog

📖 Phi-3 Technical Report

👩‍🍳 Phi-3 Cookbook

🖥️ Try It

Phi-3.5: [[mini-instruct]](https://huggingface.co/microsoft/Phi-3.5-mini-instruct); [[MoE-instruct]](https://huggingface.co/microsoft/Phi-3.5-MoE-instruct) ; [[vision-instruct]](https://huggingface.co/microsoft/Phi-3.5-vision-instruct)

Intended Uses#

Primary Use Cases#

The model is intended for broad commercial and research use in English. The model provides uses for general purpose AI systems and applications with visual and text input capabilities which require:

  1. Memory/compute constrained environments
  2. Latency bound scenarios
  3. General image understanding
  4. Optical character recognition
  5. Chart and table understanding
  6. Multiple image comparison
  7. Multi-image or video clip summarization

Our model is designed to accelerate research on language and multimodal models, for use as a building block for generative AI powered features.

Use Case Considerations#

Our models are not specifically designed or evaluated for all downstream purposes. Developers should consider common limitations of language models as they select use cases, and evaluate and mitigate for accuracy, safety, and fariness before using within a specific downstream use case, particularly for high risk scenarios. Developers should be aware of and adhere to applicable laws or regulations (including privacy, trade compliance laws, etc.) that are relevant to their use case.

Nothing contained in this Model Card should be interpreted as or deemed a restriction or modification to the license the model is released under.

Release Notes#

In this release, the model enables multi-frame image understanding and reasoning which is based on valuable customer feedback. The hero example multi-frame capabilities include detailed image comparison, multi-image summarization/storytelling and video summarization, which have broad applications in Office scenarios. We also observed performance improvement on most single image benchmarks, e.g., boost MMMU performance from 40.2 to 43.0, MMBench performance from 80.5 to 81.9, document understanding benchmark TextVQA from 70.9 to 72.0. We believe most use cases will benefit from this release, but we encourage users to test the new model in their AI applications. We appreciate the enthusiastic adoption of the Phi-3 model family and continue to welcome all the feedback from the community.

Below are the comparison results on existing multi-image benchmarks. On average, our model outperforms competitor models on the same size and competitive with much bigger models on multi-frame capabilities and video summarization.

BLINK: a benchmark with 14 visual tasks that humans can solve very quickly but are still hard for current multimodal LLMs.

BenchmarkPhi-3.5-vision-instructLlaVA-Interleave-Qwen-7BInternVL-2-4BInternVL-2-8BGemini-1.5-FlashGPT-4o-miniClaude-3.5-SonnetGemini-1.5-ProGPT-4o
Art Style87.262.455.652.164.170.159.870.973.3
Counting54.256.754.266.751.755.059.265.065.0
Forensic Detection92.431.140.934.154.538.667.460.675.8
Functional Correspondence29.234.624.624.633.126.933.831.543.8
IQ Test25.326.726.030.725.329.326.034.019.3
Jigsaw68.086.055.352.771.372.757.368.067.3
Multi-View Reasoning54.144.448.942.948.948.155.649.646.6
Object Localization49.254.953.354.144.357.462.365.668.0
Relative Depth69.477.463.767.757.358.171.876.671.0
Relative Reflectance37.334.332.838.832.827.636.638.840.3
Semantic Correspondence36.731.731.722.332.431.745.348.954.0
Spatial Relation65.775.578.378.355.981.160.179.084.6
Visual Correspondence53.540.734.933.129.752.972.181.486.0
Visual Similarity83.091.948.145.247.477.884.481.588.1
Overall57.053.145.945.445.851.956.561.063.2

Video-MME: comprehensively assess the capabilities of MLLMs in processing video data, covering a wide range of visual domains, temporal durations, and data modalities.

BenchmarkPhi-3.5-vision-instructLlaVA-Interleave-Qwen-7BInternVL-2-4BInternVL-2-8BGemini-1.5-FlashGPT-4o-miniClaude-3.5-SonnetGemini-1.5-ProGPT-4o
short (<2min)60.862.360.761.772.270.166.373.377.7
medium (4-15min)47.747.146.449.662.759.654.761.268.0
long (30-60min)43.841.242.646.652.153.946.653.259.6
Overall50.850.249.952.662.361.255.962.668.4

Usage#

Requirements#

The current transformers version can be verified with: pip list | grep transformers.

Examples of required packages:

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
transformers==4.43.0
accelerate==0.30.0

Phi-3.5-vision-Instruct is also available in Azure AI Studio.

Input Formats#

Given the nature of the training data, the Phi-3.5-vision model is best suited for prompts using the chat format as follows:

Single image:

<|user|>\n<|image_1|>\n{prompt}<|end|>\n<|assistant|>\n

Multi-turn conversations:

<|user|>\n<|image_1|>\n{prompt_1}<|end|>\n<|assistant|>\n{response_1}<|end|>\n<|user|>\n{prompt_2}<|end|>\n<|assistant|>\n

For multi-image usage, add multiple image placeholders in the front of the prompts. <|image_{}|> index should start from 1. One example of prompt is shown as follows:

<|user|>\n<|image_1|>\n<|image_2|>\n<|image_3|>\n<|image_4|>\n{prompt}<|end|>\n<|assistant|>\n 
Loading the model locally#

After obtaining the Phi-3.5-vision-instruct model checkpoints, users can use this sample code for inference.

from PIL import Image 
import requests 
from transformers import AutoModelForCausalLM 
from transformers import AutoProcessor 

model_id = "microsoft/Phi-3.5-vision-instruct" 

# Note: set _attn_implementation='eager' if you don't have flash_attn installed
model = AutoModelForCausalLM.from_pretrained(
  model_id, 
  device_map="cuda", 
  trust_remote_code=True, 
  torch_dtype="auto", 
  _attn_implementation='flash_attention_2'    
)

# for best performance, use num_crops=4 for multi-frame, num_crops=16 for single-frame.
processor = AutoProcessor.from_pretrained(model_id, 
  trust_remote_code=True, 
  num_crops=4
) 

images = []
placeholder = ""

# Note: if OOM, you might consider reduce number of frames in this example.
for i in range(1,20):
    url = f"https://image.slidesharecdn.com/azureintroduction-191206101932/75/Introduction-to-Microsoft-Azure-Cloud-{i}-2048.jpg" 
    images.append(Image.open(requests.get(url, stream=True).raw))
    placeholder += f"<|image_{i}|>\n"

messages = [
    {"role": "user", "content": placeholder+"Summarize the deck of slides."},
]

prompt = processor.tokenizer.apply_chat_template(
  messages, 
  tokenize=False, 
  add_generation_prompt=True
)

inputs = processor(prompt, images, return_tensors="pt").to("cuda:0") 

generation_args = { 
    "max_new_tokens": 1000, 
    "temperature": 0.0, 
    "do_sample": False, 
} 

generate_ids = model.generate(**inputs, 
  eos_token_id=processor.tokenizer.eos_token_id, 
  **generation_args
)

# remove input tokens 
generate_ids = generate_ids[:, inputs['input_ids'].shape[1]:]
response = processor.batch_decode(generate_ids, 
  skip_special_tokens=True, 
  clean_up_tokenization_spaces=False)[0] 

print(response)

Notes:

  • to achieve best performances we suggest to set _num_crops=4_ for multi-frame and _num_crops=16_ for single-frame.
  • to turn off flash_attention users can set __attn_implementation='eager'_

Responsible AI Considerations#

Like other models, the Phi family of models can potentially behave in ways that are unfair, unreliable, or offensive. Some of the limiting behaviors to be aware of include:

  • Quality of Service: The Phi models are trained primarily on English text. Languages other than English will experience worse performance. English language varieties with less representation in the training data might experience worse performance than standard American English.
  • Representation of Harms & Perpetuation of Stereotypes: These models can over- or under-represent groups of people, erase representation of some groups, or reinforce demeaning or negative stereotypes. Despite safety post-training, these limitations may still be present due to differing levels of representation of different groups or prevalence of examples of negative stereotypes in training data that reflect real-world patterns and societal biases.
  • Inappropriate or Offensive Content: These models may produce other types of inappropriate or offensive content, which may make it inappropriate to deploy for sensitive contexts without additional mitigations that are specific to the use case.
  • Information Reliability: Language models can generate nonsensical content or fabricate content that might sound reasonable but is inaccurate or outdated.
  • Limited Scope for Code: Majority of Phi-3 training data is based in Python and use common packages such as "typing, math, random, collections, datetime, itertools". If the model generates Python scripts that utilize other packages or scripts in other languages, we strongly recommend users manually verify all API uses.

Developers should apply responsible AI best practices and are responsible for ensuring that a specific use case complies with relevant laws and regulations (e.g. privacy, trade, etc.). Important areas for consideration include:

  • Allocation: Models may not be suitable for scenarios that could have consequential impact on legal status or the allocation of resources or life opportunities (ex: housing, employment, credit, etc.) without further assessments and additional debiasing techniques.
  • High-Risk Scenarios: Developers should assess suitability of using models in high-risk scenarios where unfair, unreliable or offensive outputs might be extremely costly or lead to harm. This includes providing advice in sensitive or expert domains where accuracy and reliability are critical (ex: legal or health advice). Additional safeguards should be implemented at the application level according to the deployment context.
  • Misinformation: Models may produce inaccurate information. Developers should follow transparency best practices and inform end-users they are interacting with an AI system. At the application level, developers can build feedback mechanisms and pipelines to ground responses in use-case specific, contextual information, a technique known as Retrieval Augmented Generation (RAG).
  • Generation of Harmful Content: Developers should assess outputs for their context and use available safety classifiers or custom solutions appropriate for their use case.
  • Misuse: Other forms of misuse such as fraud, spam, or malware production may be possible, and developers should ensure that their applications do not violate applicable laws and regulations.
  • Identification of individuals: models with vision capabilities may have the potential to uniquely identify individuals in images. Safety post-training steers the model to refuse such requests, but developers should consider and implement, as appropriate, additional mitigations or user consent flows as required in their respective jurisdiction, (e.g., building measures to blur faces in image inputs before processing).

Training#

Models#

Architecture: Phi-3.5-vision has 4.2B parameters and contains image encoder, connector, projector, and Phi-3 Mini language model.

Inputs: Text and Image. It’s best suited for prompts using the chat format.

Context length: 128K tokens

GPUs: 256 A100-80G

Training time: 6 days

Training data: 500B tokens (vision tokens + text tokens)

Outputs: Generated text in response to the input

Dates: Trained between July and August 2024

Status: This is a static model trained on an offline text dataset with cutoff date March 15, 2024. Future versions of the tuned models may be released as we improve models.

Release date: August 2024

Data Overview#

Our training data includes a wide variety of sources, and is a combination of

  1. publicly available documents filtered rigorously for quality, selected high-quality educational data and code;
  2. selected high-quality image-text interleave data;
  3. newly created synthetic, “textbook-like” data for the purpose of teaching math, coding, common sense reasoning, general knowledge of the world (science, daily activities, theory of mind, etc.), newly created image data, e.g., chart/table/diagram/slides, newly created multi-image and video data, e.g., short video clips/pair of two similar images;
  4. high quality chat format supervised data covering various topics to reflect human preferences on different aspects such as instruct-following, truthfulness, honesty and helpfulness.

The data collection process involved sourcing information from publicly available documents, with a meticulous approach to filtering out undesirable documents and images. To safeguard privacy, we carefully filtered various image and text data sources to remove or scrub any potentially personal data from the training data. More details about data can be found in the Phi-3 Technical Report.

How to finetune?#

We recommend user to take a look at the Phi-3 CookBook finetuning recipe for Vision

Benchmarks#

To understand the capabilities, we compare Phi-3.5-vision with a set of models over a variety of zero-shot benchmarks using our internal benchmark platform. At the high-level overview of the model quality on representative benchmarks:

CategoryBenchmarkPhi-3.5-vision-instructIntern-VL-2-4BIntern-VL-2-8BGemini-1.5-FlashGPT-4o-mini 2024-7-18Claude-3.5-SonnetGemini-1.5-ProGPT-4o 2024-5-13
Popular aggregated benchmarkMMMU (val)43.044.2246.3349.3352.152.6754.1161.78
MMBench (dev-en)81.983.487.085.783.882.387.988.4
Visual scientific knowledge reasoningScienceQA (img-test)91.394.995.984.584.073.886.088.5
Visual math reasoningMathVista (testmini)43.953.751.155.338.854.057.454.4
InterGPS (test)36.345.653.239.439.945.658.246.9
Chart reasoningAI2D (test)78.177.381.478.475.268.975.682.8
ChartQA (test)81.878.880.457.654.573.268.264.0
Document IntelligenceTextVQA (val)72.066.268.867.470.970.564.575.6
Object visual presence verificationPOPE (test)86.183.384.286.183.676.689.387.0

Safety Evaluation and Red-Teaming#

Approach The Phi-3 family of models has adopted a robust safety post-training approach. This approach leverages a variety of both open-source and in-house generated datasets. The overall technique employed to do the safety alignment is a combination of SFT (Supervised Fine-Tuning) and RLHF (Reinforcement Learning from Human Feedback) approaches by utilizing human-labeled and synthetic English-language datasets, including publicly available datasets focusing on helpfulness and harmlessness as well as various questions and answers targeted to multiple safety categories.

Safety Evaluation We leveraged various evaluation techniques including red teaming, adversarial conversation simulations, and safety evaluation benchmark datasets to evaluate Phi-3.5 models' propensity to produce undesirable outputs across multiple risk categories. Several approaches were used to compensate for the limitations of one approach alone. Please refer to the technical report for more details of our safety alignment.

Software#

Hardware#

Note that by default, the Phi-3.5-Mini-Instruct model uses flash attention, which requires certain types of GPU hardware to run. We have tested on the following GPU types:

  • NVIDIA A100
  • NVIDIA A6000
  • NVIDIA H100

License#

The model is licensed under the MIT license.

Trademarks#

This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft’s Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party’s policies.

Data Summary#

https://huggingface.co/microsoft/Phi-3.5-vision-instruct/blob/main/data_summary_card.md

Files

21 files · 8.30 GBWeights 8.29 GB (safetensors). Sizes and sha256 from the signed manifest.
Show all 21 files with their sha256
FileSizesha256
.gitattributes1.52 KB11ad7efa24975ee4b0c3c3a38ed18737f0658a5f75a0a96787b576a78a023361
CODE_OF_CONDUCT.md444 B9daeae709a0bd71bcfd1c96dc5822ecec5210327eff929da64b0ae7f8faf1444
LICENSE1.14 KBc2cfccb812fe482101a8f04597dfc5a9991a6b2748266c47ac91b6a5aae15383
README.md18.9 KB7df8e9b5ef76dbef1474b5c7ff81d5dcd420c287b71cb6c592d18f6e483fff29
SECURITY.md2.66 KB7b6976eec43edfa68b79a459dd089c56b7a395916dbf1a01bd11e6d86e12128f
SUPPORT.md1.24 KB149773411caf2c59cb1a6bfb2c6f070d1d054f1f018e7a80be319a8c384eeaf5
config.json3.78 KB567e28c638a3e41aba1a304ae58b283845ad07e1c60e970643b0ad8fc229b382
configuration_phi3_v.py10.7 KB18ff44c5c1f9a6523184fb2e580e03ebf722a65f37b9cc57cd1a6d620a0f2666
data_summary_card.md4.42 KB032ef6f50fd7bc98b696a4778a46ea8ba09773031a7a5f591fd7280b0c476701
generation_config.json136 Bbf86d2cd9250f89f09563b7f80e25e34663f673b836f531dc207362165051dc9
model-00001-of-00002.safetensors4.94 GBbe7bdee601478b3560aeb7122fe87a7d68445bb21b5f1ca88a764e8530b3aab8
model-00002-of-00002.safetensors3.35 GB94621eca6936d7a2fb94bd90f37edb0e28850235e7ba2c5e20445d2fc56bcaed
model.safetensors.index.json68.9 KB72d628080d85b3a0e96eac71a47f7a04a666aabf8a91269100c99a8d543f345c
modeling_phi3_v.py88.9 KBb223be7d7e9f01903dd8704e5da45c6030824134441aa2734c40c36597c3b41c
preprocessor_config.json442 B0f3d920fcec587bb425312d30b0660e1fabaf46a75961f2b75ddbb1ff92de01c
processing_phi3_v.py22.0 KB990ef3d1f6b5cc61b44cf8ec8e8886b19721b7e01e8bae3ebea32781b0fcf598
processor_config.json119 B286a9e7fb58a489eae6825b79be69f62068c2028435c29ee52c3a485d071707b
sample_inference.py6.78 KB49b1246f2a18d9b4a1e12892e50d19929e550263075d4c80cedeac2246546da4
special_tokens_map.json670 Bf9535fada19315e0d8eb89521cebe111c008fee98d16e7c6744acfb50505d8c3
tokenizer.json1.85 MB493f8ad437be806d5ccdc57e91479bdbb0c656448c1b89ff70f7653530d78518
tokenizer_config.json9.52 KB581d4654c018fbcef2504b57a805dcad37126038137b5d25d22b5a02abc1ef29
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
12b77fb40b pinned now manifest updated, same commit2026-11-14 21:23 UTC21 files · 8.30 GB
12b77fb40b2026-11-14 21:23 UTC21 files · 8.30 GB

Use it

$ fw get microsoft/Phi-3.5-vision-instruct
# manifest sha256 bdb0673d5dda… · 8.30 GB · 21 files
$ fw verify ./Phi-3.5-vision-instruct microsoft/Phi-3.5-vision-instruct
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/microsoft/Phi-3.5-vision-instruct.json --dir ./Phi-3.5-vision-instruct $ python3 fw.py verify ./Phi-3.5-vision-instruct ./microsoft__Phi-3.5-vision-instruct.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download microsoft/Phi-3.5-vision-instruct --revision 12b77fb40b63a2c73c68243d3f767aab688a1b2a --local-dir ./Phi-3.5-vision-instruct
transformersLoad the weights in Python.
import os os.environ["HF_ENDPOINT"] = "https://freeweights.allternit.com" from transformers import AutoModelForImageTextToText, AutoProcessor processor = AutoProcessor.from_pretrained("microsoft/Phi-3.5-vision-instruct", revision="12b77fb40b63a2c73c68243d3f767aab688a1b2a") model = AutoModelForImageTextToText.from_pretrained("microsoft/Phi-3.5-vision-instruct", revision="12b77fb40b63a2c73c68243d3f767aab688a1b2a", device_map="auto")
vLLMServe an OpenAI-compatible API.
$ HF_ENDPOINT=https://freeweights.allternit.com vllm serve microsoft/Phi-3.5-vision-instruct --revision 12b77fb40b63a2c73c68243d3f767aab688a1b2a

License

Name
MIT License
Id
MIT
Class
Permissive
Redistribution
yes
Listing
Hosted (signed)
Decided
License as declared by the publisher. No person read it. 2026-11-14
Text in
LICENSE
Text sha256
c2cfccb812fe482101a8f04597dfc5a9991a6b2748266c47ac91b6a5aae15383
Terms gate
No extra terms beyond the license.

Read the license text

Licenses are checked against the license table. A custom license passes only after a person reads it.

Provenance

From: microsoft <huggingface.co/microsoft>Newsgroups: alt.freeweights.phiSubject: Phi-3.5-vision-instructDate: 2026-11-14Commit: 12b77fbSigned: 2DC28CC7B26A283B ✓
Upstream
microsoft/Phi-3.5-vision-instruct
Pinned commit
12b77fb40b63a2c73c68243d3f767aab688a1b2a
Manifest
Phi-3.5-vision-instruct.json · .minisig
Manifest sha256
bdb0673d5dda373539a7d085afbaa097d8e18f81f2a68d5a32c79dbb37e61db2
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-14 21:23 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/microsoft/Phi-3.5-vision-instruct.json $ curl -O https://freeweights.allternit.com/manifests/microsoft/Phi-3.5-vision-instruct.json.minisig $ minisign -Vm Phi-3.5-vision-instruct.json -P RWQ7KGqyx4zCLXtUFOqvfv8L3g+8fpKJ1FsuxPyOYMF+4KufbUxKq1Oq $ shasum -a 256 <file> # compare with the Files tab

A manifest whose signature fails must be rejected. A file whose size or sha256 does not match must be discarded. Verify a download

Model tree

1 model in the catalog name this one as their parent.

Quantizations
1
Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download microsoft/Phi-3.5-vision-instruct
Open in Freeweights Studio

Pull, verify and run it in the Allternit app on Desktop, web or phone.

Signed manifest
minisign, key 2DC28CC7B26A283B. Phi-3.5-vision-instruct.json. Provenance. Takedown history: none.

Variants

1 quantized or adapter build of Phi-3.5-vision-instruct. Each has its own license check and page.

From: BAAI <huggingface.co/BAAI>Subject: bunny-phi-2-siglip-lora
From: microsoft <huggingface.co/microsoft>Subject: MediPhi
From: microsoft <huggingface.co/microsoft>Subject: MediPhi-Clinical
From: microsoft <huggingface.co/microsoft>Subject: MediPhi-Guidelines
From: microsoft <huggingface.co/microsoft>Subject: MediPhi-Instruct
From: microsoft <huggingface.co/microsoft>Subject: MediPhi-MedCode