Instructions to use tchbcb/nqwen27 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 tchbcb/nqwen27 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 tchbcb/nqwen27:IQ2_XS # Run inference directly in the terminal: llama cli -hf tchbcb/nqwen27:IQ2_XS
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf tchbcb/nqwen27:IQ2_XS # Run inference directly in the terminal: llama cli -hf tchbcb/nqwen27:IQ2_XS
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf tchbcb/nqwen27:IQ2_XS # Run inference directly in the terminal: ./build/bin/llama cli -hf tchbcb/nqwen27:IQ2_XS
Use Docker
docker model run hf.co/tchbcb/nqwen27:IQ2_XS
- Llama new
- LM Studio
- Jan
- Ollama
How to use tchbcb/nqwen27 with Ollama:
ollama run hf.co/tchbcb/nqwen27:IQ2_XS
- Unsloth Desktop
- Pi
How to use tchbcb/nqwen27 with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf tchbcb/nqwen27:IQ2_XS
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:9931/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "tchbcb/nqwen27:IQ2_XS" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use tchbcb/nqwen27 with Docker Model Runner:
docker model run hf.co/tchbcb/nqwen27:IQ2_XS
- Lemonade
How to use tchbcb/nqwen27 with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull tchbcb/nqwen27:IQ2_XS
Run and chat with the model
lemonade run user.nqwen27-IQ2_XS
List all available models
lemonade list
- Hermes Agent
How to use tchbcb/nqwen27 with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf tchbcb/nqwen27:IQ2_XS
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:9931/v1 hermes config set model.default tchbcb/nqwen27:IQ2_XS
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use tchbcb/nqwen27 with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf tchbcb/nqwen27:IQ2_XS
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:9931/v1 \ --custom-model-id "tchbcb/nqwen27:IQ2_XS" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
128k context upgrade: KV q8_0/q4_0 + FA + auto fallback (rescue_restart.sh)
Browse files- rescue_restart.sh +21 -0
rescue_restart.sh
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
# 现场救援: 重启 128k API + aitun 公网隧道 (机器还活着、但服务/隧道掉线时用)
|
| 3 |
+
# 用法: AITUN_API_KEY=<你的aitun_key> bash rescue_restart.sh
|
| 4 |
+
# 依赖: 同目录下 start_server.sh / start_tunnel.sh
|
| 5 |
+
set -uo pipefail
|
| 6 |
+
cd "$(dirname "$0")"
|
| 7 |
+
PORT=${PORT:-8080}
|
| 8 |
+
|
| 9 |
+
echo "===== [1/2] 重启 llama-server @ CTX=${CTX:-131072} (128k) ====="
|
| 10 |
+
CTX="${CTX:-131072}" bash start_server.sh || { echo "server 启动失败, 查看 /root/llama_server.log"; exit 1; }
|
| 11 |
+
|
| 12 |
+
echo "===== [2/2] aitun 公网隧道 ====="
|
| 13 |
+
if [ -n "${AITUN_API_KEY:-}" ]; then
|
| 14 |
+
AITUN_API_KEY="$AITUN_API_KEY" PORT="$PORT" bash start_tunnel.sh
|
| 15 |
+
else
|
| 16 |
+
echo "未设置 AITUN_API_KEY, 跳过隧道 (本机 API 可用: http://127.0.0.1:$PORT)"
|
| 17 |
+
fi
|
| 18 |
+
|
| 19 |
+
echo "===== 验证 ====="
|
| 20 |
+
curl -s -m 5 -H "Authorization: Bearer ${API_KEY:-1234}" "http://127.0.0.1:$PORT/v1/models" | head -c 300; echo
|
| 21 |
+
echo "完成。公网地址见 /root/aitun_llm.log 中的 https://<子域名>.aitun.cc"
|