GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - zhangsongyang/Qwen3.8-27B-ROCm

BranchesTags
Open more actions menu

Latest commit

 

History

1 Commit
1 Commit

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
benchmarks
benchmarks
 
 
docs
docs
 
 
envs
envs
 
 
scripts
scripts
 
 
src/qwen38_rocm
src/qwen38_rocm
 
 
tests
tests
 
 
.editorconfig
.editorconfig
 
 
.gitignore
.gitignore
 
 
CITATION.cff
CITATION.cff
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
LICENSE
LICENSE
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
SECURITY.md
SECURITY.md
 
 
pyproject.toml
pyproject.toml
 
 

Repository files navigation

Qwen3.8-27B-ROCm

Qwen3.8-27B(BF16 · 多模态)在 AMD Radeon GPU(ROCm/gfx1100)上的开源部署与全量验证工程 · 推理引擎 vLLM

License ROCm vLLM GPU Tests

在两张 AMD Radeon Pro W7900D(48 GB × 2,gfx1100)上以 BF16 精度部署 Qwen3.8-27B, 完成 功能 / 性能 / 精度 三层全量验证,所有结果可复现、可审计。


模型与硬件

项 值
模型 Qwen/Qwen3.8-27B(ModelScope)
规格 稠密 27B · BF16 · 18 分片共 55.6 GB · 256K 上下文
架构 多模态(图/视频)· 混合注意力(16 full + 48 linear)· MTP
推理引擎 vLLM 0.28.0+rocm723(AMD 官方 ROCm 轮子,wheels.vllm.ai)
硬件 2 × AMD Radeon Pro W7900D(gfx1100,48 GB,96 GB 合计)· EPYC 9334
软件 ROCm 7.2.1 · Ubuntu 24.04 · Python 3.12

快速开始

make setup       # 创建 venv 并安装 vLLM ROCm + 本项目
make download    # 下载模型权重到 $MODEL_HOME(默认 /workspace/models)
make serve       # 启动 vLLM: TP=2, BF16, OpenAI 兼容 API @ :8000
make test        # 全量功能验证矩阵(pytest)
make bench       # 性能基准(TTFT/TPOT/吞吐),结果落 benchmarks/results/
make lint        # ruff 检查

冒烟一行流:

curl http://127.0.0.1:8000/v1/chat/completions -H 'Content-Type: application/json' -d '{
  "model": "Qwen3.8-27B",
  "messages": [{"role": "user", "content": "用一句话介绍你自己"}]
}'

验证矩阵

层 覆盖 结果
功能(9 组 pytest) 环境指纹 / 引擎健康 / 文本生成正确性(中英·代码·数学·确定性·reasoning_effort)/ 流式一致性 / 多模态(合成图像 QA+视频)/ 长上下文分级(8K→256K)/ 并发(1/8/32)/ TP2 双卡占用 / transformers 交叉对比 见 验证报告
性能 vLLM bench_serving:并发 1/4/16/32 × 输入 1K/4K × 输出 512/2K 见 基准表
精度 lm-eval:MMLU / GSM8K 采样 + 多模态 VQA 见 基准表

基准

场景(并发×输入×输出) TTFT p50 (s) TTFT p95 (s) TPOT p50 (ms) 吞吐 (tok/s)
cc1_isl1000_osl512 0.81 0.81 50 19.5
cc1_isl1000_osl2048 0.25 0.25 54 18.6
cc1_isl4000_osl512 2.23 2.23 65 14.5
cc1_isl4000_osl2048 0.28 0.28 68 14.6
cc4_isl1000_osl512 2.14 2.37 57 65.9
cc4_isl1000_osl2048 0.92 0.92 60 65.8
cc4_isl4000_osl512 4.68 5.81 78 45.8
cc4_isl4000_osl2048 1.03 1.03 78 51.1
cc16_isl1000_osl512 4.85 8.83 102 143.5
cc16_isl1000_osl2048 2.19 3.21 101 156.9
cc16_isl4000_osl512 20.25 36.73 151 82.8
cc16_isl4000_osl2048 2.89 3.62 125 127.0
cc32_isl1000_osl512 12.01 20.39 124 215.5
cc32_isl1000_osl2048 3.69 5.98 115 273.6
cc32_isl4000_osl512 46.87 159.49 233 75.7
cc32_isl4000_osl2048 45.67 401.99 182 105.9
multimodal_x8 - - - 78.5

精度抽样(lm-eval,采样)

任务 指标 得分
MMLU(57 子任务 × 4 题 = 228) acc 89.04% ± 2.0
GSM8K(200 题) exact_match(strict) 75.5% ± 3.1
GSM8K(200 题) exact_match(flexible) 76.0% ± 3.0

验证结论(2026-08-26,实测)

  • 功能 41/41 通过(9 组矩阵):文本/流式/多模态(含视频)/长上下文(30K 大海捞针召回)/并发 32/TP2 双卡/交叉对比(vLLM vs transformers 前 245 字符逐字一致)
  • 精度健康:MMLU 89.0%、GSM8K 75.5%,与 27B 级 BF16 模型应有水平一致,未发现 ROCm 数值缺陷
  • 性能:单并发 ~19.5 tok/s(TPOT 50ms),并发 32 峰值 273.6 tok/s,扩展性近线性(4→32 并发 3.3×→13.9×)
  • 显存:TP=2 每卡 38/47 GiB(权重 26G + KV),32K 窗口余量充足;MAX_LEN=262144 可开满 256K
  • 已知怪癖(已记录 docs/rocm-notes.md):思考型输出需 chat_template_kwargs.enable_thinking=false 控制;采样 --seed 单值;填充文本 token 比实测 1.365 token/词

环境指纹与原始 JSON:benchmarks/results/。测试口径见 benchmarks/README.md。

项目结构

src/qwen38_rocm/   引擎客户端、环境指纹、确定性测试数据(合成图像/黄金提示词)
tests/             9 组功能验证(pytest,-m gpu 需服务在线)
benchmarks/        bench 脚本 + 结果 JSON + 报告生成器
scripts/           download_model.sh / serve.sh / smoke.sh
docs/              hardware.md(硬件)· rocm-notes.md(踩坑与绕行)· faq.md

许可

  • 本仓库代码:Apache-2.0
  • Qwen3.8-27B 权重:遵循 Qwen 模型许可(随模型分发,见模型目录内 LICENSE)

引用

@software{qwen38-27b-rocm,
  title  = {Qwen3.8-27B-ROCm: Full-stack validation of Qwen3.8-27B on AMD Radeon GPUs},
  license = {Apache-2.0},
  url    = {https://github.com/your-org/Qwen3.8-27B-ROCm}
}

About

No description, website, or topics provided.

Resources

Readme
Apache-2.0 license

Contributing

Contributing

Security policy

Security policy
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.