Files
contract-analysis-qwen2.5-3b/README.md
ModelHub XC 13efc5d7a2 初始化项目,由ModelHub XC社区提供模型
Model: phamthanhfd/contract-analysis-qwen2.5-3b
Source: Original Platform
2026-07-28 23:50:25 +08:00

32 lines
896 B
Markdown

---
language:
- en
license: apache-2.0
base_model: Qwen/Qwen2.5-3B-Instruct
tags:
- legal
- contract-analysis
- qwen2.5
- text-generation
datasets:
- theatticusproject/cuad-qa
pipeline_tag: text-generation
---
# Contract Analysis — Qwen2.5-3B (Merged)
> LoRA adapter nhẹ hơn: [phamthanhfd/contract-analysis-lora-adapter](https://huggingface.co/phamthanhfd/contract-analysis-lora-adapter)
## Quick Start
```python
from transformers import pipeline
pipe = pipeline("text-generation", model="phamthanhfd/contract-analysis-qwen2.5-3b", device_map="auto")
messages = [
{"role":"system","content":"You are a legal contract expert. Return JSON with category and summary."},
{"role":"user","content":"Analyze: The employee shall not disclose confidential information."}
]
result = pipe(messages, max_new_tokens=150, temperature=0.1)
print(result[0]["generated_text"][-1]["content"])
```