Instructions to use ibokajordan/BART_rag with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ibokajordan/BART_rag with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("ibokajordan/BART_rag") model = AutoModelForSeq2SeqLM.from_pretrained("ibokajordan/BART_rag", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download tokenizer_config.json from ibokajordan/BART_rag: direct link, hf CLI and curl.
- Browser
- Download file 1.33 kB
-
https://huggingface.co/ibokajordan/BART_rag/resolve/main/tokenizer_config.json
- Command line
-
hf download hf://ibokajordan/BART_rag/tokenizer_config.json
-
curl -L -o tokenizer_config.json https://huggingface.co/ibokajordan/BART_rag/resolve/main/tokenizer_config.json
1.33 kB
| { | |
| "added_tokens_decoder": { | |
| "0": { | |
| "content": "<PAD>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "1": { | |
| "content": "<UNK>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "2": { | |
| "content": "<BOS>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "3": { | |
| "content": "<EOS>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "32000": { | |
| "content": "<MASK>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| } | |
| }, | |
| "bos_token": "<BOS>", | |
| "clean_up_tokenization_spaces": false, | |
| "eos_token": "<EOS>", | |
| "extra_special_tokens": {}, | |
| "mask_token": "<MASK>", | |
| "max_length": 1024, | |
| "model_max_length": 1024, | |
| "pad_to_multiple_of": null, | |
| "pad_token": "<PAD>", | |
| "pad_token_type_id": 0, | |
| "padding_side": "right", | |
| "stride": 0, | |
| "tokenizer_class": "PreTrainedTokenizer", | |
| "truncation_side": "right", | |
| "truncation_strategy": "longest_first", | |
| "unk_token": "<UNK>" | |
| } | |