Instructions to use onnx-community/mgp-str-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers.js
How to use onnx-community/mgp-str-base with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('image-to-text', 'onnx-community/mgp-str-base');
Download tokenizer.json from onnx-community/mgp-str-base: direct link, hf CLI and curl.
- Browser
- Download file 780 Bytes
-
https://huggingface.co/onnx-community/mgp-str-base/resolve/main/tokenizer.json
- Command line
-
hf download hf://onnx-community/mgp-str-base/tokenizer.json
-
curl -L -o tokenizer.json https://huggingface.co/onnx-community/mgp-str-base/resolve/main/tokenizer.json
780 Bytes
| { | |
| "version": "1.0", | |
| "truncation": null, | |
| "padding": null, | |
| "added_tokens": [], | |
| "normalizer": null, | |
| "pre_tokenizer": null, | |
| "post_processor": null, | |
| "decoder": null, | |
| "model": { | |
| "vocab": { | |
| "[GO]": 0, | |
| "[s]": 1, | |
| "0": 2, | |
| "1": 3, | |
| "2": 4, | |
| "3": 5, | |
| "4": 6, | |
| "5": 7, | |
| "6": 8, | |
| "7": 9, | |
| "8": 10, | |
| "9": 11, | |
| "a": 12, | |
| "b": 13, | |
| "c": 14, | |
| "d": 15, | |
| "e": 16, | |
| "f": 17, | |
| "g": 18, | |
| "h": 19, | |
| "i": 20, | |
| "j": 21, | |
| "k": 22, | |
| "l": 23, | |
| "m": 24, | |
| "n": 25, | |
| "o": 26, | |
| "p": 27, | |
| "q": 28, | |
| "r": 29, | |
| "s": 30, | |
| "t": 31, | |
| "u": 32, | |
| "v": 33, | |
| "w": 34, | |
| "x": 35, | |
| "y": 36, | |
| "z": 37 | |
| } | |
| } | |
| } |