refactor(runtime)!: adopt the modern Infini stack#506
Draft
voltjia wants to merge 5 commits into
Draft
Conversation
BREAKING CHANGE: legacy InfiniCore runtime and inference APIs are removed in favor of InfiniRT, InfiniOps, and the migrated InfiniLM runtime.
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
scripts/build_infini_stack.py.Motivation
The inference stack previously depended on runtime and operator implementations duplicated across repository boundaries. This change makes InfiniRT, InfiniOps, and InfiniCCL authoritative while keeping the inference-specific integration code with InfiniLM. It intentionally removes the former API and build paths, so this is a breaking migration.
Related to InfiniTensor/InfiniCore#1373.
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)
The validated image reported
ci_image_runtime_cross_device_graph_smoke=ok,ci_image_qwen3_tp1_tp2=ok, andCI_IMAGE_VALIDATION_COMPLETE=1. Screenshots are not attached to this draft; the GitHub CI run and remote validation log provide the current evidence.Benchmark / Performance Impact
N/A. This PR changes ownership and build integration; no performance claim is made.
Notes for Reviewers
infiniCore_ciafter that merge.CI / ChatOps
Manual CI was triggered on this branch with
infinicore_branch=issue/1373-1: https://github.com/InfiniTensor/InfiniLM/actions/runs/29834591692Checklist
Title, Branch, and Commits
<type>/xxx-yyyy-zzzzand matches the PR title type.main; the branch is rebased on the currentmain.fixup!,squash!, orwipcommits remain.Scope and Design
General Code Hygiene (applies to all languages)
C++ Specific (if C++ files changed)
newordeleteownership was introduced.scripts/format.py.csrc/models/llama_legacy/were added.Python Specific (if Python files changed)
scripts/format.py, Ruff 0.15.20, and Ruff format checks.python/infinilm/auto_config.pywere added.Testing
examples/test_infer.pywith Qwen3-0.6B on NVIDIA at TP1 and TP2.Build, CI, and Tooling
accelerator-dev/nvidia:latestbuild completed from exact GitHub revisions and produced the final NVIDIA CI image.Documentation
Security and Safety