Downloads · 30 days
23
2% of all-time downloads
IT-community/distilBART_cnn_news_text_classification
distilBART_cnn_news_text_classification is a text classification model from IT-community. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as mit.
This is a fine-tuned DistilBART model for sequence classification on CNN news articles for text classification. The model was fine-tuned using a batch size of 32, a learning rate of 6e-5, and for 1 epoch.
Downloads · 30 days
23
2% of all-time downloads
All-time downloads
1.2K
Public
Parameters
223M
1.8 GB on disk
Likes
0
Public
Click a slice to open those files.
.bin890 MB · 50%
From the Hugging Face model README
This is a fine-tuned DistilBART model for sequence classification on CNN news articles for text classification. The model was fine-tuned using a batch size of 32, a learning rate of 6e-5, and for 1 epoch.
The CNN News dataset was used for fine-tuning the model. The dataset consists of news articles from various categories such as sports, entertainment, politics, etc.
The following performance metrics were achieved after fine-tuning the model:
You can use this model to classify CNN news articles into different categories such as sports, entertainment, politics, etc. You can load the model using the Hugging Face Transformers library and use it to predict the class of a new news article.
from transformers import AutoModelForSequenceClassification, AutoTokenizer
# Load the fine-tuned model and tokenizer
tokenizer = AutoTokenizer.from_pretrained("IT-community/distilBART_cnn_news_text_classification")
model = AutoModelForSequenceClassification.from_pretrained("IT-community/distilBART_cnn_news_text_classification")
# Classify a news article
news_article = "A new movie is set to release this weekend"
inputs = tokenizer(news_article, padding=True, truncation=True, return_tensors="pt")
outputs = model(**inputs)
predicted_class = outputs.logits.argmax().item()
We are a scientific club from Saad Dahleb Blida University named IT Community, created in 2016 by students. We are interested in all IT fields, This work was done by IT Community Club.
Added preprocessing code for CNN news articles
Improved model performance with additional fine-tuning on a larger dataset