Instructions to use dsomni/pmldl1-bart with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use dsomni/pmldl1-bart with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("dsomni/pmldl1-bart") model = AutoModelForSeq2SeqLM.from_pretrained("dsomni/pmldl1-bart", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download tokenizer_config.json from dsomni/pmldl1-bart: direct link, hf CLI and curl.
- Browser
- Download file 540 Bytes
-
https://huggingface.co/dsomni/pmldl1-bart/resolve/main/tokenizer_config.json
- Command line
-
hf download hf://dsomni/pmldl1-bart/tokenizer_config.json
-
curl -L -o tokenizer_config.json https://huggingface.co/dsomni/pmldl1-bart/resolve/main/tokenizer_config.json
540 Bytes
| { | |
| "add_prefix_space": false, | |
| "bos_token": "<s>", | |
| "clean_up_tokenization_spaces": true, | |
| "cls_token": "<s>", | |
| "eos_token": "</s>", | |
| "errors": "replace", | |
| "mask_token": "<mask>", | |
| "max_length": 128, | |
| "model_max_length": 1024, | |
| "pad_to_multiple_of": null, | |
| "pad_token": "<pad>", | |
| "pad_token_type_id": 0, | |
| "padding_side": "right", | |
| "sep_token": "</s>", | |
| "stride": 0, | |
| "tokenizer_class": "BartTokenizer", | |
| "trim_offsets": true, | |
| "truncation_side": "right", | |
| "truncation_strategy": "longest_first", | |
| "unk_token": "<unk>" | |
| } | |