Instructions to use laamaai/bart-large-neutralization with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use laamaai/bart-large-neutralization with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("laamaai/bart-large-neutralization") model = AutoModelForSeq2SeqLM.from_pretrained("laamaai/bart-large-neutralization", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 191 Bytes
f3d589c | 1 2 3 4 5 6 7 8 9 10 | {
"_from_model_config": true,
"bos_token_id": 0,
"decoder_start_token_id": 2,
"eos_token_id": 2,
"forced_eos_token_id": 2,
"pad_token_id": 1,
"transformers_version": "4.26.1"
}
|