Add model card and metadata for PVminerLLM2_8B
#1
by nielsr HF Staff - opened
README.md
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: transformers
|
| 3 |
+
pipeline_tag: text-generation
|
| 4 |
+
---
|
| 5 |
+
|
| 6 |
+
# PVminerLLM2_8B
|
| 7 |
+
|
| 8 |
+
This repository contains the 8B parameter model for **PVminerLLM2**, as presented in the paper [PVminerLLM2: Improving Structured Extraction of Patient Voice via Preference Optimization](https://huggingface.co/papers/2606.16074).
|
| 9 |
+
|
| 10 |
+
## Model Description
|
| 11 |
+
PVminerLLM2 is a set of Large Language Models (LLMs) specialized for the structured extraction of "patient voice" from patient-generated text (e.g., lived experiences, social context). The model improves upon previous iterations by applying preference optimization to address token-critical errors that are often missed by standard supervised fine-tuning (SFT).
|
| 12 |
+
|
| 13 |
+
Key innovations include:
|
| 14 |
+
- A preference objective with a token-level gated stabilization term.
|
| 15 |
+
- Confusion-aware preference pair construction to better capture low-separation distinctions.
|
| 16 |
+
- Token-importance weighting and inverse-frequency reweighing to address class skew.
|
| 17 |
+
|
| 18 |
+
## Resources
|
| 19 |
+
- **Paper:** [PVminerLLM2: Improving Structured Extraction of Patient Voice via Preference Optimization](https://huggingface.co/papers/2606.16074)
|
| 20 |
+
- **GitHub Repository:** [Data-Mining-Lab-Yale/PVminerLLM2](https://github.com/Data-Mining-Lab-Yale/PVminerLLM2)
|
| 21 |
+
|
| 22 |
+
## Usage
|
| 23 |
+
|
| 24 |
+
The official implementation for inference and building confusion summaries is available in the GitHub repository. To run inference using the provided scripts:
|
| 25 |
+
|
| 26 |
+
```bash
|
| 27 |
+
python infer_vllm_and_confusion.py \
|
| 28 |
+
--model lm2445/PVminerLLM2_8B \
|
| 29 |
+
--data /path/to/hf_dataset \
|
| 30 |
+
--out_code_csv outputs/code_confusion_summary.csv \
|
| 31 |
+
--out_subcode_csv outputs/subcode_confusion_summary.csv \
|
| 32 |
+
--out_pred_jsonl outputs/pred_dump.jsonl \
|
| 33 |
+
--tp 1
|
| 34 |
+
```
|
| 35 |
+
|
| 36 |
+
## Citation
|
| 37 |
+
If you use this model in your research, please cite:
|
| 38 |
+
```bibtex
|
| 39 |
+
@article{PVminerLLM2,
|
| 40 |
+
title={PVminerLLM2: Improving Structured Extraction of Patient Voice via Preference Optimization}
|
| 41 |
+
}
|
| 42 |
+
```
|