SAVRN
Search Contact SAVRN

Open-weight model · Image and text to text

Florence-2-base-ft

by ONNX Community onnx-community/Florence-2-base-ft

https://huggingface.co/microsoft/Florence-2-base-ft with ONNX weights to be compatible with Transformers.js.

Parameters
Context1,024
Weights5.4 GB
Licensemit
AccessOpen weights
Monthly Downloads25k

Model Card

By ONNX Community, published under mit, revision e88a44eaf379.

https://huggingface.co/microsoft/Florence-2-base-ft with ONNX weights to be compatible with Transformers.js. If you haven't already, you can install the Transformers.js JavaScript library from NPM using: Example: Perform image captioning with onnx-community/Florence-2-base-ft. We also released an online demo, which you can try yourself: https://huggingface.co/spaces/Xenova/florence2-webgpu Note: Having a separate repo for ONNX weights is intended to be a temporary solution until WebML gains more traction. If you would like to make your models web-ready, we recommend converting to ONNX using Optimum and structuring your repo like this one (with ONNX weights located in a subfolder named onnx).

Read ONNX Community's full model card

https://huggingface.co/microsoft/Florence-2-base-ft with ONNX weights to be compatible with Transformers.js.

Usage (Transformers.js)

If you haven't already, you can install the Transformers.js JavaScript library from NPM using:

npm i @huggingface/transformers

Example: Perform image captioning with onnx-community/Florence-2-base-ft.

import {
    Florence2ForConditionalGeneration,
    AutoProcessor,
    load_image,
} from '@huggingface/transformers';

// Load model, processor, and tokenizer
const model_id = 'onnx-community/Florence-2-base-ft';
const model = await Florence2ForConditionalGeneration.from_pretrained(model_id, { dtype: 'fp32' });
const processor = await AutoProcessor.from_pretrained(model_id);

// Load image and prepare vision inputs
const url = 'https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/transformers/tasks/car.jpg';
const image = await load_image(url);

// Specify task and prepare text inputs
const task = '<MORE_DETAILED_CAPTION>';
const prompts = processor.construct_prompts(task);

// Pre-process the image and text inputs
const inputs = await processor(image, prompts);

// Generate text
const generated_ids = await model.generate({
    ...inputs,
    max_new_tokens: 100,
});

// Decode generated text
const generated_text = processor.batch_decode(generated_ids, { skip_special_tokens: false })[0];

// Post-process the generated text
const result = processor.post_process_generation(generated_text, task, image.size);
console.log(result);
// { '<MORE_DETAILED_CAPTION>': 'A green car is parked in front of a tan building. There is a brown door on the building behind the car. There are two windows on the front of the building. ' }

We also released an online demo, which you can try yourself: https://huggingface.co/spaces/Xenova/florence2-webgpu


Note: Having a separate repo for ONNX weights is intended to be a temporary solution until WebML gains more traction. If you would like to make your models web-ready, we recommend converting to ONNX using Optimum and structuring your repo like this one (with ONNX weights located in a subfolder named onnx).

Configuration

Architecture
Florence2ForConditionalGeneration
Context length (tokens)
1,024
Layers
6
Vocabulary size
51,289
Model type
florence2

Identity and Version

Repository
onnx-community/Florence-2-base-ft
Publisher
ONNX Community
Task
Image and text to text
Modality
Image and text
Library
transformers.js
Parameters
Not stated by the source
Languages
Not stated by the source
Revision
e88a44eaf3791a35eae0c5a47b3dbcd36e67eb6f
First published
2024-06-19
Last updated
2025-05-08

Files and Weights

59 files, 5.4 GB in total. The weights are 48 files totalling 5.4 GB in onnx.

