Instructions to use AdrienVannson/final-model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use AdrienVannson/final-model with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("facebook/opt-125m") model = PeftModel.from_pretrained(base_model, "AdrienVannson/final-model") - Notebooks
- Google Colab
- Kaggle
Download tokenizer_config.json from AdrienVannson/final-model: direct link, hf CLI and curl.
- Browser
- Download file 641 Bytes
-
https://huggingface.co/AdrienVannson/final-model/resolve/main/tokenizer_config.json
- Command line
-
hf download hf://AdrienVannson/final-model/tokenizer_config.json
-
curl -L -o tokenizer_config.json https://huggingface.co/AdrienVannson/final-model/resolve/main/tokenizer_config.json
641 Bytes
| { | |
| "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 | |
| } | |
| }, | |
| "bos_token": "</s>", | |
| "clean_up_tokenization_spaces": true, | |
| "eos_token": "</s>", | |
| "errors": "replace", | |
| "model_max_length": 768, | |
| "pad_token": "<pad>", | |
| "tokenizer_class": "GPT2Tokenizer", | |
| "unk_token": "</s>" | |
| } | |