Instructions to use tuandunghcmut/BitNet-cpp-compiled-with-custom-model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use tuandunghcmut/BitNet-cpp-compiled-with-custom-model with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="tuandunghcmut/BitNet-cpp-compiled-with-custom-model", filename="3rdparty/llama.cpp/models/ggml-vocab-aquila.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 tuandunghcmut/BitNet-cpp-compiled-with-custom-model with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf tuandunghcmut/BitNet-cpp-compiled-with-custom-model # Run inference directly in the terminal: llama-cli -hf tuandunghcmut/BitNet-cpp-compiled-with-custom-model
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf tuandunghcmut/BitNet-cpp-compiled-with-custom-model # Run inference directly in the terminal: llama-cli -hf tuandunghcmut/BitNet-cpp-compiled-with-custom-model
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 tuandunghcmut/BitNet-cpp-compiled-with-custom-model # Run inference directly in the terminal: ./llama-cli -hf tuandunghcmut/BitNet-cpp-compiled-with-custom-model
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 tuandunghcmut/BitNet-cpp-compiled-with-custom-model # Run inference directly in the terminal: ./build/bin/llama-cli -hf tuandunghcmut/BitNet-cpp-compiled-with-custom-model
Use Docker
docker model run hf.co/tuandunghcmut/BitNet-cpp-compiled-with-custom-model
- LM Studio
- Jan
- Ollama
How to use tuandunghcmut/BitNet-cpp-compiled-with-custom-model with Ollama:
ollama run hf.co/tuandunghcmut/BitNet-cpp-compiled-with-custom-model
- Unsloth Studio new
How to use tuandunghcmut/BitNet-cpp-compiled-with-custom-model 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 tuandunghcmut/BitNet-cpp-compiled-with-custom-model 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 tuandunghcmut/BitNet-cpp-compiled-with-custom-model to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for tuandunghcmut/BitNet-cpp-compiled-with-custom-model to start chatting
- Docker Model Runner
How to use tuandunghcmut/BitNet-cpp-compiled-with-custom-model with Docker Model Runner:
docker model run hf.co/tuandunghcmut/BitNet-cpp-compiled-with-custom-model
- Lemonade
How to use tuandunghcmut/BitNet-cpp-compiled-with-custom-model with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull tuandunghcmut/BitNet-cpp-compiled-with-custom-model
Run and chat with the model
lemonade run user.BitNet-cpp-compiled-with-custom-model-{{QUANT_TAG}}List all available models
lemonade list
| MIT License | |
| Copyright (c) Microsoft Corporation. | |
| Permission is hereby granted, free of charge, to any person obtaining a copy | |
| of this software and associated documentation files (the "Software"), to deal | |
| in the Software without restriction, including without limitation the rights | |
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| copies of the Software, and to permit persons to whom the Software is | |
| furnished to do so, subject to the following conditions: | |
| The above copyright notice and this permission notice shall be included in all | |
| copies or substantial portions of the Software. | |
| THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | |
| IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | |
| FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | |
| AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | |
| LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | |
| OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | |
| SOFTWARE | |