uonlp/CulturaX
Viewer โข Updated โข 7.18B โข 21.1k โข 711
How to use mudler/Minerva-1B-base-v1.0-Q5_K_M-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 mudler/Minerva-1B-base-v1.0-Q5_K_M-GGUF:Q5_K_M # Run inference directly in the terminal: llama cli -hf mudler/Minerva-1B-base-v1.0-Q5_K_M-GGUF:Q5_K_M
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf mudler/Minerva-1B-base-v1.0-Q5_K_M-GGUF:Q5_K_M # Run inference directly in the terminal: llama cli -hf mudler/Minerva-1B-base-v1.0-Q5_K_M-GGUF:Q5_K_M
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf mudler/Minerva-1B-base-v1.0-Q5_K_M-GGUF:Q5_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf mudler/Minerva-1B-base-v1.0-Q5_K_M-GGUF:Q5_K_M
docker model run hf.co/mudler/Minerva-1B-base-v1.0-Q5_K_M-GGUF:Q5_K_M
How to use mudler/Minerva-1B-base-v1.0-Q5_K_M-GGUF with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "mudler/Minerva-1B-base-v1.0-Q5_K_M-GGUF"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "mudler/Minerva-1B-base-v1.0-Q5_K_M-GGUF",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'docker model run hf.co/mudler/Minerva-1B-base-v1.0-Q5_K_M-GGUF:Q5_K_M
How to use mudler/Minerva-1B-base-v1.0-Q5_K_M-GGUF with Ollama:
ollama run hf.co/mudler/Minerva-1B-base-v1.0-Q5_K_M-GGUF:Q5_K_M
How to use mudler/Minerva-1B-base-v1.0-Q5_K_M-GGUF with Docker Model Runner:
docker model run hf.co/mudler/Minerva-1B-base-v1.0-Q5_K_M-GGUF:Q5_K_M
How to use mudler/Minerva-1B-base-v1.0-Q5_K_M-GGUF with Lemonade:
# Download Lemonade from https://lemonade-server.ai/ lemonade pull mudler/Minerva-1B-base-v1.0-Q5_K_M-GGUF:Q5_K_M
lemonade run user.Minerva-1B-base-v1.0-Q5_K_M-GGUF-Q5_K_M
lemonade list
This model was converted to GGUF format from sapienzanlp/Minerva-1B-base-v1.0 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 mudler/Minerva-1B-base-v1.0-Q5_K_M-GGUF --model minerva-1b-base-v1.0.Q5_K_M.gguf -p "The meaning to life and the universe is"
Server:
llama-server --hf-repo mudler/Minerva-1B-base-v1.0-Q5_K_M-GGUF --model minerva-1b-base-v1.0.Q5_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 minerva-1b-base-v1.0.Q5_K_M.gguf -n 128
5-bit