Downloads · 30 days
48
17% of all-time downloads
BachDaThan/lora_model_nli_vietnamese-GGUF
lora_model_nli_vietnamese-GGUF is a text generation model from BachDaThan. Use it when you need the model to write or continue text. It is set up for llama.cpp. The card lists the license as apache-2.0.
Model tiếng Việt được merge LoRA và quantize sang GGUF. Dung lượng bên dưới được đọc trực tiếp từ file sau khi build.
Downloads · 30 days
48
17% of all-time downloads
All-time downloads
289
Public
Repo size
8.8 GB
Likes
0
Public
Click a slice to open those files.
.gguf8.8 GB · 100%
From the Hugging Face model README
Model tiếng Việt được merge LoRA và quantize sang GGUF. Dung lượng bên dưới được đọc trực tiếp từ file sau khi build.
| Thông số | Giá trị |
|---|---|
| Kiến trúc | qwen3 |
| Số layers | 36 |
| Hidden size | 2560 |
| Context window | 40960 |
| Head dim | 128 |
| Attention heads | 32 |
| KV heads | 8 |
| Vocabulary size | 151936 |
| Precision gốc | bfloat16 |
| Base Model | Qwen/Qwen3-4B |
| LoRA Adapter | lyle49/lora_model_nli_vietnamese |
| Giấy phép áp dụng | apache-2.0 |
| Mức | Tên file | Dung lượng thực tế | VRAM khuyến nghị | Ghi chú |
|---|---|---|---|---|
| Q4_K_M | lora_model_nli_vietnamese-Q4_K_M.gguf | 2.33 GB | ~4.3 GB | Bản cân bằng tiêu chuẩn, phù hợp đa số GPU consumer. |
| Q4_K_S | lora_model_nli_vietnamese-Q4_K_S.gguf | 2.22 GB | ~4.2 GB | Nhỏ hơn Q4_K_M một chút, chất lượng gần tương đương. |
| Q3_K_M | lora_model_nli_vietnamese-Q3_K_M.gguf | 1.93 GB | ~3.9 GB | Nén sâu hơn, phù hợp máy RAM/VRAM hạn chế. |
| Q3_K_S | lora_model_nli_vietnamese-Q3_K_S.gguf | 1.76 GB | ~3.8 GB | Nén sâu, ưu tiên dung lượng hơn chất lượng. |
Dung lượng được đo bằng stat().st_size sau khi quantize; không phải số ước tính.
Chat template thật được đọc từ tokenizer_config.json:
{% for message in messages %}{% if message['role'] == 'system' %}<|im_start|>system\n{{ message['content'] }}<|im_end|>\n{% elif message['role'] == 'user' %}<|im_start|>user\n{{ message['content'] }}<|im_end|>\n{% elif message['role'] == 'assistant' %}<|im_start|>assistant\n{{ message['content'] }}<|im_end|>\n{% endif %}{% endfor %}{% if add_generation_prompt %}<|im_start|>assistant\n{% endif %}
from llama_cpp import Llama
llm = Llama(
model_path="./lora_model_nli_vietnamese-Q4_K_M.gguf",
n_ctx=8192,
n_gpu_layers=-1,
verbose=False,
)
response = llm.create_chat_completion(
messages=[
{"role": "user", "content": "Xin chào"},
],
temperature=0.6,
top_p=0.95,
)
print(response["choices"][0]["message"]["content"])
FROM ./lora_model_nli_vietnamese-Q4_K_M.gguf
TEMPLATE """{{ if .System }}<|im_start|>system
{{ .System }}<|im_end|>
{{ end }}<|im_start|>user
{{ .Prompt }}<|im_end|>
<|im_start|>assistant
"""
PARAMETER temperature 0.6
PARAMETER top_p 0.95
PARAMETER num_ctx 8192
Qwen/Qwen3-4Bapache-2.0lyle49/lora_model_nli_vietnameseapache-2.0Model có thể sinh thông tin sai (hallucination). Không sử dụng output làm thay thế tư vấn chuyên môn trong các lĩnh vực quan trọng.