Instructions to use HOLOGRAMTECH/q-bitnet-2b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use HOLOGRAMTECH/q-bitnet-2b with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="HOLOGRAMTECH/q-bitnet-2b", filename="tokenizer.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": "What is the capital of France?" } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use HOLOGRAMTECH/q-bitnet-2b 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 HOLOGRAMTECH/q-bitnet-2b # Run inference directly in the terminal: llama cli -hf HOLOGRAMTECH/q-bitnet-2b
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf HOLOGRAMTECH/q-bitnet-2b # Run inference directly in the terminal: llama cli -hf HOLOGRAMTECH/q-bitnet-2b
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 HOLOGRAMTECH/q-bitnet-2b # Run inference directly in the terminal: ./llama-cli -hf HOLOGRAMTECH/q-bitnet-2b
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 HOLOGRAMTECH/q-bitnet-2b # Run inference directly in the terminal: ./build/bin/llama-cli -hf HOLOGRAMTECH/q-bitnet-2b
Use Docker
docker model run hf.co/HOLOGRAMTECH/q-bitnet-2b
- LM Studio
- Jan
- vLLM
How to use HOLOGRAMTECH/q-bitnet-2b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "HOLOGRAMTECH/q-bitnet-2b" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "HOLOGRAMTECH/q-bitnet-2b", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/HOLOGRAMTECH/q-bitnet-2b
- Ollama
How to use HOLOGRAMTECH/q-bitnet-2b with Ollama:
ollama run hf.co/HOLOGRAMTECH/q-bitnet-2b
- Unsloth Studio
How to use HOLOGRAMTECH/q-bitnet-2b 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 HOLOGRAMTECH/q-bitnet-2b 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 HOLOGRAMTECH/q-bitnet-2b to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for HOLOGRAMTECH/q-bitnet-2b to start chatting
- Atomic Chat new
- Docker Model Runner
How to use HOLOGRAMTECH/q-bitnet-2b with Docker Model Runner:
docker model run hf.co/HOLOGRAMTECH/q-bitnet-2b
- Lemonade
How to use HOLOGRAMTECH/q-bitnet-2b with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull HOLOGRAMTECH/q-bitnet-2b
Run and chat with the model
lemonade run user.q-bitnet-2b-{{QUANT_TAG}}List all available models
lemonade list
- Xet hash:
- 3dc554b9147b068eb15838d51190fcd933ccfe54c13e19fb2779f8319afc8e1c
- Size of remote file:
- 8.35 MB
- SHA256:
- 4c621b79bf378b166840410640ae76ed09238d5cafda3a4d0830ffbd4f2a4596
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.