Downloads · 30 days
0
luckyman2907/lab21-llama3.2-3b-r8
lab21-llama3.2-3b-r8 is a machine learning model from luckyman2907. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
LoRA adapter (rank=8) fine-tuned on Vietnamese Alpaca dataset
Downloads · 30 days
0
Access
Public
Updated May 7, 2026
Repo size
59.2 MB
Likes
0
Public
Click a slice to open those files.
.json69.1 MB · 57%
From the Hugging Face model README
LoRA adapter (rank=8) fine-tuned on Vietnamese Alpaca dataset
unsloth/Llama-3.2-3B-Instruct-bnb-4bitq_proj, v_projfrom peft import PeftModel
from transformers import AutoModelForCausalLM, AutoTokenizer
# Load base model
base_model = AutoModelForCausalLM.from_pretrained(
"unsloth/Llama-3.2-3B-Instruct-bnb-4bit",
load_in_4bit=True,
device_map="auto"
)
# Load LoRA adapter
model = PeftModel.from_pretrained(base_model, "luckyman2907/lab21-llama3.2-3b-r8")
tokenizer = AutoTokenizer.from_pretrained("luckyman2907/lab21-llama3.2-3b-r8")
# Generate
prompt = "Giải thích về machine learning"
inputs = tokenizer(prompt, return_tensors="pt").to("cuda")
outputs = model.generate(**inputs, max_new_tokens=200, temperature=0.7)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
| Rank | Trainable Params | Train Time | Peak VRAM | Perplexity |
|---|---|---|---|---|
| 8 | 2.3M | ~4 min | 7.0 GB | 5.30 |
| 16 | 4.6M | ~4 min | 6.2 GB | 5.22 |
| 64 | 18.4M | ~4 min | 8.0 GB | 5.23 |
Recommendation: Rank 16 offers the best balance between performance and efficiency.
@misc{lab21-lora-r8,
author = {luckyman2907},
title = {LoRA Adapter (Rank 8) - Llama 3.2 3B Vietnamese},
year = {2026},
publisher = {HuggingFace},
howpublished = {\url{luckyman2907/lab21-llama3.2-3b-r8}}
}
Apache 2.0 (following base model license)