Instructions to use OneThink/OneThinker-8B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use OneThink/OneThinker-8B with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("OneThink/OneThinker-8B") model = AutoModelForMultimodalLM.from_pretrained("OneThink/OneThinker-8B", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download special_tokens_map.json from OneThink/OneThinker-8B: direct link, hf CLI and curl.
- Browser
- Download file 613 Bytes
-
https://huggingface.co/OneThink/OneThinker-8B/resolve/main/special_tokens_map.json
- Command line
-
hf download hf://OneThink/OneThinker-8B/special_tokens_map.json
-
curl -L -o special_tokens_map.json https://huggingface.co/OneThink/OneThinker-8B/resolve/main/special_tokens_map.json
613 Bytes
| { | |
| "additional_special_tokens": [ | |
| "<|im_start|>", | |
| "<|im_end|>", | |
| "<|object_ref_start|>", | |
| "<|object_ref_end|>", | |
| "<|box_start|>", | |
| "<|box_end|>", | |
| "<|quad_start|>", | |
| "<|quad_end|>", | |
| "<|vision_start|>", | |
| "<|vision_end|>", | |
| "<|vision_pad|>", | |
| "<|image_pad|>", | |
| "<|video_pad|>" | |
| ], | |
| "eos_token": { | |
| "content": "<|im_end|>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "pad_token": { | |
| "content": "<|endoftext|>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| } | |
| } | |