Repository navigation
[WIP]add dynamic shape support and size specialization for dynamic shapes - #1
Open
honghaowang25 wants to merge 2 commits into
Open
honghaowang25 wants to merge 2 commits into
honghaowang25 wants to merge 2 commits into
Conversation
kisnwangg
reviewed
Oct 10, 2026
|
|
||
| 当前实现可以在输入 batch size、sequence length 变化时复用同一份前向与反向联合 FX 图。已完成 CPU 数值对照、两进程 FSDP 验证,以及 NPU 上 Qwen3-0.6B 模型结构的 TP2 + FSDP2 动态文本训练验证。 | ||
|
|
||
| 这里的“静态图”表示算子拓扑被捕获并复用;图中的部分张量尺寸仍可通过 `SymInt` 表达。当前执行对象是经过并行 Pass 改写的 FX `GraphModule`,不能把“一次图捕获”理解为已经实现所有底层算子的融合编译、NPU Graph capture 或任意动态控制流。 |
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and |
| compile_sizes: Optional[List[int]] = None, | ||
| compile_size_input: Optional[str] = None, | ||
| compile_size_dim: Optional[int] = None, | ||
| max_specializations: Optional[int] = None, |
kisnwangg
reviewed
Oct 10, 2026
| from tests.common.mark_utils import arg_mark | ||
|
|
||
|
|
||
| @arg_mark(plat_marks=["cpu_linux", "cpu_macos"], level_mark="level1", |
honghaowang25
force-pushed
the
graph_automodel_adapt
branch
4 times, most recently
from
October 11, 2026 06:44
327b1d5 to
84deba0
Compare
honghaowang25
force-pushed
the
0929_newdynamic
branch
from
October 12, 2026 11:48
87fdbda to
61a7543
Compare
honghaowang25
force-pushed
the
0929_newdynamic
branch
2 times, most recently
from
October 13, 2026 11:16
5f17dc8 to
123b76b
Compare
honghaowang25
force-pushed
the
graph_automodel_adapt
branch
11 times, most recently
from
October 23, 2026 02:33
73110bd to
3f2aed1
Compare
honghaowang25
force-pushed
the
graph_automodel_adapt
branch
7 times, most recently
from
October 30, 2026 01:50
c1e22e5 to
0697c35
Compare
honghaowang25
force-pushed
the
graph_automodel_adapt
branch
5 times, most recently
from
November 2, 2026 03:34
7d31a32 to
6ddd1e4
Compare
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.
No description provided.