Text Classification
Transformers
PyTorch
English
bert
Trained with AutoTrain
text-embeddings-inference
Instructions to use MAsterIt/Classify_2.0-Stable with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use MAsterIt/Classify_2.0-Stable with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="MAsterIt/Classify_2.0-Stable")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("MAsterIt/Classify_2.0-Stable") model = AutoModelForSequenceClassification.from_pretrained("MAsterIt/Classify_2.0-Stable", device_map="auto") - Notebooks
- Google Colab
- Kaggle
|
Download README.md from MAsterIt/Classify_2.0-Stable: direct link, hf CLI and curl.
- Browser
- Download file 1.33 kB
-
https://huggingface.co/MAsterIt/Classify_2.0-Stable/resolve/main/README.md
- Command line
-
hf download hf://MAsterIt/Classify_2.0-Stable/README.md
-
curl -L -o README.md https://huggingface.co/MAsterIt/Classify_2.0-Stable/resolve/main/README.md
1.33 kB
| tags: | |
| - autotrain | |
| - text-classification | |
| language: | |
| - en | |
| widget: | |
| - text: Tv for Television | |
| datasets: | |
| - Mulik/autotrain-data-classify-2.0 | |
| co2_eq_emissions: | |
| emissions: 0.3718001513913416 | |
| license: mit | |
| metrics: | |
| - accuracy | |
| library_name: transformers | |
| pipeline_tag: text-classification | |
| # Model Trained | |
| - Problem type: Multi-class Classification | |
| - Model ID: 47871116935 | |
| - CO2 Emissions (in grams): 0.3718 | |
| ## Validation Metrics | |
| - Loss: 1.388 | |
| - Accuracy: 1.000 | |
| - Macro F1: 1.000 | |
| - Micro F1: 1.000 | |
| - Weighted F1: 1.000 | |
| - Macro Precision: 1.000 | |
| - Micro Precision: 1.000 | |
| - Weighted Precision: 1.000 | |
| - Macro Recall: 1.000 | |
| - Micro Recall: 1.000 | |
| - Weighted Recall: 1.000 | |
| ## 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/Mulik/Classify-2.0_Stable | |
| ``` | |
| Or Python API: | |
| ``` | |
| from transformers import AutoModelForSequenceClassification, AutoTokenizer | |
| model = AutoModelForSequenceClassification.from_pretrained("Mulik/autotrain-classify-2.0-47871116935", use_auth_token=True) | |
| tokenizer = AutoTokenizer.from_pretrained("Mulik/Classify-2.0_Stable", use_auth_token=True) | |
| inputs = tokenizer("I love AutoTrain", return_tensors="pt") | |
| outputs = model(**inputs) | |
| ``` |