hf-tuner/banking-intent
Viewer โข Updated โข 23.1k โข 18
Run hf-tuner/bert-banking-intent 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:
Use HF Jobs to fine-tune https://huggingface.co/hf-tuner/bert-banking-intent. 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.
Use HF Jobs to run batch inference with https://huggingface.co/hf-tuner/bert-banking-intent 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.
How to use hf-tuner/bert-banking-intent with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="hf-tuner/bert-banking-intent") # pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("hf-tuner/bert-banking-intent")
model = AutoModelForSequenceClassification.from_pretrained("hf-tuner/bert-banking-intent", device_map="auto")This model is a fine-tuned version of google-bert/bert-base-uncased on hf-tuner/banking-intent dataset. It achieves the following results on the evaluation set:
from transformers import pipeline
classifier = pipeline("text-classification", model = "hf-tuner/bert-banking-intent")
classifier("Please help me get a new card, I reside in the United States.")
## [{'label': 'country_support', 'score': 0.997}]
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|---|---|---|---|---|
| 1.9901 | 1.0 | 626 | 1.5437 | 0.8104 |
| 0.8228 | 2.0 | 1252 | 0.5328 | 0.9335 |
| 0.3901 | 3.0 | 1878 | 0.2214 | 0.9678 |
| 0.1889 | 4.0 | 2504 | 0.1041 | 0.9830 |
| 0.0973 | 5.0 | 3130 | 0.0518 | 0.9920 |
| 0.0733 | 6.0 | 3756 | 0.0322 | 0.9944 |
| 0.0405 | 7.0 | 4382 | 0.0167 | 0.9976 |
| 0.0214 | 8.0 | 5008 | 0.0114 | 0.9988 |
| 0.0175 | 9.0 | 5634 | 0.0091 | 0.9993 |
| 0.0138 | 10.0 | 6260 | 0.0079 | 0.9993 |
Base model
google-bert/bert-base-uncased