Text Generation
GGUF
llama.cpp
1-bit
llama-cpp
cuda
metal
on-device
prismml
bonsai
Eval Results
conversational
Instructions to use prism-ml/Bonsai-1.7B-gguf with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use prism-ml/Bonsai-1.7B-gguf with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="prism-ml/Bonsai-1.7B-gguf", filename="Bonsai-1.7B-Q1_0.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 prism-ml/Bonsai-1.7B-gguf with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf prism-ml/Bonsai-1.7B-gguf:Q1_0 # Run inference directly in the terminal: llama-cli -hf prism-ml/Bonsai-1.7B-gguf:Q1_0
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf prism-ml/Bonsai-1.7B-gguf:Q1_0 # Run inference directly in the terminal: llama-cli -hf prism-ml/Bonsai-1.7B-gguf:Q1_0
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 prism-ml/Bonsai-1.7B-gguf:Q1_0 # Run inference directly in the terminal: ./llama-cli -hf prism-ml/Bonsai-1.7B-gguf:Q1_0
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 prism-ml/Bonsai-1.7B-gguf:Q1_0 # Run inference directly in the terminal: ./build/bin/llama-cli -hf prism-ml/Bonsai-1.7B-gguf:Q1_0
Use Docker
docker model run hf.co/prism-ml/Bonsai-1.7B-gguf:Q1_0
- LM Studio
- Jan
- vLLM
How to use prism-ml/Bonsai-1.7B-gguf with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "prism-ml/Bonsai-1.7B-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": "prism-ml/Bonsai-1.7B-gguf", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/prism-ml/Bonsai-1.7B-gguf:Q1_0
- Ollama
How to use prism-ml/Bonsai-1.7B-gguf with Ollama:
ollama run hf.co/prism-ml/Bonsai-1.7B-gguf:Q1_0
- Unsloth Studio
How to use prism-ml/Bonsai-1.7B-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 prism-ml/Bonsai-1.7B-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 prism-ml/Bonsai-1.7B-gguf to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for prism-ml/Bonsai-1.7B-gguf to start chatting
- Pi
How to use prism-ml/Bonsai-1.7B-gguf with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf prism-ml/Bonsai-1.7B-gguf:Q1_0
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "prism-ml/Bonsai-1.7B-gguf:Q1_0" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use prism-ml/Bonsai-1.7B-gguf with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf prism-ml/Bonsai-1.7B-gguf:Q1_0
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default prism-ml/Bonsai-1.7B-gguf:Q1_0
Run Hermes
hermes
- Atomic Chat new
- Docker Model Runner
How to use prism-ml/Bonsai-1.7B-gguf with Docker Model Runner:
docker model run hf.co/prism-ml/Bonsai-1.7B-gguf:Q1_0
- Lemonade
How to use prism-ml/Bonsai-1.7B-gguf with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull prism-ml/Bonsai-1.7B-gguf:Q1_0
Run and chat with the model
lemonade run user.Bonsai-1.7B-gguf-Q1_0
List all available models
lemonade list
Add Q1_0-suffixed gguf copy; update README quickstart paths
Browse files- .gitattributes +1 -0
- Bonsai-1.7B-Q1_0.gguf +3 -0
- README.md +3 -3
.gitattributes
CHANGED
|
@@ -36,3 +36,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 36 |
Bonsai-1.7B.gguf filter=lfs diff=lfs merge=lfs -text
|
| 37 |
frontier.png filter=lfs diff=lfs merge=lfs -text
|
| 38 |
assets/frontier.png filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 36 |
Bonsai-1.7B.gguf filter=lfs diff=lfs merge=lfs -text
|
| 37 |
frontier.png filter=lfs diff=lfs merge=lfs -text
|
| 38 |
assets/frontier.png filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
*.gguf filter=lfs diff=lfs merge=lfs -text
|
Bonsai-1.7B-Q1_0.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3d7c6c90dd98717a203adb22d5eacd2581850e40aa5327e144b97766cae5f7e3
|
| 3 |
+
size 248302272
|
README.md
CHANGED
|
@@ -119,7 +119,7 @@ cmake -B build -DGGML_CUDA=ON && cmake --build build -j
|
|
| 119 |
|
| 120 |
# Run inference
|
| 121 |
./build/bin/llama-cli \
|
| 122 |
-
-m Bonsai-1.7B.gguf \
|
| 123 |
-p "Explain quantum computing in simple terms." \
|
| 124 |
-n 256 \
|
| 125 |
--temp 0.5 \
|
|
@@ -140,7 +140,7 @@ cmake -B build && cmake --build build -j
|
|
| 140 |
|
| 141 |
# Run inference
|
| 142 |
./build/bin/llama-cli \
|
| 143 |
-
-m Bonsai-1.7B.gguf \
|
| 144 |
-p "Explain quantum computing in simple terms." \
|
| 145 |
-n 256 \
|
| 146 |
--temp 0.5 \
|
|
@@ -153,7 +153,7 @@ cmake -B build && cmake --build build -j
|
|
| 153 |
|
| 154 |
```bash
|
| 155 |
./build/bin/llama-server \
|
| 156 |
-
-m Bonsai-1.7B.gguf \
|
| 157 |
--host 0.0.0.0 \
|
| 158 |
--port 8080 \
|
| 159 |
-ngl 99
|
|
|
|
| 119 |
|
| 120 |
# Run inference
|
| 121 |
./build/bin/llama-cli \
|
| 122 |
+
-m Bonsai-1.7B-Q1_0.gguf \
|
| 123 |
-p "Explain quantum computing in simple terms." \
|
| 124 |
-n 256 \
|
| 125 |
--temp 0.5 \
|
|
|
|
| 140 |
|
| 141 |
# Run inference
|
| 142 |
./build/bin/llama-cli \
|
| 143 |
+
-m Bonsai-1.7B-Q1_0.gguf \
|
| 144 |
-p "Explain quantum computing in simple terms." \
|
| 145 |
-n 256 \
|
| 146 |
--temp 0.5 \
|
|
|
|
| 153 |
|
| 154 |
```bash
|
| 155 |
./build/bin/llama-server \
|
| 156 |
+
-m Bonsai-1.7B-Q1_0.gguf \
|
| 157 |
--host 0.0.0.0 \
|
| 158 |
--port 8080 \
|
| 159 |
-ngl 99
|