phongmt184172/mtet
Viewer • Updated • 8.33M • 366 • 11
How to use nguyen1207/Vistral-7B-MT-GGUF with Transformers:
# Use a pipeline as a high-level helper
# Warning: Pipeline type "translation" is no longer supported in transformers v5.
# You must load the model directly (see below) or downgrade to v4.x with:
# 'pip install "transformers<5.0.0'
from transformers import pipeline
pipe = pipeline("translation", model="nguyen1207/Vistral-7B-MT-GGUF")
messages = [
{"role": "user", "content": "Who are you?"},
]
pipe(messages) # Load model directly
from transformers import AutoModel
model = AutoModel.from_pretrained("nguyen1207/Vistral-7B-MT-GGUF", device_map="auto")How to use nguyen1207/Vistral-7B-MT-GGUF with llama.cpp:
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf nguyen1207/Vistral-7B-MT-GGUF:F16 # Run inference directly in the terminal: llama cli -hf nguyen1207/Vistral-7B-MT-GGUF:F16
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf nguyen1207/Vistral-7B-MT-GGUF:F16 # Run inference directly in the terminal: llama cli -hf nguyen1207/Vistral-7B-MT-GGUF:F16
# 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 nguyen1207/Vistral-7B-MT-GGUF:F16 # Run inference directly in the terminal: ./llama-cli -hf nguyen1207/Vistral-7B-MT-GGUF:F16
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 nguyen1207/Vistral-7B-MT-GGUF:F16 # Run inference directly in the terminal: ./build/bin/llama-cli -hf nguyen1207/Vistral-7B-MT-GGUF:F16
docker model run hf.co/nguyen1207/Vistral-7B-MT-GGUF:F16
How to use nguyen1207/Vistral-7B-MT-GGUF with Ollama:
ollama run hf.co/nguyen1207/Vistral-7B-MT-GGUF:F16
How to use nguyen1207/Vistral-7B-MT-GGUF with Docker Model Runner:
docker model run hf.co/nguyen1207/Vistral-7B-MT-GGUF:F16
How to use nguyen1207/Vistral-7B-MT-GGUF with Lemonade:
# Download Lemonade from https://lemonade-server.ai/ lemonade pull nguyen1207/Vistral-7B-MT-GGUF:F16
lemonade run user.Vistral-7B-MT-GGUF-F16
lemonade list
Fine-tuned from model Viet-Mistral/Vistral-7B-Chat for Vietnamese to English translation task with the capability of understanding Vietnamese social media teencode and slang.
Detailed information comming soon.
This mistral model was trained 2x faster with Unsloth and Huggingface's TRL library.
4-bit
16-bit
Base model
Viet-Mistral/Vistral-7B-Chat