Instructions to use denjhang/Spark-X2.5-4B-Therapy-EfficientThink-SFT 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 denjhang/Spark-X2.5-4B-Therapy-EfficientThink-SFT 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 denjhang/Spark-X2.5-4B-Therapy-EfficientThink-SFT:Q8_0 # Run inference directly in the terminal: llama cli -hf denjhang/Spark-X2.5-4B-Therapy-EfficientThink-SFT:Q8_0
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf denjhang/Spark-X2.5-4B-Therapy-EfficientThink-SFT:Q8_0 # Run inference directly in the terminal: llama cli -hf denjhang/Spark-X2.5-4B-Therapy-EfficientThink-SFT:Q8_0
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 denjhang/Spark-X2.5-4B-Therapy-EfficientThink-SFT:Q8_0 # Run inference directly in the terminal: ./build/bin/llama cli -hf denjhang/Spark-X2.5-4B-Therapy-EfficientThink-SFT:Q8_0
Use Docker
docker model run hf.co/denjhang/Spark-X2.5-4B-Therapy-EfficientThink-SFT:Q8_0
- Llama new
- LM Studio
- Jan
- Ollama
How to use denjhang/Spark-X2.5-4B-Therapy-EfficientThink-SFT with Ollama:
ollama run hf.co/denjhang/Spark-X2.5-4B-Therapy-EfficientThink-SFT:Q8_0
- Unsloth Desktop
- Pi
How to use denjhang/Spark-X2.5-4B-Therapy-EfficientThink-SFT with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf denjhang/Spark-X2.5-4B-Therapy-EfficientThink-SFT:Q8_0
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": "denjhang/Spark-X2.5-4B-Therapy-EfficientThink-SFT:Q8_0" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use denjhang/Spark-X2.5-4B-Therapy-EfficientThink-SFT with Docker Model Runner:
docker model run hf.co/denjhang/Spark-X2.5-4B-Therapy-EfficientThink-SFT:Q8_0
- Lemonade
How to use denjhang/Spark-X2.5-4B-Therapy-EfficientThink-SFT with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull denjhang/Spark-X2.5-4B-Therapy-EfficientThink-SFT:Q8_0
Run and chat with the model
lemonade run user.Spark-X2.5-4B-Therapy-EfficientThink-SFT-Q8_0
List all available models
lemonade list
- Hermes Agent
How to use denjhang/Spark-X2.5-4B-Therapy-EfficientThink-SFT with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf denjhang/Spark-X2.5-4B-Therapy-EfficientThink-SFT:Q8_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:9931/v1 hermes config set model.default denjhang/Spark-X2.5-4B-Therapy-EfficientThink-SFT:Q8_0
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use denjhang/Spark-X2.5-4B-Therapy-EfficientThink-SFT with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf denjhang/Spark-X2.5-4B-Therapy-EfficientThink-SFT:Q8_0
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 "denjhang/Spark-X2.5-4B-Therapy-EfficientThink-SFT:Q8_0" \ --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"
Spark-X2.5-4B Therapy · EfficientThink SFT(v1,缺陷公开)
给 Spark-X2.5-4B 的"赛博治疗"第一针:部分有效,未根治。本卡如实披露所有缺陷,请按需取用。 方法论致敬 nerkyor 的 Qwen3.8-27B EfficientThink 系列。
⚠️ 先看缺陷(实测结论,2026-10-10)
- 长任务规划仍然死循环:让它写一个飞机大战游戏,思考 8-10 分钟后一个字正文都写不出来——长链规划的病灶未治好
- 治好的只是:快问快答、极简单任务(脏上下文下 2 秒调工具)、真实会话中的部分重病例(见下表)
- 验收重放的 19 例中 12 例功能治愈、5-7 例残留长思考;v2(加大剂量+DPO)尝试反而方差回退,已弃用
- 结论:这是一个"部分缓解"的实验版本,不是成品。生产使用请自行评估,欢迎在它基础上继续调教
治了什么(背景)
原版 Spark-X2.5-4B 在真实 harness 长会话中:单回合思考 30K+ token、烧 550+ 秒、撞 32K 上限后零正文输出。干净指令正常、脏上下文爆炸。
本模型用 19 个真实 agent 会话病灶 + 教师模型(Qwen3.8-Flash-Next 125B)重做轨迹,小剂量 SFT(LoRA r32,56 样本,3 epoch)训练。
验收数据(19 个真实病灶重放,完整披露)
| 病例类型 | 原版 | 治疗版 | 判定 |
|---|---|---|---|
| 重度(566s/32K输出/零正文) | 549-570s | 4-25s | ✅ 12/19 治愈 |
| 平均回合耗时 | 249s | 67s (3.7x) | 部分 |
| 脏上下文+读图指令 | — | 2.2s 秒调工具 | ✅ |
| 长任务规划(写飞机大战) | 死循环 | 仍死循环(8-10min 零输出) | ❌ 未治 |
| 严格死循环 | 常见 | 重放中 0,新任务仍会触发 | ⚠️ 部分 |
已知失败原因(供接手者参考)
- 训练序列被限制在 3K token(Windows TDR 看门狗掐杀长 kernel),最长的重病灶样本没进训练集——长任务死循环的病根没吃到药
- 56 样本的小剂量对"长程规划"这种深层行为改变不足
- 下一步:TdrDelay 注册表解锁 8K 序列 + DPO 偏好对(数据已备好),或以此为底座继续调
使用
llama-server -m spark-therapy-q8_0.gguf --jinja -ngl 99 -c 65536 -fa on --temp 0.6 --top-p 0.95 --top-k 20
需要支持 spark2_5 架构的 llama.cpp(2026-10 后主线)。Q8_0 单档,低比特未验证(可能复发死循环)。
致谢
- XHToken · 好底座
- Merkyor · 剂量三定律与"诚实披露失败"的榜样
- Qwen3.8-Flash-Next · 本地免费教师
- Downloads last month
- 21
8-bit