Downloads · 30 days
34
18% of all-time downloads
phamthanhfd/contract-analysis-qwen2.5-3b
contract-analysis-qwen2.5-3b is a text generation model from phamthanhfd. Use it when you need the model to write or continue text. The card lists the license as apache-2.0.
LoRA adapter nhẹ hơn: phamthanhfd/contract-analysis-lora-adapter
Downloads · 30 days
34
18% of all-time downloads
All-time downloads
194
Public
Parameters
3.1B
6.2 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors6.2 GB · 100%
From the Hugging Face model README
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"])