Instructions to use onnx-community/Phi-3.5-vision-instruct with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers.js
How to use onnx-community/Phi-3.5-vision-instruct with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('text-generation', 'onnx-community/Phi-3.5-vision-instruct');
| { | |
| "auto_map": { | |
| "AutoImageProcessor": "processing_phi3_v.Phi3VImageProcessor", | |
| "AutoProcessor": "processing_phi3_v.Phi3VProcessor" | |
| }, | |
| "do_convert_rgb": true, | |
| "image_mean": [ | |
| 0.48145466, | |
| 0.4578275, | |
| 0.40821073 | |
| ], | |
| "image_processor_type": "Phi3VImageProcessor", | |
| "image_std": [ | |
| 0.26862954, | |
| 0.26130258, | |
| 0.27577711 | |
| ], | |
| "num_crops": 4, | |
| "num_img_tokens": 144, | |
| "processor_class": "Phi3VProcessor" | |
| } | |