QuantumCuddle commited on
Commit
d9f346a
·
verified ·
1 Parent(s): 58b5308

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +89 -0
README.md ADDED
@@ -0,0 +1,89 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ license: apache-2.0
5
+ base_model:
6
+ - Qwen/Qwen2.5-3B-Instruct
7
+ pipeline_tag: text-generation
8
+ tags:
9
+ - distillation
10
+ - agentic-rag
11
+ - qasper
12
+ - scientific-qa
13
+ - react
14
+ - lora
15
+ datasets:
16
+ - allenai/qasper
17
+ ---
18
+
19
+ # DistillAgent-PaperQA-3B
20
+
21
+ DistillAgent-PaperQA-3B is a compact agentic QA model distilled from tool-using trajectories for question answering over scientific papers (QASPER).
22
+
23
+ It is fine-tuned from `Qwen/Qwen2.5-3B-Instruct` using LoRA/rsLoRA with constrained Thought/Action/Observation/Final Answer trajectories.
24
+
25
+ ## Highlights
26
+
27
+ - Small model with practical agentic behavior on research-paper QA.
28
+ - Outperforms base model in our QASPER 200-sample evaluation.
29
+
30
+ ## Model Details
31
+
32
+ - Base model: `Qwen/Qwen2.5-3B-Instruct`
33
+ - Training: LoRA / rsLoRA SFT
34
+ - Domain: scientific paper QA (QASPER)
35
+ - Inference style: constrained ReAct + section lookup
36
+
37
+ ## Evaluation Summary (QASPER, 200 samples)
38
+
39
+ | Model | EM | Mean F1 | Mean hops | Mean latency |
40
+ |---|---:|---:|---:|---:|
41
+ | DistillAgent-PaperQA-3B (SFT) | 14.5% | 0.2425 | 2.36 | 37.28s |
42
+ | Base Qwen2.5-3B-Instruct | 9.0% | 0.1650 | 3.00 | 20.04s |
43
+
44
+ Notes:
45
+ - Hops and latency depend on runtime harness and hardware.
46
+ - Main quality outcome: SFT > base on EM and F1.
47
+
48
+ ## Intended Use
49
+
50
+ - QA over scientific/technical papers with section-level lookup or retrieval.
51
+ - Research and educational workflows for compact agentic model distillation.
52
+
53
+ ## Limitations
54
+
55
+ - Sensitive to runtime prompt/harness format.
56
+ - Multi-hop behavior can increase latency.
57
+ - Should not be used as sole source for high-stakes scientific or medical decisions.
58
+
59
+ ## Usage (Transformers)
60
+
61
+ ```python
62
+ from transformers import AutoTokenizer, AutoModelForCausalLM
63
+ import torch
64
+
65
+ repo_id = "QuantumCuddle/DistillAgent-PaperQA-3B"
66
+
67
+ tokenizer = AutoTokenizer.from_pretrained(repo_id)
68
+ model = AutoModelForCausalLM.from_pretrained(
69
+ repo_id,
70
+ torch_dtype=torch.float16,
71
+ device_map="auto",
72
+ )
73
+
74
+ prompt = "QUESTION: What baseline method is used?\nAVAILABLE PAPER SECTIONS:\n1. Abstract\n2. Methods\n..."
75
+ inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
76
+ out = model.generate(**inputs, max_new_tokens=256, temperature=0.0)
77
+ print(tokenizer.decode(out[0], skip_special_tokens=True))
78
+ ```
79
+
80
+ ## Citation
81
+
82
+ ```bibtex
83
+ @misc{distillagent_paperqa_3b_2026,
84
+ title={DistillAgent-PaperQA-3B},
85
+ author={QuantumCuddle},
86
+ year={2026},
87
+ howpublished={\url{https://huggingface.co/QuantumCuddle/DistillAgent-PaperQA-3B}}
88
+ }
89
+ ```