Weights48 files · 5.4 GB
Configuration5 files · 177.4 KB
Tokenizer4 files · 4.1 MB
Documentation1 file · 2.7 KB
Repository1 file · 1.5 KB
Every file
FileTypeSizeSHA-256
onnx/decoder_model.onnxWeights388.1 MB 16b40ea746ea
onnx/decoder_model_bnb4.onnxWeights58.0 MB e3b6e535fffe
onnx/decoder_model_fp16.onnxWeights194.2 MB ce583853b630
onnx/decoder_model_int8.onnxWeights97.8 MB c529b26bafce
onnx/decoder_model_merged.onnxWeights388.4 MB 5207affad881
onnx/decoder_model_merged_bnb4.onnxWeights58.4 MB 64cf32828e82
onnx/decoder_model_merged_fp16.onnxWeights194.5 MB 9b9b12107729
onnx/decoder_model_merged_int8.onnxWeights98.2 MB f22f52f980c3
onnx/decoder_model_merged_q4.onnxWeights64.4 MB be7a2f33e65f
onnx/decoder_model_merged_q4f16.onnxWeights56.5 MB db32b0b1fd50
onnx/decoder_model_merged_quantized.onnxWeights98.2 MB f22f52f980c3
onnx/decoder_model_merged_uint8.onnxWeights98.2 MB c0bfddc38e75
onnx/decoder_model_q4.onnxWeights64.0 MB 8add32904ff3
onnx/decoder_model_q4f16.onnxWeights56.2 MB ba61f607285e
onnx/decoder_model_quantized.onnxWeights97.8 MB c529b26bafce
onnx/decoder_model_uint8.onnxWeights97.8 MB 51d79f4ee94d
onnx/decoder_with_past_model.onnxWeights359.7 MB fe7c4e257dee
onnx/decoder_with_past_model_bnb4.onnxWeights54.0 MB 1e1935fbedb2
onnx/decoder_with_past_model_fp16.onnxWeights180.0 MB ce201a68171d
onnx/decoder_with_past_model_int8.onnxWeights90.6 MB edb4ad2c8a65
onnx/decoder_with_past_model_q4.onnxWeights59.5 MB 835f917f2351
onnx/decoder_with_past_model_q4f16.onnxWeights52.1 MB 8b679108451e
onnx/decoder_with_past_model_quantized.onnxWeights90.6 MB edb4ad2c8a65
onnx/decoder_with_past_model_uint8.onnxWeights90.6 MB 07e174a58295
onnx/embed_tokens.onnxWeights157.6 MB 90cae3deb640
onnx/embed_tokens_bnb4.onnxWeights157.6 MB f972f338dede
onnx/embed_tokens_fp16.onnxWeights78.8 MB da2607930eea
onnx/embed_tokens_int8.onnxWeights39.4 MB 6b2258db1c8e
onnx/embed_tokens_q4.onnxWeights157.6 MB f972f338dede
onnx/embed_tokens_q4f16.onnxWeights78.8 MB 2c2a1663e8db
onnx/embed_tokens_quantized.onnxWeights39.4 MB 6b2258db1c8e
onnx/embed_tokens_uint8.onnxWeights39.4 MB 3bb20ac178b5
onnx/encoder_model.onnxWeights173.4 MB cb0bccc232c6
onnx/encoder_model_bnb4.onnxWeights27.4 MB ae858f7ac9e1
onnx/encoder_model_fp16.onnxWeights86.7 MB 0d1d929f2829
onnx/encoder_model_int8.onnxWeights43.7 MB f4ad7a68f1fb
onnx/encoder_model_q4.onnxWeights30.1 MB 34b17bcf191d
onnx/encoder_model_q4f16.onnxWeights25.7 MB 1550d6978366
onnx/encoder_model_quantized.onnxWeights43.7 MB f4ad7a68f1fb
onnx/encoder_model_uint8.onnxWeights43.7 MB 653648259f09
onnx/vision_encoder.onnxWeights366.5 MB d67258cdfdeb
onnx/vision_encoder_bnb4.onnxWeights76.0 MB 6bc4632c09f6
onnx/vision_encoder_fp16.onnxWeights183.9 MB a7abcd77199c
onnx/vision_encoder_int8.onnxWeights93.7 MB d7876c1ab0f7
onnx/vision_encoder_q4.onnxWeights81.2 MB 8f211dfc1769
onnx/vision_encoder_q4f16.onnxWeights62.4 MB 1e993fb70813
onnx/vision_encoder_quantized.onnxWeights93.7 MB 3b79d54f23f6
onnx/vision_encoder_uint8.onnxWeights93.7 MB 3b79d54f23f6
added_tokens.jsonConfiguration22.4 KB
config.jsonConfiguration5.4 KB
generation_config.jsonConfiguration292 B
preprocessor_config.jsonConfiguration2.7 KB
special_tokens_map.jsonConfiguration146.6 KB
README.mdDocumentation2.7 KB
.gitattributesRepository1.5 KB
merges.txtTokenizer456.3 KB
tokenizer.jsonTokenizer2.3 MB
tokenizer_config.jsonTokenizer197.7 KB
vocab.jsonTokenizer1.1 MB

License and Download

License
mit
Access
Open weights, no gate
Download size
5.4 GB
Download from ONNX Community

Released by ONNX Community through its official repository on Hugging Face. Read the license.

Built From

  • Derived from microsoft/Florence-2-base-ft
  • Quantized from microsoft/Florence-2-base-ft

Memory Requirements

PrecisionWeights in memory
As published5.4 GB

Weights only, from the published parameter count; the key-value cache and runtime add to this.

Questions About Florence-2-base-ft

Can I use Florence-2-base-ft commercially?

Yes. Florence-2-base-ft is released under MIT License. The MIT License is a short permissive license. It permits commercial use, modification and redistribution, provided the copyright notice and permission notice are included.

