Instructions to use GeWu-Lab/ROMA-7B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use GeWu-Lab/ROMA-7B with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModel processor = AutoProcessor.from_pretrained("GeWu-Lab/ROMA-7B") model = AutoModel.from_pretrained("GeWu-Lab/ROMA-7B", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download special_tokens_map.json from GeWu-Lab/ROMA-7B: direct link, hf CLI and curl.
- Browser
- Download file 832 Bytes
-
https://huggingface.co/GeWu-Lab/ROMA-7B/resolve/main/special_tokens_map.json
- Command line
-
hf download hf://GeWu-Lab/ROMA-7B/special_tokens_map.json
-
curl -L -o special_tokens_map.json https://huggingface.co/GeWu-Lab/ROMA-7B/resolve/main/special_tokens_map.json
832 Bytes
| { | |
| "additional_special_tokens": [ | |
| "<|im_start|>", | |
| "<|im_end|>", | |
| "<|AUDIO|>", | |
| "<|audio_bos|>", | |
| "<|audio_eos|>", | |
| "<|box_end|>", | |
| "<|quad_start|>", | |
| "<|quad_end|>", | |
| "<|vision_bos|>", | |
| "<|vision_eos|>", | |
| "<|vision_pad|>", | |
| "<|IMAGE|>", | |
| "<|VIDEO|>" | |
| ], | |
| "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 | |
| }, | |
| "image_token": "<|IMAGE|>", | |
| "audio_token": "<|AUDIO|>", | |
| "video_token": "<|VIDEO|>", | |
| "vision_bos_token": "<|vision_bos|>", | |
| "vision_eos_token": "<|vision_eos|>", | |
| "audio_bos_token": "<|audio_bos|>", | |
| "audio_eos_token": "<|audio_eos|>" | |
| } |