Downloads · 30 days
3
1% of all-time downloads
mylonasc/bart-base-twitter-sent-ft-001
bart-base-twitter-sent-ft-001 is a text classification model from mylonasc. Use it when you need a label for a piece of text. It is set up for transformers.
This is a fine-tune of bart-base to a sentiment classification dataset.
Downloads · 30 days
3
1% of all-time downloads
All-time downloads
279
Public
Parameters
140M
560 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors560 MB · 100%
From the Hugging Face model README
This is a fine-tune of bart-base to a sentiment classification dataset.
from transformers import BartTokenizer, AutoModelForSequenceClassification
model = AutoModelForSequenceClassification.from_pretrained('mylonasc/bart-base-twitter-sent-ft-001')
import torch
_phrases = [
'this is a great model! I really like it!',
'Do you call this a model? This is not even 1B parameters! Get outta here!',
'Fine tuning transformers is very easy if you use all the right tools!',
"John couldn't write two correct lines of code without ChatGPT if his life depended on it..."
]
toks = tokenizer(_phrases, return_tensors='pt', padding = 'longest')
with torch.no_grad():
res = model(**toks)[0]
is_positive = res.softmax(1)[:,1]
is_positive
>> tensor([0.9994, 0.1362, 0.9995, 0.3840])
This is the model card of a 🤗 transformers model that has been pushed on the Hub. This model card has been automatically generated.
Sentiment classification for english sentences.
[More Information Needed]
This is the output of a short technical implementation project to demonstrate fine-tuning models using the transformer library.
It is not recommended to use this model - use at your own risk!
[More Information Needed]
A twitter sentiment classification dataset - not from Huggingface.
[More Information Needed]
5 epochs with 3e-5 learning rate, 256 batch size. 10% validation set held-out for early stopping (not included in the main set after training).
1x RTX4090