TL;DR: 用 Qwen3.5-9B(Q4_K)在單張 16GB AMD GPU 上跑本地 LLM-as-a-Verifier,每次 code comparison 約 0.5–2 秒,cache hit rate 66%,正確程式碼穩定給 1.0 分,有 bug 的給 0.0–0.14 分。16GB 跑 9B 模型綽綽有餘,還有空間跑其他服務。 這篇是實測續篇,前兩篇分別講了 架構設計 和 Docker 封裝 。前兩篇講的是「做什麼」跟「怎麼做」,這篇來量「到底多快」。 1. 測試環境 在一台 homelab Linux(CachyOS)上跑的: 項目 內容 GPU AMD 16GB(15.9 GiB)via ROCm 模型 Qwen3.5-9B(8.95B 參數,Q4_K ~5.7GB GGUF) 後端 llama.cpp(llama-server,ROCm HIP build) Verifier Docker container(llm-verifier),port 8010 模型 VRAM ~10.2 GB(模型本身 + 動態 KV cache) GPU 使用率 78% 系統 RAM 62 GB;使用 27 GB(swap 用了 9.3 GB) Context window 131,072 tokens MIN_SCORE 0.8 後端跑在另一台機器上,走 local Gigabit 網路連線。 2. Verifier 在幹嘛 docker-llm-as-a-verifier 包裝了 LLM-as-a-Verifier 這個研究套件,讀取 token-level log probability 來算連續分數,不是簡單的 yes/no 判斷。 Container 開了 7 個 HTTP endpoint: Endpoint Method 用途 /health GET 健康檢查 /v1/compare POST 兩組答案比對評分 /v1/select POST Best-of-N 選最佳 /v1/track POST Agent 軌跡分數追蹤 /v1/directed POST 導...

一、Install Modipy (Ubuntu)
Udoo X86 use Ubuntu 17.04 (Zesty Zapus)
apt update apt install mopidy mopidy-spotify
二、Install Snapcast (Ubuntu)
Download From: https://github.com/badaix/snapcast/releases/latest

Get snapserver_0.11.1_amd64.deb
wget https://github.com/badaix/snapcast/releases/download/v0.11.1/snapserver_0.11.1_amd64.deb dpkg -i snapserver_0.11.1_amd64.deb
三、Edit Mopidy Config file
sudo vi /etc/mopidy/mopidy.conf
Add This
[spotify] username = spotify premium account username password = spotify premium account password client_id = client_id you got from mopidy.com client_secret = client_secret you got from mopidy.com enabled = true bitrate = 320 [audio] output = audioresample ! audioconvert ! audio/x-raw,rate=48000,channels=2,format=S16LE ! wavenc ! filesink location=/tmp/mopidyfifo mixer_volume = 100
Client ID and Client Secret get from: https://www.mopidy.com/authenticate/#spotify
四、Edit Snapcast Config file
sudo vi /etc/default/snapserver
START_SNAPSERVER=true USER_OPTS="--user snapserver:snapserver" SNAPSERVER_OPTS="-d -s pipe:///tmp/mopidyfifo?name=mopidy"
五、服務重啟
sudo service mopidy restart sudo service snapserver restart
六、Mopidy Web 介面推薦
https://github.com/jaedb/Iris
https://github.com/dirkgroenen/mopidy-mopify
留言
張貼留言
回應不用錢,請多多益善!懶得寫字按個讚也是相當感謝!