Downloads · 30 days
28
38% of all-time downloads
AwaisMughal1995/web3chatbot_fine_tuned_bart
web3chatbot_fine_tuned_bart is a text classification model from AwaisMughal1995. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as apache-2.0.
This model is a fine-tuned version of facebook/bart-base for intent classification.
Downloads · 30 days
28
38% of all-time downloads
All-time downloads
73
Public
Parameters
407M
1.6 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors1.6 GB · 100%
From the Hugging Face model README
This model is a fine-tuned version of facebook/bart-base for intent classification.
from transformers import AutoTokenizer, AutoModelForSequenceClassification
import torch
# Load model and tokenizer
tokenizer = AutoTokenizer.from_pretrained("AwaisMughal1995/web3chatbot_fine_tuned_bart")
model = AutoModelForSequenceClassification.from_pretrained("AwaisMughal1995/web3chatbot_fine_tuned_bart")
# Example usage
text = "Your input text here"
inputs = tokenizer(text, return_tensors="pt", truncation=True, padding=True)
with torch.no_grad():
outputs = model(**inputs)
predictions = torch.nn.functional.softmax(outputs.logits, dim=-1)
predicted_class = torch.argmax(predictions, dim=-1)
print(f"Predicted class: {predicted_class.item()}")
This model is intended for intent classification tasks. It can be used to classify user intents in chatbots, virtual assistants, or other NLP applications.
[Describe any known limitations or biases of your model]
If you use this model, please cite:
@misc{web3chatbot_fine_tuned_bart,
author = {AwaisMughal1995},
title = {web3chatbot_fine_tuned_bart},
year = {2024},
publisher = {Hugging Face},
url = {https://huggingface.co/AwaisMughal1995/web3chatbot_fine_tuned_bart}
}