Text Generation
PEFT
Safetensors
English
argument-mining
fact-checking
information-extraction
lora
qwen2
research
conversational
Instructions to use iamjayeshc/ArgParser-v2-Qwen1.5B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use iamjayeshc/ArgParser-v2-Qwen1.5B with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen2.5-1.5B-Instruct") model = PeftModel.from_pretrained(base_model, "iamjayeshc/ArgParser-v2-Qwen1.5B") - Notebooks
- Google Colab
- Kaggle
File size: 4,512 Bytes
9963fba 2032c76 3870c9d 2032c76 3870c9d 9963fba 2032c76 3870c9d 2032c76 3870c9d 2032c76 3870c9d 2032c76 3870c9d 2032c76 3870c9d 2032c76 3870c9d 2032c76 3870c9d 2032c76 3870c9d 2032c76 3870c9d 2032c76 3870c9d | 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 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 | ---
license: apache-2.0
base_model: Qwen/Qwen2.5-1.5B-Instruct
library_name: peft
language:
- en
pipeline_tag: text-generation
tags:
- argument-mining
- fact-checking
- information-extraction
- lora
- qwen2
- peft
- research
---
# ArgParser-v2-Qwen1.5B
> **Version 2 of the ArgParser model series** — introducing LoRA fine-tuning and a larger Qwen model, resulting in a substantial improvement over the initial baseline.
ArgParser-v2-Qwen1.5B builds upon the foundation established by **ArgParser-v1** by replacing the 0.5B base model with **Qwen2.5-1.5B-Instruct** and adopting **LoRA (Low-Rank Adaptation)** for parameter-efficient fine-tuning.
While trained on the same four academic argument-mining datasets, this version demonstrates that scaling the base model and using LoRA significantly improves structured argument extraction performance.
---
# Model Overview
| Property | Value |
|----------|-------|
| Model | ArgParser-v2-Qwen1.5B |
| Base Model | Qwen/Qwen2.5-1.5B-Instruct |
| Task | Argument Structure Extraction |
| Training Method | LoRA Fine-tuning |
| LoRA Rank | 16 |
| Author | **Jayesh Choudhari** |
| License | Apache-2.0 |
---
# Training Configuration
Training was performed using the same four manually annotated argument-mining datasets used in Version 1:
- AbstRCT
- Microtext
- CDCP
- PERSPECTRUM
Training configuration:
- **Training Samples:** 1,494
- **Epochs:** 3
- **LoRA Rank:** 16
- **LoRA Alpha:** 32
- **Dropout:** 0.05
- **Target Modules:** `q_proj`, `k_proj`, `v_proj`, `o_proj`
- **Trainable Parameters:** ~4.4 Million
- **Hardware:** NVIDIA GTX 1080 Ti
- **Training Time:** ~13.5 hours
---
# Performance
Average held-out Component F1:
**Component F1:** **0.219**
Compared with **ArgParser-v1**, this represents approximately a **2× improvement**.
Notable improvements include:
- Microtext Premise F1:
- **0.000 → 0.680**
- AbstRCT Empty Prediction Rate:
- **75% → 50%**
These results demonstrate the benefits of combining a larger base model with parameter-efficient fine-tuning.
---
# Intended Task
The model extracts structured argumentative information from input text, including:
- Claims
- Premises
- Citations
- Supporting relations
- Attacking relations
The output is designed for downstream argument mining and fact-checking pipelines.
---
# Usage
```python
from peft import PeftModel
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
base_id = "Qwen/Qwen2.5-1.5B-Instruct"
adapter_id = "iamjayeshc/ArgParser-v2-Qwen1.5B"
tokenizer = AutoTokenizer.from_pretrained(base_id)
base = AutoModelForCausalLM.from_pretrained(
base_id,
torch_dtype=torch.float16,
device_map="auto"
)
model = PeftModel.from_pretrained(base, adapter_id)
```
Example prompt:
```python
instruction = (
"Extract all argument components and relations from the text. "
"Return strict JSON containing "
"claim_components, premise_components, citation_components and relations."
)
text = "The Obama administration is putting Border Patrol agents in a chokehold."
```
---
# Model Series
ArgParser-v2 is the second model in the ArgParser development series.
Other versions:
- **ArgParser-v1-Qwen0.5B**
- Baseline full fine-tuning
- https://huggingface.co/iamjayeshc/ArgParser-v1-Qwen0.5B
- **ArgParser-v3-Qwen1.5B**
- Continual training with an additional argument-mining corpus
- https://huggingface.co/iamjayeshc/ArgParser-v3-Qwen1.5B
- **ArgParser-v4-Qwen1.5B (Recommended)**
- Final distilled model with target-domain adaptation
- https://huggingface.co/iamjayeshc/ArgParser-v4-Qwen1.5B
For most applications, **ArgParser-v4** is recommended, as it incorporates cross-domain adaptation for PolitiFact/LIARArg-style claims.
---
# Limitations
Although significantly stronger than Version 1, this model still relies exclusively on academic argument-mining corpora for training.
Consequently, it may struggle with:
- Informal social media language
- Political claims
- Domain-specific argument structures
These limitations motivated the development of Versions 3 and 4.
---
# Acknowledgements
This model is part of the **ArgParser** research project investigating efficient argument-structure extraction using progressively improved lightweight language models.
Released by **Jayesh Choudhari**.
---
# Citation
If you use this model in your research, please cite the associated project when available.
A formal technical report / preprint will be released in the future. |