Downloads · 30 days
9
13% of all-time downloads
arnelirobles/abogado
abogado is a text generation model from arnelirobles. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
Abogado (Filipino for "Lawyer") is an open-source AI assistant fine-tuned to help Filipinos understand Philippine law. It is specifically designed for barangay officials, local councilors, mediators, and ordinary citi…
Downloads · 30 days
9
13% of all-time downloads
All-time downloads
68
Public
Parameters
3.2B
2.7 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors2.7 GB · 100%
How the weights are stored.
U82.9B · 90%
From the Hugging Face model README
Abogado (Filipino for "Lawyer") is an open-source AI assistant fine-tuned to help Filipinos understand Philippine law. It is specifically designed for barangay officials, local councilors, mediators, and ordinary citizens who need accessible legal information.
⚠️ Disclaimer: Abogado is NOT a lawyer. It provides legal information for educational purposes only. Always consult a licensed Philippine attorney for actual legal advice. For free legal assistance, contact the Public Attorney's Office (PAO) or IBP legal aid.
Currently trained on:
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained("YOUR_USERNAME/abogado")
tokenizer = AutoTokenizer.from_pretrained("YOUR_USERNAME/abogado")
messages = [
{"role": "system", "content": "You are Abogado, an open-source Philippine law assistant."},
{"role": "user", "content": "Can a barangay captain issue a warrant of arrest?"},
]
text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = tokenizer(text, return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=512)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
# Download the GGUF version and create a Modelfile, then:
ollama create abogado -f Modelfile
ollama run abogado "What is the Katarungang Pambarangay?"
Abogado is trained to:
Abogado is open source! You can help by:
Apache 2.0 — Use it freely, modify it, share it. Help make law accessible for every Filipino.
"Kaalaman sa batas, para sa lahat." (Legal knowledge, for everyone.)