Instructions to use tdh111/bitnet-b1.58-2B-4T-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use tdh111/bitnet-b1.58-2B-4T-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 tdh111/bitnet-b1.58-2B-4T-GGUF # Run inference directly in the terminal: llama cli -hf tdh111/bitnet-b1.58-2B-4T-GGUF
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf tdh111/bitnet-b1.58-2B-4T-GGUF # Run inference directly in the terminal: llama cli -hf tdh111/bitnet-b1.58-2B-4T-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 tdh111/bitnet-b1.58-2B-4T-GGUF # Run inference directly in the terminal: ./llama-cli -hf tdh111/bitnet-b1.58-2B-4T-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 tdh111/bitnet-b1.58-2B-4T-GGUF # Run inference directly in the terminal: ./build/bin/llama-cli -hf tdh111/bitnet-b1.58-2B-4T-GGUF
Use Docker
docker model run hf.co/tdh111/bitnet-b1.58-2B-4T-GGUF
- LM Studio
- Jan
- vLLM
How to use tdh111/bitnet-b1.58-2B-4T-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "tdh111/bitnet-b1.58-2B-4T-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": "tdh111/bitnet-b1.58-2B-4T-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/tdh111/bitnet-b1.58-2B-4T-GGUF
- Ollama
How to use tdh111/bitnet-b1.58-2B-4T-GGUF with Ollama:
ollama run hf.co/tdh111/bitnet-b1.58-2B-4T-GGUF
- Unsloth Desktop
- Docker Model Runner
How to use tdh111/bitnet-b1.58-2B-4T-GGUF with Docker Model Runner:
docker model run hf.co/tdh111/bitnet-b1.58-2B-4T-GGUF
- Lemonade
How to use tdh111/bitnet-b1.58-2B-4T-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull tdh111/bitnet-b1.58-2B-4T-GGUF
Run and chat with the model
lemonade run user.bitnet-b1.58-2B-4T-GGUF-{{QUANT_TAG}}List all available models
lemonade list
- Atomic Chat
iq2_bn with 4 or 5 weights per byte?
#2 opened about 1 year ago
by
TobDeBer
how to update the prompt template in llamacpp
7
#1 opened over 1 year ago
by
PlatonicSkeptic