hfl/ruozhiba_gpt4
Viewer • Updated • 4.9k • 239 • 94
How to use QuantFactory/Gemma-2-2b-Chinese-it-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 QuantFactory/Gemma-2-2b-Chinese-it-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf QuantFactory/Gemma-2-2b-Chinese-it-GGUF:Q4_K_M
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf QuantFactory/Gemma-2-2b-Chinese-it-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf QuantFactory/Gemma-2-2b-Chinese-it-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 QuantFactory/Gemma-2-2b-Chinese-it-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf QuantFactory/Gemma-2-2b-Chinese-it-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 QuantFactory/Gemma-2-2b-Chinese-it-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf QuantFactory/Gemma-2-2b-Chinese-it-GGUF:Q4_K_M
docker model run hf.co/QuantFactory/Gemma-2-2b-Chinese-it-GGUF:Q4_K_M
How to use QuantFactory/Gemma-2-2b-Chinese-it-GGUF with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "QuantFactory/Gemma-2-2b-Chinese-it-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": "QuantFactory/Gemma-2-2b-Chinese-it-GGUF",
"messages": [
{
"role": "user",
"content": "What is the capital of France?"
}
]
}'docker model run hf.co/QuantFactory/Gemma-2-2b-Chinese-it-GGUF:Q4_K_M
How to use QuantFactory/Gemma-2-2b-Chinese-it-GGUF with Ollama:
ollama run hf.co/QuantFactory/Gemma-2-2b-Chinese-it-GGUF:Q4_K_M
How to use QuantFactory/Gemma-2-2b-Chinese-it-GGUF with Docker Model Runner:
docker model run hf.co/QuantFactory/Gemma-2-2b-Chinese-it-GGUF:Q4_K_M
How to use QuantFactory/Gemma-2-2b-Chinese-it-GGUF with Lemonade:
# Download Lemonade from https://lemonade-server.ai/ lemonade pull QuantFactory/Gemma-2-2b-Chinese-it-GGUF:Q4_K_M
lemonade run user.Gemma-2-2b-Chinese-it-GGUF-Q4_K_M
lemonade list
This is quantized version of stvlynn/Gemma-2-2b-Chinese-it created using llama.cpp
Gemma-2-2b-Chinese-it used approximately 6.4k rows of ruozhiba dataset to fine-tune Gemma-2-2b-it.
Gemma-2-2b-中文使用了约6.4k弱智吧数据对Gemma-2-2b-it进行微调
see Google's doc:
If you have any questions or suggestions, feel free to contact me.
2-bit
3-bit
4-bit
5-bit
6-bit
8-bit