Downloads · 30 days
76
24% of all-time downloads
Heliosoph/florence-2-base-ft-quantized-onnx
florence-2-base-ft-quantized-onnx is a image-to-text model from Heliosoph. Use it when you need a caption or text from an image. It is set up for transformers. The card lists the license as mit.
ONNX export of microsoft/Florence-2-base-ft with post-export INT8 dynamic quantization applied to all four sub-models. Roughly half the disk and inference RAM of the fp16 variant.
Downloads · 30 days
76
24% of all-time downloads
All-time downloads
318
Public
Repo size
275 MB
Likes
0
Public
Click a slice to open those files.
.onnx275 MB · 99%
From the Hugging Face model README
ONNX export of microsoft/Florence-2-base-ft with post-export INT8 dynamic quantization applied to all four sub-models. Roughly half the disk and inference RAM of the fp16 variant.
Converted artifact. Training credit: Microsoft Research.
config.json
generation_config.json
preprocessor_config.json
tokenizer.json
tokenizer_config.json
vocab.json
merges.txt
special_tokens_map.json
vision_encoder_quantized.onnx
encoder_model_quantized.onnx
decoder_model_quantized.onnx
embed_tokens_quantized.onnx
Total: ~270 MB. All four ONNX files are required at inference.
optimum-cli export onnx \
--model microsoft/Florence-2-base-ft \
--task image-to-text \
--trust-remote-code \
<fp32-output>
.onnx file using onnxruntime.quantization.quantize_dynamic (weight-only, per-channel).Toolchain: optimum 1.24.0, transformers 4.45.2, onnxruntime 1.19.x.
This repo (INT8): CPU, NPU (OpenVINO EP), mobile, browser (transformers.js). ~270 MB.
Heliosoph/florence-2-base-ft-fp16-onnx: GPU, maximum quality. ~520 MB.
Known degradation: Dense OCR over small text loses noticeable accuracy at INT8. Captioning and object detection are largely unaffected. Test on your workload before committing.
Identical to the fp16 variant — see Heliosoph/florence-2-base-ft-fp16-onnx for the full list.
MIT — same as upstream. LICENSE file included.