Image-to-Text
Transformers.js
ONNX
vision-encoder-decoder
image-text-to-text
skillsafe
browser
import
Run this model with HF Jobs
Run skillsafe-ai/vit-gpt2-image-captioning 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/skillsafe-ai/vit-gpt2-image-captioning. 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/skillsafe-ai/vit-gpt2-image-captioning 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 skillsafe-ai/vit-gpt2-image-captioning with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers.js
How to use skillsafe-ai/vit-gpt2-image-captioning with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('image-to-text', 'skillsafe-ai/vit-gpt2-image-captioning');
vit-gpt2-image-captioning@215b4edc — recipe 2e3ec6f04880
Browse filesFiles changed (13)
- README.mdAdded+77
- config.jsonAdded+185
- generation_config.jsonAdded+8
- manifest.jsonAdded+1977
- merges.txtAdded
- onnx/decoder_model_merged.onnxAdded+3
- onnx/decoder_model_merged_quantized.onnxAdded+3
- onnx/encoder_model.onnxAdded+3
- preprocessor_config.jsonAdded+23
- special_tokens_map.jsonAdded+6
- tokenizer.jsonAdded
- tokenizer_config.jsonAdded+17
- vocab.jsonAdded
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677---license: apache-2.0tags: - skillsafe - browser - transformers.js - image-to-text - importbase_model: Xenova/vit-gpt2-image-captioning---
# ViT-GPT2 image captioning
Browser-ready `import` artifacts for **image-to-text**, produced by SkillSafe'sreproducible converter ([`models/` in skillsafe.ai](https://github.com/skillsafe-admin/skillsafe.ai-website/tree/main/models))from a pinned upstream source. Every byte here is derivable from that source plusthe recipe below; nothing was edited by hand.
## Provenance
| | ||---|---|| Upstream | https://huggingface.co/Xenova/vit-gpt2-image-captioning/tree/215b4edcb7ec1fad5905a18a03f7b2007f6fabd0 || Upstream SHA-256 / commit | `215b4edcb7ec1fad5905a18a03f7b2007f6fabd0` || Recipe | `recipes/vit-gpt2-image-captioning.yaml` — sha256 `2e3ec6f04880364908c41f2a7fe849239cb5a998b4ab6ffceeb11cf8f69e3212` || Toolchain | Python 3.12.13, torch 2.10.0, onnx 1.23.0, onnxruntime 1.30.0 on Darwin 25.6.0 arm64 || Converted | 2026-09-22T21:56:40+00:00 |
## Files
| file | class | size | SHA-256 ||---|---|---|---|| `config.json` | bundle | 0.00 MB | `f65c81039a672962d686f71ee0242f0c89dc020a0e3f193a989a696bf3f9515e` || `generation_config.json` | bundle | 0.00 MB | `997e1f943576edcc46e1b93078ec0e72054a62b4c7f521da42a1eab43c4c1d0c` || `merges.txt` | bundle | 0.44 MB | `1ce1664773c50f3e0cc8842619a93edc4624525b728b188a9e0be33b7726adc5` || `onnx/decoder_model_merged.onnx` | registry (fp32) | 586.53 MB | `df4abab679e8fa8d5c2140dd1ce83d136e7d47bc08008c9d8b3860643c502776` || `onnx/decoder_model_merged_quantized.onnx` | registry (q8) | 151.25 MB | `1f3ec53b5fc3614c0b54ee786755a7ec3007841f57543f8e241499edfadfa98f` || `onnx/encoder_model.onnx` | registry (fp32, q8) | 327.53 MB | `1e624fcd6a4a6a702dd1b60244adc6b6cbd169dcf3fbf9643be21a9bcf090b29` || `preprocessor_config.json` | bundle | 0.00 MB | `76304e9a1deb0d5f78349a57ad9d8057f36476c29bd292e907e2e8c451c93e9d` || `special_tokens_map.json` | bundle | 0.00 MB | `8bcf4e58d0970bbcb3b111a4c1e297c082fbf61253b14b3c0c8f2972ccb61ba4` || `tokenizer.json` | bundle | 2.01 MB | `6e785cd4f004c9291dadeba7d8d1c2871318d368a1cfcd416c0571dcd8f11413` || `tokenizer_config.json` | bundle | 0.00 MB | `5b477c376e81670409e943fc7c8233a0356c8488e05a8aa246082a1d29e8d609` || `vocab.json` | bundle | 0.76 MB | `3ba3c3109ff33976c4bd966589c11ee14fcaa1f4c9e5e154c2ed7f99d80709e7` |
`registry` files are parameter files served from `models.skillsafe.ai` once vetted;`bundle` files ship inside an app; `registry-shared` is a runtime library reused byevery model of the same architecture.
## Verification
Imported as published upstream (no conversion). Each file is pinned by SHA-256 to its source; every ONNX file passed `onnx.checker` and a CPU smoke run under onnxruntime with zero-filled inputs at the declared shapes:
| file | inputs | outputs | ms ||---|---|---|---|| `onnx/decoder_model_merged.onnx` | input_ids[1, 4], encoder_hidden_states[1, 197, 768], past_key_values.0.key[1, 12, 1, 64], past_key_values.0.value[1, 12, 1, 64], past_key_values.1.key[1, 12, 1, 64], past_key_values.1.value[1, 12, 1, 64], past_key_values.2.key[1, 12, 1, 64], past_key_values.2.value[1, 12, 1, 64], past_key_values.3.key[1, 12, 1, 64], past_key_values.3.value[1, 12, 1, 64], past_key_values.4.key[1, 12, 1, 64], past_key_values.4.value[1, 12, 1, 64], past_key_values.5.key[1, 12, 1, 64], past_key_values.5.value[1, 12, 1, 64], past_key_values.6.key[1, 12, 1, 64], past_key_values.6.value[1, 12, 1, 64], past_key_values.7.key[1, 12, 1, 64], past_key_values.7.value[1, 12, 1, 64], past_key_values.8.key[1, 12, 1, 64], past_key_values.8.value[1, 12, 1, 64], past_key_values.9.key[1, 12, 1, 64], past_key_values.9.value[1, 12, 1, 64], past_key_values.10.key[1, 12, 1, 64], past_key_values.10.value[1, 12, 1, 64], past_key_values.11.key[1, 12, 1, 64], past_key_values.11.value[1, 12, 1, 64], use_cache_branch[1] | logits[1, 4, 50257], present.0.key[1, 12, 4, 64], present.0.value[1, 12, 4, 64], present.1.key[1, 12, 4, 64], present.1.value[1, 12, 4, 64], present.2.key[1, 12, 4, 64], present.2.value[1, 12, 4, 64], present.3.key[1, 12, 4, 64], present.3.value[1, 12, 4, 64], present.4.key[1, 12, 4, 64], present.4.value[1, 12, 4, 64], present.5.key[1, 12, 4, 64], present.5.value[1, 12, 4, 64], present.6.key[1, 12, 4, 64], present.6.value[1, 12, 4, 64], present.7.key[1, 12, 4, 64], present.7.value[1, 12, 4, 64], present.8.key[1, 12, 4, 64], present.8.value[1, 12, 4, 64], present.9.key[1, 12, 4, 64], present.9.value[1, 12, 4, 64], present.10.key[1, 12, 4, 64], present.10.value[1, 12, 4, 64], present.11.key[1, 12, 4, 64], present.11.value[1, 12, 4, 64] | 17.3 || `onnx/decoder_model_merged_quantized.onnx` | input_ids[1, 4], encoder_hidden_states[1, 197, 768], past_key_values.0.key[1, 12, 1, 64], past_key_values.0.value[1, 12, 1, 64], past_key_values.1.key[1, 12, 1, 64], past_key_values.1.value[1, 12, 1, 64], past_key_values.2.key[1, 12, 1, 64], past_key_values.2.value[1, 12, 1, 64], past_key_values.3.key[1, 12, 1, 64], past_key_values.3.value[1, 12, 1, 64], past_key_values.4.key[1, 12, 1, 64], past_key_values.4.value[1, 12, 1, 64], past_key_values.5.key[1, 12, 1, 64], past_key_values.5.value[1, 12, 1, 64], past_key_values.6.key[1, 12, 1, 64], past_key_values.6.value[1, 12, 1, 64], past_key_values.7.key[1, 12, 1, 64], past_key_values.7.value[1, 12, 1, 64], past_key_values.8.key[1, 12, 1, 64], past_key_values.8.value[1, 12, 1, 64], past_key_values.9.key[1, 12, 1, 64], past_key_values.9.value[1, 12, 1, 64], past_key_values.10.key[1, 12, 1, 64], past_key_values.10.value[1, 12, 1, 64], past_key_values.11.key[1, 12, 1, 64], past_key_values.11.value[1, 12, 1, 64], use_cache_branch[1] | logits[1, 4, 50257], present.0.key[1, 12, 4, 64], present.0.value[1, 12, 4, 64], present.1.key[1, 12, 4, 64], present.1.value[1, 12, 4, 64], present.2.key[1, 12, 4, 64], present.2.value[1, 12, 4, 64], present.3.key[1, 12, 4, 64], present.3.value[1, 12, 4, 64], present.4.key[1, 12, 4, 64], present.4.value[1, 12, 4, 64], present.5.key[1, 12, 4, 64], present.5.value[1, 12, 4, 64], present.6.key[1, 12, 4, 64], present.6.value[1, 12, 4, 64], present.7.key[1, 12, 4, 64], present.7.value[1, 12, 4, 64], present.8.key[1, 12, 4, 64], present.8.value[1, 12, 4, 64], present.9.key[1, 12, 4, 64], present.9.value[1, 12, 4, 64], present.10.key[1, 12, 4, 64], present.10.value[1, 12, 4, 64], present.11.key[1, 12, 4, 64], present.11.value[1, 12, 4, 64] | 23.6 || `onnx/encoder_model.onnx` | pixel_values[1, 3, 224, 224] | last_hidden_state[1, 197, 768] | 25.4 |
## Use in the browser
```jsimport * as ort from "onnxruntime-web";const session = await ort.InferenceSession.create("https://huggingface.co/skillsafe-ai/vit-gpt2-image-captioning/resolve/main/onnx/decoder_model_merged.onnx", { executionProviders: ["webgpu", "wasm"] });```
**Contract (onnx/decoder_model_merged.onnx):** input `input_ids` int64 `['batch_size', 'decoder_sequence_length']`, `encoder_hidden_states` float32 `['batch_size', 'encoder_sequence_length', 768]`, `past_key_values.0.key` float32 `['batch_size', 12, 'past_sequence_length', 64]`, `past_key_values.0.value` float32 `['batch_size', 12, 'past_sequence_length', 64]`, `past_key_values.1.key` float32 `['batch_size', 12, 'past_sequence_length', 64]`, `past_key_values.1.value` float32 `['batch_size', 12, 'past_sequence_length', 64]`, `past_key_values.2.key` float32 `['batch_size', 12, 'past_sequence_length', 64]`, `past_key_values.2.value` float32 `['batch_size', 12, 'past_sequence_length', 64]`, `past_key_values.3.key` float32 `['batch_size', 12, 'past_sequence_length', 64]`, `past_key_values.3.value` float32 `['batch_size', 12, 'past_sequence_length', 64]`, `past_key_values.4.key` float32 `['batch_size', 12, 'past_sequence_length', 64]`, `past_key_values.4.value` float32 `['batch_size', 12, 'past_sequence_length', 64]`, `past_key_values.5.key` float32 `['batch_size', 12, 'past_sequence_length', 64]`, `past_key_values.5.value` float32 `['batch_size', 12, 'past_sequence_length', 64]`, `past_key_values.6.key` float32 `['batch_size', 12, 'past_sequence_length', 64]`, `past_key_values.6.value` float32 `['batch_size', 12, 'past_sequence_length', 64]`, `past_key_values.7.key` float32 `['batch_size', 12, 'past_sequence_length', 64]`, `past_key_values.7.value` float32 `['batch_size', 12, 'past_sequence_length', 64]`, `past_key_values.8.key` float32 `['batch_size', 12, 'past_sequence_length', 64]`, `past_key_values.8.value` float32 `['batch_size', 12, 'past_sequence_length', 64]`, `past_key_values.9.key` float32 `['batch_size', 12, 'past_sequence_length', 64]`, `past_key_values.9.value` float32 `['batch_size', 12, 'past_sequence_length', 64]`, `past_key_values.10.key` float32 `['batch_size', 12, 'past_sequence_length', 64]`, `past_key_values.10.value` float32 `['batch_size', 12, 'past_sequence_length', 64]`, `past_key_values.11.key` float32 `['batch_size', 12, 'past_sequence_length', 64]`, `past_key_values.11.value` float32 `['batch_size', 12, 'past_sequence_length', 64]`, `use_cache_branch` bool `[1]` → output `logits` float32 `['batch_size', 'decoder_sequence_length', 50257]`, `present.0.key` float32 `['batch_size', 12, 'past_sequence_length + 1', 64]`, `present.0.value` float32 `['batch_size', 12, 'past_sequence_length + 1', 64]`, `present.1.key` float32 `['batch_size', 12, 'past_sequence_length + 1', 64]`, `present.1.value` float32 `['batch_size', 12, 'past_sequence_length + 1', 64]`, `present.2.key` float32 `['batch_size', 12, 'past_sequence_length + 1', 64]`, `present.2.value` float32 `['batch_size', 12, 'past_sequence_length + 1', 64]`, `present.3.key` float32 `['batch_size', 12, 'past_sequence_length + 1', 64]`, `present.3.value` float32 `['batch_size', 12, 'past_sequence_length + 1', 64]`, `present.4.key` float32 `['batch_size', 12, 'past_sequence_length + 1', 64]`, `present.4.value` float32 `['batch_size', 12, 'past_sequence_length + 1', 64]`, `present.5.key` float32 `['batch_size', 12, 'past_sequence_length + 1', 64]`, `present.5.value` float32 `['batch_size', 12, 'past_sequence_length + 1', 64]`, `present.6.key` float32 `['batch_size', 12, 'past_sequence_length + 1', 64]`, `present.6.value` float32 `['batch_size', 12, 'past_sequence_length + 1', 64]`, `present.7.key` float32 `['batch_size', 12, 'past_sequence_length + 1', 64]`, `present.7.value` float32 `['batch_size', 12, 'past_sequence_length + 1', 64]`, `present.8.key` float32 `['batch_size', 12, 'past_sequence_length + 1', 64]`, `present.8.value` float32 `['batch_size', 12, 'past_sequence_length + 1', 64]`, `present.9.key` float32 `['batch_size', 12, 'past_sequence_length + 1', 64]`, `present.9.value` float32 `['batch_size', 12, 'past_sequence_length + 1', 64]`, `present.10.key` float32 `['batch_size', 12, 'past_sequence_length + 1', 64]`, `present.10.value` float32 `['batch_size', 12, 'past_sequence_length + 1', 64]`, `present.11.key` float32 `['batch_size', 12, 'past_sequence_length + 1', 64]`, `present.11.value` float32 `['batch_size', 12, 'past_sequence_length + 1', 64]`. Opset 11.
## Licence and attribution
vit-gpt2-image-captioning: nlpconnect (Ankur Kumar), Apache License 2.0 (https://huggingface.co/nlpconnect/vit-gpt2-image-captioning); ONNX export by Xenova.
Licence: **Apache-2.0** — notice: https://huggingface.co/nlpconnect/vit-gpt2-image-captioning/blob/main/README.md. The conversion recipe andthis model card are part of the SkillSafe repository and carry its licence; theweights remain under the upstream licence above.
The full `manifest.json` in this repo records the recipe, sources, toolchain(including the `uv.lock` hash) and per-file verification numbers.123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185{ "_name_or_path": "nlpconnect/vit-gpt2-image-captioning", "architectures": [ "VisionEncoderDecoderModel" ], "bos_token_id": 50256, "decoder": { "_name_or_path": "", "activation_function": "gelu_new", "add_cross_attention": true, "architectures": [ "GPT2LMHeadModel" ], "attn_pdrop": 0.1, "bad_words_ids": null, "begin_suppress_tokens": null, "bos_token_id": 50256, "chunk_size_feed_forward": 0, "cross_attention_hidden_size": null, "decoder_start_token_id": 50256, "diversity_penalty": 0.0, "do_sample": false, "early_stopping": false, "embd_pdrop": 0.1, "encoder_no_repeat_ngram_size": 0, "eos_token_id": 50256, "exponential_decay_length_penalty": null, "finetuning_task": null, "forced_bos_token_id": null, "forced_eos_token_id": null, "id2label": { "0": "LABEL_0", "1": "LABEL_1" }, "initializer_range": 0.02, "is_decoder": true, "is_encoder_decoder": false, "label2id": { "LABEL_0": 0, "LABEL_1": 1 }, "layer_norm_epsilon": 1e-05, "length_penalty": 1.0, "max_length": 20, "min_length": 0, "model_type": "gpt2", "n_ctx": 1024, "n_embd": 768, "n_head": 12, "n_inner": null, "n_layer": 12, "n_positions": 1024, "no_repeat_ngram_size": 0, "num_beam_groups": 1, "num_beams": 1, "num_return_sequences": 1, "output_attentions": false, "output_hidden_states": false, "output_scores": false, "pad_token_id": 50256, "prefix": null, "problem_type": null, "pruned_heads": {}, "remove_invalid_values": false, "reorder_and_upcast_attn": false, "repetition_penalty": 1.0, "resid_pdrop": 0.1, "return_dict": true, "return_dict_in_generate": false, "scale_attn_by_inverse_layer_idx": false, "scale_attn_weights": true, "sep_token_id": null, "summary_activation": null, "summary_first_dropout": 0.1, "summary_proj_to_labels": true, "summary_type": "cls_index", "summary_use_proj": true, "suppress_tokens": null, "task_specific_params": { "text-generation": { "do_sample": true, "max_length": 50 } }, "temperature": 1.0, "tf_legacy_loss": false, "tie_encoder_decoder": false, "tie_word_embeddings": true, "tokenizer_class": null, "top_k": 50, "top_p": 1.0, "torch_dtype": null, "torchscript": false, "typical_p": 1.0, "use_bfloat16": false, "use_cache": true, "vocab_size": 50257 }, "decoder_start_token_id": 50256, "encoder": { "_name_or_path": "", "add_cross_attention": false, "architectures": [ "ViTModel" ], "attention_probs_dropout_prob": 0.0, "bad_words_ids": null, "begin_suppress_tokens": null, "bos_token_id": null, "chunk_size_feed_forward": 0, "cross_attention_hidden_size": null, "decoder_start_token_id": null, "diversity_penalty": 0.0, "do_sample": false, "early_stopping": false, "encoder_no_repeat_ngram_size": 0, "encoder_stride": 16, "eos_token_id": null, "exponential_decay_length_penalty": null, "finetuning_task": null, "forced_bos_token_id": null, "forced_eos_token_id": null, "hidden_act": "gelu", "hidden_dropout_prob": 0.0, "hidden_size": 768, "id2label": { "0": "LABEL_0", "1": "LABEL_1" }, "image_size": 224, "initializer_range": 0.02, "intermediate_size": 3072, "is_decoder": false, "is_encoder_decoder": false, "label2id": { "LABEL_0": 0, "LABEL_1": 1 }, "layer_norm_eps": 1e-12, "length_penalty": 1.0, "max_length": 20, "min_length": 0, "model_type": "vit", "no_repeat_ngram_size": 0, "num_attention_heads": 12, "num_beam_groups": 1, "num_beams": 1, "num_channels": 3, "num_hidden_layers": 12, "num_return_sequences": 1, "output_attentions": false, "output_hidden_states": false, "output_scores": false, "pad_token_id": null, "patch_size": 16, "prefix": null, "problem_type": null, "pruned_heads": {}, "qkv_bias": true, "remove_invalid_values": false, "repetition_penalty": 1.0, "return_dict": true, "return_dict_in_generate": false, "sep_token_id": null, "suppress_tokens": null, "task_specific_params": null, "temperature": 1.0, "tf_legacy_loss": false, "tie_encoder_decoder": false, "tie_word_embeddings": true, "tokenizer_class": null, "top_k": 50, "top_p": 1.0, "torch_dtype": null, "torchscript": false, "typical_p": 1.0, "use_bfloat16": false }, "eos_token_id": 50256, "is_encoder_decoder": true, "model_type": "vision-encoder-decoder", "pad_token_id": 50256, "tie_word_embeddings": false, "transformers_version": "4.33.0.dev0"}12345678{ "_from_model_config": true, "bos_token_id": 50256, "decoder_start_token_id": 50256, "eos_token_id": 50256, "pad_token_id": 50256, "transformers_version": "4.33.0.dev0"}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977{ "manifest_version": 1, "id": "vit-gpt2-image-captioning", "revision": "215b4edc", "kind": "import", "recipe": { "path": "vit-gpt2-image-captioning.yaml", "sha256": "2e3ec6f04880364908c41f2a7fe849239cb5a998b4ab6ffceeb11cf8f69e3212", "content": { "id": "vit-gpt2-image-captioning", "revision": "215b4edc", "name": "ViT-GPT2 image captioning", "task": "image-to-text", "kind": "import", "source": { "kind": "huggingface", "repo": "Xenova/vit-gpt2-image-captioning", "revision": "215b4edcb7ec1fad5905a18a03f7b2007f6fabd0", "files": [ { "path": "onnx/encoder_model.onnx", "variant": [ "fp32", "q8" ] }, { "path": "onnx/decoder_model_merged.onnx", "variant": "fp32" }, { "path": "onnx/decoder_model_merged_quantized.onnx", "variant": "q8" }, "config.json", "generation_config.json", "preprocessor_config.json", "tokenizer.json", "tokenizer_config.json", "vocab.json", "merges.txt", "special_tokens_map.json" ] }, "import": { "dummy_dims": { "batch_size": 1, "num_channels": 3, "height": 224, "width": 224, "decoder_sequence_length": 4, "encoder_sequence_length": 197, "past_sequence_length": 1, "past_sequence_length + 1": 2, "encoder_sequence_length_out": 197 } }, "licence": { "spdx": "Apache-2.0", "attribution": "vit-gpt2-image-captioning: nlpconnect (Ankur Kumar), Apache License 2.0 (https://huggingface.co/nlpconnect/vit-gpt2-image-captioning); ONNX export by Xenova.", "notice_url": "https://huggingface.co/nlpconnect/vit-gpt2-image-captioning/blob/main/README.md" }, "runtime": { "name": "transformers.js", "min_version": "3.0.0", "device": [ "webgpu", "wasm" ] } } }, "toolchain": { "python": "3.12.13", "platform": "Darwin 25.6.0 arm64", "torch": "2.10.0", "onnx": "1.23.0", "onnxruntime": "1.30.0", "mlc_llm": "0.26.dev6", "mlc_ai": "0.26.dev246", "uv_lock_sha256": "009c7e337ef5b83758c855f46433c5b07a0bb3b52468320efd639ad5419f9099" }, "started_at": "2026-09-22T21:54:11+00:00", "finished_at": "2026-09-22T21:56:40+00:00", "mode": "import", "sources": { "weights": { "kind": "huggingface", "repo": "Xenova/vit-gpt2-image-captioning", "revision": "215b4edcb7ec1fad5905a18a03f7b2007f6fabd0", "url": "https://huggingface.co/Xenova/vit-gpt2-image-captioning/tree/215b4edcb7ec1fad5905a18a03f7b2007f6fabd0", "files": [ { "path": "config.json", "sha256": "f65c81039a672962d686f71ee0242f0c89dc020a0e3f193a989a696bf3f9515e", "size_bytes": 4888, "url": "https://huggingface.co/Xenova/vit-gpt2-image-captioning/resolve/215b4edcb7ec1fad5905a18a03f7b2007f6fabd0/config.json", "pinned": true }, { "path": "generation_config.json", "sha256": "997e1f943576edcc46e1b93078ec0e72054a62b4c7f521da42a1eab43c4c1d0c", "size_bytes": 184, "url": "https://huggingface.co/Xenova/vit-gpt2-image-captioning/resolve/215b4edcb7ec1fad5905a18a03f7b2007f6fabd0/generation_config.json", "pinned": true }, { "path": "merges.txt", "sha256": "1ce1664773c50f3e0cc8842619a93edc4624525b728b188a9e0be33b7726adc5", "size_bytes": 456318, "url": "https://huggingface.co/Xenova/vit-gpt2-image-captioning/resolve/215b4edcb7ec1fad5905a18a03f7b2007f6fabd0/merges.txt", "pinned": true }, { "path": "onnx/decoder_model_merged.onnx", "sha256": "df4abab679e8fa8d5c2140dd1ce83d136e7d47bc08008c9d8b3860643c502776", "size_bytes": 615025088, "url": "https://huggingface.co/Xenova/vit-gpt2-image-captioning/resolve/215b4edcb7ec1fad5905a18a03f7b2007f6fabd0/onnx/decoder_model_merged.onnx", "pinned": true }, { "path": "onnx/decoder_model_merged_quantized.onnx", "sha256": "1f3ec53b5fc3614c0b54ee786755a7ec3007841f57543f8e241499edfadfa98f", "size_bytes": 158599996, "url": "https://huggingface.co/Xenova/vit-gpt2-image-captioning/resolve/215b4edcb7ec1fad5905a18a03f7b2007f6fabd0/onnx/decoder_model_merged_quantized.onnx", "pinned": true }, { "path": "onnx/encoder_model.onnx", "sha256": "1e624fcd6a4a6a702dd1b60244adc6b6cbd169dcf3fbf9643be21a9bcf090b29", "size_bytes": 343440631, "url": "https://huggingface.co/Xenova/vit-gpt2-image-captioning/resolve/215b4edcb7ec1fad5905a18a03f7b2007f6fabd0/onnx/encoder_model.onnx", "pinned": true }, { "path": "preprocessor_config.json", "sha256": "76304e9a1deb0d5f78349a57ad9d8057f36476c29bd292e907e2e8c451c93e9d", "size_bytes": 378, "url": "https://huggingface.co/Xenova/vit-gpt2-image-captioning/resolve/215b4edcb7ec1fad5905a18a03f7b2007f6fabd0/preprocessor_config.json", "pinned": true }, { "path": "special_tokens_map.json", "sha256": "8bcf4e58d0970bbcb3b111a4c1e297c082fbf61253b14b3c0c8f2972ccb61ba4", "size_bytes": 131, "url": "https://huggingface.co/Xenova/vit-gpt2-image-captioning/resolve/215b4edcb7ec1fad5905a18a03f7b2007f6fabd0/special_tokens_map.json", "pinned": true }, { "path": "tokenizer.json", "sha256": "6e785cd4f004c9291dadeba7d8d1c2871318d368a1cfcd416c0571dcd8f11413", "size_bytes": 2107928, "url": "https://huggingface.co/Xenova/vit-gpt2-image-captioning/resolve/215b4edcb7ec1fad5905a18a03f7b2007f6fabd0/tokenizer.json", "pinned": true }, { "path": "tokenizer_config.json", "sha256": "5b477c376e81670409e943fc7c8233a0356c8488e05a8aa246082a1d29e8d609", "size_bytes": 456, "url": "https://huggingface.co/Xenova/vit-gpt2-image-captioning/resolve/215b4edcb7ec1fad5905a18a03f7b2007f6fabd0/tokenizer_config.json", "pinned": true }, { "path": "vocab.json", "sha256": "3ba3c3109ff33976c4bd966589c11ee14fcaa1f4c9e5e154c2ed7f99d80709e7", "size_bytes": 798156, "url": "https://huggingface.co/Xenova/vit-gpt2-image-captioning/resolve/215b4edcb7ec1fad5905a18a03f7b2007f6fabd0/vocab.json", "pinned": true } ] } }, "files": [ { "path": "config.json", "format": "text", "class": "bundle", "sha256": "f65c81039a672962d686f71ee0242f0c89dc020a0e3f193a989a696bf3f9515e", "size_bytes": 4888 }, { "path": "generation_config.json", "format": "text", "class": "bundle", "sha256": "997e1f943576edcc46e1b93078ec0e72054a62b4c7f521da42a1eab43c4c1d0c", "size_bytes": 184 }, { "path": "merges.txt", "format": "text", "class": "bundle", "sha256": "1ce1664773c50f3e0cc8842619a93edc4624525b728b188a9e0be33b7726adc5", "size_bytes": 456318 }, { "path": "onnx/decoder_model_merged.onnx", "format": "onnx", "class": "registry", "sha256": "df4abab679e8fa8d5c2140dd1ce83d136e7d47bc08008c9d8b3860643c502776", "size_bytes": 615025088, "variant": "fp32", "io": { "inputs": [ { "name": "input_ids", "dtype": "int64", "shape": [ "batch_size", "decoder_sequence_length" ] }, { "name": "encoder_hidden_states", "dtype": "float32", "shape": [ "batch_size", "encoder_sequence_length", 768 ] }, { "name": "past_key_values.0.key", "dtype": "float32", "shape": [ "batch_size", 12, "past_sequence_length", 64 ] }, { "name": "past_key_values.0.value", "dtype": "float32", "shape": [ "batch_size", 12, "past_sequence_length", 64 ] }, { "name": "past_key_values.1.key", "dtype": "float32", "shape": [ "batch_size", 12, "past_sequence_length", 64 ] }, { "name": "past_key_values.1.value", "dtype": "float32", "shape": [ "batch_size", 12, "past_sequence_length", 64 ] }, { "name": "past_key_values.2.key", "dtype": "float32", "shape": [ "batch_size", 12, "past_sequence_length", 64 ] }, { "name": "past_key_values.2.value", "dtype": "float32", "shape": [ "batch_size", 12, "past_sequence_length", 64 ] }, { "name": "past_key_values.3.key", "dtype": "float32", "shape": [ "batch_size", 12, "past_sequence_length", 64 ] }, { "name": "past_key_values.3.value", "dtype": "float32", "shape": [ "batch_size", 12, "past_sequence_length", 64 ] }, { "name": "past_key_values.4.key", "dtype": "float32", "shape": [ "batch_size", 12, "past_sequence_length", 64 ] }, { "name": "past_key_values.4.value", "dtype": "float32", "shape": [ "batch_size", 12, "past_sequence_length", 64 ] }, { "name": "past_key_values.5.key", "dtype": "float32", "shape": [ "batch_size", 12, "past_sequence_length", 64 ] }, { "name": "past_key_values.5.value", "dtype": "float32", "shape": [ "batch_size", 12, "past_sequence_length", 64 ] }, { "name": "past_key_values.6.key", "dtype": "float32", "shape": [ "batch_size", 12, "past_sequence_length", 64 ] }, { "name": "past_key_values.6.value", "dtype": "float32", "shape": [ "batch_size", 12, "past_sequence_length", 64 ] }, { "name": "past_key_values.7.key", "dtype": "float32", "shape": [ "batch_size", 12, "past_sequence_length", 64 ] }, { "name": "past_key_values.7.value", "dtype": "float32", "shape": [ "batch_size", 12, "past_sequence_length", 64 ] }, { "name": "past_key_values.8.key", "dtype": "float32", "shape": [ "batch_size", 12, "past_sequence_length", 64 ] }, { "name": "past_key_values.8.value", "dtype": "float32", "shape": [ "batch_size", 12, "past_sequence_length", 64 ] }, { "name": "past_key_values.9.key", "dtype": "float32", "shape": [ "batch_size", 12, "past_sequence_length", 64 ] }, { "name": "past_key_values.9.value", "dtype": "float32", "shape": [ "batch_size", 12, "past_sequence_length", 64 ] }, { "name": "past_key_values.10.key", "dtype": "float32", "shape": [ "batch_size", 12, "past_sequence_length", 64 ] }, { "name": "past_key_values.10.value", "dtype": "float32", "shape": [ "batch_size", 12, "past_sequence_length", 64 ] }, { "name": "past_key_values.11.key", "dtype": "float32", "shape": [ "batch_size", 12, "past_sequence_length", 64 ] }, { "name": "past_key_values.11.value", "dtype": "float32", "shape": [ "batch_size", 12, "past_sequence_length", 64 ] }, { "name": "use_cache_branch", "dtype": "bool", "shape": [ 1 ] } ], "outputs": [ { "name": "logits", "dtype": "float32", "shape": [ "batch_size", "decoder_sequence_length", 50257 ] }, { "name": "present.0.key", "dtype": "float32", "shape": [ "batch_size", 12, "past_sequence_length + 1", 64 ] }, { "name": "present.0.value", "dtype": "float32", "shape": [ "batch_size", 12, "past_sequence_length + 1", 64 ] }, { "name": "present.1.key", "dtype": "float32", "shape": [ "batch_size", 12, "past_sequence_length + 1", 64 ] }, { "name": "present.1.value", "dtype": "float32", "shape": [ "batch_size", 12, "past_sequence_length + 1", 64 ] }, { "name": "present.2.key", "dtype": "float32", "shape": [ "batch_size", 12, "past_sequence_length + 1", 64 ] }, { "name": "present.2.value", "dtype": "float32", "shape": [ "batch_size", 12, "past_sequence_length + 1", 64 ] }, { "name": "present.3.key", "dtype": "float32", "shape": [ "batch_size", 12, "past_sequence_length + 1", 64 ] }, { "name": "present.3.value", "dtype": "float32", "shape": [ "batch_size", 12, "past_sequence_length + 1", 64 ] }, { "name": "present.4.key", "dtype": "float32", "shape": [ "batch_size", 12, "past_sequence_length + 1", 64 ] }, { "name": "present.4.value", "dtype": "float32", "shape": [ "batch_size", 12, "past_sequence_length + 1", 64 ] }, { "name": "present.5.key", "dtype": "float32", "shape": [ "batch_size", 12, "past_sequence_length + 1", 64 ] }, { "name": "present.5.value", "dtype": "float32", "shape": [ "batch_size", 12, "past_sequence_length + 1", 64 ] }, { "name": "present.6.key", "dtype": "float32", "shape": [ "batch_size", 12, "past_sequence_length + 1", 64 ] }, { "name": "present.6.value", "dtype": "float32", "shape": [ "batch_size", 12, "past_sequence_length + 1", 64 ] }, { "name": "present.7.key", "dtype": "float32", "shape": [ "batch_size", 12, "past_sequence_length + 1", 64 ] }, { "name": "present.7.value", "dtype": "float32", "shape": [ "batch_size", 12, "past_sequence_length + 1", 64 ] }, { "name": "present.8.key", "dtype": "float32", "shape": [ "batch_size", 12, "past_sequence_length + 1", 64 ] }, { "name": "present.8.value", "dtype": "float32", "shape": [ "batch_size", 12, "past_sequence_length + 1", 64 ] }, { "name": "present.9.key", "dtype": "float32", "shape": [ "batch_size", 12, "past_sequence_length + 1", 64 ] }, { "name": "present.9.value", "dtype": "float32", "shape": [ "batch_size", 12, "past_sequence_length + 1", 64 ] }, { "name": "present.10.key", "dtype": "float32", "shape": [ "batch_size", 12, "past_sequence_length + 1", 64 ] }, { "name": "present.10.value", "dtype": "float32", "shape": [ "batch_size", 12, "past_sequence_length + 1", 64 ] }, { "name": "present.11.key", "dtype": "float32", "shape": [ "batch_size", 12, "past_sequence_length + 1", 64 ] }, { "name": "present.11.value", "dtype": "float32", "shape": [ "batch_size", 12, "past_sequence_length + 1", 64 ] } ], "opset": 11, "ir_version": 8, "producer": "optimum-onnx" } }, { "path": "onnx/decoder_model_merged_quantized.onnx", "format": "onnx", "class": "registry", "sha256": "1f3ec53b5fc3614c0b54ee786755a7ec3007841f57543f8e241499edfadfa98f", "size_bytes": 158599996, "variant": "q8", "io": { "inputs": [ { "name": "input_ids", "dtype": "int64", "shape": [ "batch_size", "decoder_sequence_length" ] }, { "name": "encoder_hidden_states", "dtype": "float32", "shape": [ "batch_size", "encoder_sequence_length", 768 ] }, { "name": "past_key_values.0.key", "dtype": "float32", "shape": [ "batch_size", 12, "past_sequence_length", 64 ] }, { "name": "past_key_values.0.value", "dtype": "float32", "shape": [ "batch_size", 12, "past_sequence_length", 64 ] }, { "name": "past_key_values.1.key", "dtype": "float32", "shape": [ "batch_size", 12, "past_sequence_length", 64 ] }, { "name": "past_key_values.1.value", "dtype": "float32", "shape": [ "batch_size", 12, "past_sequence_length", 64 ] }, { "name": "past_key_values.2.key", "dtype": "float32", "shape": [ "batch_size", 12, "past_sequence_length", 64 ] }, { "name": "past_key_values.2.value", "dtype": "float32", "shape": [ "batch_size", 12, "past_sequence_length", 64 ] }, { "name": "past_key_values.3.key", "dtype": "float32", "shape": [ "batch_size", 12, "past_sequence_length", 64 ] }, { "name": "past_key_values.3.value", "dtype": "float32", "shape": [ "batch_size", 12, "past_sequence_length", 64 ] }, { "name": "past_key_values.4.key", "dtype": "float32", "shape": [ "batch_size", 12, "past_sequence_length", 64 ] }, { "name": "past_key_values.4.value", "dtype": "float32", "shape": [ "batch_size", 12, "past_sequence_length", 64 ] }, { "name": "past_key_values.5.key", "dtype": "float32", "shape": [ "batch_size", 12, "past_sequence_length", 64 ] }, { "name": "past_key_values.5.value", "dtype": "float32", "shape": [ "batch_size", 12, "past_sequence_length", 64 ] }, { "name": "past_key_values.6.key", "dtype": "float32", "shape": [ "batch_size", 12, "past_sequence_length", 64 ] }, { "name": "past_key_values.6.value", "dtype": "float32", "shape": [ "batch_size", 12, "past_sequence_length", 64 ] }, { "name": "past_key_values.7.key", "dtype": "float32", "shape": [ "batch_size", 12, "past_sequence_length", 64 ] }, { "name": "past_key_values.7.value", "dtype": "float32", "shape": [ "batch_size", 12, "past_sequence_length", 64 ] }, { "name": "past_key_values.8.key", "dtype": "float32", "shape": [ "batch_size", 12, "past_sequence_length", 64 ] }, { "name": "past_key_values.8.value", "dtype": "float32", "shape": [ "batch_size", 12, "past_sequence_length", 64 ] }, { "name": "past_key_values.9.key", "dtype": "float32", "shape": [ "batch_size", 12, "past_sequence_length", 64 ] }, { "name": "past_key_values.9.value", "dtype": "float32", "shape": [ "batch_size", 12, "past_sequence_length", 64 ] }, { "name": "past_key_values.10.key", "dtype": "float32", "shape": [ "batch_size", 12, "past_sequence_length", 64 ] }, { "name": "past_key_values.10.value", "dtype": "float32", "shape": [ "batch_size", 12, "past_sequence_length", 64 ] }, { "name": "past_key_values.11.key", "dtype": "float32", "shape": [ "batch_size", 12, "past_sequence_length", 64 ] }, { "name": "past_key_values.11.value", "dtype": "float32", "shape": [ "batch_size", 12, "past_sequence_length", 64 ] }, { "name": "use_cache_branch", "dtype": "bool", "shape": [ 1 ] } ], "outputs": [ { "name": "logits", "dtype": "float32", "shape": [ "batch_size", "decoder_sequence_length", 50257 ] }, { "name": "present.0.key", "dtype": "float32", "shape": [ "batch_size", 12, "past_sequence_length + 1", 64 ] }, { "name": "present.0.value", "dtype": "float32", "shape": [ "batch_size", 12, "past_sequence_length + 1", 64 ] }, { "name": "present.1.key", "dtype": "float32", "shape": [ "batch_size", 12, "past_sequence_length + 1", 64 ] }, { "name": "present.1.value", "dtype": "float32", "shape": [ "batch_size", 12, "past_sequence_length + 1", 64 ] }, { "name": "present.2.key", "dtype": "float32", "shape": [ "batch_size", 12, "past_sequence_length + 1", 64 ] }, { "name": "present.2.value", "dtype": "float32", "shape": [ "batch_size", 12, "past_sequence_length + 1", 64 ] }, { "name": "present.3.key", "dtype": "float32", "shape": [ "batch_size", 12, "past_sequence_length + 1", 64 ] }, { "name": "present.3.value", "dtype": "float32", "shape": [ "batch_size", 12, "past_sequence_length + 1", 64 ] }, { "name": "present.4.key", "dtype": "float32", "shape": [ "batch_size", 12, "past_sequence_length + 1", 64 ] }, { "name": "present.4.value", "dtype": "float32", "shape": [ "batch_size", 12, "past_sequence_length + 1", 64 ] }, { "name": "present.5.key", "dtype": "float32", "shape": [ "batch_size", 12, "past_sequence_length + 1", 64 ] }, { "name": "present.5.value", "dtype": "float32", "shape": [ "batch_size", 12, "past_sequence_length + 1", 64 ] }, { "name": "present.6.key", "dtype": "float32", "shape": [ "batch_size", 12, "past_sequence_length + 1", 64 ] }, { "name": "present.6.value", "dtype": "float32", "shape": [ "batch_size", 12, "past_sequence_length + 1", 64 ] }, { "name": "present.7.key", "dtype": "float32", "shape": [ "batch_size", 12, "past_sequence_length + 1", 64 ] }, { "name": "present.7.value", "dtype": "float32", "shape": [ "batch_size", 12, "past_sequence_length + 1", 64 ] }, { "name": "present.8.key", "dtype": "float32", "shape": [ "batch_size", 12, "past_sequence_length + 1", 64 ] }, { "name": "present.8.value", "dtype": "float32", "shape": [ "batch_size", 12, "past_sequence_length + 1", 64 ] }, { "name": "present.9.key", "dtype": "float32", "shape": [ "batch_size", 12, "past_sequence_length + 1", 64 ] }, { "name": "present.9.value", "dtype": "float32", "shape": [ "batch_size", 12, "past_sequence_length + 1", 64 ] }, { "name": "present.10.key", "dtype": "float32", "shape": [ "batch_size", 12, "past_sequence_length + 1", 64 ] }, { "name": "present.10.value", "dtype": "float32", "shape": [ "batch_size", 12, "past_sequence_length + 1", 64 ] }, { "name": "present.11.key", "dtype": "float32", "shape": [ "batch_size", 12, "past_sequence_length + 1", 64 ] }, { "name": "present.11.value", "dtype": "float32", "shape": [ "batch_size", 12, "past_sequence_length + 1", 64 ] } ], "opset": 11, "ir_version": 8, "producer": "onnx.quantize 0.1.0" } }, { "path": "onnx/encoder_model.onnx", "format": "onnx", "class": "registry", "sha256": "1e624fcd6a4a6a702dd1b60244adc6b6cbd169dcf3fbf9643be21a9bcf090b29", "size_bytes": 343440631, "variant": [ "fp32", "q8" ], "io": { "inputs": [ { "name": "pixel_values", "dtype": "float32", "shape": [ "batch_size", "num_channels", "height", "width" ] } ], "outputs": [ { "name": "last_hidden_state", "dtype": "float32", "shape": [ "batch_size", "encoder_sequence_length", 768 ] } ], "opset": 11, "ir_version": 6, "producer": "pytorch 2.0.1" } }, { "path": "preprocessor_config.json", "format": "text", "class": "bundle", "sha256": "76304e9a1deb0d5f78349a57ad9d8057f36476c29bd292e907e2e8c451c93e9d", "size_bytes": 378 }, { "path": "special_tokens_map.json", "format": "text", "class": "bundle", "sha256": "8bcf4e58d0970bbcb3b111a4c1e297c082fbf61253b14b3c0c8f2972ccb61ba4", "size_bytes": 131 }, { "path": "tokenizer.json", "format": "text", "class": "bundle", "sha256": "6e785cd4f004c9291dadeba7d8d1c2871318d368a1cfcd416c0571dcd8f11413", "size_bytes": 2107928 }, { "path": "tokenizer_config.json", "format": "text", "class": "bundle", "sha256": "5b477c376e81670409e943fc7c8233a0356c8488e05a8aa246082a1d29e8d609", "size_bytes": 456 }, { "path": "vocab.json", "format": "text", "class": "bundle", "sha256": "3ba3c3109ff33976c4bd966589c11ee14fcaa1f4c9e5e154c2ed7f99d80709e7", "size_bytes": 798156 } ], "verification": { "method": "onnx.checker + onnxruntime CPU smoke run with zero-filled inputs at the declared shapes; per-file SHA-256 pinned to the source", "runs": { "onnx/decoder_model_merged.onnx": { "inputs": { "input_ids": [ 1, 4 ], "encoder_hidden_states": [ 1, 197, 768 ], "past_key_values.0.key": [ 1, 12, 1, 64 ], "past_key_values.0.value": [ 1, 12, 1, 64 ], "past_key_values.1.key": [ 1, 12, 1, 64 ], "past_key_values.1.value": [ 1, 12, 1, 64 ], "past_key_values.2.key": [ 1, 12, 1, 64 ], "past_key_values.2.value": [ 1, 12, 1, 64 ], "past_key_values.3.key": [ 1, 12, 1, 64 ], "past_key_values.3.value": [ 1, 12, 1, 64 ], "past_key_values.4.key": [ 1, 12, 1, 64 ], "past_key_values.4.value": [ 1, 12, 1, 64 ], "past_key_values.5.key": [ 1, 12, 1, 64 ], "past_key_values.5.value": [ 1, 12, 1, 64 ], "past_key_values.6.key": [ 1, 12, 1, 64 ], "past_key_values.6.value": [ 1, 12, 1, 64 ], "past_key_values.7.key": [ 1, 12, 1, 64 ], "past_key_values.7.value": [ 1, 12, 1, 64 ], "past_key_values.8.key": [ 1, 12, 1, 64 ], "past_key_values.8.value": [ 1, 12, 1, 64 ], "past_key_values.9.key": [ 1, 12, 1, 64 ], "past_key_values.9.value": [ 1, 12, 1, 64 ], "past_key_values.10.key": [ 1, 12, 1, 64 ], "past_key_values.10.value": [ 1, 12, 1, 64 ], "past_key_values.11.key": [ 1, 12, 1, 64 ], "past_key_values.11.value": [ 1, 12, 1, 64 ], "use_cache_branch": [ 1 ] }, "outputs": { "logits": [ 1, 4, 50257 ], "present.0.key": [ 1, 12, 4, 64 ], "present.0.value": [ 1, 12, 4, 64 ], "present.1.key": [ 1, 12, 4, 64 ], "present.1.value": [ 1, 12, 4, 64 ], "present.2.key": [ 1, 12, 4, 64 ], "present.2.value": [ 1, 12, 4, 64 ], "present.3.key": [ 1, 12, 4, 64 ], "present.3.value": [ 1, 12, 4, 64 ], "present.4.key": [ 1, 12, 4, 64 ], "present.4.value": [ 1, 12, 4, 64 ], "present.5.key": [ 1, 12, 4, 64 ], "present.5.value": [ 1, 12, 4, 64 ], "present.6.key": [ 1, 12, 4, 64 ], "present.6.value": [ 1, 12, 4, 64 ], "present.7.key": [ 1, 12, 4, 64 ], "present.7.value": [ 1, 12, 4, 64 ], "present.8.key": [ 1, 12, 4, 64 ], "present.8.value": [ 1, 12, 4, 64 ], "present.9.key": [ 1, 12, 4, 64 ], "present.9.value": [ 1, 12, 4, 64 ], "present.10.key": [ 1, 12, 4, 64 ], "present.10.value": [ 1, 12, 4, 64 ], "present.11.key": [ 1, 12, 4, 64 ], "present.11.value": [ 1, 12, 4, 64 ] }, "ms": 17.3 }, "onnx/decoder_model_merged_quantized.onnx": { "inputs": { "input_ids": [ 1, 4 ], "encoder_hidden_states": [ 1, 197, 768 ], "past_key_values.0.key": [ 1, 12, 1, 64 ], "past_key_values.0.value": [ 1, 12, 1, 64 ], "past_key_values.1.key": [ 1, 12, 1, 64 ], "past_key_values.1.value": [ 1, 12, 1, 64 ], "past_key_values.2.key": [ 1, 12, 1, 64 ], "past_key_values.2.value": [ 1, 12, 1, 64 ], "past_key_values.3.key": [ 1, 12, 1, 64 ], "past_key_values.3.value": [ 1, 12, 1, 64 ], "past_key_values.4.key": [ 1, 12, 1, 64 ], "past_key_values.4.value": [ 1, 12, 1, 64 ], "past_key_values.5.key": [ 1, 12, 1, 64 ], "past_key_values.5.value": [ 1, 12, 1, 64 ], "past_key_values.6.key": [ 1, 12, 1, 64 ], "past_key_values.6.value": [ 1, 12, 1, 64 ], "past_key_values.7.key": [ 1, 12, 1, 64 ], "past_key_values.7.value": [ 1, 12, 1, 64 ], "past_key_values.8.key": [ 1, 12, 1, 64 ], "past_key_values.8.value": [ 1, 12, 1, 64 ], "past_key_values.9.key": [ 1, 12, 1, 64 ], "past_key_values.9.value": [ 1, 12, 1, 64 ], "past_key_values.10.key": [ 1, 12, 1, 64 ], "past_key_values.10.value": [ 1, 12, 1, 64 ], "past_key_values.11.key": [ 1, 12, 1, 64 ], "past_key_values.11.value": [ 1, 12, 1, 64 ], "use_cache_branch": [ 1 ] }, "outputs": { "logits": [ 1, 4, 50257 ], "present.0.key": [ 1, 12, 4, 64 ], "present.0.value": [ 1, 12, 4, 64 ], "present.1.key": [ 1, 12, 4, 64 ], "present.1.value": [ 1, 12, 4, 64 ], "present.2.key": [ 1, 12, 4, 64 ], "present.2.value": [ 1, 12, 4, 64 ], "present.3.key": [ 1, 12, 4, 64 ], "present.3.value": [ 1, 12, 4, 64 ], "present.4.key": [ 1, 12, 4, 64 ], "present.4.value": [ 1, 12, 4, 64 ], "present.5.key": [ 1, 12, 4, 64 ], "present.5.value": [ 1, 12, 4, 64 ], "present.6.key": [ 1, 12, 4, 64 ], "present.6.value": [ 1, 12, 4, 64 ], "present.7.key": [ 1, 12, 4, 64 ], "present.7.value": [ 1, 12, 4, 64 ], "present.8.key": [ 1, 12, 4, 64 ], "present.8.value": [ 1, 12, 4, 64 ], "present.9.key": [ 1, 12, 4, 64 ], "present.9.value": [ 1, 12, 4, 64 ], "present.10.key": [ 1, 12, 4, 64 ], "present.10.value": [ 1, 12, 4, 64 ], "present.11.key": [ 1, 12, 4, 64 ], "present.11.value": [ 1, 12, 4, 64 ] }, "ms": 23.6 }, "onnx/encoder_model.onnx": { "inputs": { "pixel_values": [ 1, 3, 224, 224 ] }, "outputs": { "last_hidden_state": [ 1, 197, 768 ] }, "ms": 25.4 } } }}123version https://git-lfs.github.com/spec/v1oid sha256:df4abab679e8fa8d5c2140dd1ce83d136e7d47bc08008c9d8b3860643c502776size 615025088123version https://git-lfs.github.com/spec/v1oid sha256:1f3ec53b5fc3614c0b54ee786755a7ec3007841f57543f8e241499edfadfa98fsize 158599996123version https://git-lfs.github.com/spec/v1oid sha256:1e624fcd6a4a6a702dd1b60244adc6b6cbd169dcf3fbf9643be21a9bcf090b29size 3434406311234567891011121314151617181920212223{ "do_normalize": true, "do_rescale": true, "do_resize": true, "feature_extractor_type": "ViTFeatureExtractor", "image_mean": [ 0.5, 0.5, 0.5 ], "image_processor_type": "ViTFeatureExtractor", "image_std": [ 0.5, 0.5, 0.5 ], "resample": 2, "rescale_factor": 0.00392156862745098, "size": { "height": 224, "width": 224 }}123456{ "bos_token": "<|endoftext|>", "eos_token": "<|endoftext|>", "pad_token": "<|endoftext|>", "unk_token": "<|endoftext|>"}1234567891011121314151617{ "add_prefix_space": false, "bos_token": "<|endoftext|>", "clean_up_tokenization_spaces": true, "eos_token": "<|endoftext|>", "max_length": 32, "model_max_length": 1024, "pad_to_multiple_of": null, "pad_token": "<|endoftext|>", "pad_token_type_id": 0, "padding_side": "right", "stride": 0, "tokenizer_class": "GPT2Tokenizer", "truncation_side": "right", "truncation_strategy": "longest_first", "unk_token": "<|endoftext|>"}README.mdAdded+77
config.jsonAdded+185
generation_config.jsonAdded+8
manifest.jsonAdded+1977
merges.txtAdded
onnx/decoder_model_merged.onnxAdded+3
onnx/decoder_model_merged_quantized.onnxAdded+3
onnx/encoder_model.onnxAdded+3
preprocessor_config.jsonAdded+23
special_tokens_map.jsonAdded+6
tokenizer.jsonAdded
tokenizer_config.jsonAdded+17
vocab.jsonAdded