theatticusproject/cuad-qa
Updated • 3.46k • 67
LoRA adapter nhẹ hơn: phamthanhfd/contract-analysis-lora-adapter
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"])