Instructions to use launch/POLITICS with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use launch/POLITICS with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="launch/POLITICS")# Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("launch/POLITICS") model = AutoModelForMaskedLM.from_pretrained("launch/POLITICS") - Notebooks
- Google Colab
- Kaggle
add model/demo to NAACL 2022 organization
#1
by akhaliq - opened
Hi, great work on adding this model to the huggingface model hub, I think this would be a great submission for NAACL 2022 event this month on Hugging Face, check out the event here: https://huggingface.co/NAACL2022 and the link to join here: https://huggingface.co/organizations/NAACL2022/share/XlzLFBLYSlVrtbntHRlzVrcvCQoxGvoDWb, you can add the model by cloning and pushing this repo to the organization. To add a gradio demo see: https://gradio.app/docs/#load-header to setup a demo in a few lines of code, thanks