IlyaGusev/saiga_scored
Viewer β’ Updated β’ 41.6k β’ 725 β’ 23
How to use IlyaGusev/saiga_llama3_8b_gguf with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="IlyaGusev/saiga_llama3_8b_gguf", filename="model-f16.gguf", )
llm.create_chat_completion(
messages = [
{
"role": "user",
"content": "What is the capital of France?"
}
]
)How to use IlyaGusev/saiga_llama3_8b_gguf with llama.cpp:
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf IlyaGusev/saiga_llama3_8b_gguf:F16 # Run inference directly in the terminal: llama-cli -hf IlyaGusev/saiga_llama3_8b_gguf:F16
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf IlyaGusev/saiga_llama3_8b_gguf:F16 # Run inference directly in the terminal: llama-cli -hf IlyaGusev/saiga_llama3_8b_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 IlyaGusev/saiga_llama3_8b_gguf:F16 # Run inference directly in the terminal: ./llama-cli -hf IlyaGusev/saiga_llama3_8b_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 IlyaGusev/saiga_llama3_8b_gguf:F16 # Run inference directly in the terminal: ./build/bin/llama-cli -hf IlyaGusev/saiga_llama3_8b_gguf:F16
docker model run hf.co/IlyaGusev/saiga_llama3_8b_gguf:F16
How to use IlyaGusev/saiga_llama3_8b_gguf with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "IlyaGusev/saiga_llama3_8b_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": "IlyaGusev/saiga_llama3_8b_gguf",
"messages": [
{
"role": "user",
"content": "What is the capital of France?"
}
]
}'docker model run hf.co/IlyaGusev/saiga_llama3_8b_gguf:F16
How to use IlyaGusev/saiga_llama3_8b_gguf with Ollama:
ollama run hf.co/IlyaGusev/saiga_llama3_8b_gguf:F16
How to use IlyaGusev/saiga_llama3_8b_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 IlyaGusev/saiga_llama3_8b_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 IlyaGusev/saiga_llama3_8b_gguf to start chatting
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for IlyaGusev/saiga_llama3_8b_gguf to start chatting
How to use IlyaGusev/saiga_llama3_8b_gguf with Docker Model Runner:
docker model run hf.co/IlyaGusev/saiga_llama3_8b_gguf:F16
How to use IlyaGusev/saiga_llama3_8b_gguf with Lemonade:
# Download Lemonade from https://lemonade-server.ai/ lemonade pull IlyaGusev/saiga_llama3_8b_gguf:F16
lemonade run user.saiga_llama3_8b_gguf-F16
lemonade list
Llama.cpp compatible versions of an original 8B model.
Download one of the versions, for example model-q4_K.gguf.
wget https://huggingface.co/IlyaGusev/saiga_llama3_8b_gguf/resolve/main/model-q4_K.gguf
Download interact_llama3_llamacpp.py
wget https://raw.githubusercontent.com/IlyaGusev/rulm/master/self_instruct/src/interact_llama3_llamacpp.py
How to run:
pip install llama-cpp-python fire
python3 interact_llama3_llamacpp.py model-q4_K.gguf
System requirements:
2-bit
8-bit
16-bit
docker model run hf.co/IlyaGusev/saiga_llama3_8b_gguf: