Downloads · 30 days
49
10% of all-time downloads
Legal-verse/InaVerdict-gemma-v2
InaVerdict-gemma-v2 is a any-to-any model from Legal-verse. Use it for the any-to-any task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as apache-2.0.
InaVerdict Gemma v2 is a fine-tuned Gemma 4 E2B instruction model for Indonesian legal research and judgment analysis.
Downloads · 30 days
49
10% of all-time downloads
All-time downloads
467
Public
Parameters
5.1B
10.3 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors10.2 GB · 100%
From the Hugging Face model README
InaVerdict Gemma v2 is a fine-tuned Gemma 4 E2B instruction model for Indonesian legal research and judgment analysis.
Use a recent version of Transformers with Gemma 4 support.
import torch
from transformers import AutoModelForMultimodalLM, AutoProcessor
model_id = "Legal-verse/InaVerdict-gemma-v2"
processor = AutoProcessor.from_pretrained(model_id)
model = AutoModelForMultimodalLM.from_pretrained(
model_id,
dtype=torch.bfloat16,
device_map="auto",
)
messages = [
{
"role": "user",
"content": [
{
"type": "text",
"text": "Jelaskan perbedaan ratio decidendi dan obiter dictum.",
}
],
}
]
inputs = processor.apply_chat_template(
messages,
tokenize=True,
return_dict=True,
return_tensors="pt",
add_generation_prompt=True,
).to(model.device)
input_length = inputs["input_ids"].shape[-1]
with torch.inference_mode():
output_ids = model.generate(**inputs, max_new_tokens=256)
print(
processor.tokenizer.decode(
output_ids[0, input_length:],
skip_special_tokens=True,
)
)
A ZeroGPU playground and Gradio API are available at Haeryz/inaverdict-gemma-v2-api.
This model is intended to assist with Indonesian legal research, document analysis, and drafting. Its output is not legal advice. Verify citations, quotations, and conclusions against primary legal sources.