Instructions to use Pramodith/bert-hybrid-sparse-sliding-window-attention with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Pramodith/bert-hybrid-sparse-sliding-window-attention with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="Pramodith/bert-hybrid-sparse-sliding-window-attention")# Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("Pramodith/bert-hybrid-sparse-sliding-window-attention") model = AutoModelForMaskedLM.from_pretrained("Pramodith/bert-hybrid-sparse-sliding-window-attention") - Notebooks
- Google Colab
- Kaggle