Image-Text-to-Text
Transformers.js
ONNX
florence2
vision
text-generation
text2text-generation
image-to-text
Instructions to use onnx-community/Florence-2-base-ft with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers.js
How to use onnx-community/Florence-2-base-ft with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('image-text-to-text', 'onnx-community/Florence-2-base-ft');
Download tokenizer_config.json from onnx-community/Florence-2-base-ft: direct link, hf CLI and curl.
- Browser
- Download file 34 Bytes
-
https://huggingface.co/onnx-community/Florence-2-base-ft/resolve/9c9db0446a4471a472b92e58879b5205ef63f743/tokenizer_config.json
- Command line
-
hf download hf://onnx-community/Florence-2-base-ft@9c9db0446a4471a472b92e58879b5205ef63f743/tokenizer_config.json
-
curl -L -o tokenizer_config.json https://huggingface.co/onnx-community/Florence-2-base-ft/resolve/9c9db0446a4471a472b92e58879b5205ef63f743/tokenizer_config.json
34 Bytes
| { | |
| "model_max_length": 1024 | |
| } | |