CNN MCQ Model

A custom TextCNN architecture trained for MCQ answer prediction.

Architecture

  • Embedding layer: vocab_size=30522, embed_dim=140
  • 3 parallel Conv1d branches (kernel sizes 3, 4, 5), 100 filters each
  • Fully connected output layer (300 -> 1)

Performance (validation)

  • Accuracy / MAP@3 reported during training: MAP@3 = 0.98125
  • Note: in the same experiment, a fine-tuned DistilBERT model scored higher (MAP@3 = 0.99375) and was selected as the primary/best model.

Usage

from modeling_cnn import TextCNN

model = TextCNN.from_pretrained("your-username/cnn-mcq-model")
model.eval()

# input_ids: tokenized input, shape (batch, seq_len)
logits = model(input_ids)

Files

  • modeling_cnn.py โ€” model architecture definition
  • config.json โ€” model hyperparameters
  • model.safetensors โ€” trained weights
Downloads last month
-
Safetensors
Model size
4.44M params
Tensor type
F32
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Space using rajeev5944/cnn-mcq-model 1