Downloads · 30 days
29
10% of all-time downloads
esalahterus/juicio
juicio is a text generation model from esalahterus. 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.
Juicio is a fine-tuned version of Qwen2.5-7B-Instruct, adapted to answer questions about Indonesian law clearly, accurately, and with references to relevant legal grounds. It is also trained to decline questions outsi…
Downloads · 30 days
29
10% of all-time downloads
All-time downloads
294
Public
Parameters
7.6B
15.2 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors15.2 GB · 100%
From the Hugging Face model README
Juicio is a fine-tuned version of Qwen2.5-7B-Instruct, adapted to answer questions about Indonesian law clearly, accurately, and with references to relevant legal grounds. It is also trained to decline questions outside the legal domain.
unsloth/Qwen2.5-7B-Instruct-bnb-4bitSFTTrainer)This qwen2 model was trained 2x faster with Unsloth and Hugging Face's TRL library.
Juicio is designed to act as a legal assistant for Indonesian law, trained to answer questions clearly, accurately, and with reference to relevant legal bases (dasar hukum). It declines to answer questions unrelated to Indonesian law.
Fine-tuned using LoRA on top of the 4-bit base model, trained on a cleaned and combined dataset built from fathurfrs/qna-hukum-indonesia and ShoAnn/legalqa_klinik_hukumonline, including examples for declining off-topic questions. Training was accelerated with Unsloth.
Undang-Undang, Pasal, or Peraturan Pemerintah cited by the model against an official source (e.g. peraturan.go.id, JDIH) before relying on it.from unsloth import FastLanguageModel
model, tokenizer = FastLanguageModel.from_pretrained(
model_name="esalahterus/juicio",
max_seq_length=4096,
dtype=None,
load_in_4bit=False,
)
FastLanguageModel.for_inference(model)
messages = [
{"role": "system", "content": "Anda adalah Juicio, asisten Q&A hukum Indonesia. Tugas utama Anda adalah menjawab pertanyaan yang berkaitan dengan hukum Indonesia. Jika pertanyaan pengguna tidak berkaitan dengan hukum, jangan menjawab pertanyaan tersebut. Sampaikan bahwa Anda hanya dapat membantu pertanyaan terkait hukum."},
{"role": "user", "content": "Apa syarat sahnya suatu perjanjian menurut KUH Perdata?"},
]
inputs = tokenizer.apply_chat_template(messages, tokenize=True, add_generation_prompt=True, return_tensors="pt").to("cuda")
outputs = model.generate(input_ids=inputs, max_new_tokens=512, temperature=0.7)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
A GGUF-quantized version is also available for local inference via llama.cpp/Ollama at esalahterus/juicio-gguf.
fathurfrs/qna-hukum-indonesia, ShoAnn/legalqa_klinik_hukumonline