Run this model with HF Jobs
Run Denizhaan/imdb-roberta-lora-v2 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/Denizhaan/imdb-roberta-lora-v2. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/Denizhaan/imdb-roberta-lora-v2 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use Denizhaan/imdb-roberta-lora-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use Denizhaan/imdb-roberta-lora-v2 with PEFT:
from peft import PeftModel from transformers import AutoModelForSequenceClassification base_model = AutoModelForSequenceClassification.from_pretrained("roberta-base") model = PeftModel.from_pretrained(base_model, "Denizhaan/imdb-roberta-lora-v2") - Notebooks
- Google Colab
- Kaggle
RoBERTa-base + LoRA โ IMDB Sentiment Classification
LoRA-adapted roberta-base for binary sentiment classification on the IMDB Large Movie Review Dataset. One of four base models in a parameter-efficient stacking ensemble described in "Parameter-Efficient Fine-Tuning Ensembles for Sentiment Analysis" (IDAP 2026).
Results (25,000-example IMDB test set)
| Metric | Value |
|---|---|
| Accuracy | 95.60% |
| F1 | 95.62% |
| Precision | 95.23% |
| Recall | 96.01% |
| ROC-AUC | 99.00% |
LoRA Configuration
| Hyperparameter | Value |
|---|---|
| Rank (r) | 16 |
| Alpha | 32 |
| Dropout | 0.1 |
| Target modules | query, value |
| Trainable parameters | 1,181,954 (0.94% of 125.8M total) |
| Precision | fp16 |
Loading
from transformers import RobertaTokenizer, RobertaForSequenceClassification
from peft import PeftModel
tokenizer = RobertaTokenizer.from_pretrained("roberta-base")
base = RobertaForSequenceClassification.from_pretrained("roberta-base", num_labels=2)
model = PeftModel.from_pretrained(base, "Denizhaan/imdb-roberta-lora-v2")
model.eval()
Citation
If you use this model, please cite our paper (details in the GitHub repository).
Framework versions
- PEFT 0.19.1
- Downloads last month
- 5
Model tree for Denizhaan/imdb-roberta-lora-v2
Base model
FacebookAI/roberta-base