allenai/MADLAD-400
Updated • 42.2k • 169
How to use itlwas/Sailor-0.5B-Q4_K_M-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="itlwas/Sailor-0.5B-Q4_K_M-GGUF", filename="sailor-0.5b.Q4_K_M.gguf", )
llm.create_chat_completion( messages = "No input example has been defined for this model task." )
How to use itlwas/Sailor-0.5B-Q4_K_M-GGUF with llama.cpp:
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf itlwas/Sailor-0.5B-Q4_K_M-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf itlwas/Sailor-0.5B-Q4_K_M-GGUF:Q4_K_M
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf itlwas/Sailor-0.5B-Q4_K_M-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf itlwas/Sailor-0.5B-Q4_K_M-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 itlwas/Sailor-0.5B-Q4_K_M-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf itlwas/Sailor-0.5B-Q4_K_M-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 itlwas/Sailor-0.5B-Q4_K_M-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf itlwas/Sailor-0.5B-Q4_K_M-GGUF:Q4_K_M
docker model run hf.co/itlwas/Sailor-0.5B-Q4_K_M-GGUF:Q4_K_M
How to use itlwas/Sailor-0.5B-Q4_K_M-GGUF with Ollama:
ollama run hf.co/itlwas/Sailor-0.5B-Q4_K_M-GGUF:Q4_K_M
How to use itlwas/Sailor-0.5B-Q4_K_M-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 itlwas/Sailor-0.5B-Q4_K_M-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 itlwas/Sailor-0.5B-Q4_K_M-GGUF to start chatting
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for itlwas/Sailor-0.5B-Q4_K_M-GGUF to start chatting
How to use itlwas/Sailor-0.5B-Q4_K_M-GGUF with Docker Model Runner:
docker model run hf.co/itlwas/Sailor-0.5B-Q4_K_M-GGUF:Q4_K_M
How to use itlwas/Sailor-0.5B-Q4_K_M-GGUF with Lemonade:
# Download Lemonade from https://lemonade-server.ai/ lemonade pull itlwas/Sailor-0.5B-Q4_K_M-GGUF:Q4_K_M
lemonade run user.Sailor-0.5B-Q4_K_M-GGUF-Q4_K_M
lemonade list
This model was converted to GGUF format from sail/Sailor-0.5B using llama.cpp via the ggml.ai's GGUF-my-repo space.
Refer to the original model card for more details on the model.
Install llama.cpp through brew.
brew install ggerganov/ggerganov/llama.cpp
Invoke the llama.cpp server or the CLI.
CLI:
llama-cli --hf-repo AIronMind/Sailor-0.5B-Q4_K_M-GGUF --model sailor-0.5b.Q4_K_M.gguf -p "The meaning to life and the universe is"
Server:
llama-server --hf-repo AIronMind/Sailor-0.5B-Q4_K_M-GGUF --model sailor-0.5b.Q4_K_M.gguf -c 2048
Note: You can also use this checkpoint directly through the usage steps listed in the Llama.cpp repo as well.
git clone https://github.com/ggerganov/llama.cpp && cd llama.cpp && make && ./main -m sailor-0.5b.Q4_K_M.gguf -n 128
4-bit
Base model
Qwen/Qwen1.5-0.5B