commit 4d8880424718d641f5e784547aa0c3f4430d3a4b Author: ModelHub XC Date: Sat Jul 18 18:24:11 2026 +0800 初始化项目,由ModelHub XC社区提供模型 Model: uonlp/Vistral-7B-Chat-gguf Source: Original Platform diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..aed9368 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,42 @@ +*.7z filter=lfs diff=lfs merge=lfs -text +*.arrow filter=lfs diff=lfs merge=lfs -text +*.bin filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.ckpt filter=lfs diff=lfs merge=lfs -text +*.ftz filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.h5 filter=lfs diff=lfs merge=lfs -text +*.joblib filter=lfs diff=lfs merge=lfs -text +*.lfs.* filter=lfs diff=lfs merge=lfs -text +*.mlmodel filter=lfs diff=lfs merge=lfs -text +*.model filter=lfs diff=lfs merge=lfs -text +*.msgpack filter=lfs diff=lfs merge=lfs -text +*.npy filter=lfs diff=lfs merge=lfs -text +*.npz filter=lfs diff=lfs merge=lfs -text +*.onnx filter=lfs diff=lfs merge=lfs -text +*.ot filter=lfs diff=lfs merge=lfs -text +*.parquet filter=lfs diff=lfs merge=lfs -text +*.pb filter=lfs diff=lfs merge=lfs -text +*.pickle filter=lfs diff=lfs merge=lfs -text +*.pkl filter=lfs diff=lfs merge=lfs -text +*.pt filter=lfs diff=lfs merge=lfs -text +*.pth filter=lfs diff=lfs merge=lfs -text +*.rar filter=lfs diff=lfs merge=lfs -text +*.safetensors filter=lfs diff=lfs merge=lfs -text +saved_model/**/* filter=lfs diff=lfs merge=lfs -text +*.tar.* filter=lfs diff=lfs merge=lfs -text +*.tar filter=lfs diff=lfs merge=lfs -text +*.tflite filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.wasm filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text +*tfevents* filter=lfs diff=lfs merge=lfs -text +vistral-q8.gguf filter=lfs diff=lfs merge=lfs -text +ggml-vistral-7B-chat-q8.gguf filter=lfs diff=lfs merge=lfs -text +ggml-vistral-7B-chat-f16.gguf filter=lfs diff=lfs merge=lfs -text +ggml-vistral-7B-chat-q4_0.gguf filter=lfs diff=lfs merge=lfs -text +ggml-vistral-7B-chat-q4_1.gguf filter=lfs diff=lfs merge=lfs -text +ggml-vistral-7B-chat-q5_0.gguf filter=lfs diff=lfs merge=lfs -text +ggml-vistral-7B-chat-q5_1.gguf filter=lfs diff=lfs merge=lfs -text diff --git a/README.md b/README.md new file mode 100644 index 0000000..14cb2a0 --- /dev/null +++ b/README.md @@ -0,0 +1,87 @@ +--- +license: afl-3.0 +language: +- vi +pipeline_tag: text-generation +model_name: Vistral-7B-Chat +tags: +- vistral +- mistral +- pytorch +- uonlp +- Viet-Mistral + +prompt_template: '[INST] <> +Bạn là một trợ lí Tiếng Việt nhiệt tình và trung thực. Hãy luôn trả lời một cách hữu ích nhất có thể, đồng thời giữ an toàn. +Câu trả lời của bạn không nên chứa bất kỳ nội dung gây hại, phân biệt chủng tộc, phân biệt giới tính, độc hại, nguy hiểm hoặc bất hợp pháp nào. Hãy đảm bảo rằng các câu trả lời của bạn không có thiên kiến xã hội và mang tính tích cực.Nếu một câu hỏi không có ý nghĩa hoặc không hợp lý về mặt thông tin, hãy giải thích tại sao thay vì trả lời một điều gì đó không chính xác. Nếu bạn không biết câu trả lời cho một câu hỏi, hãy trẳ lời là bạn không biết và vui lòng không chia sẻ thông tin sai lệch. +<> + +{prompt} [/INST] +' +quantized_by: chiennv +--- + +The challenge with large language models is that they cannot be executed locally on your laptop. +Thanks to [llama.cpp](https://github.com/ggerganov/llama.cpp) project, it is now feasible to operate our [Vistral-7B-Chat](https://huggingface.co/Viet-Mistral/Vistral-7B-Chat) on a single computer (Window or Macbook) even without a dedicated GPU. + +# Vistral-7B-Chat - GGUF +- Model creator: [Viet Mistral](https://huggingface.co/Viet-Mistral/) +- Original model: [Vistral-7B-Chat](https://huggingface.co/Viet-Mistral/Vistral-7B-Chat) + + +## Description + +This repo contains GGUF format model files for [Vistral-7B-Chat](https://huggingface.co/Viet-Mistral/Vistral-7B-Chat). + + + + +### About GGUF + +GGUF is a new format introduced by the llama.cpp team on August 21st 2023. It is a replacement for GGML. GGUF offers numerous advantages over GGML, such as better tokenization, and support for special tokens. It also supports metadata, and is designed to be extensible. + +Here is several clients and libraries that are known to support GGUF: + +* [llama.cpp](https://github.com/ggerganov/llama.cpp). The source project for GGUF. Offers a CLI and a server option. +* [text-generation-webui](https://github.com/oobabooga/text-generation-webui), the most widely used web UI, with many features and powerful extensions. Supports GPU acceleration. +* [LM Studio](https://lmstudio.ai/), an easy-to-use and powerful local GUI for Windows and macOS (Silicon), with GPU acceleration. +* [ctransformers](https://github.com/marella/ctransformers), a Python library with GPU accel, LangChain support, and OpenAI-compatible AI server. + + + + +## Prompt template: Vistral-7B-Chat + +``` +[INST] <> +Bạn là một trợ lí Tiếng Việt nhiệt tình và trung thực. Hãy luôn trả lời một cách hữu ích nhất có thể, đồng thời giữ an toàn. +Câu trả lời của bạn không nên chứa bất kỳ nội dung gây hại, phân biệt chủng tộc, phân biệt giới tính, độc hại, nguy hiểm hoặc bất hợp pháp nào. Hãy đảm bảo rằng các câu trả lời của bạn không có thiên kiến xã hội và mang tính tích cực.Nếu một câu hỏi không có ý nghĩa hoặc không hợp lý về mặt thông tin, hãy giải thích tại sao thay vì trả lời một điều gì đó không chính xác. Nếu bạn không biết câu trả lời cho một câu hỏi, hãy trẳ lời là bạn không biết và vui lòng không chia sẻ thông tin sai lệch. +<> + +{prompt} [/INST] + +``` + +You can also use the chat template file in [this repository](https://huggingface.co/chiennv/Vistral-7B-Chat-gguf/blob/main/template_chat.json). + + +### LM Studio + +To deploy Vistral locally on LM Studio, ensure you are utilizing the [specified chat template, download here](https://huggingface.co/uonlp/Vistral-7B-Chat-gguf/blob/main/template_chat.json). Before initiating the process, make sure to upload the chat template, as illustrated in the image below: + +

+ +This step is crucial for the proper functioning of Vistral on your local machine. + + + +### Use with langchain + +## Citation +``` +@article{chien2023vistral, + author = {Chien Van Nguyen, Thuat Nguyen, Quan Nguyen, Huy Huu Nguyen, Björn Plüster, Nam Pham, Huu Nguyen, Patrick Schramowski, Thien Huu Nguyen}, + title = {Vistral-7B-Chat - Towards a State-of-the-Art Large Language Model for Vietnamese}, + year = 2023, +} +``` \ No newline at end of file diff --git a/ggml-vistral-7B-chat-f16.gguf b/ggml-vistral-7B-chat-f16.gguf new file mode 100644 index 0000000..5b63cac --- /dev/null +++ b/ggml-vistral-7B-chat-f16.gguf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:957d0977888bbc5f57c65f2f8b64aafe89ff1be3e48c74036919f8270f8a65d1 +size 14589230144 diff --git a/ggml-vistral-7B-chat-q4_0.gguf b/ggml-vistral-7B-chat-q4_0.gguf new file mode 100644 index 0000000..ac57864 --- /dev/null +++ b/ggml-vistral-7B-chat-q4_0.gguf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d7a2da04a18ef169248da63ffd4de4218338257ba6741e19dcbfaf1e42d3382a +size 4145139360 diff --git a/ggml-vistral-7B-chat-q4_1.gguf b/ggml-vistral-7B-chat-q4_1.gguf new file mode 100644 index 0000000..66af8b7 --- /dev/null +++ b/ggml-vistral-7B-chat-q4_1.gguf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c0872cb68fa0bcde1e739228d67510b58b5ad8f81d9b27dd4db51205fbb1e69a +size 4591169440 diff --git a/ggml-vistral-7B-chat-q5_0.gguf b/ggml-vistral-7B-chat-q5_0.gguf new file mode 100644 index 0000000..7599689 --- /dev/null +++ b/ggml-vistral-7B-chat-q5_0.gguf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:05864a7651a0f3b578e71173b61105b8bb99ef20686776ad637bd8074ac2862e +size 5037199520 diff --git a/ggml-vistral-7B-chat-q5_1.gguf b/ggml-vistral-7B-chat-q5_1.gguf new file mode 100644 index 0000000..6e5a3fa --- /dev/null +++ b/ggml-vistral-7B-chat-q5_1.gguf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1fea69e9a40e28322a739326d56650d31003fb13ab70db149941dc64cd9f27fe +size 5483229600 diff --git a/ggml-vistral-7B-chat-q8.gguf b/ggml-vistral-7B-chat-q8.gguf new file mode 100644 index 0000000..8a080bf --- /dev/null +++ b/ggml-vistral-7B-chat-q8.gguf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b20319edfcb09f144d1aa684ff49f035085b0151810028384528d3330f04e162 +size 7751441984 diff --git a/template_chat.json b/template_chat.json new file mode 100644 index 0000000..7be8ef0 --- /dev/null +++ b/template_chat.json @@ -0,0 +1,14 @@ +{ + "name": "Vistral-7B-Chat", + "inference_params": { + "input_prefix": "[INST] ", + "input_suffix": "[/INST] ", + "pre_prompt": "Bạn là một trợ lí Tiếng Việt nhiệt tình và trung thực. Hãy luôn trả lời một cách hữu ích nhất có thể, đồng thời giữ an toàn.\nCâu trả lời của bạn không nên chứa bất kỳ nội dung gây hại, phân biệt chủng tộc, phân biệt giới tính, độc hại, nguy hiểm hoặc bất hợp pháp nào. Hãy đảm bảo rằng các câu trả lời của bạn không có thiên kiến xã hội và mang tính tích cực.Nếu một câu hỏi không có ý nghĩa hoặc không hợp lý về mặt thông tin, hãy giải thích tại sao thay vì trả lời một điều gì đó không chính xác. Nếu bạn không biết câu trả lời cho một câu hỏi, hãy trẳ lời là bạn không biết và vui lòng không chia sẻ thông tin sai lệch.", + "pre_prompt_prefix": "[INST] <>\n", + "pre_prompt_suffix": "<> \n\n" + }, + "load_params": { + "rope_freq_scale": 0, + "rope_freq_base": 0 + } +} \ No newline at end of file diff --git a/usage.png b/usage.png new file mode 100644 index 0000000..2cff58d Binary files /dev/null and b/usage.png differ