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
pont : signature_delta aussi au passage thinking->texte
Browse files- anthropic_proxy.py +4 -0
anthropic_proxy.py
CHANGED
|
@@ -601,6 +601,10 @@ async def stream_anthropic(payload: dict, req_model: str):
|
|
| 601 |
|
| 602 |
if delta.get("content"):
|
| 603 |
if think_open:
|
|
|
|
|
|
|
|
|
|
|
|
|
| 604 |
yield _sse("content_block_stop",
|
| 605 |
{"type": "content_block_stop", "index": idx})
|
| 606 |
think_open = False
|
|
|
|
| 601 |
|
| 602 |
if delta.get("content"):
|
| 603 |
if think_open:
|
| 604 |
+
yield _sse("content_block_delta", {
|
| 605 |
+
"type": "content_block_delta", "index": idx,
|
| 606 |
+
"delta": {"type": "signature_delta",
|
| 607 |
+
"signature": "vllm-" + uuid.uuid4().hex[:16]}})
|
| 608 |
yield _sse("content_block_stop",
|
| 609 |
{"type": "content_block_stop", "index": idx})
|
| 610 |
think_open = False
|