Instructions to use ydshieh/tiny-random-BertForSequenceClassification with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ydshieh/tiny-random-BertForSequenceClassification with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="ydshieh/tiny-random-BertForSequenceClassification")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("ydshieh/tiny-random-BertForSequenceClassification") model = AutoModelForSequenceClassification.from_pretrained("ydshieh/tiny-random-BertForSequenceClassification", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 131 Bytes
e286b00 | 1 2 3 4 | version https://git-lfs.github.com/spec/v1
oid sha256:b667929ee722cf918b8d3911a3440f26476dec96081d4f20a81b7c413151c346
size 481096
|