Instructions to use Recognai/zeroshot_selectra_medium with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Recognai/zeroshot_selectra_medium with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("zero-shot-classification", model="Recognai/zeroshot_selectra_medium")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Recognai/zeroshot_selectra_medium") model = AutoModelForSequenceClassification.from_pretrained("Recognai/zeroshot_selectra_medium", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Adding `safetensors` variant of this model
This is an automated PR created with https://huggingface.co/spaces/safetensors/convert This new file is equivalent to `pytorch_model.bin` but safe in the sense that no arbitrary code can be put into it. These files also happen to load much faster than their pytorch counterpart: https://colab.research.google.com/github/huggingface/notebooks/blob/main/safetensors_doc/en/speed.ipynb The widgets on your model page will run using this model even if this is not merged making sure the file actually works. If you find any issues: please report here: https://huggingface.co/spaces/safetensors/convert/discussions Feel free to ignore this PR.954cbf0
-
Update README.md
David6c3ff31
-
Include tutorial
Daniel Vila122fade
-
Update tokenizer_config.json
Davidd46a77d
-
Update README.md
David678714d -
Update README.md
Davide8806d6 -
Update README.md
Daviddf34e92 -
Update README.md
Davidfb64ec3 -
Update README.md
David389b604
-
Update README.md
Davidb63c494
-
Update README.md
David7873345 -
Update README.md
David5829743
-
Update README.md
David0b7b93b -
Update README.md
Davide2cc4dd -
Upload special_tokens_map.json
David3cdabfb -
Upload config.json
Davide735139 -
Upload vocab.txt
David27435d3 -
Update tokenizer_config.json
David122d308 -
Upload tokenizer_config.json
Davidd12d0a9 -
Upload pytorch_model.bin with git-lfs
Davidfc4915e -
Create README.md
David42c8426 -
initial commit
6a520a2