CoolFace
Modelpublic

BachDaThan/vietnamese-finance-GGUF

sourceHugging Faceapache-2.0updated 17d agoView on Hugging Face
0likes193downloads
Model Card

vietnamese-finance-GGUF

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ố kỹ thuật

Thông sốGiá trị
Kiến trúcqwen2
Số layers28
Hidden size3584
Context window32768
Attention heads28
KV heads4
Vocabulary size152064
Precision gốcbfloat16
Base ModelQwen/Qwen2.5-7B-Instruct
LoRA Adapterttkn/vietnamese-finance
Giấy phép áp dụngapache-2.0

Các file GGUF

MứcTên fileDung lượng thực tếVRAM khuyến nghịGhi chú
Q4KMvietnamese-finance-Q4KM.gguf4.36 GB~6.4 GBBản cân bằng tiêu chuẩn, phù hợp đa số GPU consumer.
Q4KSvietnamese-finance-Q4KS.gguf4.15 GB~6.2 GBNhỏ hơn Q4KM một chút, chất lượng gần tương đương.
Q3KMvietnamese-finance-Q3KM.gguf3.55 GB~5.5 GBNén sâu hơn, phù hợp máy RAM/VRAM hạn chế.
Q3KSvietnamese-finance-Q3KS.gguf3.25 GB~5.3 GBNé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.

Prompt Template

Chat template thật được đọc từ tokenizer_config.json:

text
{% 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 %}

Hướng dẫn sử dụng nhanh

llama-cpp-python

python
from llama_cpp import Llama

llm = Llama(
    model_path="./vietnamese-finance-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"])

Ollama

text
FROM ./vietnamese-finance-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

Minh bạch & License

  • —Base model: Qwen/Qwen2.5-7B-Instruct
  • —Base model license (đọc từ Hugging Face): apache-2.0
  • —LoRA adapter: ttkn/vietnamese-finance
  • —LoRA adapter license (đọc từ Hugging Face): apache-2.0
  • —License của repo này được xác định sau khi pipeline xác minh license nguồn; không tự gán Apache-2.0.
  • —GGUF được merge và quantize tự động bởi BachDaThan.

Lưu ý

Model 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.