Downloads · 30 days
5
19% of all-time downloads
kamonwit/dapt-qwen3-4b-thai-law-lora
dapt-qwen3-4b-thai-law-lora is a text generation model from kamonwit. Use it when you need the model to write or continue text. It is set up for peft. The card lists the license as apache-2.0.
This model is a domain-adapted version of Qwen/Qwen3-4B-Thinking-2507 fine-tuned on Thai legal documents including:
Downloads · 30 days
5
19% of all-time downloads
All-time downloads
26
Public
Repo size
411 MB
Likes
0
Public
Click a slice to open those files.
.safetensors397 MB · 68%
From the Hugging Face model README
This model is a domain-adapted version of Qwen/Qwen3-4B-Thinking-2507 fine-tuned on Thai legal documents including:
from unsloth import FastLanguageModel
model, tokenizer = FastLanguageModel.from_pretrained(
model_name="kamonwit/qwen3-4b-thai-law-dapt",
max_seq_length=2048,
dtype=None,
load_in_4bit=True,
)
# Enable inference mode
FastLanguageModel.for_inference(model)
# Generate text
inputs = tokenizer("ตามประมวลกฎหมายแพ่งและพาณิชย์", return_tensors="pt")
outputs = model.generate(**inputs, max_length=200, do_sample=True, temperature=0.7)
response = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(response)
This is a LoRA adapter that needs to be loaded with the base model. For standalone usage, use the merged version if available.