Instructions to use textattack/xlnet-large-cased-STS-B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use textattack/xlnet-large-cased-STS-B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="textattack/xlnet-large-cased-STS-B")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("textattack/xlnet-large-cased-STS-B") model = AutoModelForSequenceClassification.from_pretrained("textattack/xlnet-large-cased-STS-B") - Notebooks
- Google Colab
- Kaggle
| eval_loss = 0.47265484239509764 | |
| eval_pearson = 0.901655097801172 | |
| eval_spearmanr = 0.9024800471883369 | |
| eval_corr = 0.9020675724947544 | |
| epoch = 3.0 | |