Repository navigation
Skip adjacency partitioning when the graph is fully supported - #4530
Conversation
narendasan
left a comment
There was a problem hiding this comment.
Why do we enter partitioning at all if the graph is fully supported, global or adjacency?
|
Previously, we needed the partitioner to tag and name the subgraphs, so we still need to enter the partitioner and it will output only one subgraph. But I didn't realize that can cause any overhead.
|
cehongwang
left a comment
There was a problem hiding this comment.
LGTM. Before merging, can you share the benchmark result of speed improvement?
On Flux, partition went from 0.354s to 0.170s (0.18s saved); on VLA vision, 0.296s to 0.047s (0.25s saved); on VLA diffusion, 0.179s to 0.081s (0.10s saved). |
@narendasan I added a full skip of partitioning so a fully supported graph goes straight to conversion. Total partition time is now Flux 0.123s (0.23s saved), VLA vision 0.022s (0.27s saved), VLA diffusion 0.060s (0.12s saved). |
When require_full_compilation already has full converter coverage, wrap the graph as one TRT block instead of repeating AccNodesFinder, fusion, and adjacency split.
efaed52 to
5ecbe18
Compare
…lation The whole-graph path from #4530 built engine inputs from every placeholder, so a non-tensor input such as Flux's return_dict raised in construct_submodule_inputs. Route those graphs through the partitioner, which still skips support discovery when every op is supported and keeps the non-tensor input outside the engine.
Summary
require_full_compilationalready has full converter coverage, wrapping the graph as a single TRT block instead of repeating AccNodesFinder, fusion, and split.PR 1 of 3 in a compile-startup stack.
Test plan
require_full_compilation=Trueand confirm one_run_on_acc_*submodule