Image-to-Text
Transformers.js
ONNX
English
multi_modality
webgpu
multimodal
text-to-image
vision-language
janus
browser-ai
edge-ai
Run this model with HF Jobs
Run Zhare-AI/janus-pro-7b-webgpu on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/Zhare-AI/janus-pro-7b-webgpu. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/Zhare-AI/janus-pro-7b-webgpu on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
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');
Upload folder using huggingface_hub
Browse filesFiles changed (4)
- config.json+10-26
- generation_config.json+6-3
- model_index.json+15-27
- processor_config.json-2
4 unmodified lines56788910113 unmodified lines15161718181920211 unmodified line232425262627282829303111 unmodified lines43444546464748495051525354555657585960616263646566484950515 unmodified lines5758597860616281636465664 unmodified lines "params": { "depth": 2, "input_dim": 1024, "n_embed": 2048, "n_embed": 4096, "projector_type": "mlp_gelu" } },3 unmodified lines "params": { "depth": 2, "input_dim": 8, "n_embed": 2048, "n_embed": 4096, "projector_type": "mlp_gelu" } },1 unmodified line "cls": "vision_head", "model_type": "gen_head", "params": { "image_token_embed": 2048, "image_token_embed": 4096, "image_token_size": 16384, "n_embed": 2048 "n_embed": 4096 } }, "gen_vision_config": {11 unmodified lines "torch_dtype": "bfloat16", "vocab_size": 102400 }, "model_type": "multi_modality", "model_type": "janus", "torch_dtype": "float16", "transformers_version": "4.36.0", "transformers.js_config": { "kv_cache_dtype": { "fp16": "float16", "q4f16": "float16" }, "dtype": { "prepare_inputs_embeds": "fp32", "language_model": "q4", "lm_head": "fp32", "gen_head": "fp32", "gen_img_embeds": "fp32", "image_decode": "fp32" }, "use_external_data_format": { "language_model.onnx": true, "language_model_fp16.onnx": true } }, "transformers_version": "4.33.1", "vision_config": { "cls": "CLIPVisionTower", "model_type": "vision",5 unmodified lines } }, "architectures": [ "MultiModalityCausalLM" "JanusForConditionalGeneration" ], "use_cache": true, "_name_or_path": "janus-pro-7b-webgpu-working" "webgpu_compatible": true, "quantization": "q4f16", "pipeline_tag": "text-to-image"}123456756889101112{ "bos_token_id": 100000, "eos_token_id": 100001, "pad_token_id": 151643, "max_length": 2048, "max_new_tokens": 1024, "do_sample": true, "num_image_tokens": 576, "pad_token_id": 100015, "temperature": 0.7, "top_p": 0.95 "top_p": 0.9, "use_cache": true, "num_image_tokens": 576}1234234567789101112131415161718192021222324252627288910111213141530311617181920{ "model_type": "multi_modality", "pipeline_tag": "image-to-text", "framework": "transformers.js", "model_name": "Janus-Pro-7B", "model_type": "multimodal", "architecture": "janus", "format": "onnx", "quantization": "q4f16", "device": "webgpu", "total_size_mb": 4743.1, "onnx_files": [ { "name": "decoder.onnx", "size_mb": 320.1 }, { "name": "embed_tokens.onnx", "size_mb": 64.0 }, { "name": "encoder.onnx", "size_mb": 1159.0 }, { "name": "lm_head.onnx", "size_mb": 1600.0 }, { "name": "prepare_inputs_embeds.onnx", "size_mb": 1600.0 } "total_size_mb": 4935.2, "components_count": 6, "status": "complete", "capabilities": [ "text-to-image", "image-to-text", "multimodal-chat" ], "based_on": "onnx-community/Janus-1.3B-ONNX (working structure)", "scaled_to": "Janus-Pro-7B" "transformers_js_compatible": true, "webgpu_optimized": true, "export_date": "2025-09-27", "notes": "All 6 components successfully exported for WebGPU deployment"}1 unmodified line234565671 unmodified line "add_special_token": false, "ignore_id": -100, "image_tag": "<image_placeholder>", "image_start_tag": "<begin_of_image>", "image_end_tag": "<end_of_image>", "mask_prompt": true, "num_image_tokens": 576, "processor_class": "VLChatProcessor",config.json+10-26
generation_config.json+6-3
model_index.json+15-27
processor_config.json-2