Instructions to use tensorblock/openbmb_BitCPM4-0.5B-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use tensorblock/openbmb_BitCPM4-0.5B-GGUF with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="tensorblock/openbmb_BitCPM4-0.5B-GGUF") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("tensorblock/openbmb_BitCPM4-0.5B-GGUF", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use tensorblock/openbmb_BitCPM4-0.5B-GGUF with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf tensorblock/openbmb_BitCPM4-0.5B-GGUF:Q2_K # Run inference directly in the terminal: llama cli -hf tensorblock/openbmb_BitCPM4-0.5B-GGUF:Q2_K
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf tensorblock/openbmb_BitCPM4-0.5B-GGUF:Q2_K # Run inference directly in the terminal: llama cli -hf tensorblock/openbmb_BitCPM4-0.5B-GGUF:Q2_K
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 tensorblock/openbmb_BitCPM4-0.5B-GGUF:Q2_K # Run inference directly in the terminal: ./llama-cli -hf tensorblock/openbmb_BitCPM4-0.5B-GGUF:Q2_K
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 tensorblock/openbmb_BitCPM4-0.5B-GGUF:Q2_K # Run inference directly in the terminal: ./build/bin/llama-cli -hf tensorblock/openbmb_BitCPM4-0.5B-GGUF:Q2_K
Use Docker
docker model run hf.co/tensorblock/openbmb_BitCPM4-0.5B-GGUF:Q2_K
- LM Studio
- Jan
- vLLM
How to use tensorblock/openbmb_BitCPM4-0.5B-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "tensorblock/openbmb_BitCPM4-0.5B-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": "tensorblock/openbmb_BitCPM4-0.5B-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/tensorblock/openbmb_BitCPM4-0.5B-GGUF:Q2_K
- SGLang
How to use tensorblock/openbmb_BitCPM4-0.5B-GGUF with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "tensorblock/openbmb_BitCPM4-0.5B-GGUF" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "tensorblock/openbmb_BitCPM4-0.5B-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "tensorblock/openbmb_BitCPM4-0.5B-GGUF" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "tensorblock/openbmb_BitCPM4-0.5B-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use tensorblock/openbmb_BitCPM4-0.5B-GGUF with Ollama:
ollama run hf.co/tensorblock/openbmb_BitCPM4-0.5B-GGUF:Q2_K
- Unsloth Studio
How to use tensorblock/openbmb_BitCPM4-0.5B-GGUF with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
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 tensorblock/openbmb_BitCPM4-0.5B-GGUF to start chatting
Install Unsloth Studio (Windows)
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 tensorblock/openbmb_BitCPM4-0.5B-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for tensorblock/openbmb_BitCPM4-0.5B-GGUF to start chatting
- Docker Model Runner
How to use tensorblock/openbmb_BitCPM4-0.5B-GGUF with Docker Model Runner:
docker model run hf.co/tensorblock/openbmb_BitCPM4-0.5B-GGUF:Q2_K
- Lemonade
How to use tensorblock/openbmb_BitCPM4-0.5B-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull tensorblock/openbmb_BitCPM4-0.5B-GGUF:Q2_K
Run and chat with the model
lemonade run user.openbmb_BitCPM4-0.5B-GGUF-Q2_K
List all available models
lemonade list
- Atomic Chat
Remove .gguf files (keep Q2_K.gguf)
Browse files- BitCPM4-0.5B-Q3_K_L.gguf +0 -3
- BitCPM4-0.5B-Q3_K_M.gguf +0 -3
- BitCPM4-0.5B-Q3_K_S.gguf +0 -3
- BitCPM4-0.5B-Q4_0.gguf +0 -3
- BitCPM4-0.5B-Q4_K_M.gguf +0 -3
- BitCPM4-0.5B-Q4_K_S.gguf +0 -3
- BitCPM4-0.5B-Q5_0.gguf +0 -3
- BitCPM4-0.5B-Q5_K_M.gguf +0 -3
- BitCPM4-0.5B-Q5_K_S.gguf +0 -3
- BitCPM4-0.5B-Q6_K.gguf +0 -3
- BitCPM4-0.5B-Q8_0.gguf +0 -3
BitCPM4-0.5B-Q3_K_L.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:ca2c2a571828a6e5aeee81a276a6cec123af9baa519401541b11f1f9eaf8e893
|
| 3 |
-
size 250930208
|
|
|
|
|
|
|
|
|
|
|
|
BitCPM4-0.5B-Q3_K_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:44b6ec41c4406dc69abf03a40f4264427d32e853e09a63bf2cb04612dbdc141a
|
| 3 |
-
size 235365408
|
|
|
|
|
|
|
|
|
|
|
|
BitCPM4-0.5B-Q3_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:d1a75e461b4241b6bb5891e9af2a48d1dfefafc2c06333e8d91f2dee233084e4
|
| 3 |
-
size 217678880
|
|
|
|
|
|
|
|
|
|
|
|
BitCPM4-0.5B-Q4_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:d0985cdfa456c0e90ad3213c38e147c1c75ca495ca5ca03bb8cf5cc27d9ad2c0
|
| 3 |
-
size 265307168
|
|
|
|
|
|
|
|
|
|
|
|
BitCPM4-0.5B-Q4_K_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:b4a43877c7509aca780530a96ba155f5261bee6bf14ac1579ea1b0562b8b4276
|
| 3 |
-
size 278688800
|
|
|
|
|
|
|
|
|
|
|
|
BitCPM4-0.5B-Q4_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:6e1e0de565c30389b512b766ef808ce163815811112e3d45121bad5afa06d307
|
| 3 |
-
size 266945568
|
|
|
|
|
|
|
|
|
|
|
|
BitCPM4-0.5B-Q5_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:3936c9f21ecc1c6d960f0d9c1f05f047f9829d83c781d57887e0b3233e6b415c
|
| 3 |
-
size 310133792
|
|
|
|
|
|
|
|
|
|
|
|
BitCPM4-0.5B-Q5_K_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:cb95e9a01541d453c43bfd7180ceeb523a9df399f7d8bffdb2e92684e165b5f9
|
| 3 |
-
size 317027360
|
|
|
|
|
|
|
|
|
|
|
|
BitCPM4-0.5B-Q5_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:b4eccd9c1c81300d5c7f329df31ec0fa9e02bc0df62facca229daef9468669ea
|
| 3 |
-
size 310133792
|
|
|
|
|
|
|
|
|
|
|
|
BitCPM4-0.5B-Q6_K.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:311ec316ca5816d191ffc39b28d96c35239af4ba26e6a58d67de75b29087ed89
|
| 3 |
-
size 357762080
|
|
|
|
|
|
|
|
|
|
|
|
BitCPM4-0.5B-Q8_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:3a1d1da61df137e901c826e47c876b0dffc65be490de7d2ee957092bab153fda
|
| 3 |
-
size 462828768
|
|
|
|
|
|
|
|
|
|
|
|