Instructions to use MAGAer13/mplug-owl2-llama2-7b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use MAGAer13/mplug-owl2-llama2-7b with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("MAGAer13/mplug-owl2-llama2-7b", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download tokenizer_config.json from MAGAer13/mplug-owl2-llama2-7b: direct link, hf CLI and curl.
- Browser
- Download file 749 Bytes
-
https://huggingface.co/MAGAer13/mplug-owl2-llama2-7b/resolve/main/tokenizer_config.json
- Command line
-
hf download hf://MAGAer13/mplug-owl2-llama2-7b/tokenizer_config.json
-
curl -L -o tokenizer_config.json https://huggingface.co/MAGAer13/mplug-owl2-llama2-7b/resolve/main/tokenizer_config.json
749 Bytes
| { | |
| "add_bos_token": true, | |
| "add_eos_token": false, | |
| "bos_token": { | |
| "__type": "AddedToken", | |
| "content": "<s>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "clean_up_tokenization_spaces": false, | |
| "eos_token": { | |
| "__type": "AddedToken", | |
| "content": "</s>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "legacy": false, | |
| "model_max_length": 4096, | |
| "pad_token": null, | |
| "padding_side": "right", | |
| "sp_model_kwargs": {}, | |
| "tokenizer_class": "LlamaTokenizer", | |
| "unk_token": { | |
| "__type": "AddedToken", | |
| "content": "<unk>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| } | |
| } | |