Instructions to use crcb/dvs_f with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use crcb/dvs_f with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="crcb/dvs_f")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("crcb/dvs_f") model = AutoModelForSequenceClassification.from_pretrained("crcb/dvs_f", device_map="auto") - Notebooks
- Google Colab
- Kaggle
| tags: autotrain | |
| language: en | |
| widget: | |
| - text: "I love AutoTrain 🤗" | |
| datasets: | |
| - crcb/autotrain-data-dvs | |
| co2_eq_emissions: 8.758858538967111 | |
| # Model Trained Using AutoTrain | |
| - Problem type: Binary Classification | |
| - Model ID: 753223045 | |
| - CO2 Emissions (in grams): 8.758858538967111 | |
| ## Validation Metrics | |
| - Loss: 0.14833936095237732 | |
| - Accuracy: 0.9471454508775469 | |
| - Precision: 0.5045871559633027 | |
| - Recall: 0.4166666666666667 | |
| - AUC: 0.8806422686270332 | |
| - F1: 0.4564315352697096 | |
| ## Usage | |
| You can use cURL to access this model: | |
| ``` | |
| $ curl -X POST -H "Authorization: Bearer YOUR_API_KEY" -H "Content-Type: application/json" -d '{"inputs": "I love AutoTrain"}' https://api-inference.huggingface.co/models/crcb/autotrain-dvs-753223045 | |
| ``` | |
| Or Python API: | |
| ``` | |
| from transformers import AutoModelForSequenceClassification, AutoTokenizer | |
| model = AutoModelForSequenceClassification.from_pretrained("crcb/autotrain-dvs-753223045", use_auth_token=True) | |
| tokenizer = AutoTokenizer.from_pretrained("crcb/autotrain-dvs-753223045", use_auth_token=True) | |
| inputs = tokenizer("I love AutoTrain", return_tensors="pt") | |
| outputs = model(**inputs) | |
| ``` |