Instructions to use RuoxiL/style-irs-from-facebook-2.7 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use RuoxiL/style-irs-from-facebook-2.7 with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("facebook/opt-2.7b") model = PeftModel.from_pretrained(base_model, "RuoxiL/style-irs-from-facebook-2.7") - Notebooks
- Google Colab
- Kaggle
Download tokenizer_config.json from RuoxiL/style-irs-from-facebook-2.7: direct link, hf CLI and curl.
- Browser
- Download file 1.34 kB
-
https://huggingface.co/RuoxiL/style-irs-from-facebook-2.7/resolve/main/tokenizer_config.json
- Command line
-
hf download hf://RuoxiL/style-irs-from-facebook-2.7/tokenizer_config.json
-
curl -L -o tokenizer_config.json https://huggingface.co/RuoxiL/style-irs-from-facebook-2.7/resolve/main/tokenizer_config.json
1.34 kB
| { | |
| "add_bos_token": true, | |
| "add_prefix_space": false, | |
| "added_tokens_decoder": { | |
| "1": { | |
| "content": "<pad>", | |
| "lstrip": false, | |
| "normalized": true, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "2": { | |
| "content": "</s>", | |
| "lstrip": false, | |
| "normalized": true, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "50265": { | |
| "content": "<|im_end|>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "50266": { | |
| "content": "<|im_start|>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| } | |
| }, | |
| "additional_special_tokens": [ | |
| "<|im_end|>", | |
| "<|im_start|>" | |
| ], | |
| "bos_token": "<|im_start|>", | |
| "chat_template": "{% for message in messages %}{{'<|im_start|>' + message['role'] + '\n' + message['content'] + '<|im_end|>' + '\n'}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant\n' }}{% endif %}", | |
| "clean_up_tokenization_spaces": true, | |
| "eos_token": "<|im_end|>", | |
| "errors": "replace", | |
| "model_max_length": 1000000000000000019884624838656, | |
| "pad_token": "<|im_end|>", | |
| "tokenizer_class": "GPT2Tokenizer", | |
| "unk_token": "</s>" | |
| } | |