Instructions to use uonlp/Vistral-7B-Chat-gguf with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use uonlp/Vistral-7B-Chat-gguf with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="uonlp/Vistral-7B-Chat-gguf", filename="ggml-vistral-7B-chat-f16.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": "What is the capital of France?" } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use uonlp/Vistral-7B-Chat-gguf with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf uonlp/Vistral-7B-Chat-gguf:F16 # Run inference directly in the terminal: llama-cli -hf uonlp/Vistral-7B-Chat-gguf:F16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf uonlp/Vistral-7B-Chat-gguf:F16 # Run inference directly in the terminal: llama-cli -hf uonlp/Vistral-7B-Chat-gguf:F16
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf uonlp/Vistral-7B-Chat-gguf:F16 # Run inference directly in the terminal: ./llama-cli -hf uonlp/Vistral-7B-Chat-gguf:F16
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf uonlp/Vistral-7B-Chat-gguf:F16 # Run inference directly in the terminal: ./build/bin/llama-cli -hf uonlp/Vistral-7B-Chat-gguf:F16
Use Docker
docker model run hf.co/uonlp/Vistral-7B-Chat-gguf:F16
- LM Studio
- Jan
- vLLM
How to use uonlp/Vistral-7B-Chat-gguf with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "uonlp/Vistral-7B-Chat-gguf" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "uonlp/Vistral-7B-Chat-gguf", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/uonlp/Vistral-7B-Chat-gguf:F16
- Ollama
How to use uonlp/Vistral-7B-Chat-gguf with Ollama:
ollama run hf.co/uonlp/Vistral-7B-Chat-gguf:F16
- Unsloth Studio new
How to use uonlp/Vistral-7B-Chat-gguf with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for uonlp/Vistral-7B-Chat-gguf to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for uonlp/Vistral-7B-Chat-gguf to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for uonlp/Vistral-7B-Chat-gguf to start chatting
- Docker Model Runner
How to use uonlp/Vistral-7B-Chat-gguf with Docker Model Runner:
docker model run hf.co/uonlp/Vistral-7B-Chat-gguf:F16
- Lemonade
How to use uonlp/Vistral-7B-Chat-gguf with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull uonlp/Vistral-7B-Chat-gguf:F16
Run and chat with the model
lemonade run user.Vistral-7B-Chat-gguf-F16
List all available models
lemonade list
| { | |
| "name": "Vistral-7B-Chat", | |
| "inference_params": { | |
| "input_prefix": "<s>[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": "<s>[INST] <<SYS>>\n", | |
| "pre_prompt_suffix": "<</SYS>> \n\n" | |
| }, | |
| "load_params": { | |
| "rope_freq_scale": 0, | |
| "rope_freq_base": 0 | |
| } | |
| } |