跳转至内容
  • 版块
  • 最新
  • 标签
  • 热门
  • 用户
  • 群组
皮肤
  • 浅色
  • 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 PRO 5000(或其他48GB显存)的Qwen3.8-27B-FP8配置交流(prefill 5000+t/s,decode 60+t/s)

RTX PRO 5000(或其他48GB显存)的Qwen3.8-27B-FP8配置交流(prefill 5000+t/s,decode 60+t/s)

已定时 已固定 已锁定 已移动 LLM讨论区
sg-langrtxpro5000qwen-27b
12 帖子 7 发布者 559 浏览 2 关注中
  • 从旧到新
  • 从新到旧
  • 最多赞同
回复
  • 在新帖中回复
登录后回复
此主题已被删除。只有拥有主题管理权限的用户可以查看。
  • C 离线
    C 离线
    Che
    德高望重
    编写于 最后由 编辑
    #3

    并发数用 --max-mamba-cache-size 控制比 --mamba-full-memory-ratio 更好。

    --mamba-radix-cache-strategy extra_buffer_lazy 时,--max-mamba-cache-size = 并发数 x 4

    另外,--speculative-num-steps 对 MTP 的影响可能比 --speculative-num-draft-tokens 更大。

    用户名违规用 1 条回复 最后回复
    0
    • williamlouisW 在线
      williamlouisW 在线
      williamlouis
      超级版主
      编写于 最后由 编辑
      #4

      不错的分享。关注下。准备抄作业。

      个人主页:xlkj.org Telegram https://t.me/xlkjorg

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

        我感觉得好好研究下4比特量化版本了,多空出点显存,开几个会话用😂

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

        1 条回复 最后回复
        0
        • stxpnetS 离线
          stxpnetS 离线
          stxpnet
          超凡大师
          编写于 最后由 编辑
          #6

          ef3816fb-91f6-43aa-9166-4f0348b93872-image.jpeg
          3090 遗憾离场【注:该图由27B模型独立上网调研生成】

          26-08-19
          双卡3090(8x8x无nvlink,p2p驱动) +Sglang+qwen 3.8 27B awq模型 [功耗异常弃用]
          8-20 用vllm 0.26+ Qwen3.8-27B-SmoothQuant-W8A8-INT8 200K上下文 ~50t/s

          1 条回复 最后回复
          1
          • ,系统 取消固定了此主题
          • 用户名违规用 离线
            用户名违规用 离线
            用户名违规
            德高望重
            编写于 最后由 用户名违规 编辑
            #7

            你的卡全量prefill频繁吗?

            1 条回复 最后回复
            0
            • C Che

              并发数用 --max-mamba-cache-size 控制比 --mamba-full-memory-ratio 更好。

              --mamba-radix-cache-strategy extra_buffer_lazy 时,--max-mamba-cache-size = 并发数 x 4

              另外,--speculative-num-steps 对 MTP 的影响可能比 --speculative-num-draft-tokens 更大。

              用户名违规用 离线
              用户名违规用 离线
              用户名违规
              德高望重
              编写于 最后由 编辑
              #8

              @Che 明白人。弱弱问一下prefill在单用户容易全量prefill 这个咋解决呢?

              C 1 条回复 最后回复
              0
              • 用户名违规用 用户名违规

                @Che 明白人。弱弱问一下prefill在单用户容易全量prefill 这个咋解决呢?

                C 离线
                C 离线
                Che
                德高望重
                编写于 最后由 编辑
                #9

                @用户名违规 怎么会全量 prefill 呢?把三级缓存都打开试下?

                export SGLANG_HICACHE_FILE_BACKEND_STORAGE_DIR="/path/to/kvcache/folder"
                
                  --mamba-radix-cache-strategy extra_buffer \
                  --enable-hierarchical-cache \
                  --hicache-size 16 \
                  --hicache-storage-backend file \
                  --schedule-policy lpm \
                  --enable-session-radix-cache \
                  --enable-metrics \
                

                hicache-size 根据内存大小设置,或者用 hicache-ratio

                用户名违规用 1 条回复 最后回复
                0
                • C Che

                  @用户名违规 怎么会全量 prefill 呢?把三级缓存都打开试下?

                  export SGLANG_HICACHE_FILE_BACKEND_STORAGE_DIR="/path/to/kvcache/folder"
                  
                    --mamba-radix-cache-strategy extra_buffer \
                    --enable-hierarchical-cache \
                    --hicache-size 16 \
                    --hicache-storage-backend file \
                    --schedule-policy lpm \
                    --enable-session-radix-cache \
                    --enable-metrics \
                  

                  hicache-size 根据内存大小设置,或者用 hicache-ratio

                  用户名违规用 离线
                  用户名违规用 离线
                  用户名违规
                  德高望重
                  编写于 最后由 terry 编辑
                  #10

                  @Che 二级缓存我已经开了,但是从来不落盘到 RAM,我都 emo 了。

                  你打开之后会正常落盘吗?我这边直接就是全量 Prefill,十分难受。

                  目前的 Docker Compose 配置如下:

                  services:
                    sglang:
                      image: lmsysorg/sglang:dev
                      container_name: sglang-server
                      restart: unless-stopped
                      runtime: nvidia
                  
                      cap_add:
                        - SYS_NICE
                        - SYS_PTRACE
                  
                      environment:
                        - NVIDIA_VISIBLE_DEVICES=0
                        - CUDA_DEVICE_ORDER=PCI_BUS_ID
                        - SGLANG_USE_IPC_POOL_HANDLE_CACHE=0
                        - PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True
                        - TZ=Asia/Shanghai
                  
                      volumes:
                        - /mnt/x8/Qmodels:/models:ro
                        - /mnt/480/docker/sglang/cache/torch_compile:/root/.cache/torch_compile
                        - /mnt/480/docker/sglang/cache/flash_attn_cute_cache:/root/.cache/flash_attn_cute_cache
                  
                      command: >
                        sglang serve
                        --model-path /models/Qwen3.8-27B
                        --host 0.0.0.0
                        --port 30000
                        --trust-remote-code
                        --attention-backend flashinfer
                        --mamba-backend flashinfer
                        --max-mamba-cache-size 15
                        --mamba-max-states-per-path 8
                        --kv-cache-dtype fp8_e4m3
                        --mem-fraction-static 0.94
                        --max-running-requests 3
                        --cuda-graph-bs-decode 1 2 3
                        --num-continuous-decode-steps 4
                        --prefill-max-requests 1
                        --schedule-policy lpm
                        --enable-session-radix-cache
                        --tool-call-parser qwen3_coder
                        --reasoning-parser qwen3
                        --chunked-prefill-size 2048
                        --max-prefill-tokens 2048
                        --disable-prefill-cuda-graph
                        --enable-fused-qk-norm-rope
                        --enable-cudagraph-gc
                        --log-level info
                        --uvicorn-access-log-exclude-prefixes /
                        --decode-log-interval 120
                        --allow-auto-truncate
                        --enable-cache-report
                  
                      # 删除 --linear-attn-backend triton
                      # 其他参数保持不变
                  
                      shm_size: '16gb'
                      network_mode: host
                  
                      logging:
                        driver: json-file
                        options:
                          max-size: "100m"
                          max-file: "3"
                  
                      # --enable-cache-report
                      # --enable-hierarchical-cache
                      # --hicache-ratio 2
                      # --hicache-io-backend kernel
                      # --hicache-mem-layout page_first
                      # --hicache-write-policy write_through
                  

                  之前尝试的二级缓存相关参数是:

                  --enable-hierarchical-cache
                  --hicache-ratio 2
                  --hicache-io-backend kernel
                  --hicache-mem-layout page_first
                  --hicache-write-policy write_through
                  

                  但是实际运行时,二级缓存始终没有正常落到 RAM。再次请求时依然会进行全量 Prefill。

                  我看了一遍这些参数,暂时也没发现明显的问题。不知道是当前 sglang:dev 的问题,还是 Qwen3.8-27B、Mamba/FlashInfer 这套组合存在兼容性问题。

                  有正常使用 SGLang Hierarchical Cache 的朋友可以帮忙看看吗?尤其是开启之后,RAM 二级缓存是否能够正常命中?

                  terryT 1 条回复 最后回复
                  0
                  • 用户名违规用 用户名违规

                    @Che 二级缓存我已经开了,但是从来不落盘到 RAM,我都 emo 了。

                    你打开之后会正常落盘吗?我这边直接就是全量 Prefill,十分难受。

                    目前的 Docker Compose 配置如下:

                    services:
                      sglang:
                        image: lmsysorg/sglang:dev
                        container_name: sglang-server
                        restart: unless-stopped
                        runtime: nvidia
                    
                        cap_add:
                          - SYS_NICE
                          - SYS_PTRACE
                    
                        environment:
                          - NVIDIA_VISIBLE_DEVICES=0
                          - CUDA_DEVICE_ORDER=PCI_BUS_ID
                          - SGLANG_USE_IPC_POOL_HANDLE_CACHE=0
                          - PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True
                          - TZ=Asia/Shanghai
                    
                        volumes:
                          - /mnt/x8/Qmodels:/models:ro
                          - /mnt/480/docker/sglang/cache/torch_compile:/root/.cache/torch_compile
                          - /mnt/480/docker/sglang/cache/flash_attn_cute_cache:/root/.cache/flash_attn_cute_cache
                    
                        command: >
                          sglang serve
                          --model-path /models/Qwen3.8-27B
                          --host 0.0.0.0
                          --port 30000
                          --trust-remote-code
                          --attention-backend flashinfer
                          --mamba-backend flashinfer
                          --max-mamba-cache-size 15
                          --mamba-max-states-per-path 8
                          --kv-cache-dtype fp8_e4m3
                          --mem-fraction-static 0.94
                          --max-running-requests 3
                          --cuda-graph-bs-decode 1 2 3
                          --num-continuous-decode-steps 4
                          --prefill-max-requests 1
                          --schedule-policy lpm
                          --enable-session-radix-cache
                          --tool-call-parser qwen3_coder
                          --reasoning-parser qwen3
                          --chunked-prefill-size 2048
                          --max-prefill-tokens 2048
                          --disable-prefill-cuda-graph
                          --enable-fused-qk-norm-rope
                          --enable-cudagraph-gc
                          --log-level info
                          --uvicorn-access-log-exclude-prefixes /
                          --decode-log-interval 120
                          --allow-auto-truncate
                          --enable-cache-report
                    
                        # 删除 --linear-attn-backend triton
                        # 其他参数保持不变
                    
                        shm_size: '16gb'
                        network_mode: host
                    
                        logging:
                          driver: json-file
                          options:
                            max-size: "100m"
                            max-file: "3"
                    
                        # --enable-cache-report
                        # --enable-hierarchical-cache
                        # --hicache-ratio 2
                        # --hicache-io-backend kernel
                        # --hicache-mem-layout page_first
                        # --hicache-write-policy write_through
                    

                    之前尝试的二级缓存相关参数是:

                    --enable-hierarchical-cache
                    --hicache-ratio 2
                    --hicache-io-backend kernel
                    --hicache-mem-layout page_first
                    --hicache-write-policy write_through
                    

                    但是实际运行时,二级缓存始终没有正常落到 RAM。再次请求时依然会进行全量 Prefill。

                    我看了一遍这些参数,暂时也没发现明显的问题。不知道是当前 sglang:dev 的问题,还是 Qwen3.8-27B、Mamba/FlashInfer 这套组合存在兼容性问题。

                    有正常使用 SGLang Hierarchical Cache 的朋友可以帮忙看看吗?尤其是开启之后,RAM 二级缓存是否能够正常命中?

                    terryT 离线
                    terryT 离线
                    terry
                    超级版主
                    编写于 最后由 terry 编辑
                    #11

                    @用户名违规 我弟你发帖整理下格式,你的帖子怎么经常看不下去呢?你让AI整理下格式。我给你整理了下,下不为例。

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

                    用户名违规用 1 条回复 最后回复
                    0
                    • terryT terry

                      @用户名违规 我弟你发帖整理下格式,你的帖子怎么经常看不下去呢?你让AI整理下格式。我给你整理了下,下不为例。

                      用户名违规用 离线
                      用户名违规用 离线
                      用户名违规
                      德高望重
                      编写于 最后由 编辑
                      #12

                      @terry 👏 👏 ,不过找到原因了,hermes 会自动总结技能就会打断sglang的 kvcache缓存。。

                      1 条回复 最后回复
                      0

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

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

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

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


                      • 登录

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