What is Florence-2-base-ft's context length?

1,024 tokens, from the maximum position embeddings in its published configuration.

Similar Models

Model · Image and text to text

Qwen3.8-27B-iMatrix-NVFP4-MTP-GGUF

Michał Piszczek

I built this quant because the ready-made FP4 file answered the wrong question. It was fast, but on my short WikiText-2 control it scored 6.4949 PPL. Plain Q40 scored 6.3798. The first higher-quality hybrid went too far the other way: good perplexity, 34.19 tok/s, and no comfortable room for 256K plus vision. This is the build that survived both gates. It is a 17.1 GB, 5.01 BPW mixed-precision GGUF of Qwen/Qwen3.8-27B. It keeps large, tolerant matrices in native NVFP4 and spends more bits on selected attention, Gated DeltaNet, and late FFN tensors. The trained MTP layer remains embedded in the same GGUF. This is not a fine-tune. I built the private calibration workload from 5,472 messages…

Open weights apache-2.0

Model · Image and text to text

Huihui-Qwen3.8-27B-abliterated-GGUF

Huihui.ai

This is an uncensored version of Qwen/Qwen3.8-27B created with abliteration (see remove-refusals-with-transformers to know more about it). This is a crude, proof-of-concept implementation to remove refusals from an LLM model without using TransformerLens. The newly added Huihui-Qwen3.8-27B-abliterated-GSQ-RCO series come from ISTA-DASLab/Qwen3.8-27B-GSQ-RCO-GGUF. Only layers 23 to 51 have been ablated, while the other layers remain unablated. It may come with a small disclaimer warning. The size after conversion may differ from the original GGUF. The newly added Huihui-Qwen3.8-27B-abliterated-UD series come from unsloth/Qwen3.8-27B-GGUF. Only layers 18 to 51 have been ablated(Previously…

Open weights apache-2.0 transformers

Qwen3.8-27B uncensored by HauhauCS 0/465 Refusals. This is the Aggressive variant: direct answers, no refusal behavior, and minimal preamble on hard prompts. Every text GGUF preserves Qwen3.8's native NextN head, and this release adds HauhauCS FastMTP: a specific acceleration sidecar qualified across the complete quant lineup at maximum native context. Vision is included through the separate BF16 projector. No changes to datasets or intended capabilities. This release preserves Qwen3.8-27B's text, reasoning, agentic, image, and video capabilities while applying the HauhauCS Aggressive uncensoring profile. Pick Aggressive when you specifically want the model to get to the answer without…

Open weights apache-2.0

Model · Image and text to text

Gemma-4-E4B-Uncensored-HauhauCS-Aggressive

HauhauCS

Gemma 4 E4B-IT uncensored by HauhauCS. 0/465 Refusals\ No changes to datasets or capabilities. Fully functional, 100% of what the original authors intended - just without the refusals. These are meant to be the best lossless uncensored models out there. Stronger uncensoring — model is fully unlocked and won't refuse prompts. May occasionally append short disclaimers (baked into base model training, not refusals) but full content is always generated. For a more conservative uncensor that keeps some safety guardrails, check the Balanced variant when it's available. All quants generated with importance matrix (imatrix) for optimal quality preservation on abliterated weights. KP ("Perfect")…

Open weights gemma

Model · Image and text to text

Qwen3.5-9B-GGUF

Unsloth AI

You can now also fine-tune the model locally with Unsloth. - Read our Qwen3.5 fine-tuning guide here. Over recent months, we have intensified our focus on developing foundation models that deliver exceptional utility and performance. Qwen3.5 represents a significant leap forward, integrating breakthroughs in multimodal learning, architectural efficiency, reinforcement learning scale, and global accessibility to empower developers and enterprises with unprecedented capability and efficiency. For more details, please refer to our blog post Qwen3.5. WMT24++: a harder subset of WMT24 after difficulty labeling and rebalancing; we report the averaged scores on 55 languages using XCOMET-XXL. Empty…

Open weights apache-2.0 transformers

Model · Image and text to text

Qwen3.8-Flash-Next-GGUF

Unsloth AI

As the frontier of foundation models pushes toward ever-larger parameter counts and ever-longer context windows, the question is no longer just how much we can scale, but how efficiently we can do so. Sustainable progress toward artificial general intelligence (AGI) that benefits everyone demands architectural innovation. Today, we are sharing a concrete step in that direction: Qwen3.8-Flash-Next. This experimental preview of the architecture that will underpin Qwen4 is built around a fundamental rethinking of how the core components of modern large language models (LLMs) interact at scale. The first open-weight release under this architecture is Qwen3.8-Flash-Next, which introduces: For…

Open weights other