Downloads · 30 days
7
22% of all-time downloads
phamff/llama3-8b-vietnamese-law-6k
llama3-8b-vietnamese-law-6k is a machine learning model from phamff. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
This is a Llama-3-8B model fine-tuned on Vietnamese legal documents (6k samples).
Downloads · 30 days
7
22% of all-time downloads
All-time downloads
32
Public
Repo size
5 GB
Likes
0
Public
Click a slice to open those files.
.safetensors5 GB · 100%
From the Hugging Face model README
This is a Llama-3-8B model fine-tuned on Vietnamese legal documents (6k samples).
from unsloth import FastLanguageModel
# Load model
model, tokenizer = FastLanguageModel.from_pretrained(
"phamff/llama3-8b-vietnamese-law-6k",
max_seq_length=1024,
dtype=None,
load_in_4bit=True,
)
# Example usage
prompt = "Câu hỏi: Quy định về thời hiệu khởi kiện trong luật dân sự là gì?\nTrả lời:"
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=256)
response = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(response)
The model shows good performance on Vietnamese legal questions. See test_results.json for detailed evaluation.
Please check the original Llama-3 license terms.