跳到主要內容

發表文章

目前顯示的是 5月 3, 2015的文章

16GB ROCm 本地 LLM-as-a-Verifier 實測數據:Qwen3.5-9B 跑起來到底多快

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 導...

Gentoo Portage 改用 git 同步

Gentoo Portage 改用 git 同步 安裝 portage-2.2.16 以上版本 $ sudo emerge \>=sys-apps/portage-2.2.16 修改 repos.conf $ sudo mkdir -p /etc/portage/repos.conf $ sudo cat > /etc/portage/repos.conf/gentoo.conf << EOF [DEFAULT] main-repo = gentoo [gentoo] location = /usr/portage sync-type = git sync-uri = https://github.com/gentoo/gentoo-portage-rsync-mirror auto-sync = true EOF 從 git 同步 portage,並更新 eix db $ sudo rm -rf /usr/portage $ sudo eix-sync Ref:  Gentoo Wiki: Project:Portage/Sync

FON2100E 刷 OpenWrt 設定公開與私有 Wifi

OpenWrt 設定雙 Wifi,公開 SSID 與私有 SSID 切開。 my /etc/config/network config 'interface' 'loopback' option 'ifname' 'lo' option 'proto' 'static' option 'ipaddr' '127.0.0.1' option 'netmask' '255.0.0.0' config 'interface' 'lan' option 'proto' 'static' option 'ipaddr' '192.168.100.1' option 'netmask' '255.255.255.0' option 'ifname' 'ath0' option 'defaultroute' '0' option 'peerdns' '0' config 'interface' 'wan' option 'proto' 'dhcp' option 'ifname' 'eth0' option 'defaultroute' '0' option 'peerdns' '0' config 'interface' 'lan2' option 'proto' 'static' option 'ipaddr' '192.168.200.1' option 'netmask' '255.255.255.0' option 'defaultroute' '0' option ...

Redboot 刷 FON2100E

老東西,回味一下。 Into RedBoot Install and Prepare tftpserver $ brew install Caskroom/cask/tftpserver RJ45 Connect, Setting Ethernet Card IP as 192.168.1.xx/24 $ sudo ifconfig en0 192.168.1.2/24 up Install fping first, In Mac OS:  $ brew install fping Unplug and Replug the FON2100E power, and run this script in terminal to access redboot #!/usr/bin/env bash while true; do fping -t 200 192.168.1.254 && break; done; sleep 5;\ echo -e "\x3" | nc -w 1 -vvv 192.168.1.254 9000 ; \ telnet 192.168.1.254 9000 FON2100E DD-WRT RedBoot> ip_address -l 192.168.1.254/24 -h 192.168.1.2 RedBoot> fis init RedBoot> load -r -b 0x80041000 linux.bin RedBoot> fis create linux RedBoot> fconfig -l -n RedBoot> fconfig boot_script_data >> fis load -l linux >> exec RedBoot> reset FON2100E Gargoyle RedBoot> ip_address -l 192.168.1.254/24 -h 192.168.1.2 RedBoot> fis init RedBoot> load -r -b %{FREEMEMLO} gargoyle_1.4.7-atheros-vmlinux.lzma Red...