Instructions to use zachzhang5/cross-encoder with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use zachzhang5/cross-encoder with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="zachzhang5/cross-encoder")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("zachzhang5/cross-encoder") model = AutoModelForSequenceClassification.from_pretrained("zachzhang5/cross-encoder", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download tokenizer.json from zachzhang5/cross-encoder: direct link, hf CLI and curl.
- Browser
- Download file 712 kB
-
https://huggingface.co/zachzhang5/cross-encoder/resolve/main/tokenizer.json
- Command line
-
hf download hf://zachzhang5/cross-encoder/tokenizer.json
-
curl -L -o tokenizer.json https://huggingface.co/zachzhang5/cross-encoder/resolve/main/tokenizer.json
712 kB
File too large to display, you can check the raw version instead.