Instructions to use iamjayeshc/ArgParser-v1-Qwen0.5B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use iamjayeshc/ArgParser-v1-Qwen0.5B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="iamjayeshc/ArgParser-v1-Qwen0.5B") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("iamjayeshc/ArgParser-v1-Qwen0.5B") model = AutoModelForCausalLM.from_pretrained("iamjayeshc/ArgParser-v1-Qwen0.5B", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - PEFT
How to use iamjayeshc/ArgParser-v1-Qwen0.5B with PEFT:
Task type is invalid.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use iamjayeshc/ArgParser-v1-Qwen0.5B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "iamjayeshc/ArgParser-v1-Qwen0.5B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "iamjayeshc/ArgParser-v1-Qwen0.5B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/iamjayeshc/ArgParser-v1-Qwen0.5B
- SGLang
How to use iamjayeshc/ArgParser-v1-Qwen0.5B with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "iamjayeshc/ArgParser-v1-Qwen0.5B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "iamjayeshc/ArgParser-v1-Qwen0.5B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "iamjayeshc/ArgParser-v1-Qwen0.5B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "iamjayeshc/ArgParser-v1-Qwen0.5B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use iamjayeshc/ArgParser-v1-Qwen0.5B with Docker Model Runner:
docker model run hf.co/iamjayeshc/ArgParser-v1-Qwen0.5B
ArgParser-v1-Qwen0.5B
Version 1 of the ArgParser model series — the initial baseline developed for structured argument extraction using a compact Qwen model.
ArgParser-v1-Qwen0.5B is the first model in the ArgParser research series. It serves as the baseline for evaluating lightweight argument-structure extraction models and demonstrates the feasibility of extracting structured argumentative information using a small language model.
This version performs a full fine-tuning of Qwen2.5-0.5B-Instruct on four academic argument-mining datasets and establishes the foundation for the later LoRA-based models in the series.
Model Overview
| Property | Value |
|---|---|
| Model | ArgParser-v1-Qwen0.5B |
| Base Model | Qwen/Qwen2.5-0.5B-Instruct |
| Task | Argument Structure Extraction |
| Training Method | Full Fine-tuning |
| Author | Jayesh Choudhari |
| License | Apache-2.0 |
Training Configuration
This model was trained using four manually annotated academic argument-mining corpora:
- AbstRCT
- Microtext
- CDCP
- PERSPECTRUM
Training configuration:
- Training Samples: 1,494
- Epochs: 3
- Optimizer: Adafactor
- Precision: FP16
- Hardware: NVIDIA GTX 1080 Ti
- Training Time: ~1.5 hours
Performance
Average held-out Component F1 across the four datasets:
Component F1: 0.108
Highlights:
- Best performance:
- CDCP Claim Extraction → 0.501 F1
- Weakest performance:
- PERSPECTRUM
- Approximately 91% empty predictions
As expected, this early baseline struggles to generalize beyond academic argument-mining datasets.
Intended Task
The model extracts structured argumentative information from input text, including:
- Claims
- Premises
- Citations
- Argument relations
The generated output follows a structured JSON format suitable for downstream NLP pipelines.
Usage
from peft import PeftModel
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
base_id = "Qwen/Qwen2.5-0.5B-Instruct"
adapter_id = "iamjayeshc/ArgParser-v1-Qwen0.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:
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-v1 is the first model in the development series.
If you're looking for improved performance, consider one of the later versions:
ArgParser-v2-Qwen1.5B
ArgParser-v3-Qwen1.5B
ArgParser-v4-Qwen1.5B (Recommended)
ArgParser-v4 is the final distilled model in this series and provides substantially better downstream performance on the target fact-checking task.
Limitations
This model represents the initial baseline and has several limitations:
- Trained only on academic argument-mining corpora.
- Limited transfer to informal language such as social media or political fact-checking claims.
- Lower extraction accuracy compared with later versions.
It is primarily provided for research reproducibility and comparison with subsequent iterations.
Acknowledgements
This model is part of the ArgParser research project investigating lightweight argument-structure extraction through progressively improved model distillation and domain adaptation.
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.
- Downloads last month
- 19