Instructions to use crcb/hs_dvs with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use crcb/hs_dvs with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="crcb/hs_dvs")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("crcb/hs_dvs") model = AutoModelForSequenceClassification.from_pretrained("crcb/hs_dvs", device_map="auto") - Notebooks
- Google Colab
- Kaggle
| tags: autotrain | |
| language: en | |
| widget: | |
| - text: "I love AutoTrain 🤗" | |
| datasets: | |
| - crcb/autotrain-data-dvs | |
| co2_eq_emissions: 5.1746636998598445 | |
| # Model Trained Using AutoTrain | |
| - Problem type: Binary Classification | |
| - Model ID: 753223051 | |
| - CO2 Emissions (in grams): 5.1746636998598445 | |
| ## Validation Metrics | |
| - Loss: 0.14639143645763397 | |
| - Accuracy: 0.9493645350010087 | |
| - Precision: 0.5460992907801419 | |
| - Recall: 0.2916666666666667 | |
| - AUC: 0.8843542768404266 | |
| - F1: 0.3802469135802469 | |
| ## 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-753223051 | |
| ``` | |
| Or Python API: | |
| ``` | |
| from transformers import AutoModelForSequenceClassification, AutoTokenizer | |
| model = AutoModelForSequenceClassification.from_pretrained("crcb/autotrain-dvs-753223051", use_auth_token=True) | |
| tokenizer = AutoTokenizer.from_pretrained("crcb/autotrain-dvs-753223051", use_auth_token=True) | |
| inputs = tokenizer("I love AutoTrain", return_tensors="pt") | |
| outputs = model(**inputs) | |
| ``` |