onnx-community/distilvit-ONNX
By onnx-community · ↓ 6 · ♥ 0 · Updated 2026-01-08
What's in this repo
This page lists the files in onnx-community/distilvit-ONNX, including decoder_model.onnx, decoder_model_bnb4.onnx, decoder_model_fp16.onnx and more.
- 32 ONNX models (.onnx files)
- 43 files, including 32 .onnx, 8 .json, 1 .md, 1 .txt
- Last updated 2026-01-08
ONNX files
| File | Size | Download |
|---|---|---|
| onnx/decoder_model.onnx | — | Download |
| onnx/decoder_model_bnb4.onnx | — | Download |
| onnx/decoder_model_fp16.onnx | — | Download |
| onnx/decoder_model_int8.onnx | — | Download |
| onnx/decoder_model_merged.onnx | — | Download |
| onnx/decoder_model_merged_bnb4.onnx | — | Download |
| onnx/decoder_model_merged_fp16.onnx | — | Download |
| onnx/decoder_model_merged_int8.onnx | — | Download |
| onnx/decoder_model_merged_q4.onnx | — | Download |
| onnx/decoder_model_merged_q4f16.onnx | — | Download |
Showing 10 of 32 .onnx files — see the full file list on the right.
How to use
These ONNX files can be loaded with ONNX Runtime. To inspect a model graph, upload the file to the Netron viewer. Download links point to the original files on Hugging Face.
README
distilvit (ONNX)
This is an ONNX version of Mozilla/distilvit. It was automatically converted and uploaded using this Hugging Face Space.
Usage with Transformers.js
See the pipeline documentation for image-to-text: https://huggingface.co/docs/transformers.js/api/pipelines#module_pipelines.ImageToTextPipeline
distilvit
This model is a work in progress. Fine-tuned version of those base models:
- a VIT model for the image encoder: https://huggingface.co/google/vit-base-patch16-224-in21k
- a Distilled GPT-2 model for the text decoder: https://huggingface.co/distilbert/distilgpt2
This model was trained on:
- A debiased version of COCO 2017
- A debiased version of Flickr30k
- Images from pexels
- DocOrNot
- Alt Text Validation
You can find the code used to create the model here: https://github.com/mozilla/distilvit
training results
{
"train/loss": 0.0781,
"train/learning_rate": 0.00003793103448275862,
"train/epoch": 2.41,
"train/global_step": 700,
"eval/loss": 0.09741172194480896,
"eval/rouge1": 60.382,
"eval/rouge2": 38.0754,
"eval/rougeL": 56.9132,
"eval/rougeLsum": 56.9214,
"eval/meteor": 0.5448683804505693,
"eval/gen_len": 9.864678265672467,
"eval/runtime": 343.0443,
"eval/samples_per_second": 10.555,
"eval/steps_per_second": 0.108,
"train/train_runtime": 10567.9413,
"train/train_samples_per_second": 27.414,
"train/train_steps_per_second": 0.274,
"train/total_flos": 9039628706135409000,
"train/train_loss": 0.09852950266429356,
}
Model info
Created: 2026-01-08
Updated: 2026-01-08
View on Hugging Face