File size: 1,348 Bytes
5b36cdd
ed351c5
 
 
af21830
 
 
 
ed351c5
af21830
 
ed351c5
af21830
5b36cdd
 
ed351c5
5b36cdd
ed351c5
 
 
5b36cdd
ed351c5
5b36cdd
ed351c5
b185af5
 
 
 
ed351c5
5b36cdd
ed351c5
5b36cdd
ed351c5
5b36cdd
ed351c5
 
 
 
 
5b36cdd
ed351c5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
---
license: apache-2.0
base_model: openbmb/MiniCPM4-8B
tags:
  - question-generation
  - education
  - lora
  - paperprof
datasets:
  - squad
  - allenai/sciq
language:
  - en
---

# MiniCPM4-8B-PaperProf

Fine-tuned from [openbmb/MiniCPM4-8B](https://huggingface.co/openbmb/MiniCPM4-8B) for
**exam-question generation** in [PaperProf](https://huggingface.co/spaces/build-small-hackathon/PaperProf),
an AI study buddy that turns course PDFs into interactive quiz sessions.

## Training

- **Method:** QLoRA (4-bit NF4, r=16, alpha=32, all-linear targets), merged to bf16
- **Data:** ~3500 multi-task pairs in PaperProf's three production formats:
  open question generation (SQuAD), MCQ with distractors and per-option
  explanations (SciQ), and structured answer evaluation (SQuAD-derived),
  so the model is optimized for the exact tasks it serves.
- **Epochs:** 1, lr 2e-4 cosine, bf16 compute

## Usage

Drop-in replacement for the base model:

```python
from transformers import AutoTokenizer, AutoModelForCausalLM
tok = AutoTokenizer.from_pretrained("build-small-hackathon/MiniCPM4-8B-PaperProf", trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained("build-small-hackathon/MiniCPM4-8B-PaperProf", trust_remote_code=True, torch_dtype="bfloat16")
```

Built for the Build Small Hackathon, June 2026, by Team PaperProf (EPITA).