Instructions to use XXXXyu/bitnet_b1_58-3B-vlut-gguf with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use XXXXyu/bitnet_b1_58-3B-vlut-gguf with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="XXXXyu/bitnet_b1_58-3B-vlut-gguf", filename="ggml-model-I1_V.gguf", )
output = llm( "Once upon a time,", max_tokens=512, echo=True ) print(output)
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use XXXXyu/bitnet_b1_58-3B-vlut-gguf with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf XXXXyu/bitnet_b1_58-3B-vlut-gguf # Run inference directly in the terminal: llama-cli -hf XXXXyu/bitnet_b1_58-3B-vlut-gguf
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf XXXXyu/bitnet_b1_58-3B-vlut-gguf # Run inference directly in the terminal: llama-cli -hf XXXXyu/bitnet_b1_58-3B-vlut-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 XXXXyu/bitnet_b1_58-3B-vlut-gguf # Run inference directly in the terminal: ./llama-cli -hf XXXXyu/bitnet_b1_58-3B-vlut-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 XXXXyu/bitnet_b1_58-3B-vlut-gguf # Run inference directly in the terminal: ./build/bin/llama-cli -hf XXXXyu/bitnet_b1_58-3B-vlut-gguf
Use Docker
docker model run hf.co/XXXXyu/bitnet_b1_58-3B-vlut-gguf
- LM Studio
- Jan
- vLLM
How to use XXXXyu/bitnet_b1_58-3B-vlut-gguf with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "XXXXyu/bitnet_b1_58-3B-vlut-gguf" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "XXXXyu/bitnet_b1_58-3B-vlut-gguf", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/XXXXyu/bitnet_b1_58-3B-vlut-gguf
- Ollama
How to use XXXXyu/bitnet_b1_58-3B-vlut-gguf with Ollama:
ollama run hf.co/XXXXyu/bitnet_b1_58-3B-vlut-gguf
- Unsloth Studio new
How to use XXXXyu/bitnet_b1_58-3B-vlut-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 XXXXyu/bitnet_b1_58-3B-vlut-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 XXXXyu/bitnet_b1_58-3B-vlut-gguf to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for XXXXyu/bitnet_b1_58-3B-vlut-gguf to start chatting
- Docker Model Runner
How to use XXXXyu/bitnet_b1_58-3B-vlut-gguf with Docker Model Runner:
docker model run hf.co/XXXXyu/bitnet_b1_58-3B-vlut-gguf
- Lemonade
How to use XXXXyu/bitnet_b1_58-3B-vlut-gguf with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull XXXXyu/bitnet_b1_58-3B-vlut-gguf
Run and chat with the model
lemonade run user.bitnet_b1_58-3B-vlut-gguf-{{QUANT_TAG}}List all available models
lemonade list
Upload folder using huggingface_hub
Browse files- .gitattributes +5 -0
- ggml-model-I1_V.gguf +3 -0
- ggml-model-I1_V_2.gguf +3 -0
- ggml-model-I2_V.gguf +3 -0
- ggml-model-I2_V_4.gguf +3 -0
- ggml-model-I2_V_8.gguf +3 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,8 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
ggml-model-I1_V.gguf filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
ggml-model-I1_V_2.gguf filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
ggml-model-I2_V.gguf filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
ggml-model-I2_V_4.gguf filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
ggml-model-I2_V_8.gguf filter=lfs diff=lfs merge=lfs -text
|
ggml-model-I1_V.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6a3e27136e4b7d8dcbd1c78e9bea111983dd25180e8a7966fce566747173ca51
|
| 3 |
+
size 755773984
|
ggml-model-I1_V_2.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:be9983b8bdd554deca39c0bf93a58e746cdce2a4611fa1ba3ea1aeffe08f2e7f
|
| 3 |
+
size 755773984
|
ggml-model-I2_V.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1d3462e42a072e7b05ab6c6ce2d38ddf15df57da2e6bc0b1195b192f4033fef5
|
| 3 |
+
size 916849184
|
ggml-model-I2_V_4.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8f9dd970b58c70180bffcf6bdbe0666b083913675d457a50decbf3cef8ec3d7e
|
| 3 |
+
size 916849184
|
ggml-model-I2_V_8.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:123e682166eead504ec8db52e152177e18c56f4e713a254da025863ffd4e57ef
|
| 3 |
+
size 916849184
|