zjkarina/Vikhr_instruct
Viewer • Updated • 4.38k • 33
How to use oblivious/Vikhr-7B-instruct-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="oblivious/Vikhr-7B-instruct-GGUF", filename="Vikhr-7B-instruct-Q2_K.gguf", )
output = llm( "Once upon a time,", max_tokens=512, echo=True ) print(output)
How to use oblivious/Vikhr-7B-instruct-GGUF with llama.cpp:
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf oblivious/Vikhr-7B-instruct-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf oblivious/Vikhr-7B-instruct-GGUF:Q4_K_M
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf oblivious/Vikhr-7B-instruct-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf oblivious/Vikhr-7B-instruct-GGUF:Q4_K_M
# 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 oblivious/Vikhr-7B-instruct-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf oblivious/Vikhr-7B-instruct-GGUF:Q4_K_M
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 oblivious/Vikhr-7B-instruct-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf oblivious/Vikhr-7B-instruct-GGUF:Q4_K_M
docker model run hf.co/oblivious/Vikhr-7B-instruct-GGUF:Q4_K_M
How to use oblivious/Vikhr-7B-instruct-GGUF with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "oblivious/Vikhr-7B-instruct-GGUF"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "oblivious/Vikhr-7B-instruct-GGUF",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'docker model run hf.co/oblivious/Vikhr-7B-instruct-GGUF:Q4_K_M
How to use oblivious/Vikhr-7B-instruct-GGUF with Ollama:
ollama run hf.co/oblivious/Vikhr-7B-instruct-GGUF:Q4_K_M
How to use oblivious/Vikhr-7B-instruct-GGUF with Unsloth Studio:
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 oblivious/Vikhr-7B-instruct-GGUF to start chatting
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 oblivious/Vikhr-7B-instruct-GGUF to start chatting
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for oblivious/Vikhr-7B-instruct-GGUF to start chatting
How to use oblivious/Vikhr-7B-instruct-GGUF with Docker Model Runner:
docker model run hf.co/oblivious/Vikhr-7B-instruct-GGUF:Q4_K_M
How to use oblivious/Vikhr-7B-instruct-GGUF with Lemonade:
# Download Lemonade from https://lemonade-server.ai/ lemonade pull oblivious/Vikhr-7B-instruct-GGUF:Q4_K_M
lemonade run user.Vikhr-7B-instruct-GGUF-Q4_K_M
lemonade list
This repository contains quantized GGUF format model files for Vikhr-7B-instruct_merged.
<s>{role}\n{content}</s>\n
Ты — Вихрь, русскоязычный автоматический ассистент. Ты разговариваешь с людьми и помогаешь им.
llama.cpp command
./main -m Vikhr-7B-instruct-Q4_K_M.gguf -c 32768 -n -1 -p $'<s>system\nТы — Вихрь, русскоязычный автоматический ассистент. Ты разговариваешь с людьми и помогаешь им.</s>\n<s>user\nКак тебя зовут?</s>\n<s>bot\n'
system
Ты — Вихрь, русскоязычный автоматический ассистент. Ты разговариваешь с людьми и помогаешь им.
user
Как тебя зовут?
bot
Я называю себя Вихрем! [end of text]
For other parameters and how to use them, please refer to the llama.cpp documentation
2-bit
3-bit
4-bit
5-bit
6-bit
8-bit