Image-to-Text
Transformers.js
ONNX
English
multi_modality
webgpu
multimodal
text-to-image
vision-language
janus
browser-ai
edge-ai
Instructions to use Zhare-AI/janus-pro-7b-webgpu with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers.js
How to use Zhare-AI/janus-pro-7b-webgpu with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('image-to-text', 'Zhare-AI/janus-pro-7b-webgpu');
Download processor_config.json from Zhare-AI/janus-pro-7b-webgpu: direct link, hf CLI and curl.
- Browser
- Download file 210 Bytes
-
https://huggingface.co/Zhare-AI/janus-pro-7b-webgpu/resolve/main/processor_config.json
- Command line
-
hf download hf://Zhare-AI/janus-pro-7b-webgpu/processor_config.json
-
curl -L -o processor_config.json https://huggingface.co/Zhare-AI/janus-pro-7b-webgpu/resolve/main/processor_config.json
210 Bytes
| { | |
| "add_special_token": false, | |
| "ignore_id": -100, | |
| "image_tag": "<image_placeholder>", | |
| "mask_prompt": true, | |
| "num_image_tokens": 576, | |
| "processor_class": "VLChatProcessor", | |
| "sft_format": "deepseek" | |
| } | |