Instructions to use unlikefraction/mcq-roberta-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers.js
How to use unlikefraction/mcq-roberta-base with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('text-classification', 'unlikefraction/mcq-roberta-base');
Download README.md from unlikefraction/mcq-roberta-base: direct link, hf CLI and curl.
- Browser
- Download file 1.27 kB
-
https://huggingface.co/unlikefraction/mcq-roberta-base/resolve/main/README.md
- Command line
-
hf download hf://unlikefraction/mcq-roberta-base/README.md
-
curl -L -o README.md https://huggingface.co/unlikefraction/mcq-roberta-base/resolve/main/README.md
license: mit
library_name: transformers.js
pipeline_tag: text-classification
tags:
- onnx
- transformers.js
- multiple-choice
- mcq
mcq-roberta-base
ONNX (int8, per-channel dynamic quantization) export of a roberta-base fine-tuned for 5-way MCQ answer selection, for the IITM BS DA2001P Deep Learning & GenAI project (Shubham Gupta, roll 22f3001874).
Input is one flattened string, "{question}\nA. {A}\nB. {B}\nC. {C}\nD. {D}\nE. {E}",
max_length=160. The five classes are the option letters A-E (LABEL_0..LABEL_4).
Fine-tuning: all 2,000 labelled rows of the smart-mcq-solver-challenge train set, 3 epochs,
AdamW lr 2e-5, weight decay 0.01, batch size 8, float32, linear schedule with 50 warmup steps.
Quantization fidelity (measured on 300 labelled rows, versus the fp32 PyTorch checkpoint, for the 0.7 x DeBERTa + 0.3 x RoBERTa ensemble these two models form): top-1 agreement 99.67%, MAP@3 1.000000 -> 0.998333. Top-1 predictions are essentially preserved; the very-low-probability rank 2-3 tail can reorder, because those probabilities (~0.001) are below int8 resolution.
Used by the live demo: https://huggingface.co/spaces/unlikefraction/smart-mcq-solver Source: https://github.com/unlikefraction/iitm-da2001p-may2026