跳转至内容
  • 版块
  • 最新
  • 标签
  • 热门
  • 用户
  • 群组
皮肤
  • 浅色
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • 深色
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • 默认(LCZ-Blue)
  • 不使用皮肤
  • LCZ-Green
  • LCZ-Blue
  • LCZ-Black
折叠
品牌标识

抡锤者

首页 版块 标签 硬件 AI 广场
  1. 主页
  2. 版块
  3. LLM讨论区
  4. RTX 5090 Qwen3.8-27B dsh 全套實測:自寫推理引擎 NInfer × DeepSeek Harness × 開源編碼 agent 任務 —— 跑 13 小時真實編程任務的數據、6 個坑、以及「並發不是越大越快」

RTX 5090 Qwen3.8-27B dsh 全套實測:自寫推理引擎 NInfer × DeepSeek Harness × 開源編碼 agent 任務 —— 跑 13 小時真實編程任務的數據、6 個坑、以及「並發不是越大越快」

已定时 已固定 已锁定 已移动 LLM讨论区
rtx5090qwen-27bdsharness
13 帖子 6 发布者 823 浏览
  • 从旧到新
  • 从新到旧
  • 最多赞同
回复
  • 在新帖中回复
登录后回复
此主题已被删除。只有拥有主题管理权限的用户可以查看。
  • David ChenD 离线
    David ChenD 离线
    David Chen
    编写于 最后由 编辑
    #3

    竟然無人回應!你這太吊了,要不是我的ai掃到這文章,我也不知道有這麼好用
    安裝完,單卡跑的比我用llamacpp 雙5090跑tp還快!

    因為一張抵兩張,這下子又多一張5090可以利用了

    1 条回复 最后回复
    0
    • terryT 在线
      terryT 在线
      terry
      超级版主
      编写于 最后由 编辑
      #4

      大段文案最好配图,否则一概不会置顶。我看了下,应该是真人的数据,但我没硬件,无法知道真相。

      油管:https://www.youtube.com/@抡锤者

      S 1 条回复 最后回复
      0
      • S 离线
        S 离线
        sky
        德高望重
        编写于 最后由 sky 编辑
        #5

        啟動腳本︰

        # ninfer-serve.sh
        #!/bin/bash
        # NInfer host control: ninfer-serve.sh start | stop | status
        # Binary reports usage.prompt_tokens_details.cached_tokens (OpenAI chat-completions),
        # so DSH shows real KV prefix cache hit % instead of 0%.
        # Default = text-only at 262K context (full int8 KV pool, ~10.45 GiB).
        # Vision is optional: VISION=1 ninfer-serve.sh start switches to 192K context + --vision
        # with media buffers trimmed from defaults (1G+2G) to 256M+512M so the fixed Vision
        # buffers fit the ~10.4 GiB free after weights on the 5090 (at 262K they do not).
        # C=2: median agent prompt scales to ~86K at 192K; two frontiers (~172K) fit the pool,
        # so requests reuse their frontier (97-99% cached).
        set -u
        PORT=18080
        LOG=/home/user/ninfer_serve.log
        APP=/home/user/ninfer-build/apps/ninfer-serve
        ART=/home/user/ninfer_artifacts/qwen3_8_27b_nvfp4.ninfer
        
        if [ "${VISION:-0}" = "1" ]; then
          CTX=196608
          VISION_FLAGS="--vision --media-cache-mib 256 --media-live-mib 512"
        else
          CTX=262144
          VISION_FLAGS=""
        fi
        
        is_running() { pgrep -f "ninfer-serve.*qwen3_8_27b" >/dev/null 2>&1; }
        
        case "${1:-start}" in
          start)
            if is_running; then
              echo "already running (pid $(pgrep -of 'ninfer-serve.*qwen3_8_27b'))"
              exit 0
            fi
            export LD_LIBRARY_PATH=/home/user/ninfer_deps/prefix/usr/lib/x86_64-linux-gnu:${LD_LIBRARY_PATH:-}
            cd /home/eason || exit 1
            setsid nohup "$APP" "$ART" \
              --host 0.0.0.0 --port $PORT --device 0 \
              --max-context $CTX --prefill-chunk 1024 --kv-dtype int8 \
              $VISION_FLAGS \
              --max-concurrency 2 --pending-timeout-ms 600000 \
              --spec mtp --draft-tokens 3 --lm-head-draft >>"$LOG" 2>&1 &
            for i in $(seq 1 30); do
              sleep 5
              if curl -s http://127.0.0.1:$PORT/health | grep -q ok; then
                echo "NInfer up: pid $(pgrep -of 'ninfer-serve.*qwen3_8_27b'), ctx=$CTX vision=${VISION:-0}, log $LOG"
                exit 0
              fi
            done
            echo "server did not become healthy in 150s; last log lines:"; tail -5 "$LOG"; exit 1
            ;;
          stop)
            if ! is_running; then echo "not running"; exit 0; fi
            pkill -f "ninfer-serve.*qwen3_8_27b"
            for i in $(seq 1 10); do sleep 2; is_running || break; done
            if is_running; then echo "still running (try: fuser -k $PORT/tcp)"; exit 1; fi
            echo "stopped"
            ;;
          status)
            if is_running; then
              echo "running pid $(pgrep -of 'ninfer-serve.*qwen3_8_27b')"; curl -s http://127.0.0.1:$PORT/health; echo
            else
              echo "not running"
            fi
            ;;
          *) echo "usage: $0 start|stop|status (VISION=1 for vision mode)"; exit 2;;
        esac
        

        記得把{ip}換掉

        :: start.bat
        @echo off
        setlocal
        title NInfer Start
        
        rem --- self-elevate (netsh portproxy + firewall need admin) ---
        net session >nul 2>&1
        if %errorlevel% neq 0 (
          echo Requesting administrator rights...
          powershell -NoProfile -Command "Start-Process '%~f0' -Verb RunAs"
          exit /b
        )
        
        echo [1/4] Starting NInfer server in WSL Ubuntu (port 18080, MTP3 on)...
        wsl -d Ubuntu -- bash /mnt/c/Users/user/Desktop/ninfer-serve.sh start
        if errorlevel 1 goto :fail
        
        for /f "usebackq" %%i in (`wsl -d Ubuntu -- hostname -I`) do set WSL_IP=%%i
        echo [2/4] Repairing LAN portproxy: 0.0.0.0:18080 -> %WSL_IP%:18080 ...
        netsh interface portproxy delete v4tov4 listenaddress=0.0.0.0 listenport=18080 >nul 2>&1
        netsh interface portproxy add v4tov4 listenaddress=0.0.0.0 listenport=18080 connectaddress=%WSL_IP% connectport=18080
        
        echo [3/4] Ensuring firewall rule ...
        powershell -NoProfile -Command "if (-not (Get-NetFirewallRule -DisplayName 'NInfer serve 18080' -ErrorAction SilentlyContinue)) { New-NetFirewallRule -DisplayName 'NInfer serve 18080' -Direction Inbound -Protocol TCP -LocalPort 18080 -Action Allow -Profile Private,Public | Out-Null; Write-Host 'firewall rule added' } else { Write-Host 'firewall rule exists' }"
        
        echo [4/4] Verifying via LAN IP ...
        powershell -NoProfile -Command "try { $r = Invoke-RestMethod -Uri http://{ip}:18080/health -TimeoutSec 8; Write-Host ('LAN OK: ' + ($r | ConvertTo-Json -Compress)) } catch { Write-Host ('LAN FAIL: ' + $_.Exception.Message) }"
        
        echo.
        echo Done. Server URL for other devices: http://{ip}:18080
        echo Model qwen3.8-27b (nvfp4), MTP3 on, no vision, KV int8.
        pause
        exit /b 0
        
        :fail
        echo Start failed - check WSL log: wsl -d Ubuntu -- tail -20 /home/eason/ninfer_serve.log
        pause
        
        1 条回复 最后回复
        0
        • terryT terry

          大段文案最好配图,否则一概不会置顶。我看了下,应该是真人的数据,但我没硬件,无法知道真相。

          S 离线
          S 离线
          sky
          德高望重
          编写于 最后由 sky 编辑
          #6

          @terry 加圖了
          昨天原本打算用dsh的插件來配圖 但我把dsh升級到rc8就用不了

          1 条回复 最后回复
          0
          • S 离线
            S 离线
            sky
            德高望重
            编写于 最后由 编辑
            #7

            裝到了

            4a627076-54c0-4d8f-bd4b-a4709a2e7517-image.jpeg

            1 条回复 最后回复
            0
            • ,terryT terry 固定了此主题
            • David ChenD 离线
              David ChenD 离线
              David Chen
              编写于 最后由 编辑
              #8
              此主題已被删除!
              1 条回复 最后回复
              0
              • xiaopbroX 离线
                xiaopbroX 离线
                xiaopbro
                编写于 最后由 编辑
                #9

                学到了,现在就差一张5090了

                1 条回复 最后回复
                1
                • chenさんC 离线
                  chenさんC 离线
                  chenさん
                  编写于 最后由 编辑
                  #10

                  学到了。不过我是5080+5090,都走的PCIE5 X8,这样的话能不能按层拆分?或者kv塞在5080上?这样模型可以量化程度更低、更高的上下文吗

                  1 条回复 最后回复
                  0
                  • S 离线
                    S 离线
                    sky
                    德高望重
                    编写于 最后由 编辑
                    #11

                    @chenさん 我試了讓dsh自己改engine把kv放5080 可惜失敗了

                    1 条回复 最后回复
                    0
                    • S 离线
                      S 离线
                      sky
                      德高望重
                      编写于 最后由 编辑
                      #12

                      然後我發現了如果對Qwen 3.8 27b說趕時間會進入「專注」模式

                      1 条回复 最后回复
                      0
                      • ,系统 取消固定了此主题
                      • S 离线
                        S 离线
                        sky
                        德高望重
                        编写于 最后由 编辑
                        #13

                        @terry 我找到4090版本 可以試試
                        Qwen 3.8 27b 128k 開MTP3 有77.5 tok/s
                        https://github.com/sergiuszm/ninfer-4090

                        1 条回复 最后回复
                        0

                        你好!看起来您对这段对话很感兴趣,但您还没有一个账号。

                        厌倦了每次访问都刷到同样的帖子?您注册账号后,您每次返回时都能精准定位到您上次浏览的位置,并可选择接收新回复通知(通过邮件或推送通知)。您还能收藏书签、为帖子顶,向社区成员表达您的欣赏。

                        有了你的建议,这篇帖子会更精彩哦 💗

                        注册 登录
                        回复
                        • 在新帖中回复
                        登录后回复
                        • 从旧到新
                        • 从新到旧
                        • 最多赞同


                        • 登录

                        • 登录或注册以进行搜索。
                        • 第一个帖子
                          最后一个帖子
                        0
                        • 版块
                        • 最新
                        • 标签
                        • 热门
                        • 用户
                        • 群组