Instructions to use patdev/k3-a40-bootstrap 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 patdev/k3-a40-bootstrap 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 patdev/k3-a40-bootstrap:BF16 # Run inference directly in the terminal: llama cli -hf patdev/k3-a40-bootstrap:BF16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf patdev/k3-a40-bootstrap:BF16 # Run inference directly in the terminal: llama cli -hf patdev/k3-a40-bootstrap:BF16
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 patdev/k3-a40-bootstrap:BF16 # Run inference directly in the terminal: ./llama-cli -hf patdev/k3-a40-bootstrap:BF16
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 patdev/k3-a40-bootstrap:BF16 # Run inference directly in the terminal: ./build/bin/llama-cli -hf patdev/k3-a40-bootstrap:BF16
Use Docker
docker model run hf.co/patdev/k3-a40-bootstrap:BF16
- LM Studio
- Jan
- Ollama
How to use patdev/k3-a40-bootstrap with Ollama:
ollama run hf.co/patdev/k3-a40-bootstrap:BF16
- Unsloth Desktop
- Docker Model Runner
How to use patdev/k3-a40-bootstrap with Docker Model Runner:
docker model run hf.co/patdev/k3-a40-bootstrap:BF16
- Lemonade
How to use patdev/k3-a40-bootstrap with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull patdev/k3-a40-bootstrap:BF16
Run and chat with the model
lemonade run user.k3-a40-bootstrap-BF16
List all available models
lemonade list
- Atomic Chat
Upload FINDINGS.md with huggingface_hub
Browse files- FINDINGS.md +23 -1
FINDINGS.md
CHANGED
|
@@ -18,7 +18,29 @@ Numbers without a measurement behind them are marked as estimates.
|
|
| 18 |
Prefill never exceeding decode by much is the tell: this deployment is not
|
| 19 |
compute-bound on the GPU, it is dominated by whatever runs on the host.
|
| 20 |
|
| 21 |
-
##
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
|
| 23 |
~3 tok/s is the ceiling for this model on 2× A40, and the reason is not the one
|
| 24 |
that seems obvious.
|
|
|
|
| 18 |
Prefill never exceeding decode by much is the tell: this deployment is not
|
| 19 |
compute-bound on the GPU, it is dominated by whatever runs on the host.
|
| 20 |
|
| 21 |
+
## The answer: host vCPU, not VRAM
|
| 22 |
+
|
| 23 |
+
The same configuration, on the same model, using the same two GPUs — three
|
| 24 |
+
further GPUs sitting idle at 267 MiB — runs at **1.9× the speed** on a bigger
|
| 25 |
+
host:
|
| 26 |
+
|
| 27 |
+
| Pod | GPUs | vCPU | RAM | decode |
|
| 28 |
+
|---|---|---|---|---|
|
| 29 |
+
| `cumv30dk07dfdy` | 2× A40 | **16** | 93 GB | 2.31 / 2.98 / 2.88 |
|
| 30 |
+
| `okinf3ln9k8tsp` | 5× A40 | **41** | 234 GB | 4.86 / 5.28 / 5.44 / 5.64 |
|
| 31 |
+
|
| 32 |
+
Prefill moves even harder: 0.99 → 8.01 tok/s.
|
| 33 |
+
|
| 34 |
+
RunPod scales vCPU with GPU count, so renting more GPUs buys host parallelism as
|
| 35 |
+
much as it buys VRAM. Every placement experiment below kept 70–90 GB of weights
|
| 36 |
+
being processed by 16 saturated threads, which is why moving that work between
|
| 37 |
+
CPU and GPU changed nothing: the CPU side was the wall in all of them.
|
| 38 |
+
|
| 39 |
+
This is the mechanism the section below says was missing. It was found by
|
| 40 |
+
accident — a 5-GPU pod picked up the 2-GPU placement script before the guard
|
| 41 |
+
was published, and ran the *identical* configuration on a larger host.
|
| 42 |
+
|
| 43 |
+
## Why the placement experiments all looked the same
|
| 44 |
|
| 45 |
~3 tok/s is the ceiling for this model on 2× A40, and the reason is not the one
|
| 46 |
that seems obvious.
|