vk-e4b-model / start.sh
openfree's picture
Upload start.sh with huggingface_hub
5fdd854 verified
Raw History Blame Contribute Delete
640 Bytes
#!/bin/bash
# ViKernel model server: Gemma 4 E4B (ViKernel tool LoRA, Q4_0) on CPU, OpenAI-compatible on :7860.
# Secrets: HF_TOKEN (read private model), LLM_API_KEY (callers must send Authorization: Bearer <key>)
set -e
M=$HOME/m; mkdir -p $M
python3 -c "from huggingface_hub import hf_hub_download as d; print(d('VIDraft/ViKernel-Gemma4-E4B-tool','vk-e4b-tool-Q4_0.gguf',local_dir='$M'))"
exec /app/llama-server -m $M/vk-e4b-tool-Q4_0.gguf --host 0.0.0.0 --port 7860 -c 8192 -t $(nproc) \
--jinja --reasoning-budget 0 --chat-template-kwargs '{"enable_thinking":false}' --alias gemma-4-e4b-vikernel --api-key "$LLM_API_KEY" --parallel 2