Image-Text-to-Text
Transformers.js
ONNX
English
llava
text-generation
multimodal
qwen
conversational
Instructions to use onnx-community/nanoLLaVA-1.5 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers.js
How to use onnx-community/nanoLLaVA-1.5 with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('image-text-to-text', 'onnx-community/nanoLLaVA-1.5');
Upload 2 files
Browse files- tokenizer.json +9 -1
- tokenizer_config.json +8 -0
tokenizer.json
CHANGED
|
@@ -29,6 +29,15 @@
|
|
| 29 |
"rstrip": false,
|
| 30 |
"normalized": false,
|
| 31 |
"special": true
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 32 |
}
|
| 33 |
],
|
| 34 |
"normalizer": {
|
|
@@ -73,7 +82,6 @@
|
|
| 73 |
"end_of_word_suffix": "",
|
| 74 |
"fuse_unk": false,
|
| 75 |
"byte_fallback": false,
|
| 76 |
-
"ignore_merges": false,
|
| 77 |
"vocab": {
|
| 78 |
"!": 0,
|
| 79 |
"\"": 1,
|
|
|
|
| 29 |
"rstrip": false,
|
| 30 |
"normalized": false,
|
| 31 |
"special": true
|
| 32 |
+
},
|
| 33 |
+
{
|
| 34 |
+
"id": -200,
|
| 35 |
+
"content": "<image>",
|
| 36 |
+
"single_word": false,
|
| 37 |
+
"lstrip": false,
|
| 38 |
+
"rstrip": false,
|
| 39 |
+
"normalized": false,
|
| 40 |
+
"special": true
|
| 41 |
}
|
| 42 |
],
|
| 43 |
"normalizer": {
|
|
|
|
| 82 |
"end_of_word_suffix": "",
|
| 83 |
"fuse_unk": false,
|
| 84 |
"byte_fallback": false,
|
|
|
|
| 85 |
"vocab": {
|
| 86 |
"!": 0,
|
| 87 |
"\"": 1,
|
tokenizer_config.json
CHANGED
|
@@ -24,6 +24,14 @@
|
|
| 24 |
"rstrip": false,
|
| 25 |
"single_word": false,
|
| 26 |
"special": true
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 27 |
}
|
| 28 |
},
|
| 29 |
"additional_special_tokens": [
|
|
|
|
| 24 |
"rstrip": false,
|
| 25 |
"single_word": false,
|
| 26 |
"special": true
|
| 27 |
+
},
|
| 28 |
+
"-200": {
|
| 29 |
+
"content": "<image>",
|
| 30 |
+
"lstrip": false,
|
| 31 |
+
"normalized": false,
|
| 32 |
+
"rstrip": false,
|
| 33 |
+
"single_word": false,
|
| 34 |
+
"special": true
|
| 35 |
}
|
| 36 |
},
|
| 37 |
"additional_special_tokens": [
|