CoolFace
Modelpublic

phamthanhfd/contract-analysis-qwen2.5-3b

sourceHugging Faceapache-2.0updated 3mo agoView on Hugging Face
0likes42downloads
Model Card

Contract Analysis — Qwen2.5-3B (Merged)

LoRA adapter nhẹ hơn: 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"])