Text Classification
Transformers
PyTorch
English
bert
Eval Results (legacy)
text-embeddings-inference
Run this model with HF Jobs
Run lewtun/test-hub-pr-1 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/lewtun/test-hub-pr-1. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/lewtun/test-hub-pr-1 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use lewtun/test-hub-pr-1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use lewtun/test-hub-pr-1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="lewtun/test-hub-pr-1")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("lewtun/test-hub-pr-1") model = AutoModelForSequenceClassification.from_pretrained("lewtun/test-hub-pr-1", device_map="auto") - Notebooks
- Google Colab
- Kaggle
YAML Metadata Error:"tags" must be an array
Model Trained Using AutoTrain
- Problem type: Binary Classification
- Model ID: 5694363
- CO2 Emissions (in grams): 172.04481351504182
Validation Metrics
- Loss: 0.2228243350982666
- Accuracy: 0.9298
- Precision: 0.9434585224927775
- Recall: 0.9144
- AUC: 0.9566112000000001
- F1: 0.9287020109689214
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/lewtun/autotrain-my-eval-project-615-5694363
Or Python API:
from transformers import AutoModelForSequenceClassification, AutoTokenizer
model = AutoModelForSequenceClassification.from_pretrained("lewtun/autotrain-my-eval-project-615-5694363", use_auth_token=True)
tokenizer = AutoTokenizer.from_pretrained("lewtun/autotrain-my-eval-project-615-5694363", use_auth_token=True)
inputs = tokenizer("I love AutoTrain", return_tensors="pt")
outputs = model(**inputs)
- Downloads last month
- 4
Evaluation results
- Loss on Emotiontest set self-reported0.174
- Accuracy on Emotiontest set self-reported0.927
- Macro F1 on Emotiontest set self-reported0.883
- Recall on Emotiontest set self-reported0.927
- Weighted F1 on Emotiontest set self-reported0.927
- Macro Precision on Emotiontest set self-reported0.888
- Micro Precision on Emotiontest set self-reported0.927
- Weighted Precision on Emotiontest set self-reported0.927