[2026春季][T2-1-1] CearX#501
Open
CearX wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
为 InfiniLM 新增 ERNIE-4.5-VL-28B-A3B-Thinking 的文本、图像和视频端到端推理与 TP=4 支持,并通过 Hugging Face 逐 token 对齐、C-Eval、MMLU 和 MMMU 对比评测验证正确性。
token_type_ids、grid_thw和image_type_ids,并接入语言解码器 TP、模型加载和 processor。Motivation
2026 年春季启元 AI 大赛 T2-1-1 赛题: ERNIE-4.5-VL-28B-A3B-Thinking 适配。
Closes #
Type of Change
feat— new feature / new modelfix— bug fixperf— performance improvement (no behavioral change)refactor— code restructuring without behavior changetest— adding or fixing tests onlydocs— documentation onlybuild/ci— build system or CI configurationchore— tooling, formatting, or other non-code changesTest Results of Involved Models on Supported Platforms (Please attach screenshots)
ok=truemax_cache_len=512;每种模态各 1 个固定请求device_map=auto;max_new_tokens=5;52 subjectsimage_size=224、max_new_tokens=1024和 parser;两侧另各跳过 2 个候选,17/50 与 16/50 达到生成上限MMMU 的两条运行使用相同输入和解析口径。在该固定子集上,InfiniLM 正确数未低于 Hugging Face;
测试截图:
01_tp4_text_image_video.png02_benchmark_summary.png赛题附件:
赛题报告.pdf
HONOR_CODE.md
REFERENCE.md
Benchmark / Performance Impact
视觉二维 RoPE、解码器三维 RoPE、多模态 embedding 替换和 router 仍有 CPU 计算或 CPU/GPU 复制。
INFINILM_ERNIE_GPU_ROUTER=1只将纯文本调用的 gate linear 放到 GPU;softmax、top-k、token 分组和 dispatch metadata 仍有 CPU 参与。Notes for Reviewers
AutoProcessor(..., trust_remote_code=True)生成 tokenizer、图像和视频预处理输入。Transformers 不执行提交模型的运行时 forward;HF model forward 只用于参考对照。token_type_ids驱动专家组,grid_thw驱动视觉网格和 Resampler;image_type_ids当前作为元数据传。RoPE。CI / ChatOps
Checklist
Title, Branch, and Commits
feat(nvidia): …,fix(cuda/gemm): …).<type>/xxx-yyyy-zzzzwhere<type>matches the PR title's Conventional Commits type and words are joined with hyphens (seeCONTRIBUTING.md§Branches).CONTRIBUTING.md§Pull Requests).main— the branch is rebased cleanly on top of the currentmain.fixup!/squash!/wipcommits remain.Scope and Design
CONTRIBUTING.md§Code/General).printf/std::cout/print(...)left behind, orTODOwithout an owner and issue link.General Code Hygiene (applies to all languages)
CONTRIBUTING.md§Code/General).CONTRIBUTING.md§Code/General).the `seqlens_k` tensor) (CONTRIBUTING.md§Code/General).CONTRIBUTING.md§Code/General).CONTRIBUTING.md§Code/General; §Python).C++ Specific (if C++ files changed)
CONTRIBUTING.md§C++).CONTRIBUTING.md§C++).new/delete; RAII / smart pointers / existing allocators are used.scripts/format.py.csrc/models/llama_legacy/.Python Specific (if Python files changed)
CONTRIBUTING.md§Python).CONTRIBUTING.md§Python).scripts/format.py.python/infinilm/auto_config.py.Testing
examples/test_infer.py), or specify the reason for skipping.examples/bench.py), or specify the reason for skipping.test/bench/test_benchmark.py), or specify the reason for skipping.python/infinilm/server/inference_server.py+scripts/test_perf.py), or specify the reason for skipping.Build, CI, and Tooling
/retestwas requested.Documentation
README.md,CONTRIBUTING.md, or inline docs updated when behavior, build flags, or developer workflow changed.!orBREAKING CHANGE:footer.Security and Safety