How to use from
llama.cpp
Install from brew
brew install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama-server -hf shaowenchen/baichuan2-7b-chat-gguf:
# Run inference directly in the terminal:
llama-cli -hf shaowenchen/baichuan2-7b-chat-gguf:
Install from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama-server -hf shaowenchen/baichuan2-7b-chat-gguf:
# Run inference directly in the terminal:
llama-cli -hf shaowenchen/baichuan2-7b-chat-gguf:
Use pre-built binary
# 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 shaowenchen/baichuan2-7b-chat-gguf:
# Run inference directly in the terminal:
./llama-cli -hf shaowenchen/baichuan2-7b-chat-gguf:
Build from source code
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 shaowenchen/baichuan2-7b-chat-gguf:
# Run inference directly in the terminal:
./build/bin/llama-cli -hf shaowenchen/baichuan2-7b-chat-gguf:
Use Docker
docker model run hf.co/shaowenchen/baichuan2-7b-chat-gguf:
Quick Links

Provided files

Name Quant method Size
baichuan2-7b-chat.Q2_K.gguf Q2_K 3.0 GB
baichuan2-7b-chat.Q3_K.gguf Q3_K 3.5 GB
baichuan2-7b-chat.Q3_K_L.gguf Q3_K_L 3.8 GB
baichuan2-7b-chat.Q3_K_S.gguf Q3_K_S 3.2 GB
baichuan2-7b-chat.Q4_0.gguf Q4_0 4.1 GB
baichuan2-7b-chat.Q4_1.gguf Q4_1 4.5 GB
baichuan2-7b-chat.Q4_K.gguf Q4_K 4.3 GB
baichuan2-7b-chat.Q4_K_S.gguf Q4_K_S 4.1 GB
baichuan2-7b-chat.Q5_0.gguf Q5_0 4.9 GB
baichuan2-7b-chat.Q5_1.gguf Q5_1 5.3 GB
baichuan2-7b-chat.Q5_K.gguf Q5_K 5.0 GB
baichuan2-7b-chat.Q5_K_S.gguf Q5_K_S 4.9 GB
baichuan2-7b-chat.Q6_K.gguf Q6_K 5.7 GB
baichuan2-7b-chat.Q8_0.gguf Q8_0 7.4 GB
baichuan2-7b-chat.gguf full 14 GB

Usage:

docker run --rm -it -p 8000:8000 -v /path/to/models:/models -e MODEL=/models/gguf-model-name.gguf hubimage/llama-cpp-python:latest

and you can view http://localhost:8000/docs to see the swagger UI.

Provided images

Name Quant method Size
shaowenchen/baichuan2-7b-chat-gguf:Q2_K Q2_K 7.59 GB
shaowenchen/baichuan2-7b-chat-gguf:Q3_K Q3_K 8.61 GB
shaowenchen/baichuan2-7b-chat-gguf:Q3_K_L Q3_K_L 9.23 GB
shaowenchen/baichuan2-7b-chat-gguf:Q3_K_S Q3_K_S 7.93 GB
shaowenchen/baichuan2-7b-chat-gguf:Q4_0 Q4_0 9.6 GB

Usage:

docker run --rm -p 8000:8000 shaowenchen/baichuan2-7b-chat-gguf:Q2_K

and you can view http://localhost:8000/docs to see the swagger UI.

Downloads last month
473
GGUF
Model size
8B params
Architecture
llama
Hardware compatibility
Log In to add your hardware

2-bit

3-bit

4-bit

5-bit

6-bit

8-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Space using shaowenchen/baichuan2-7b-chat-gguf 1