Instructions to use lincoln/flaubert-mlsum-topic-classification with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use lincoln/flaubert-mlsum-topic-classification with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="lincoln/flaubert-mlsum-topic-classification")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("lincoln/flaubert-mlsum-topic-classification") model = AutoModelForSequenceClassification.from_pretrained("lincoln/flaubert-mlsum-topic-classification", device_map="auto") - Notebooks
- Google Colab
- Kaggle
| {"unk_token": "<unk>", "bos_token": "<s>", "sep_token": "</s>", "pad_token": "<pad>", "cls_token": "</s>", "mask_token": "<special1>", "additional_special_tokens": ["<special0>", "<special1>", "<special2>", "<special3>", "<special4>", "<special5>", "<special6>", "<special7>", "<special8>", "<special9>"], "lang2id": null, "id2lang": null, "do_lowercase_and_remove_accent": true, "model_max_length": 512, "name_or_path": "flaubert/flaubert_base_cased", "tokenizer_class": "FlaubertTokenizer"} |