Instructions to use Abiray/BitCPM4-CANN-1B-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use Abiray/BitCPM4-CANN-1B-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="Abiray/BitCPM4-CANN-1B-GGUF", filename="BitCPM4-CANN-1B-Q3_K_M.gguf", )
llm.create_chat_completion( messages = "No input example has been defined for this model task." )
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use Abiray/BitCPM4-CANN-1B-GGUF with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf Abiray/BitCPM4-CANN-1B-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf Abiray/BitCPM4-CANN-1B-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf Abiray/BitCPM4-CANN-1B-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf Abiray/BitCPM4-CANN-1B-GGUF:Q4_K_M
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 Abiray/BitCPM4-CANN-1B-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf Abiray/BitCPM4-CANN-1B-GGUF:Q4_K_M
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 Abiray/BitCPM4-CANN-1B-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf Abiray/BitCPM4-CANN-1B-GGUF:Q4_K_M
Use Docker
docker model run hf.co/Abiray/BitCPM4-CANN-1B-GGUF:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use Abiray/BitCPM4-CANN-1B-GGUF with Ollama:
ollama run hf.co/Abiray/BitCPM4-CANN-1B-GGUF:Q4_K_M
- Unsloth Studio new
How to use Abiray/BitCPM4-CANN-1B-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 Abiray/BitCPM4-CANN-1B-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 Abiray/BitCPM4-CANN-1B-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for Abiray/BitCPM4-CANN-1B-GGUF to start chatting
- Docker Model Runner
How to use Abiray/BitCPM4-CANN-1B-GGUF with Docker Model Runner:
docker model run hf.co/Abiray/BitCPM4-CANN-1B-GGUF:Q4_K_M
- Lemonade
How to use Abiray/BitCPM4-CANN-1B-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Abiray/BitCPM4-CANN-1B-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.BitCPM4-CANN-1B-GGUF-Q4_K_M
List all available models
lemonade list
Abiray/BitCPM4-CANN-1B-GGUF
This repository contains quantized GGUF formats of the openbmb/BitCPM4-CANN-1B model, heavily optimized for local inference using llama.cpp, text-generation-webui, LM Studio, Ollama, and other compatible backend frameworks.
Model Information
- Original Model: openbmb/BitCPM4-CANN-1B
- Architecture: BitCPM (1 Billion Parameters)
Available Files & Hardware Compatibility
The following quantization formats are available. Because this is a 1-Billion parameter model, it is highly efficient and can easily run on consumer CPUs, ultra-low-end hardware, and mobile devices.
| Filename | Quant Type | File Size | Description |
|---|---|---|---|
| BitCPM4-CANN-1B-Q8_0.gguf | 8-bit | 1.73 GB | Highest quality, almost indistinguishable from the unquantized base model. Very fast inference. |
| BitCPM4-CANN-1B-Q6_K.gguf | 6-bit | 1.33 GB | Excellent quality with near-zero noticeable degradation. Highly recommended. |
| BitCPM4-CANN-1B-Q5_K_M.gguf | 5-bit | 1.16 GB | Great balance of file size, text generation speed, and logic retention. |
| BitCPM4-CANN-1B-Q5_K_S.gguf | 5-bit | 1.14 GB | Minor variant of Q5_K_M optimized slightly more for size. |
| BitCPM4-CANN-1B-Q4_K_M.gguf | 4-bit | 1.00 GB | Recommended. The ideal sweet-spot for 4-bit formats, striking an incredible performance-to-size ratio. |
| BitCPM4-CANN-1B-Q4_K_S.gguf | 4-bit | 958 MB | Extremely small and fast. Drops below the 1GB mark, making it perfect for lightweight deployments. |
| BitCPM4-CANN-1B-Q3_K_M.gguf | 3-bit | 824 MB | Maximum compression. Use only if working under severe memory bottlenecks. |
How to Run
Using llama.cpp (Command Line)
If you have compiled llama.cpp, you can run the model directly from your terminal. Replace the filename with the specific version you downloaded:
./llama-cli \
-m BitCPM4-CANN-1B-Q4_K_M.gguf \
-p "Explain the concept of artificial intelligence to a five-year-old." \
-n 256 \
-c 2048 \
--temp 0.7
- Downloads last month
- 125
3-bit
4-bit
5-bit
6-bit
8-bit
Model tree for Abiray/BitCPM4-CANN-1B-GGUF
Base model
openbmb/BitCPM4-CANN-1B