You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit a793373
Browse filesBrowse the repository at this point in the historyBrowse files
Add svg_attention_enabled() so model construction, the CFG cache/MagCache check and the AOT cache key agree that SVG is off at svg_spatial_density >= 1.0. Key the LTX-2 AOT cache on svg_* settings, including those recorded in the transformer attention_config, only when SVG is active. Note in docs/svg.md that the default 5-step profile never reaches an SVG window that starts at step 10.
Copy file name to clipboardExpand all lines: docs/svg.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -163,3 +163,5 @@ The tests cover routing and layout, configuration propagation, schedules, shardi
163
163
For CPU semantics checks, set `JAX_PLATFORMS=cpu` and `XLA_FLAGS=--xla_force_host_platform_device_count=8`. Run the suite separately on an eight-device TPU host to exercise the compiled kernels. Tests restricted to one platform are skipped on the other.
164
164
165
165
For profiling, enable `enable_jax_named_scopes=True` and capture a short warm denoising interval. Routing, placement, main attention, padding cleanup, merging, and restoration have named scopes, including `svg_route_profile`, `svg_layout_place`, `svg_union_main`, `svg_tail_cleanup`, `svg_lse_merge`, and `svg_layout_restore`. The `svg_kernel_c_tiles…` scope reports the fraction of physical tiles executed, which differs from attention-pair density and total transformer FLOP savings.
166
+
167
+
The LTX-2 profiling pass runs a separate `profiler_steps`-step denoise (steps `0` through `profiler_steps - 1`), and `profiler_steps` defaults to `5`. With the LTX-2 example above (`svg_active_start_step: 10`), that profile contains only dense steps. Set `profiler_steps` above `svg_active_start_step`, or lower `svg_active_start_step` while profiling, so the trace includes sparse SVG steps.
0 commit comments