This repository contains the fine-tuned checkpoint of IndoBERTweet trained under a multi-task learning configuration to predict both Sentiment (negative, neutral, positive, mixed) and Sarcasm (non_sarcastic, sarcastic).
The model was fine-tuned on the Indonesian Reddit sarcasm dataset jwnt4/reddit-id-sarcasm-cleaned.
Use the custom model.py module included in this repository to instantiate the architecture, and load the weights via PyTorch state_dict:
import torch
from model import SarcasmAwareSentimentModel, SarcasmAwareSentimentConfig
config = SarcasmAwareSentimentConfig()
model = SarcasmAwareSentimentModel(config)
model.load_state_dict(torch.load("best_model.pt", map_location="cpu"))