Sp1786/multiclass-sentiment-analysis-dataset
Viewer • Updated • 41.6k • 1.32k • 28
How to use MLap/bloom1.7-lora-sentiment-analysis-classification with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="MLap/bloom1.7-lora-sentiment-analysis-classification") # Load model directly
from transformers import AutoModel
model = AutoModel.from_pretrained("MLap/bloom1.7-lora-sentiment-analysis-classification", dtype="auto")# Load model directly
from transformers import AutoModel
model = AutoModel.from_pretrained("MLap/bloom1.7-lora-sentiment-analysis-classification", dtype="auto")For Sentiment Analysis Classification with 3 class - 0 - negative, 1 - neutral, 2 - positive.
Sentiment Analysis Classification
Sp1786/multiclass-sentiment-analysis-dataset
[More Information Needed]
LoRA with rank 8.
per_device_train_batch_size=4,
per_device_eval_batch_size=4,
gradient_accumulation_steps=4,
eval_strategy="steps",
eval_steps=200,
logging_steps=100,
num_train_epochs=2,
learning_rate=2e-4,
fp16=True,
save_steps=500,
save_total_limit=2,
Base model
bigscience/bloom
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="MLap/bloom1.7-lora-sentiment-analysis-classification")