Instructions to use anismahmahi/LLMLingua2_span_propaganda with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use anismahmahi/LLMLingua2_span_propaganda with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="anismahmahi/LLMLingua2_span_propaganda")# Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("anismahmahi/LLMLingua2_span_propaganda") model = AutoModelForTokenClassification.from_pretrained("anismahmahi/LLMLingua2_span_propaganda", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 129 Bytes
d867591 | 1 2 3 4 | version https://git-lfs.github.com/spec/v1
oid sha256:bcc5850a155dbe9d0d30667b7271b7038ff1e57ed16af708c7b66caca4ba5e18
size 4408
|