Downloads · 30 days
283
62% of all-time downloads
BachDaThan/Qwen3-30B-A3B-Vietnamese-Instruct-GGUF
Qwen3-30B-A3B-Vietnamese-Instruct-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.
Downloads · 30 days
283
62% of all-time downloads
All-time downloads
459
Public
Repo size
18.6 GB
Likes
0
Public
Click a slice to open those files.
.gguf18.6 GB · 100%
From the Hugging Face model README
Vietnamese-optimized Qwen3 MoE model, LoRA merged and quantized to GGUF Q4_K_M.
</div>A Vietnamese-optimized Qwen3-30B-A3B model merged with a Vietnamese instruction-tuning LoRA, then quantized to GGUF Q4_K_M format (~18.6 GB).
This model is designed to run efficiently on consumer hardware:
- NVIDIA RTX 3060 12GB or better with GPU offload
- Apple Silicon M1/M2/M3/M4 with 24GB+ unified memory
- CPU-only systems with 24GB+ RAM
Key Features
Feature Details Architecture Qwen3 Mixture-of-Experts, ~30.5B total parameters Active Parameters ~3.3B parameters per token Primary Language Vietnamese, also supports English and many other languages Thinking Mode Supports <think>...</think>reasoning blocksContext Length 32,768 tokens native, extendable with YaRN Quantization GGUF Q4_K_M File Size Approximately 18.6 GB License Apache 2.0 Hardware Requirements
Setup Minimum / Recommended CPU only 24 GB RAM, 20 GB free disk GPU offload RTX 3060 12GB+ or RTX 4060 Ti 16GB Apple Silicon M1 Pro / M2 / M3 / M4 with 24GB+ unified memory Quick Start with llama.cpp
wget https://huggingface.co/BachDaThan/Qwen3-30B-A3B-Vietnamese-Instruct-GGUF/resolve/main/Qwen3-30B-A3B-Vietnamese-Instruct-Q4_K_M.gguf ./llama-cli -m Qwen3-30B-A3B-Vietnamese-Instruct-Q4_K_M.gguf -c 8192 -ngl 99 --chat-template chatmlQuick Start with Ollama
cat > Modelfile << 'EOF' FROM ./Qwen3-30B-A3B-Vietnamese-Instruct-Q4_K_M.gguf TEMPLATE """{{ if .System }}<|im_start|>system {{ .System }}<|im_end|> {{ end }} <|im_start|>user {{ .Prompt }}<|im_end|> <|im_start|>assistant """ SYSTEM "Bạn là trợ lý AI thông minh và hữu ích, trả lời bằng tiếng Việt." PARAMETER temperature 0.6 PARAMETER top_p 0.95 PARAMETER top_k 20 PARAMETER repeat_penalty 1.1 PARAMETER num_ctx 8192 EOF ollama create qwen3-viet -f Modelfile ollama run qwen3-vietRecommended Sampling Parameters
Parameter Value temperature 0.6 top_p 0.95 top_k 20 repeat_penalty 1.1 context length 8192 or higher if supported
Đây là phiên bản GGUF Q4_K_M của model Qwen3-30B-A3B đã được tối ưu cho tiếng Việt bằng LoRA. LoRA được merge vào base model, sau đó chuyển sang GGUF và quantize để chạy trên máy cá nhân.
| Tính năng | Chi tiết |
|---|---|
| Kiến trúc | Mixture-of-Experts, chỉ kích hoạt khoảng 3.3B params mỗi token |
| Ngôn ngữ chính | Tiếng Việt, đồng thời hỗ trợ tiếng Anh và nhiều ngôn ngữ khác |
| Thinking Mode | Hỗ trợ suy luận với <think>...</think> |
| Context | 32,768 tokens mặc định |
| Định dạng | GGUF Q4_K_M |
| Kích thước | Khoảng 18.6 GB |
| Phù hợp | CPU, GPU consumer, Apple Silicon |
| Thông số | Giá trị |
|---|---|
| Kiến trúc | Qwen3 MoE Transformer |
| Tổng tham số | ~30.5B |
| Tham số kích hoạt mỗi token | ~3.3B |
| Số layers | 48 |
| Hidden size | 2048 |
| Attention heads | 32 |
| KV heads | 4 |
| Head dim | 128 |
| Tổng số experts | 128 |
| Experts kích hoạt mỗi token | 8 |
| Vocabulary size | 151,936 |
| Context mặc định | 32,768 tokens |
| Precision gốc | BFloat16 |
| Thuộc tính | Giá trị |
|---|---|
| Định dạng | GGUF |
| Quantization | Q4_K_M |
| Kích thước ước tính | ~18.6 GB |
| Kích thước gốc BF16 | ~61 GB |
| Công cụ | llama.cpp |
| Quy trình | HF BF16 → GGUF F16 → GGUF Q4_K_M |
| Quant | Kích thước | RAM/VRAM đề xuất | Chất lượng |
|---|---|---|---|
| Q3_K_M | ~15 GB | ~18 GB | Khá |
| Q4_K_M | ~18.6 GB | ~21 GB | Tốt, cân bằng nhất |
| Q5_K_M | ~22 GB | ~25 GB | Rất tốt |
| Q6_K | ~25 GB | ~28 GB | Rất gần bản gốc |
| Q8_0 | ~33 GB | ~36 GB | Gần BF16 nhất |
| Thành phần | Yêu cầu |
|---|---|
| RAM | 24 GB trở lên |
| Ổ cứng | 20 GB trống |
| OS | Linux, macOS, Windows |
| Thành phần | Yêu cầu |
|---|---|
| GPU | RTX 3060 12GB trở lên |
| RAM | 16 GB trở lên |
| Ổ cứng | SSD 20 GB trống |
| Thành phần | Yêu cầu |
|---|---|
| Chip | M1 Pro, M2, M3, M4 hoặc mới hơn |
| Unified Memory | 24 GB trở lên, khuyến nghị 32 GB |
wget https://huggingface.co/BachDaThan/Qwen3-30B-A3B-Vietnamese-Instruct-GGUF/resolve/main/Qwen3-30B-A3B-Vietnamese-Instruct-Q4_K_M.gguf
./llama-cli -m Qwen3-30B-A3B-Vietnamese-Instruct-Q4_K_M.gguf -c 8192 -ngl 99 --chat-template chatml
Chạy server API tương thích OpenAI:
./llama-server -m Qwen3-30B-A3B-Vietnamese-Instruct-Q4_K_M.gguf -c 8192 -ngl 99 --host 0.0.0.0 --port 8080
cat > Modelfile << 'EOF'
FROM ./Qwen3-30B-A3B-Vietnamese-Instruct-Q4_K_M.gguf
TEMPLATE """{{ if .System }}<|im_start|>system
{{ .System }}<|im_end|>
{{ end }}
<|im_start|>user
{{ .Prompt }}<|im_end|>
<|im_start|>assistant
"""
SYSTEM "Bạn là trợ lý AI thông minh và hữu ích, trả lời bằng tiếng Việt."
PARAMETER temperature 0.6
PARAMETER top_p 0.95
PARAMETER top_k 20
PARAMETER repeat_penalty 1.1
PARAMETER num_ctx 8192
EOF
ollama create qwen3-viet -f Modelfile
ollama run qwen3-viet
Qwen3-30B-A3B-Vietnamese-Instruct-Q4_K_M.gguf.0.60.95201.18192from llama_cpp import Llama
llm = Llama(
model_path="./Qwen3-30B-A3B-Vietnamese-Instruct-Q4_K_M.gguf",
n_ctx=8192,
n_gpu_layers=-1,
verbose=False,
)
response = llm.create_chat_completion(
messages=[
{"role": "system", "content": "Bạn là trợ lý AI thông minh, trả lời bằng tiếng Việt."},
{"role": "user", "content": "Giải thích machine learning cho học sinh cấp 3."},
],
temperature=0.6,
top_p=0.95,
top_k=20,
repeat_penalty=1.1,
max_tokens=2048,
)
print(response["choices"][0]["message"]["content"])
Qwen3 hỗ trợ hai chế độ:
Phù hợp cho toán học, lập trình, suy luận phức tạp. Model có thể tạo khối suy luận:
<think>
...
</think>
Khuyến nghị:
temperature = 0.6
top_p = 0.95
top_k = 20
Phù hợp cho chat nhanh, hội thoại thông thường.
Khuyến nghị:
temperature = 0.7
top_p = 0.8
top_k = 20
1. Tải base model Qwen3-30B-A3B BF16
2. Tải Vietnamese LoRA adapter
3. Merge LoRA vào base model trên CPU
4. Lưu merged model dạng safetensors
5. Convert HF sang GGUF F16 bằng llama.cpp
6. Quantize F16 sang Q4_K_M bằng llama-quantize
7. Upload GGUF và README lên Hugging Face
8. Dọn dẹp file tạm
Toàn bộ pipeline được thiết kế để chạy bằng CPU trong Hugging Face Space.
@software{qwen3_vietnamese_gguf_2026,
title = {Qwen3-30B-A3B Vietnamese Instruct GGUF},
author = {BachDaThan},
year = {2026},
url = {https://huggingface.co/BachDaThan/Qwen3-30B-A3B-Vietnamese-Instruct-GGUF},
license = {Apache-2.0}
}
| Thành phần | Credit |
|---|---|
| Base model | Qwen Team / Alibaba Cloud |
| Vietnamese LoRA | Vietnamese LLM community |
| GGUF tools | llama.cpp contributors |
| Build and upload | BachDaThan |
If this model is useful, please consider leaving a like on the Hugging Face repository.
Nếu model này hữu ích, hãy thả tim repo trên Hugging Face nhé!
</div>