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