Skip to content

Invoke is a leading creative engine that uses image and video generation models to empower professionals, artists, and enthusiasts to generate and create visual media using the latest AI-driven technologies. The solution offers an industry-leading application interface, and serves as the foundation for multiple commercial products.

fix(qwen-image-2.1): reserve measured VAE working memory on ROCm (#10043)

Lincoln Stein821da576c8b8
diff --git a/docs/src/content/docs/Users Guide/03.Models/Local Models/qwen-image-2-1.mdx b/docs/src/content/docs/Users Guide/03.Models/Local Models/qwen-image-2-1.mdx
index 10c9d7176c..4fc69a2e6a 100644
--- a/docs/src/content/docs/Users Guide/03.Models/Local Models/qwen-image-2-1.mdx
+++ b/docs/src/content/docs/Users Guide/03.Models/Local Models/qwen-image-2-1.mdx
@@ -1,7 +1,7 @@
---
title: Qwen-Image-2.1
description: Generate images with Qwen-Image-2.1 and its 8-step Turbo variant, from the Diffusers folders, a GGUF or an int8 transformer, including transparent (RGBA) output.
-lastUpdated: 2026-11-06
+lastUpdated: 2026-11-16
sidebar:
order: 9
---
@@ -58,7 +58,39 @@ Measured on an RTX 4090 at 1024×1024:
The text encoder runs first and is unloaded from the GPU when the transformer needs the room. At 2048×2048 the bf16 transformer needs 15.5 GB and 3.7 s per step.
-The VAE needs about 8 GB of working memory to decode a 1024×1024 image, and is priced the same to encode one for image-to-image, inpainting or outpainting (twice that with `precision: float32`). When an image is too large for the card to handle in one piece, Invoke decodes and encodes it in tiles; see [Large decodes](/configuration/optimization/low-vram-mode/). Invoke picks 1024-pixel tiles, and 768 or 512 only on cards with less memory: measured at 2048×2048, 1024-pixel tiles came close to an untiled decode (47.7 dB PSNR), while the 256-pixel tiles other VAEs default to left visible seams (35.6 dB).
+Decoding and encoding images needs no settings: Invoke decodes an image in one piece when it fits on the card, and otherwise in tiles, deciding before it starts. For a bf16 decode, the default:
+
+- **8 GiB cards** decode up to about 704×704 to 800×800 (AMD) or 928×928 (NVIDIA) in one piece, larger images in 512-pixel tiles.
+- **10 to 11 GiB cards** decode 1024×1024 in one piece on NVIDIA (up to 1056×1056 to 1088×1088), and up to 768×768 to 960×960 on AMD, larger images in 512-pixel tiles.
+- **12 to 16 GiB cards** decode 1024×1024 in one piece on NVIDIA, and on AMD from 16 GiB; on Windows with the native allocator it takes 20 GiB.
+- **20 to 24 GiB cards** decode up to 1120×1120 to 1664×1664 in one piece, larger images in 768- or 1024-pixel tiles.
+- **32 GiB cards and larger** decode at least 1280×1280 in one piece, larger images in 768- or 1024-pixel tiles.
+
+Two figures decide this. The **peak** is the most memory a decode uses at once, measured on real cards: a 1024×1024 decode peaks at 8.38 GiB on an RTX 4090, 11.81 GiB on a Radeon PRO W7900 on Linux and 10.49 GiB on an RX 9060 XT on Windows. The **reserved** memory is what Invoke frees for it before it starts, by moving other models off the card: a little more than the peak, 8.80, 12.86 and 11.28 GiB for those three, and up to about 1.5 times the peak for some tiled decodes. An image is tiled when its expected peak would exceed 90% of the card's memory (for AMD cards on Windows, of the memory Windows grants Invoke: 15.09 GiB on the 16 GiB RX 9060 XT), and the tiles are the largest whose reservation fits in half of the card, or 512-pixel tiles where none does (8 GiB AMD cards on Linux, or up to 10 GiB on Windows with the native allocator):
+
+| Card memory | NVIDIA | AMD, Linux | AMD, Windows | AMD, Windows, native allocator |
+|---|---|---|---|---|
+| 8 GiB | 928 px, 512 tiles | 768 px, 512 tiles | 800 px, 512 tiles | 704 px, 512 tiles |
+| 10 GiB | 1056 px, 512 tiles | 864 px, 512 tiles | 896 px, 512 tiles | 768 px, 512 tiles |
+| 11 GiB | 1088 px, 512 tiles | 928 px, 512 tiles | 960 px, 512 tiles | 832 px, 512 tiles |
+| 12 GiB | 1152 px, 768 tiles | 960 px, 512 tiles | 992 px, 512 tiles | 864 px, 512 tiles |
+| 16 GiB | 1344 px, 768 tiles | 1120 px, 512 tiles | 1152 px, 768 tiles | 992 px, 512 tiles |
+| 20 GiB | 1504 px, 1024 tiles | 1216 px, 768 tiles | 1248 px, 768 tiles | 1120 px, 768 tiles |
+| 24 GiB | 1664 px, 1024 tiles | 1248 px, 768 tiles | 1376 px, 768 tiles | 1216 px, 768 tiles |
+| 32 GiB | 1920 px, 1024 tiles | 1440 px, 768 tiles | 1600 px, 1024 tiles | 1280 px, 768 tiles |
+| 48 GiB | 2368 px, 1024 tiles | 1760 px, 1024 tiles | 1952 px, 1024 tiles | 1568 px, 1024 tiles |
+
+Each cell is the largest square image, on the 32-pixel grid, decoded in one piece, and the tile size larger images use. Other shapes go by their number of pixels. The Windows columns assume Windows grants Invoke what it granted on the RX 9060 XT with nothing else on the card, about 15 GiB of 16 GiB; with other programs using the card it grants less, and larger images are tiled. On Windows, Invoke runs AMD cards with PyTorch's expandable segments; setting `pytorch_cuda_alloc_conf: "expandable_segments:False"` (see [Settings](/configuration/optimization/low-vram-mode/#settings)) selects the native allocator, which needs more memory for the same decode (14.06 GiB peak at 1024×1024).
+
+With `precision: float32` a 1024×1024 decode reserves 16.2 GiB on NVIDIA to 19.8 GiB on AMD, and tiles are smaller; on an 8 GiB AMD card on Linux a 512-pixel float32 tile reserves 6.84 GiB, which with the VAE's 1.26 GiB of weights is more than the card holds. Encoding an image for image-to-image, inpainting or outpainting is tiled the same way; on AMD it needs much less than a decode (3.8 to 4.9 GiB reserved at 1024×1024 in bf16). Measured at 2048×2048, 1024-pixel tiles came close to an untiled decode (47.7 dB PSNR), while 256-pixel tiles left visible seams (35.6 dB). See also [Tiled VAE decode and encode](/configuration/optimization/low-vram-mode/#tiled-vae-decode-and-encode).
+
+Known limits:
+
+- With the native allocator, the cost per pixel of an AMD decode steps up at about 1.6 megapixels, between 1248×1248 and 1280×1280. On Windows, bf16 decodes with the native allocator are measured only up to 1088×1088: up to the step, at about 1256×1256, the measured line is extrapolated, and past it a conservative figure prices them, so some that would fit are tiled.
+- NVIDIA cards are measured only for an untiled 1024×1024 bf16 decode and three tiled 2048×2048 bf16 decodes. Larger images decoded in one piece are decided and reserved on an unmeasured line, and encodes and float32 are not measured at all.
+- Near the tiling threshold an image left whole can reserve more than the card holds: on a 48 GiB W7900 a 1664×1664 float32 decode is expected to peak at 41.8 GiB but reserves 49.9 GiB. The VAE then runs partly from system memory, and Invoke warns that its memory budget is short.
+- Tiled operations on AMD are measured up to 5120×5120 (decodes) and 4096×4096 (encodes) on Linux, and on Windows up to 6144×6144 (bf16 decodes), 5120×5120 (bf16 encodes), 6144×6144, 2048×2048 and 3072×3072 (float32 decodes in 512-, 768- and 1024-pixel tiles) and 4096×4096 (float32 encodes). Larger images can peak above what Invoke reserves for them, from about 4200×4200 for some encodes and 5500×5500 for some decodes. Tiles above 1024 pixels, which only a workflow can set, are measured nowhere: what Invoke reserves for them is extrapolated, and on AMD an encode in such tiles reserves less than earlier versions did (4096×4096 in 2048-pixel bf16 tiles: 16 to 22 GiB, against 31.85 GiB before). What happens then depends on the system. Windows pages the excess into shared system memory: the operation runs slowly but does not fail. On Linux, ROCm may spill the excess into system memory (it did on our W7900) or fail with out of memory, especially with other models on the card.
+- Qwen-Image-2.1 does not retry a decode or encode that runs out of memory. If one does, use a workflow and turn on **Tiled** with a smaller **Tile Size** on the *Latents to Image - Qwen-Image-2.1* or *Image to Latents - Qwen-Image-2.1* node.
### Reference images
diff --git a/docs/src/content/docs/contributing/new-model-integration.mdx b/docs/src/content/docs/contributing/new-model-integration.mdx
index 86c2b65969..22eb3ccaa2 100644
--- a/docs/src/content/docs/contributing/new-model-integration.mdx
+++ b/docs/src/content/docs/contributing/new-model-integration.mdx
@@ -613,7 +613,7 @@ Packages are discovered automatically. A directory of node modules without an `_
4. **VAE encode and decode** (`vae/new_model_image_to_latents.py`, `vae/new_model_latents_to_image.py`)
- Apply the VAE's latent normalization, scaling and shift or per-channel mean and std, exactly as the reference pipeline does. Handle tiling and give a working-memory estimate. The estimate helpers live in `invokeai/backend/util/vae_working_memory.py`, with calibration scripts in `scripts/calibrate_*_working_memory.py`. A new estimator declares an `EstimatorSpec`, returns a `WorkingMemoryEstimate` and takes its fitted coefficients from `invokeai/backend/working_memory/data/`, next to the measured points they were fitted on: the estimate must be at least each point and, where a fitted term decides it, at most 1.3 times it (or the point's `max_ratio`). The [model manager](/development/architecture/model-manager/) lists what such an estimator needs. `working_mem_bytes=<int>` remains for a plain reservation. Node types conventionally end in `_i2l` and `_l2i`.
+ Apply the VAE's latent normalization, scaling and shift or per-channel mean and std, exactly as the reference pipeline does. Handle tiling and give a working-memory estimate. Most estimate helpers live in `invokeai/backend/util/vae_working_memory.py`, with calibration scripts in `scripts/calibrate_*_working_memory.py`; one may also live with its model, as Qwen-Image-2.1's does in `invokeai/backend/qwen_image_2_1/vae.py`. A new estimator declares an `EstimatorSpec` in a module listed in `ESTIMATOR_MODULES` (`invokeai/backend/working_memory/spec.py`), returns a `WorkingMemoryEstimate` and takes its fitted coefficients from `invokeai/backend/working_memory/data/`, next to the measured points they were fitted on: the estimate must be at least each point and, where a fitted term decides it, at most 1.3 times it (or the point's `max_ratio`, or its entry with the reason in `UPPER_BOUND_EXCEPTIONS`, `invokeai/backend/working_memory/bounds.py`, where the data allows no line within that). The [model manager](/development/architecture/model-manager/) lists what such an estimator needs. `working_mem_bytes=<int>` remains for a plain reservation. Node types conventionally end in `_i2l` and `_l2i`.
5. **LoRA loaders** (if LoRA is supported, see [Optional features](#12-optional-features))
diff --git a/docs/src/content/docs/development/Architecture/model-manager.mdx b/docs/src/content/docs/development/Architecture/model-manager.mdx
index 8b00096531..64cbf1f641 100644
--- a/docs/src/content/docs/development/Architecture/model-manager.mdx
+++ b/docs/src/content/docs/development/Architecture/model-manager.mdx
@@ -1053,12 +1053,12 @@ with vae_info.model_on_device(working_memory=estimate) as (_, vae):
An estimator that declares an `EstimatorSpec` returns a `WorkingMemoryEstimate` (`invokeai/backend/working_memory/estimate.py`): the reservation, the terms it adds up to, the features it was evaluated from, and the source of its coefficients, which `model_on_device()` logs at debug level. A plain byte count goes in as `working_mem_bytes=<int>` instead; never both. The cache never reserves less than `device_working_mem_gb`.
-To write such an estimator (`invokeai/backend/util/vae_working_memory.py` has five for the VAEs, `invokeai/backend/z_image/denoise_working_memory.py`, `invokeai/backend/flux2/denoise_working_memory.py`, `invokeai/backend/flux3/denoise_working_memory.py`, `invokeai/backend/krea2/denoise_working_memory.py` and `invokeai/backend/moss_image/working_memory.py` one each for a transformer forward, the Z-Image, the FLUX.2, the FLUX.3, the Krea-2 and the MOSS-Image denoise's):
+To write such an estimator (`invokeai/backend/util/vae_working_memory.py` has five for the VAEs, `invokeai/backend/qwen_image_2_1/vae.py` one for Qwen-Image-2.1's, `invokeai/backend/z_image/denoise_working_memory.py`, `invokeai/backend/flux2/denoise_working_memory.py`, `invokeai/backend/flux3/denoise_working_memory.py`, `invokeai/backend/krea2/denoise_working_memory.py` and `invokeai/backend/moss_image/working_memory.py` one each for a transformer forward, the Z-Image, the FLUX.2, the FLUX.3, the Krea-2 and the MOSS-Image denoise's):
- Register an `EstimatorSpec` at module import, and list the module in `ESTIMATOR_MODULES` (`working_memory/spec.py`); the data test fails on a module that declares a spec without being listed.
- Split the estimator in two. The impure part reads the model and the device and records every runtime decision (tile, the dtype the operation runs in, score-matrix bytes, a quantized model's dequantization transient) as a feature, and refuses a dtype the spec has no line for with a `ValueError` naming the estimator, dtype and platform. The pure `terms(features, values)` turns features and coefficient values into terms, building fitted terms with `WorkingMemoryTerm.fitted(...)`. The public function returns `SPEC.estimate(features, device)`.
- Record the dtype the operation will run in, not the one the cached model holds. The SD1/SDXL nodes cast the shared VAE with `sd_vae_run_dtype`: fp16 for every GPU run that does not ask for fp32 (bf16 never runs), fp32 when asked and for a CPU decode. Their estimate prices the same function's answer, plus what the in-place cast adds to the resident weights. Uncast VAEs compute in their first floating-point parameter wider than a byte, so fp8 or packed SDNQ storage does not count.
-- Declare the line the fitted terms price on with `line=` (a function returning a `fit.Line`): the suffix that names the line's coefficients, the operation's size on its x-axis, whether a measurement of these features fits the line, and how point ids label them. Every estimator declares it and nothing defaults it, so a new estimator cannot inherit another's line, and with it which of its measurements fit. The VAE estimators declare the AutoencoderKL convolution line in output pixels (`fit.convolution_line`), the Z-Image, FLUX.2, FLUX.3 and Krea-2 denoise ones in attended tokens. A line may sit on another (`Line.sits_on`, the line beneath and the operation's size on it): a tiled VAE operation prices its tile, clamped to the image per axis, on the untiled line and sits there, and its estimator's tiled line `tiled_<operation>_<dtype>`, in the image's pixels, prices what tiling adds on top. A line may also have a second phase that peaks apart from it (`Line.assembly`): a tiled decode assembles the image from its decoded tiles after the last one, priced on the assembly line `assembled_decode_<dtype>` in the image's pixels, and the estimate reserves the larger phase. The fit subtracts nothing else from a point's demand, so a line admits only measurements whose demand is the line's alone, or the line's above the line it sits on: an operation with a term of its own on top of the line (an in-place upcast, a batch, a ControlNet's hints, regional prompting's bias, LoRAs, a dequantization or fp8 cast transient, a materialized score matrix the estimate adds rather than takes the larger of) bounds its estimate but fits nothing.
+- Declare the line the fitted terms price on with `line=` (a function returning a `fit.Line`): the suffix that names the line's coefficients, the operation's size on its x-axis, whether a measurement of these features fits the line, and how point ids label them. Every estimator declares it and nothing defaults it, so a new estimator cannot inherit another's line, and with it which of its measurements fit. The VAE estimators declare the AutoencoderKL convolution line in output pixels (`fit.convolution_line`), the Z-Image, FLUX.2, FLUX.3 and Krea-2 denoise ones in attended tokens. A line may sit on another (`Line.sits_on`, the line beneath and the operation's size on it): a tiled VAE operation prices its tile, clamped to the image per axis, on the untiled line and sits there, and its estimator's tiled line `tiled_<operation>_<dtype>`, in the image's pixels unless the estimator's `line` sizes it otherwise (Qwen-Image-2.1's, by the tile's area on MIOpen), prices what tiling adds on top. A line may also have a second phase that peaks apart from it (`Line.assembly`): a tiled decode assembles the image from its decoded tiles after the last one, priced on the assembly line `assembled_decode_<dtype>` in the image's pixels, and the estimate reserves the larger phase. The fit subtracts nothing else from a point's demand, so a line admits only measurements whose demand is the line's alone, or the line's above the line it sits on: an operation with a term of its own on top of the line (an in-place upcast, a batch, a ControlNet's hints, regional prompting's bias, LoRAs, a dequantization or fp8 cast transient, a materialized score matrix the estimate adds rather than takes the larger of) bounds its estimate but fits nothing.
- Declare `legacy_formula=` where the terms are shaped unlike the hand-set formula they replace, so that a `legacy` entry's constants alone do not reproduce it (the Krea-2 denoise's CFG and style multipliers, its count-based LoRA term). Where the values are legacy-priced (`ResolvedCoefficients.legacy_priced`: a `legacy` entry, or an unmeasured platform raised to an entry's `unmeasured_floor`), the estimate adds what the formula gives beyond its terms, as a term `legacy_formula`; fitted values on a measured platform never read it.
- Opt in with `user_calibrated=True` where a user's calibration may move the estimator: the five VAE estimators do. An estimator that does not is shipped-fit only; a calibration run still records its windows. The calibration summary and plan are built on pixel lines (they key sizes by `width` and `height`), so an estimator on another line, such as the Z-Image denoise's in tokens, must not opt in until they key sizes by `Line.size`.
- Bump `version` whenever `terms` changes the formula.
@@ -1068,10 +1068,10 @@ To write such an estimator (`invokeai/backend/util/vae_working_memory.py` has fi
- An entry applies to the OS only when its platform names one, and then takes precedence there over the one that does not. Only MIOpen names one. With the native allocator, Windows demand is concave and up to 1.6x Linux's, so Windows has its own fit and every other OS keeps the Linux one. Expandable segments are measured on Windows only, where they are Invoke's ROCm default, so `MEASURED` lists them for Windows and every other OS prices them as the native allocator there. cuDNN is priced the same on every OS.
- A spec whose fitted terms no platform trait moves declares `platform_keys=()` and ships one entry with an empty `platform`, read alike on every platform, measured or not, never priced as another or floored; its estimate's `source` names it `any platform`, and its points name no platform. MOSS-Image's denoise estimator does this: its fitted term is GEMM and fused-attention activations, not convolution workspaces, and a backend without a fused SDPA kernel is priced by the analytic score-matrix term.
- Ship the measured points next to them. A point's `method` says how it was read: one fresh process per point for `reserved_peak` (the allocator's peak reserved bytes), `driver_peak` (the driver-level device usage), and `demand_peak` (the largest of driver-level, reserved and allocated peak, over two runs, which catches the memory HIP maps beyond the allocator on a process's first operation); `device_peak`, the drop in the driver's free memory (`torch.cuda.mem_get_info`, polled during the operation) below its value just before it, which also counts what is allocated around the allocator's reserve; or `probe_demand`, the probe's `demand_bytes`, the largest over the valid, fit-eligible windows of calibration runs in a running server. `scripts/working_memory/build_shipped.py` builds `probe_demand` points from calibration store exports, takes fresh-process points from the point files a calibration script writes (`--points`), and refits the values (see the Family E2E guide). A point names the OS only where it measured an OS-specific entry. `working_memory/bounds.py` holds the rule the data test (`tests/backend/working_memory/`) and the builder apply: each estimate is at least its point, and where a fitted term decides an in-fit point, at most 1.3 times the point, its ratio in `bounds.UPPER_BOUND_EXCEPTIONS` (points no line can hold within 1.3x), or the point's tighter `max_ratio`. A `probe_demand` point is a lower bound only (`MeasuredPoint.holds_upper_bound`) and takes no `max_ratio`: a warm window in a running server reads below the cold first run after a server start, the worst case a reservation must cover. It may raise a line; only the fresh-process points cap one. The `device_working_mem_gb` floor counts only where an analytic term decides.
-- Fit the values, never hand-tune them. Fitted terms price a line per operation and dtype: `k_<suffix>` bytes per unit of the line's size plus a base of `b_<suffix>` bytes. The AutoencoderKL estimators price their convolutions on lines in output pixels (`k_<operation>_<dtype>`), a tiled operation's tile on the same lines and what tiling adds on its estimator's tiled lines in image pixels (`k_tiled_<operation>_<dtype>`), a tiled decode's assembly on its assembly lines in image pixels (`k_assembled_decode_<dtype>`), the Z-Image and Krea-2 denoise their forwards on lines in attended tokens (`k_denoise_<dtype>`), the FLUX.2 and FLUX.3 denoise their forwards on one such line per dtype and transformer width (`k_denoise_<dtype>_h<width>`).
+- Fit the values, never hand-tune them. Fitted terms price a line per operation and dtype: `k_<suffix>` bytes per unit of the line's size plus a base of `b_<suffix>` bytes. The AutoencoderKL estimators price their convolutions on lines in output pixels (`k_<operation>_<dtype>`), a tiled operation's tile on the same lines and what tiling adds on its estimator's tiled lines in image pixels (`k_tiled_<operation>_<dtype>`; Qwen-Image-2.1's on MIOpen in tile pixels), a tiled decode's assembly on its assembly lines in image pixels (`k_assembled_decode_<dtype>`), the Z-Image and Krea-2 denoise their forwards on lines in attended tokens (`k_denoise_<dtype>`), the FLUX.2 and FLUX.3 denoise their forwards on one such line per dtype and transformer width (`k_denoise_<dtype>_h<width>`).
- `working_memory/fit.py` fits each line on the in-fit points its estimators' `line` admits, of every estimator whose entry carries the line on its platform (its own entry, or the one it borrows the line from): for the convolution lines the single-sample points, leaving out those whose VAE an in-place cast grew (`upcast_weight_bytes`, a term of its own). The fit of the points that hold an upper bound (the fresh-process ones) is the rising edge of their upper convex hull (with the origin, so the base is never negative), or the flat line through the hull's peak where it falls past it, that over-reserves least, rated on the highest reading per size of the capping points, the steeper on a tie and never a falling one. A `probe_demand` point is covered by the line and can raise it, but takes no part in that fit. A fresh VAE point below 512 px a side (`fit.SMALLEST_APP_SIDE`), on a tile or untiled, shapes that fit but rates no edge, and it holds no upper bound (`Line.caps`): a tile that small is set by hand in the workflow editor only (the nodes' default resolves to 512 px for FLUX and 1024 px for SD, and the upscale tab sets 512 to 1536 px), and every estimate for an untiled image up to 384 px a side lies below the 3 GiB default `device_working_mem_gb` the model cache reserves at least. It needs at least two sizes twice apart. The shipped values add a 5% margin and round up: the slope to a whole byte per unit of size, the base to a whole MiB.
- - A line that sits on another covers its points' demand above the untiled demand their own estimator measured at their size on the line beneath, on the same platform, operation and dtype (the highest of its in-fit, fresh-process points there: the untiled references a tiling run measures at each tile's side). Only where no such measurement exists does the fitted price of the line beneath stand in, so the fit runs in dependency order: the lines that sit on none first, then each line that sits on one (`fit.base_values`, `fit.fitted_values`; the data test and the builder both fit through `fitted_values`). The reason is the tiles nobody measured. The shipped untiled line lies above the measured demand by a margin that differs per tile size; covered above that line, a tiled line would absorb the margin at the measured tiles and miss it at others (fitted so on the 512 and 1024 px tiles alone, it priced a 768 px tile at 0.99x on the RX 9060 XT with expandable segments and a 256 px tile at 0.74-0.89x on the RTX 4090). Covered above the measured demand, it is what tiling adds to the untiled demand at the tile, which holds for any tile whose growth is no larger than the measured tiles'. The estimate still prices the tile on the shipped untiled line, which covers the measured demand, and a line that sits on another is rated on that whole estimate, so its points hold the 1.3x bound like any other; a line on which no point's demand lies above its points' untiled demand is zero. The tiled VAE lines are fitted so on fresh-process points of `scripts/calibrate_vae_tiling_working_memory.py`, each the operation as its node runs it inside its `model_on_device` window (on the RTX 4090 with both allocators and the RX 9060 XT with both on Windows: image sides 1024 to 12288 px with 512 and 1024 px tiles, 2048 to 12288 px with a 1536 px tile on the RTX 4090, and 2048 to 8192 px with 256 and 768 px tiles, the 256 px ones bounding their estimates from below only; and past 12288 px: FLUX.1 and FLUX.2 in bf16 at a 512 px tile at 16384 to 24576 px under `cudaMallocAsync` and with expandable segments on the RX 9060 XT, and FLUX.2 at 26624 and 28672 px with the RTX 4090's native allocator; FLUX.1 and FLUX.2 at a 1024 px tile at 16384 and 20480 px with the RTX 4090's native allocator and with expandable segments on the RX 9060 XT; under `cudaMallocAsync` SD at a 1536 px tile at 14336 px and FLUX.1 at 16384 px; and with MIOpen's native allocator SD at a 768 px tile at 12288 px, its fp32 encode also at 16384 px). Past the largest measured side the lines are extrapolated: at the tiles the app sets, each estimate stays above the extension of its last measured segment to at least 15,800 px (FLUX.2's encode at a 512 px tile with MIOpen's native allocator, measured to 12288 px). Where the floor decides the largest measured points, as for the FLUX.1 and FLUX.2 decodes at a 512 px tile, the estimate stays above that extension to 65,536 px at least. The upscale tab scales by up to 16x (`UPSCALE_SCALE_MAX`), so outputs past the covered range are reachable from the UI. A tiled encode needs more than its tile does, by up to about 42 bytes per image pixel at 4096 px, 29 at 8192 px and 20 at 12288 px, for its input image and moments. A tiled decode demands about what the untiled decode of one tile does, flat in the image, but for a jump some allocators take once the image spans several tiles, up to about 4096 px; above that the assembly takes over (every decoded tile, the blended rows and the concatenated image, about 3.8 image copies, and the node's post-processing), up to 3x the tile's own demand at 8192 px and 7x at 12288 px with a 512 px tile. One line on top of the tile cannot price both shapes, so a tiled decode reserves `max(untiled(tile) + T(P), A(P))`, its tiled line `T` and its assembly line `A` in the image's pixels `P`. `fit.two_phase_envelope` fits the two together on the tiled decodes, by a deterministic search: each candidate `A` is the zero line or a line through two points' readings with a slope of at least zero (its intercept may be negative), `T` the envelope of the points above it, and the candidate whose estimates over-reserve the capping points least as both lines ship (the largest ratio, then the sum) wins, the zero line on a tie, so no assembly line ships that no point needs. Both take the 5% margin, which scales the whole line, a negative intercept included; the search rates them with it, because it scales a point's whole demand where `A` prices it and only what tiling adds where `T` does. An entry whose decodes need no assembly phase ships it at zero. However far the lines extrapolate, a tiled operation reserves at least its floor, a phase of its own, for every sample (`vae_working_memory._tiled_convolutions`), plus the 5% the shipped lines carry: what is counted varies across runs and cards as a line's points do, so the floor gets the same headroom, as a term of its own in the estimate (`floor_margin`). A decode's floor is the buffers of its assembly (every decoded tile as diffusers slices it, the edge tiles clipped, the rows blended from them and the concatenated image, three channels of the run dtype each), the latents it decodes, the one image its node post-processes inside its window (`l2i`, `z_image_l2i`; `flux2_vae_decode` and `flux_vae_decode` post-process after it), and the untiled line's base. An encode's is its input image, every encoded tile of moments (twice the latent channels), the rows blended from them and the concatenated moments, the distribution its node makes of them (three latent-wide tensors, six where it samples), and the base. The extra image and the distribution are what the measured allocators took beside the buffers, not what is live at once: the assembly's tiles and rows are freed by then, and `l2i` and `z_image_l2i` hold the decoded image and two more at their post-processing's peak. Under `cudaMallocAsync` the FLUX.1 decodes at 16384 to 24576 px took the counted floor and base to within 0.2%, and with expandable segments on Windows ROCm less; on the native allocators the fitted lines decide every such decode measured, to 12288 px at a 512 px tile and to 20480 px at a 1024 px tile, and past them one that keeps the freed blocks could take up to two images more than counted. The floor is counted at the 0.25 overlap every shipped VAE tiles at, from the recorded features alone, so the estimators refuse a tiled operation at another overlap. The fit leaves a point to the floor where the counted floor, without the margin, covers it, so that it reserves the point with the margin as a line would: the point lifts no line and passes no assembly line through it, and it rates a candidate only where the candidate prices it above its floor, since below it the point reserves its floor whichever candidate wins (`fit.FitPoint.floor`); `bounds.py` holds it to its upper bound against what is reserved. On the RTX 4090 under `cudaMallocAsync` and the RX 9060 XT with expandable segments the floor decides the largest measured operations at a 512 px tile from about 5,000 px a side (SD fp16 with expandable segments) to 12,000 px (FLUX.2 under `cudaMallocAsync`), later at larger tiles, and the measured points it decides took 0.75 to 0.95 of what it reserves. Images that large are reachable: the upscale tab scales by up to 16x, and an image made in the graph reaches the encode nodes without PIL's decompression-bomb check, which only `Image.open` applies. Every VAE estimator (SD1/SDXL, FLUX.1 and FLUX.2) prices the batch its tensor carries: the convolution terms per sample, the assembly line's base once where it is negative (``k * P + max(b, n * b)``), and the mid-block score matrix over batch times heads. The decode nodes that return one image (`l2i`, `flux_vae_decode`, `z_image_l2i`) decode and price only the first sample of their latents, so a multi-sample latent costs what one sample does.
- - One tiled line serves every tile of an estimator, operation and dtype, so the largest jump any tile takes above its untiled demand sets the line's base for all tiles, and the fastest growth per pixel its slope. On the default allocators, cuDNN's native one and expandable segments on MIOpen on Windows, the tiled estimates stay within 1.3x of their points but for 24 of 353, listed in `UPPER_BOUND_EXCEPTIONS` (up to 1.56x). FLUX.2's decode lines on cuDNN with the native allocator have no headroom left: its 768 px tile at 8192 px sits at 1.41x, so a FLUX.1 or FLUX.2 bf16 decode probe there that raises the untiled line, from about 4.63 GB at 1024 px, breaks that bound, and the builder refuses the raise until the exceptions are adjusted. Under `cudaMallocAsync` and MIOpen's native allocator 30 of 194 and 53 of 149 points sit more than 1.3x below their estimates, up to 2.38x (FLUX.2's decode at a 512 px tile, 1024 px) and 1.72x (SD fp16's decode at a 512 px tile, 1024 px; on MIOpen the untiled line's headroom at the tile adds to it). A tiled line per tile would remove that; over-reserving is preferred to the extra parameter.
+ - A line that sits on another covers its points' demand above the untiled demand their own estimator measured at their size on the line beneath, on the same platform, operation and dtype (the highest of its in-fit, fresh-process points there: the untiled references a tiling run measures at each tile's side). Only where no such measurement exists does the fitted price of the line beneath stand in, so the fit runs in dependency order: the lines that sit on none first, then each line that sits on one (`fit.base_values`, `fit.fitted_values`; the data test and the builder both fit through `fitted_values`). The reason is the tiles nobody measured. The shipped untiled line lies above the measured demand by a margin that differs per tile size; covered above that line, a tiled line would absorb the margin at the measured tiles and miss it at others (fitted so on the 512 and 1024 px tiles alone, it priced a 768 px tile at 0.99x on the RX 9060 XT with expandable segments and a 256 px tile at 0.74-0.89x on the RTX 4090). Covered above the measured demand, it is what tiling adds to the untiled demand at the tile, which holds for any tile whose growth is no larger than the measured tiles'. The estimate still prices the tile on the shipped untiled line, which covers the measured demand, and a line that sits on another is rated on that whole estimate, so its points hold the 1.3x bound like any other; a line on which no point's demand lies above its points' untiled demand is zero. The tiled VAE lines are fitted so on fresh-process points of `scripts/calibrate_vae_tiling_working_memory.py`, each the operation as its node runs it inside its `model_on_device` window (on the RTX 4090 with both allocators and the RX 9060 XT with both on Windows: image sides 1024 to 12288 px with 512 and 1024 px tiles, 2048 to 12288 px with a 1536 px tile on the RTX 4090, and 2048 to 8192 px with 256 and 768 px tiles, the 256 px ones bounding their estimates from below only; and past 12288 px: FLUX.1 and FLUX.2 in bf16 at a 512 px tile at 16384 to 24576 px under `cudaMallocAsync` and with expandable segments on the RX 9060 XT, and FLUX.2 at 26624 and 28672 px with the RTX 4090's native allocator; FLUX.1 and FLUX.2 at a 1024 px tile at 16384 and 20480 px with the RTX 4090's native allocator and with expandable segments on the RX 9060 XT; under `cudaMallocAsync` SD at a 1536 px tile at 14336 px and FLUX.1 at 16384 px; and with MIOpen's native allocator SD at a 768 px tile at 12288 px, its fp32 encode also at 16384 px). Past the largest measured side the lines are extrapolated: at the tiles the app sets, each AutoencoderKL estimate stays above the extension of its last measured segment to at least 15,800 px (FLUX.2's encode at a 512 px tile with MIOpen's native allocator, measured to 12288 px). Qwen-Image-2.1's, whose last measured frames lie between 2048 and 6144 px, cross theirs from about 4,200 px (`qwen_image_2_1/vae.py`, `_line`). Where the floor decides the largest measured points, as for the FLUX.1 and FLUX.2 decodes at a 512 px tile, the estimate stays above that extension to 65,536 px at least. The upscale tab scales by up to 16x (`UPSCALE_SCALE_MAX`), so outputs past the covered range are reachable from the UI. A tiled encode needs more than its tile does, by up to about 42 bytes per image pixel at 4096 px, 29 at 8192 px and 20 at 12288 px, for its input image and moments. A tiled decode demands about what the untiled decode of one tile does, flat in the image, but for a jump some allocators take once the image spans several tiles, up to about 4096 px; above that the assembly takes over (every decoded tile, the blended rows and the concatenated image, about 3.8 image copies, and the node's post-processing), up to 3x the tile's own demand at 8192 px and 7x at 12288 px with a 512 px tile. One line on top of the tile cannot price both shapes, so a tiled decode reserves `max(untiled(tile) + T(P), A(P))`, its tiled line `T` and its assembly line `A` in the image's pixels `P`. `fit.two_phase_envelope` fits the two together on the tiled decodes, by a deterministic search: each candidate `A` is the zero line or a line through two points' readings with a slope of at least zero (its intercept may be negative), `T` the envelope of the points above it, and the candidate whose estimates over-reserve the capping points least as both lines ship (the largest ratio, then the sum) wins, the zero line on a tie, so no assembly line ships that no point needs. Both take the 5% margin, which scales the whole line, a negative intercept included; the search rates them with it, because it scales a point's whole demand where `A` prices it and only what tiling adds where `T` does. An entry whose decodes need no assembly phase ships it at zero. However far the lines extrapolate, a tiled operation of the AutoencoderKL estimators reserves at least its floor, a phase of its own, for every sample (`vae_working_memory._tiled_convolutions`; Qwen-Image-2.1's estimator has no floor and no assembly phase), plus the 5% the shipped lines carry: what is counted varies across runs and cards as a line's points do, so the floor gets the same headroom, as a term of its own in the estimate (`floor_margin`). A decode's floor is the buffers of its assembly (every decoded tile as diffusers slices it, the edge tiles clipped, the rows blended from them and the concatenated image, three channels of the run dtype each), the latents it decodes, the one image its node post-processes inside its window (`l2i`, `z_image_l2i`; `flux2_vae_decode` and `flux_vae_decode` post-process after it), and the untiled line's base. An encode's is its input image, every encoded tile of moments (twice the latent channels), the rows blended from them and the concatenated moments, the distribution its node makes of them (three latent-wide tensors, six where it samples), and the base. The extra image and the distribution are what the measured allocators took beside the buffers, not what is live at once: the assembly's tiles and rows are freed by then, and `l2i` and `z_image_l2i` hold the decoded image and two more at their post-processing's peak. Under `cudaMallocAsync` the FLUX.1 decodes at 16384 to 24576 px took the counted floor and base to within 0.2%, and with expandable segments on Windows ROCm less; on the native allocators the fitted lines decide every such decode measured, to 12288 px at a 512 px tile and to 20480 px at a 1024 px tile, and past them one that keeps the freed blocks could take up to two images more than counted. The floor is counted at the 0.25 overlap every shipped VAE tiles at, from the recorded features alone, so the estimators refuse a tiled operation at another overlap. The fit leaves a point to the floor where the counted floor, without the margin, covers it, so that it reserves the point with the margin as a line would: the point lifts no line and passes no assembly line through it, and it rates a candidate only where the candidate prices it above its floor, since below it the point reserves its floor whichever candidate wins (`fit.FitPoint.floor`); `bounds.py` holds it to its upper bound against what is reserved. On the RTX 4090 under `cudaMallocAsync` and the RX 9060 XT with expandable segments the floor decides the largest measured operations at a 512 px tile from about 5,000 px a side (SD fp16 with expandable segments) to 12,000 px (FLUX.2 under `cudaMallocAsync`), later at larger tiles, and the measured points it decides took 0.75 to 0.95 of what it reserves. Images that large are reachable: the upscale tab scales by up to 16x, and an image made in the graph reaches the encode nodes without PIL's decompression-bomb check, which only `Image.open` applies. Every VAE estimator (SD1/SDXL, FLUX.1 and FLUX.2) prices the batch its tensor carries: the convolution terms per sample, the assembly line's base once where it is negative (``k * P + max(b, n * b)``), and the mid-block score matrix over batch times heads. The decode nodes that return one image (`l2i`, `flux_vae_decode`, `z_image_l2i`) decode and price only the first sample of their latents, so a multi-sample latent costs what one sample does.
+ - One tiled line serves every tile of an estimator, operation and dtype, so the largest jump any tile takes above its untiled demand sets the line's base for all tiles, and the fastest growth per pixel its slope. On the default allocators, cuDNN's native one and expandable segments on MIOpen on Windows, the tiled estimates stay within 1.3x of their points but for 25 of 404, listed in `UPPER_BOUND_EXCEPTIONS` (up to 1.56x). FLUX.2's decode lines on cuDNN with the native allocator have no headroom left: its 768 px tile at 8192 px sits at 1.41x, so a FLUX.1 or FLUX.2 bf16 decode probe there that raises the untiled line, from about 4.63 GB at 1024 px, breaks that bound, and the builder refuses the raise until the exceptions are adjusted. Under `cudaMallocAsync` and MIOpen's native allocator 30 of 194 and 61 of 236 points sit more than 1.3x below their estimates, up to 2.38x (FLUX.2's decode at a 512 px tile, 1024 px) and 1.72x (SD fp16's decode at a 512 px tile, 1024 px; on MIOpen the untiled line's headroom at the tile adds to it). A tiled line per tile would remove that; over-reserving is preferred to the extra parameter.
- A point whose demand is not its line's alone sets `in_fit: false`: it fits nothing and gets only the lower bound. That is a point measured in a regime its platform does not run (CUDA with the math attention kernel forced), and a fit-grid forward whose features its estimator's `line` does not admit, such as one whose build materializes the score matrix. The test lists every such point.
- A line is fitted only once its capping points alone (in-fit, fresh-process and at a size and tile the app sets, `Line.caps`) span two sizes twice apart (`fit.capping_spans`); `fitted_values` refuses any other line. For a line that sits on none the shipped pair is the fresh-process fit where it covers every other point of the line by the 5% margin. Where it does not, `fit.raised_pair` raises it by the least the upper bounds allow: of the lines at or above it, per coefficient, that cover every point by 5% and keep the upper bound of every point priced on the line (`bounds.line_bounds`, in the line's units: batched and upcast VAE operations and denoise forwards with an analytic term included, though their line admits them to no fit, read where the line decides their estimate), the one whose reservation averaged over the capping sizes is smallest, the steeper on a tie. The candidates are the lines that ship, a whole byte of slope per unit of size and a whole MiB of base, checked against the conditions exactly, with no allowance. Each condition is a half-plane in slope and base, so the lines that keep them all form a convex region: the search scans each whole MiB of base across that region, taking the lowest whole slope the conditions leave at it, which finds the lowest rounded line or proves there is none (some milliseconds per line on the shipped data). Where no rounded line satisfies them all, also where only a line between whole bytes or MiB would, it refuses with `fit.LineConflict`, naming the probe and the bounds that conflict (each bound by its point's id, measured bytes and the most it allows, since two points can share an id), or saying that the floor itself already breaks a bound. The data then conflicts with the bounds: `build_shipped.py` prints the changes it would make, writes nothing and exits 1, as for a result the bounds reject; it exits 2 only for input it cannot use. A `probe_demand` point thus lowers neither the slope nor the base, and since probe sizes do not enter the average, a probe the shipped line already covers leaves it where it is. A tiled operation bounds neither its tiled line nor the untiled line beneath: the tiled line is fitted after the untiled one, on what that one prices the tile at. A tiled point with an untiled reference measured at its tile is covered above that reference (`fit.point_reading`), so a raise beneath adds to its estimate byte for byte; only points without one, covered above the line beneath, can hand the tile's cost from the tiled line to it. The data test and the builder check the result against every tiled bound, and the builder refuses (exit 1) a raise that breaks one. That is a known limitation, not the intent: `fit.raised_pair` picks the least raise without the tiled bounds, so it can refuse a probe for which a steeper raise would keep them all. On cuDNN with the native allocator, SD fp16 decode probes at 1024 px of 4.9 and 5.0 GB raise the untiled line, which puts the decodes at a 512 px tile at 1536 and 3072 px at 1.30-1.32x, over their bound; the earlier rule, the larger per coefficient of the fit on all points and on the fresh-process ones, raised the line otherwise and accepted them. A joint fit of the untiled and tiled lines would remove the limitation. A line that sits on another reads its points above offsets the line beneath sets, which no half-plane in its own slope and base states, so it is not raised so: its pair is the larger, per coefficient, of the fit on all its points and the fit on its fresh-process points alone, both rated on the capping points (`fit.sitting_pair`), so a `probe_demand` point that drops a fresh hull vertex lowers neither the slope nor the base there either. A tiled decode line and its assembly line take that per line and coefficient of the two two-phase fits (`fit.fitted_two_phase`).
- Until then the line is a declared stand-in, listed in the entry's `stand_ins`; an untiled one is never below the pre-dtype slope. `probe_demand` points on it bound it from below only: `build_shipped.py` keeps a line that sits on none where it covers them by 5%, otherwise raises it as `fit.raised_pair` raises a fitted line, the stand-in as the floor and the average over the sizes of its capping points or, without any, of all its points; a tiled line it raises to their fit where that lies above, read above its points' offsets, with its assembly line. It notes the raise in the provenance and never lowers the line. MIOpen with the native allocator off Windows prices fp16 and fp32 at the pre-dtype figure, CogView4's lines there at its expandable-segments ones, and every tiled and assembly line at its unmeasured floor. A tiled or assembly line of a dtype no tiled point measures on a platform (FLUX.1 fp16 and fp32, FLUX.2 fp32) takes there, value by value, the larger of the SDXL VAE's line of that operation and dtype and the family's own bf16 line scaled by the element size (twice for fp32): the FLUX encoders emit 4 to 8 times the SDXL VAE's moment channels, and a FLUX decode's node and allocator show in the family's own lines, not in the SDXL VAE's.
diff --git a/invokeai/app/invocations/vae/qwen_image_2_1_image_to_latents.py b/invokeai/app/invocations/vae/qwen_image_2_1_image_to_latents.py
index e8aa7d57e9..d3b65e4c6f 100644
--- a/invokeai/app/invocations/vae/qwen_image_2_1_image_to_latents.py
+++ b/invokeai/app/invocations/vae/qwen_image_2_1_image_to_latents.py
@@ -17,9 +17,9 @@ from invokeai.app.services.shared.invocation_context import InvocationContext
from invokeai.backend.qwen_image_2_1.vae import (
SPATIAL_SCALE,
choose_tile_size,
+ estimate_working_memory,
to_reference,
to_vae_input,
- working_memory_bytes,
)
from invokeai.backend.util.devices import TorchDevice
from invokeai.backend.util.qwen_image_vae import patch_qwen_image_vae_tiling
@@ -73,9 +73,10 @@ class QwenImage21ImageToLatentsInvocation(BaseInvocation, WithMetadata, WithBoar
device = vae_info.compute_device
config = context.config.get()
element_size = next(vae_info.model.parameters()).element_size()
- # Encodes are tiled up front like decodes: priced like the decoder, an untiled 2048x2048 canvas box would
+ # Encodes are tiled up front like decodes: priced like the decoder on cuDNN, an untiled 2048x2048 canvas box would
# ask for ~32 GiB.
tile_size = choose_tile_size(
+ "encode",
height,
width,
element_size,
@@ -84,9 +85,9 @@ class QwenImage21ImageToLatentsInvocation(BaseInvocation, WithMetadata, WithBoar
tile_size=self.tile_size,
auto_tile=config.auto_tiled_decode,
)
- working_memory = working_memory_bytes(height, width, tile_size, element_size)
+ working_memory = estimate_working_memory("encode", height, width, tile_size, element_size, device)
- with vae_info.model_on_device(working_mem_bytes=working_memory) as (_, vae):
+ with vae_info.model_on_device(working_memory=working_memory) as (_, vae):
pixels = to_vae_input(image, keep_alpha=self.reference).to(device=device, dtype=vae.dtype).unsqueeze(2)
with torch.inference_mode(), patch_qwen_image_vae_tiling(vae, tile_size, SPATIAL_SCALE):
z = vae.encode(pixels).latent_dist.mode()[:, :, 0]
diff --git a/invokeai/app/invocations/vae/qwen_image_2_1_latents_to_image.py b/invokeai/app/invocations/vae/qwen_image_2_1_latents_to_image.py
index eb1a3d6e6a..675f09f7e8 100644
--- a/invokeai/app/invocations/vae/qwen_image_2_1_latents_to_image.py
+++ b/invokeai/app/invocations/vae/qwen_image_2_1_latents_to_image.py
@@ -5,7 +5,7 @@ from invokeai.app.invocations.fields import FieldDescriptions, Input, InputField
from invokeai.app.invocations.model import VAEField
from invokeai.app.invocations.primitives import ImageOutput
from invokeai.app.services.shared.invocation_context import InvocationContext
-from invokeai.backend.qwen_image_2_1.vae import SPATIAL_SCALE, choose_tile_size, to_image, working_memory_bytes
+from invokeai.backend.qwen_image_2_1.vae import SPATIAL_SCALE, choose_tile_size, estimate_working_memory, to_image
from invokeai.backend.util.devices import TorchDevice
from invokeai.backend.util.qwen_image_vae import patch_qwen_image_vae_tiling
@@ -39,6 +39,7 @@ class QwenImage21LatentsToImageInvocation(BaseInvocation, WithMetadata, WithBoar
config = context.config.get()
element_size = next(vae_info.model.parameters()).element_size()
tile_size = choose_tile_size(
+ "decode",
height,
width,
element_size,
@@ -47,9 +48,9 @@ class QwenImage21LatentsToImageInvocation(BaseInvocation, WithMetadata, WithBoar
tile_size=self.tile_size,
auto_tile=config.auto_tiled_decode,
)
- working_memory = working_memory_bytes(height, width, tile_size, element_size)
+ working_memory = estimate_working_memory("decode", height, width, tile_size, element_size, device)
- with vae_info.model_on_device(working_mem_bytes=working_memory) as (_, vae):
+ with vae_info.model_on_device(working_memory=working_memory) as (_, vae):
context.util.signal_progress("Running VAE")
# Denormalized in the VAE's dtype, as the pipeline does: the latents cast first, the float32 statistics
# cast to them, so a bf16 decode reads the same input as the pipeline's. The device is the VAE's
diff --git a/invokeai/backend/qwen_image_2_1/vae.py b/invokeai/backend/qwen_image_2_1/vae.py
index 4fe48a69c9..212e199f64 100644
--- a/invokeai/backend/qwen_image_2_1/vae.py
+++ b/invokeai/backend/qwen_image_2_1/vae.py
@@ -4,23 +4,116 @@ The tile geometry itself is applied by `patch_qwen_image_vae_tiling`, which this
and Wan VAEs (same tiling attributes, 16x instead of 8x).
"""
+import dataclasses
+import functools
import math
+from collections.abc import Mapping
+from typing import Literal, cast
import numpy as np
import torch
from PIL import Image
+from invokeai.backend.util.devices import device_has_dedicated_vram
from invokeai.backend.util.vae_working_memory import should_pretile_vae_decode
+from invokeai.backend.working_memory.coefficients import find_entry, shipped_data
+from invokeai.backend.working_memory.estimate import FeatureValue, WorkingMemoryEstimate, WorkingMemoryTerm
+from invokeai.backend.working_memory.fit import SHIPPED_MARGIN, Line, convolution_line
+from invokeai.backend.working_memory.platform import Platform, platform_for, priced_as
+from invokeai.backend.working_memory.spec import EstimatorSpec, register
SPATIAL_SCALE = 16
-# Measured on an RTX 4090 in bf16 (torch's reserved memory, which is what Windows pages against): an untiled
-# 1024x1024 decode peaks at 8.38 GiB, a 2048x2048 decode in 1024px tiles at the same 8.38 GiB, in 768px tiles
-# at 5.27 GiB, in 512px tiles at 2.68 GiB. ~4000 bytes per pixel per byte of the VAE's dtype (8000 in bf16) of
-# the frame (or tile) plus a fixed 0.6 GiB covers all four. The encoder is narrower than the decoder (96 vs 144
-# base channels); it is priced the same.
-_BYTES_PER_PIXEL_PER_ELEMENT_BYTE = 4000
-_FIXED_BYTES = int(0.6 * 1024**3)
+# Peak reserved memory of an encode or decode, on the convolution lines of `backend/util/vae_working_memory.py`:
+# `k_<line>` bytes per output pixel plus `b_<line>` bytes, per convolution backend, allocator (`platform_for`) and, where
+# an entry names it, OS. The coefficients and the measured points that bound them are in
+# `backend/working_memory/data/qwen_image_2_1_vae.json`; `backend/working_memory/fit.py` explains how they are fitted.
+# This VAE is far hungrier than the family's: a 1024px bf16 decode peaks at 8.38 GiB on an RTX 4090, 11.81 GiB on a W7900
+# on Linux, and 14.06 GiB (10.49 GiB with expandable segments) on an RX 9060 XT on Windows.
+#
+# On MIOpen the bf16 decode steps up from ~12.5 KB per pixel to ~14.4 KB between 1264px and 1280px on the W7900, so frames
+# past the step price on a line of their own, `decode_large_bf16` (the RX 9060 XT with expandable segments has no step,
+# and its entry prices that line as its own decode line). A tiled operation prices its tile on the untiled line, the
+# tile clamped to the frame per axis, plus `tiled_<operation>_<dtype>` for what tiling adds (`fit.Line.sits_on`): over
+# the tile's pixels on MIOpen, over the frame's on cuDNN, whose stand-in is two RGBA copies of the image.
+_LINES = ("decode_bf16", "decode_fp32", "encode_bf16", "encode_fp32")
+_COEFFICIENTS = frozenset(
+ f"{part}_{line}"
+ for part in ("k", "b")
+ for line in (*_LINES, *(f"tiled_{line}" for line in _LINES), "decode_large_bf16")
+)
+_DTYPES = {2: "bf16", 4: "fp32"}
+_MIOPEN_DECODE_STEP_PIXELS = 1_580_000
+
+
+def _dtype(element_size: int) -> str:
+ """The dtype of a VAE with elements this wide. Two bytes are bf16: the loader never holds this VAE in fp16."""
+ dtype = _DTYPES.get(element_size)
+ if dtype is None:
+ raise ValueError(f"Qwen-Image-2.1's VAE has no working-memory lines for {element_size}-byte elements.")
+ return dtype
+
+
+def _untiled_line(suffix: str, pixels: int, features: Mapping[str, FeatureValue]) -> str:
+ """The untiled line `pixels` price on: past MIOpen's step, a bf16 decode's own."""
+ stepped = (
+ suffix == "decode_bf16" and features.get("conv_backend") == "miopen" and pixels > _MIOPEN_DECODE_STEP_PIXELS
+ )
+ return "decode_large_bf16" if stepped else suffix
+
+
+def _line(features: Mapping[str, FeatureValue]) -> Line | None:
+ """`convolution_line`, without the assembly phase, and with what lies past MIOpen's bf16 decode step on its own line:
+ an untiled frame, and a tile that large, which costs what the frame of its size does. On MIOpen what tiling adds
+ grows with the tile, not the frame, so the tiled line's size there is the tile's area; cuDNN's is the frame's.
+
+ The features' `tile` is None where the tile covers the frame (`estimate_working_memory`)."""
+ line = convolution_line(features)
+ if line is None:
+ return None
+ if line.sits_on is not None:
+ beneath, tile_area = line.sits_on
+ size = tile_area if features.get("conv_backend") == "miopen" else line.size
+ # shortcut: on MIOpen nothing here grows with the frame, but tile peaks do (W7900 bf16 decodes by ~78 B/px at a
+ # 512px tile, ~136 at 768, ~220 at 1024; fp32 512px tiles ~19, ~26-28 on the RX with expandable segments). The
+ # reservation covers the measured frames only. W7900: decodes to 5120px, encodes to 4096px, every dtype and
+ # tile. RX 9060 XT (Windows), largest frame per tile 512/768/1024: bf16 decodes 6144 at each; fp32 decodes
+ # 6144/2048/3072; bf16 encodes 5120/5120/5120; fp32 encodes 4096/4096/4096. Extending each line's last measured
+ # segment crosses its reservation from ~4200px (encodes: W7900 bf16 768px tiles, RX fp32 512px tiles) and
+ # ~5490px (decodes: W7900 bf16 512px tiles; RX from ~5870, fp32 1024px tiles). Tiles above 1024px are measured
+ # nowhere: their reservations extrapolate the lines, and an AMD encode there reserves less than the formula this
+ # replaced. Measure them and add terms if needed.
+ return line._replace(size=size, sits_on=(_untiled_line(beneath, tile_area, features), tile_area), assembly=None)
+ return line._replace(suffix=_untiled_line(line.suffix, line.size, features))
+
+
+def _terms(features: Mapping[str, FeatureValue], values: Mapping[str, float]) -> tuple[WorkingMemoryTerm, ...]:
+ line = _line(features)
+ assert line is not None, "an estimate's features always place it on a line"
+ if line.sits_on is None:
+ return (
+ WorkingMemoryTerm.fitted("convolutions", f"k_{line.suffix}", line.size, values),
+ WorkingMemoryTerm.fitted("convolution_base", f"b_{line.suffix}", 1, values),
+ )
+ beneath, tile_area = line.sits_on
+ return (
+ WorkingMemoryTerm.fitted("convolutions", f"k_{beneath}", tile_area, values),
+ WorkingMemoryTerm.fitted("convolution_base", f"b_{beneath}", 1, values),
+ WorkingMemoryTerm.fitted("tiled", f"k_{line.suffix}", line.size, values),
+ WorkingMemoryTerm.fitted("tiled_base", f"b_{line.suffix}", 1, values),
+ )
+
+
+SPEC = register(
+ EstimatorSpec(
+ id="vae.qwen_image_2_1",
+ version=1,
+ coefficients=_COEFFICIENTS,
+ platform_keys=("conv_backend", "allocator"),
+ terms=_terms,
+ line=_line,
+ )
+)
# Tiles of 256px (diffusers' default) leave visible seams: against an untiled fp32 decode a 2048x2048 image came
# to 35.6 dB with alpha off by up to 73/255; 1024px tiles reach 47.7 dB and 16/255. Smaller tiles only where
@@ -31,28 +124,122 @@ _TILE_SIZES = (1024, 768, 512)
MIN_TILE_SIZE = 256
-def working_memory_bytes(height: int, width: int, tile_size: int | None, element_size: int) -> int:
- """Peak bytes an encode or decode of a `height` x `width` image needs, untiled or in `tile_size` tiles.
+def estimate_working_memory(
+ operation: Literal["encode", "decode"],
+ height: int,
+ width: int,
+ tile_size: int | None,
+ element_size: int,
+ device: torch.device,
+) -> WorkingMemoryEstimate:
+ """The working memory an encode or decode of a `height` x `width` image needs on `device`, untiled or in
+ `tile_size` tiles. `element_size` is the byte width of the VAE's dtype: 2 is bf16, 4 fp32."""
+ covering = tile_size is None or (tile_size >= height and tile_size >= width)
+ features = {
+ "operation": operation,
+ "height": height,
+ "width": width,
+ # The VAE tiles only when a side is larger than the tile; a tile covering the frame runs the single pass.
+ "tile": None if covering else tile_size,
+ "dtype": _dtype(element_size),
+ "conv_backend": priced_as(platform_for(device)).conv_backend,
+ }
+ return SPEC.estimate(features, device)
+
- `element_size` is the byte width of the VAE's dtype: a float32 VAE (`precision: float32`) needs twice the
- bfloat16 figure.
+def _measured_untiled_peaks(operation: str, platform: Platform, dtype: str) -> tuple[tuple[int, int, int, int], ...]:
+ """The shipped untiled points of `operation` in `dtype` that cap the line where `platform` is priced, as (area,
+ bytes, height, width) by area, the bytes a running maximum: the W7900's 1024x1536 decode peaked below the smaller
+ 1248x1248 one, and the decision must not fall as a frame grows. Where a non-native allocator has no point of this
+ operation and dtype (cuDNN under `cudaMallocAsync`), the native allocator's, which `priced_as` documents as the
+ larger."""
+ data = shipped_data().values()
+ entries = [entry for file in data for entry in file.coefficients]
+ priced = {key: str(value) for key, value in dataclasses.asdict(priced_as(platform)).items()}
+ measured_on = find_entry(entries, SPEC.id, SPEC.version, priced, str(priced)).platform
+ peaks: dict[int, tuple[int, int, int]] = {}
+ for file in data:
+ for point in file.points:
+ features = point.features
+ if (
+ point.estimator == SPEC.id
+ and point.version == SPEC.version
+ and point.in_fit
+ and point.holds_upper_bound
+ and point.platform == measured_on
+ and features["operation"] == operation
+ and features["tile"] is None
+ and features["dtype"] == dtype
+ ):
+ height, width = cast(int, features["height"]), cast(int, features["width"])
+ if point.measured_bytes > peaks.get(height * width, (0,))[0]:
+ peaks[height * width] = (point.measured_bytes, height, width)
+ if not peaks and platform.allocator != "native":
+ return _measured_untiled_peaks(operation, dataclasses.replace(platform, allocator="native"), dtype)
+ running = 0
+ measured = []
+ for area, (peak, height, width) in sorted(peaks.items()):
+ running = max(running, peak)
+ measured.append((area, running, height, width))
+ return tuple(measured)
+
+
+def untiled_peak_bytes(
+ operation: Literal["encode", "decode"], height: int, width: int, element_size: int, device: torch.device
+) -> int:
+ """What an untiled encode or decode is expected to peak at, for the up-front tiling decision only.
+
+ The reservation carries up to 1.3x headroom over the measured points; deciding to tile on it would tile frames
+ that fit, and tiled output is not pixel-identical. So within the measured untiled points of the platform the device
+ is priced as (each OS-specific entry has its own) this is the chord between the two neighbouring points, in bytes,
+ and past the last one that point's bytes plus what the peak grows by from it. One point decides from its own size
+ on: cuDNN's, so a 1024px decode on NVIDIA tiles on its measured 8.38 GiB rather than on what it reserves. Around
+ the points the peak is the reservation without `fit.SHIPPED_MARGIN`, which a line fitted or raised on them carries:
+ below the first point (which keeps the line's base that a proportional scaling of the point would drop, but never
+ more than the first point's bytes, so the decision does not fall as a frame grows into it) and its growth past the
+ last. cuDNN is measured at 1024px only, so its growth past that rests on the stand-in slope. With no point at all
+ (cuDNN's fp32 decode and both encodes, the original pricing, which carries no margin) it is the reservation.
"""
- pixels = height * width if tile_size is None else min(height * width, tile_size * tile_size)
- return pixels * _BYTES_PER_PIXEL_PER_ELEMENT_BYTE * element_size + _FIXED_BYTES
+ peaks = _measured_untiled_peaks(operation, platform_for(device), _dtype(element_size))
+
+ def reserved(height: int, width: int) -> int:
+ reservation = estimate_working_memory(operation, height, width, None, element_size, device).reservation_bytes
+ return int(reservation / (1 + SHIPPED_MARGIN))
+
+ area = height * width
+ if not peaks:
+ return estimate_working_memory(operation, height, width, None, element_size, device).reservation_bytes
+ if area < peaks[0][0]:
+ return min(reserved(height, width), peaks[0][1])
+ last_area, last_bytes, last_height, last_width = peaks[-1]
+ if area > last_area:
+ return last_bytes + reserved(height, width) - reserved(last_height, last_width)
+ for (previous_area, previous_bytes, *_), (measured_area, measured_bytes, *_) in zip(peaks, peaks[1:], strict=False):
+ if area <= measured_area:
+ span = (measured_bytes - previous_bytes) / (measured_area - previous_area)
+ return int(previous_bytes + span * (area - previous_area))
+ return last_bytes
-def default_tile_size(device: torch.device, element_size: int) -> int:
- """The largest tile whose decode takes at most half of the device's memory."""
- if device.type != "cuda":
+def default_tile_size(operation: Literal["encode", "decode"], device: torch.device, element_size: int) -> int:
+ """The largest tile whose encode or decode takes at most half of the device's memory."""
+ if device.type == "cuda":
+ total = torch.cuda.get_device_properties(device).total_memory
+ elif device.type == "xpu" and device_has_dedicated_vram(device):
+ total = torch.xpu.get_device_properties(device).total_memory
+ else:
return _TILE_SIZES[0]
- total = torch.cuda.get_device_properties(device).total_memory
for size in _TILE_SIZES:
- if working_memory_bytes(size, size, size, element_size) <= total // 2:
+ # Priced as one tile of a larger frame, as it will run and be reserved, tiling overhead included.
+ tiled = estimate_working_memory(operation, 2 * size, 2 * size, size, element_size, device)
+ if tiled.reservation_bytes <= total // 2:
return size
return _TILE_SIZES[-1]
def choose_tile_size(
+ operation: Literal["encode", "decode"],
height: int,
width: int,
element_size: int,
@@ -65,15 +252,16 @@ def choose_tile_size(
"""The tile size an encode or decode runs at, or None to run it in one piece.
`tiled` is the node's request (or `force_tiled_decode`); `auto_tile` (`auto_tiled_decode`) also tiles a frame
- whose untiled working memory would claim too much of the device. `tile_size` is the node field: 0 picks the
+ whose untiled peak (`untiled_peak_bytes`) would claim too much of the device. `tile_size` is the node field: 0 picks the
largest tile for the device, anything else is floored at `MIN_TILE_SIZE`.
"""
if not tiled and not (
- auto_tile and should_pretile_vae_decode(device, working_memory_bytes(height, width, None, element_size))
+ auto_tile
+ and should_pretile_vae_decode(device, untiled_peak_bytes(operation, height, width, element_size, device))
):
return None
if tile_size <= 0:
- return default_tile_size(device, element_size)
+ return default_tile_size(operation, device, element_size)
return max(tile_size, MIN_TILE_SIZE)
diff --git a/invokeai/backend/working_memory/bounds.py b/invokeai/backend/working_memory/bounds.py
index 33658e2dd2..f0aac5db14 100644
--- a/invokeai/backend/working_memory/bounds.py
+++ b/invokeai/backend/working_memory/bounds.py
@@ -170,6 +170,16 @@ UPPER_BOUND_EXCEPTIONS: Final[Mapping[str, float]] = MappingProxyType(
"denoise.krea2-cudnn,native-denoise-fp16-4096+77tok-NVIDIAGeForceRTX4090-demand_peak": 1.35,
"denoise.krea2-cudnn,cudaMallocAsync-denoise-bf16-9216+77tok-NVIDIAGeForceRTX4090-demand_peak": 1.33,
"denoise.krea2-cudnn,cudaMallocAsync-denoise-fp16-9216+77tok-NVIDIAGeForceRTX4090-demand_peak": 1.33,
+ # Qwen-Image-2.1's untiled line at the tile, and one tiled line per dtype for every tile.
+ "vae.qwen_image_2_1-miopen,native-decode-bf16-1536x1536-tile1024-AMDRadeonProW7900DualSlot-reserved_peak": 1.43,
+ "vae.qwen_image_2_1-miopen,native-decode-bf16-2048x2048-tile512-AMDRadeonProW7900DualSlot-reserved_peak": 1.40,
+ "vae.qwen_image_2_1-miopen,native-decode-bf16-2048x2048-tile768-AMDRadeonProW7900DualSlot-reserved_peak": 1.32,
+ "vae.qwen_image_2_1-miopen,native-decode-bf16-3072x3072-tile768-AMDRadeonProW7900DualSlot-reserved_peak": 1.31,
+ "vae.qwen_image_2_1-miopen,native-decode-bf16-4096x4096-tile768-AMDRadeonProW7900DualSlot-reserved_peak": 1.32,
+ "vae.qwen_image_2_1-miopen,expandable,windows-decode-fp32-2048x2048-tile512-AMDRadeonRX9060XT-reserved_peak": 1.34,
+ "vae.qwen_image_2_1-miopen,native,windows-decode-bf16-2048x2048-tile512-AMDRadeonRX9060XT-reserved_peak": 1.55,
+ "vae.qwen_image_2_1-miopen,native,windows-decode-bf16-4096x4096-tile512-AMDRadeonRX9060XT-reserved_peak": 1.40,
+ "vae.qwen_image_2_1-miopen,native,windows-decode-bf16-512x1536-tile1024-AMDRadeonRX9060XT-reserved_peak": 1.50,
}
)
"""In-fit points, by `point_id`, whose envelope sits more than 1.3x above them, with the ratio they are held to: their
@@ -249,7 +259,20 @@ own, rounded up to two decimals, so a refit that moves one shows in the data tes
77-token forward at 4096 image tokens sits 1.35x below it. Under `cudaMallocAsync` a caption token reserves about
twice an image token (1856 against 1680 MiB at 9216 image tokens), and the line is held up by a forward whose warm
run read 18% above its cold one (one 1024px joint reference at 1024px: 1984 against 1680 MiB), which puts the
- 77-token forward at 9216 image tokens 1.32x below it."""
+ 77-token forward at 9216 image tokens 1.32x below it.
+- The Qwen-Image-2.1 points are its VAE's decode tiles on MIOpen, bf16 with the native allocator and fp32 with
+ expandable segments on Windows, where one tiled line per dtype, over the tile's pixels, serves every frame, and the
+ untiled line prices the tile with its headroom. On the
+ W7900, with frames measured to 5120 px, the 1024 px tile took 13.08-15.07 GiB from 2048 px on, but 11.81 GiB at
+ 1536 px, the untiled demand at the tile: held at 1.43x. The 768 px tile of a 1536 px frame took 9.04 GiB, and
+ 7.39-7.43 GiB at 2048-4096 px: held at 1.31-1.32x. The 512 px tile took 4.24-4.38 GiB at 1536, 3072 and 5120 px,
+ but 3.35 GiB at 2048 px, where the allocator has not yet jumped: held at 1.40x. On the RX 9060 XT on Windows the
+ line is flat, 1.45 GiB, set by the 512 px tile of a 5120 px frame, which took 4.38 GiB against 3.00 untiled; the
+ tile took 4.05-4.25 GiB at 1536, 3072 and 6144 px, but 3.35 GiB at 2048 px and 3.69 GiB at 4096 px, where the
+ allocator has not yet jumped: held at 1.55x and 1.40x, the untiled line's 1.24x headroom at 512 px on top; and a
+ 512x1536 frame in 1024 px tiles, 5.91 GiB, at 1.50x, whose 512x1024 tiles nobody measured untiled. With expandable
+ segments the fp32 512 px tile grows with the frame, from 4.46 GiB at 2048 px to 5.33 GiB at 6144 px, which sets the
+ flat line: the 2048 px frame is held at 1.34x."""
def point_id(point: MeasuredPoint, spec: "EstimatorSpec") -> str:
diff --git a/invokeai/backend/working_memory/data/qwen_image_2_1_vae.json b/invokeai/backend/working_memory/data/qwen_image_2_1_vae.json
new file mode 100644
index 0000000000..3801023473
--- /dev/null
+++ b/invokeai/backend/working_memory/data/qwen_image_2_1_vae.json
@@ -0,0 +1,4672 @@
+{
+ "schema_version": 1,
+ "coefficients": [
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "cudnn",
+ "allocator": "native"
+ },
+ "values": {
+ "k_decode_bf16": 8396,
+ "b_decode_bf16": 644874240,
+ "k_decode_large_bf16": 8396,
+ "b_decode_large_bf16": 644874240,
+ "k_decode_fp32": 16000,
+ "b_decode_fp32": 644874240,
+ "k_encode_bf16": 8000,
+ "b_encode_bf16": 644874240,
+ "k_encode_fp32": 16000,
+ "b_encode_fp32": 644874240,
+ "k_tiled_decode_bf16": 16,
+ "b_tiled_decode_bf16": 278921216,
+ "k_tiled_decode_fp32": 32,
+ "b_tiled_decode_fp32": 557842432,
+ "k_tiled_encode_bf16": 16,
+ "b_tiled_encode_bf16": 278921216,
+ "k_tiled_encode_fp32": 32,
+ "b_tiled_encode_fp32": 557842432
+ },
+ "stand_ins": [
+ "b_decode_bf16",
+ "b_decode_fp32",
+ "b_decode_large_bf16",
+ "b_encode_bf16",
+ "b_encode_fp32",
+ "b_tiled_decode_bf16",
+ "b_tiled_decode_fp32",
+ "b_tiled_encode_bf16",
+ "b_tiled_encode_fp32",
+ "k_decode_bf16",
+ "k_decode_fp32",
+ "k_decode_large_bf16",
+ "k_encode_bf16",
+ "k_encode_fp32",
+ "k_tiled_decode_bf16",
+ "k_tiled_decode_fp32",
+ "k_tiled_encode_bf16",
+ "k_tiled_encode_fp32"
+ ],
+ "provenance": "Declared stand-ins: only one untiled cuDNN size is measured (RTX 4090, bf16, 1024px, torch version unknown, recorded in GiB to two decimals), so the lines cannot be fitted. Untiled, the original Qwen-Image-2.1 pricing: 4000 bytes per pixel per element byte plus 0.6 GiB, rounded up to a whole MiB, with the bf16 decode raised to cover its 1024px point by the shipped margin; the encode is priced as the decode (the encoder is narrower, 96 vs 144 base channels, so this is an upper bound), and decode_large_bf16, which only MIOpen prices on, as decode_bf16. A tiled stand-in's slope is two RGBA copies of the image per pixel (16 bytes in bf16, 32 in fp32); the base of the bf16 decode covers the 768px tile by the shipped margin, the other lines take it scaled by the element size, unmeasured."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "cudnn",
+ "allocator": "cudaMallocAsync"
+ },
+ "values": {
+ "k_decode_bf16": 8396,
+ "b_decode_bf16": 644874240,
+ "k_decode_large_bf16": 8396,
+ "b_decode_large_bf16": 644874240,
+ "k_decode_fp32": 16000,
+ "b_decode_fp32": 644874240,
+ "k_encode_bf16": 8000,
+ "b_encode_bf16": 644874240,
+ "k_encode_fp32": 16000,
+ "b_encode_fp32": 644874240,
+ "k_tiled_decode_bf16": 16,
+ "b_tiled_decode_bf16": 278921216,
+ "k_tiled_decode_fp32": 32,
+ "b_tiled_decode_fp32": 557842432,
+ "k_tiled_encode_bf16": 16,
+ "b_tiled_encode_bf16": 278921216,
+ "k_tiled_encode_fp32": 32,
+ "b_tiled_encode_fp32": 557842432
+ },
+ "stand_ins": [
+ "b_decode_bf16",
+ "b_decode_fp32",
+ "b_decode_large_bf16",
+ "b_encode_bf16",
+ "b_encode_fp32",
+ "b_tiled_decode_bf16",
+ "b_tiled_decode_fp32",
+ "b_tiled_encode_bf16",
+ "b_tiled_encode_fp32",
+ "k_decode_bf16",
+ "k_decode_fp32",
+ "k_decode_large_bf16",
+ "k_encode_bf16",
+ "k_encode_fp32",
+ "k_tiled_decode_bf16",
+ "k_tiled_decode_fp32",
+ "k_tiled_encode_bf16",
+ "k_tiled_encode_fp32"
+ ],
+ "provenance": "No Qwen-Image-2.1 point is measured under cudaMallocAsync: priced with the native allocator's stand-ins, the larger of the two on cuDNN (cudaMallocAsync needs 25-35% less)."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native"
+ },
+ "values": {
+ "k_decode_bf16": 13171,
+ "b_decode_bf16": 0,
+ "k_decode_large_bf16": 15580,
+ "b_decode_large_bf16": 0,
+ "k_decode_fp32": 18839,
+ "b_decode_fp32": 1452277760,
+ "k_encode_bf16": 5061,
+ "b_encode_bf16": 0,
+ "k_encode_fp32": 4975,
+ "b_encode_fp32": 1048576,
+ "k_tiled_decode_bf16": 3394,
+ "b_tiled_decode_bf16": 663748608,
+ "k_tiled_decode_fp32": 3657,
+ "b_tiled_decode_fp32": 0,
+ "k_tiled_encode_bf16": 414,
+ "b_tiled_encode_bf16": 233832448,
+ "k_tiled_encode_fp32": 1665,
+ "b_tiled_encode_fp32": 246415360
+ },
+ "stand_ins": [
+ "b_decode_large_bf16",
+ "k_decode_large_bf16"
+ ],
+ "provenance": "Fitted lines are working_memory/fit.py's: the upper envelope of the in-fit points of this entry's lines, plus 5%; a tiled line covers what its points measured above the untiled demand at their tile, per pixel of the tile, as MIOpen's tiled cost grows mostly with the tile rather than the frame (qwen_image_2_1/vae.py, `_line`). AMD Radeon PRO W7900 (gfx1100, 48 GB), Linux, torch 2.13.0+rocm10.0.0, real released Qwen-Image-2.1 VAE weights, bf16 and fp32, one fresh process per point, peak reserved memory; the points are issue 10036's grid and hold-out, and 2026-11-03 runs of scripts/calibrate_qwen_image_2_1_vae_working_memory.py, with 2026-11-08 runs of it for tiled decodes of 4096px and 5120px frames and 2026-11-14 runs for tiled encodes of 4096px frames. The bf16 decode steps up from ~12.5 KB per pixel to ~14.4 KB between 1264px and 1280px (1.60 and 1.64 Mpx), about 1.6 Mpx: decode_large_bf16 prices frames from 1.58 Mpx, so 1264px already, as a declared stand-in, since its points span too little to fit, at the line that covers them. Refitted on its points by scripts/working_memory/build_shipped.py."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native",
+ "os": "windows"
+ },
+ "values": {
+ "k_decode_bf16": 15191,
+ "b_decode_bf16": 0,
+ "k_decode_large_bf16": 18548,
+ "b_decode_large_bf16": 0,
+ "k_decode_fp32": 19928,
+ "b_decode_fp32": 149946368,
+ "k_encode_bf16": 5054,
+ "b_encode_bf16": 14680064,
+ "k_encode_fp32": 4982,
+ "b_encode_fp32": 0,
+ "k_tiled_decode_bf16": 0,
+ "b_tiled_decode_bf16": 1552941056,
+ "k_tiled_decode_fp32": 1176,
+ "b_tiled_decode_fp32": 1326448640,
+ "k_tiled_encode_bf16": 233,
+ "b_tiled_encode_bf16": 329252864,
+ "k_tiled_encode_fp32": 1666,
+ "b_tiled_encode_fp32": 245366784
+ },
+ "stand_ins": [
+ "b_decode_large_bf16",
+ "k_decode_large_bf16"
+ ],
+ "provenance": "Fitted lines are working_memory/fit.py's: the upper envelope of the in-fit points of this entry's lines, plus 5%; a tiled line covers what its points measured above the untiled demand at their tile, per pixel of the tile, as MIOpen's tiled cost grows mostly with the tile rather than the frame (qwen_image_2_1/vae.py, `_line`). AMD Radeon RX 9060 XT (gfx1200, 16 GB), Windows, the native allocator: see its points, in exact bytes. The one line these points cannot fit is a declared stand-in, the W7900's line scaled by what this card measured against the W7900 at the same features, rounded up to a whole byte per pixel: decode_large_bf16, unmeasured here past 1088px, at 1.1905x the W7900's slope (the 1024px bf16 decode, 15,099,494,400 against 12,683,575,296 bytes). Points past the card's 15.09 GiB budget (the 2026-11-14 fp32 decodes, untiled from 1024px and at a 1024px tile, and earlier bf16 decodes from 1088px untiled) ran with Windows paging the excess into shared memory; repeated points matched to the byte. Refitted on its points by scripts/working_memory/build_shipped.py."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "expandable",
+ "os": "windows"
+ },
+ "values": {
+ "k_decode_bf16": 11422,
+ "b_decode_bf16": 137363456,
+ "k_decode_large_bf16": 11684,
+ "b_decode_large_bf16": 150994944,
+ "k_decode_fp32": 18393,
+ "b_decode_fp32": 270532608,
+ "k_encode_bf16": 3856,
+ "b_encode_bf16": 15728640,
+ "k_encode_fp32": 4587,
+ "b_encode_fp32": 0,
+ "k_tiled_decode_bf16": 787,
+ "b_tiled_decode_bf16": 367001600,
+ "k_tiled_decode_fp32": 199,
+ "b_tiled_decode_fp32": 1225785344,
+ "k_tiled_encode_bf16": 234,
+ "b_tiled_encode_bf16": 264241152,
+ "k_tiled_encode_fp32": 833,
+ "b_tiled_encode_fp32": 208666624
+ },
+ "stand_ins": [
+ "b_decode_large_bf16",
+ "k_decode_large_bf16"
+ ],
+ "provenance": "Fitted lines are working_memory/fit.py's: the upper envelope of the in-fit points of this entry's lines, plus 5%; a tiled line covers what its points measured above the untiled demand at their tile, per pixel of the tile, as MIOpen's tiled cost grows mostly with the tile rather than the frame (qwen_image_2_1/vae.py, `_line`). AMD Radeon RX 9060 XT (gfx1200, 16 GB), Windows, expandable segments: see its points, in exact bytes. The lines these points cannot fit are declared stand-ins. decode_large_bf16: this allocator has no step at 1.58 Mpx (10.7 to 11.2 KB per pixel from 1152px through 1280px), and its two points past it, 1264px and 1280px, span too little to fit, so it is this entry's own decode_bf16 line, raised by build_shipped to cover them by the shipped margin. Points past the card's 15.09 GiB budget (the 2026-11-14 fp32 decodes, untiled from 1024px and at a 1024px tile, and earlier bf16 decodes from 1216px untiled) ran with Windows paging the excess into shared memory; repeated points matched to the byte. Refitted on its points by scripts/working_memory/build_shipped.py."
+ }
+ ],
+ "points": [
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "cudnn",
+ "allocator": "native"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 1024,
+ "width": 1024,
+ "tile": null,
+ "dtype": "bf16",
+ "conv_backend": "cudnn"
+ },
+ "measured_bytes": 8997956485,
+ "method": "reserved_peak",
+ "device": "RTX 4090",
+ "provenance": "The comment in invokeai/backend/qwen_image_2_1/vae.py that shipped the original pricing (commit 37efce36d8): bf16, peak reserved memory, recorded in GiB to two decimals. Torch version unknown."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "cudnn",
+ "allocator": "native"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 2048,
+ "width": 2048,
+ "tile": 1024,
+ "dtype": "bf16",
+ "conv_backend": "cudnn"
+ },
+ "measured_bytes": 8997956485,
+ "method": "reserved_peak",
+ "device": "RTX 4090",
+ "provenance": "The comment in invokeai/backend/qwen_image_2_1/vae.py that shipped the original pricing (commit 37efce36d8): bf16, peak reserved memory, recorded in GiB to two decimals. Torch version unknown."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "cudnn",
+ "allocator": "native"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 2048,
+ "width": 2048,
+ "tile": 768,
+ "dtype": "bf16",
+ "conv_backend": "cudnn"
+ },
+ "measured_bytes": 5658619412,
+ "method": "reserved_peak",
+ "device": "RTX 4090",
+ "provenance": "The comment in invokeai/backend/qwen_image_2_1/vae.py that shipped the original pricing (commit 37efce36d8): bf16, peak reserved memory, recorded in GiB to two decimals. Torch version unknown."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "cudnn",
+ "allocator": "native"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 2048,
+ "width": 2048,
+ "tile": 512,
+ "dtype": "bf16",
+ "conv_backend": "cudnn"
+ },
+ "measured_bytes": 2877628088,
+ "method": "reserved_peak",
+ "device": "RTX 4090",
+ "provenance": "The comment in invokeai/backend/qwen_image_2_1/vae.py that shipped the original pricing (commit 37efce36d8): bf16, peak reserved memory, recorded in GiB to two decimals. Torch version unknown."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 512,
+ "width": 512,
+ "tile": null,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 3219128320,
+ "method": "reserved_peak",
+ "device": "AMD Radeon Pro W7900 Dual Slot (gfx1100)",
+ "provenance": "torch 2.13.0+rocm10.0.0, real released Qwen-Image-2.1 VAE weights, install_rocm_sdpa_guard() installed, one fresh process per point, vae.decode under patch_qwen_image_vae_tiling(vae, tile, 16) as the nodes run it; torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, 2026-10-26, bf16. Taken before scripts/calibrate_qwen_image_2_1_vae_working_memory.py was written, with the scratch script it was modelled on."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 768,
+ "width": 768,
+ "tile": null,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 7174356992,
+ "method": "reserved_peak",
+ "device": "AMD Radeon Pro W7900 Dual Slot (gfx1100)",
+ "provenance": "torch 2.13.0+rocm10.0.0, real released Qwen-Image-2.1 VAE weights, install_rocm_sdpa_guard() installed, one fresh process per point, vae.decode under patch_qwen_image_vae_tiling(vae, tile, 16) as the nodes run it; torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, 2026-10-26, bf16. Taken before scripts/calibrate_qwen_image_2_1_vae_working_memory.py was written, with the scratch script it was modelled on."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 1024,
+ "width": 1024,
+ "tile": null,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 12683575296,
+ "method": "reserved_peak",
+ "device": "AMD Radeon Pro W7900 Dual Slot (gfx1100)",
+ "provenance": "torch 2.13.0+rocm10.0.0, real released Qwen-Image-2.1 VAE weights, install_rocm_sdpa_guard() installed, one fresh process per point, vae.decode under patch_qwen_image_vae_tiling(vae, tile, 16) as the nodes run it; torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, 2026-10-26, bf16. Taken before scripts/calibrate_qwen_image_2_1_vae_working_memory.py was written, with the scratch script it was modelled on. A run of that script on 2026-11-03 measured the same bytes on this card."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 1280,
+ "width": 1280,
+ "tile": null,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 23563599872,
+ "method": "reserved_peak",
+ "device": "AMD Radeon Pro W7900 Dual Slot (gfx1100)",
+ "provenance": "torch 2.13.0+rocm10.0.0, real released Qwen-Image-2.1 VAE weights, install_rocm_sdpa_guard() installed, one fresh process per point, vae.decode under patch_qwen_image_vae_tiling(vae, tile, 16) as the nodes run it; torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, 2026-10-26, bf16. Taken before scripts/calibrate_qwen_image_2_1_vae_working_memory.py was written, with the scratch script it was modelled on."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 1536,
+ "width": 1536,
+ "tile": null,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 35005661184,
+ "method": "reserved_peak",
+ "device": "AMD Radeon Pro W7900 Dual Slot (gfx1100)",
+ "provenance": "torch 2.13.0+rocm10.0.0, real released Qwen-Image-2.1 VAE weights, install_rocm_sdpa_guard() installed, one fresh process per point, vae.decode under patch_qwen_image_vae_tiling(vae, tile, 16) as the nodes run it; torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, 2026-10-26, bf16. Taken before scripts/calibrate_qwen_image_2_1_vae_working_memory.py was written, with the scratch script it was modelled on."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 1024,
+ "width": 1536,
+ "tile": null,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 18979225600,
+ "method": "reserved_peak",
+ "device": "AMD Radeon Pro W7900 Dual Slot (gfx1100)",
+ "provenance": "torch 2.13.0+rocm10.0.0, real released Qwen-Image-2.1 VAE weights, install_rocm_sdpa_guard() installed, one fresh process per point, vae.decode under patch_qwen_image_vae_tiling(vae, tile, 16) as the nodes run it; torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, 2026-10-26, bf16. Taken before scripts/calibrate_qwen_image_2_1_vae_working_memory.py was written, with the scratch script it was modelled on."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 2048,
+ "width": 2048,
+ "tile": 1024,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 14044626944,
+ "method": "reserved_peak",
+ "device": "AMD Radeon Pro W7900 Dual Slot (gfx1100)",
+ "provenance": "torch 2.13.0+rocm10.0.0, real released Qwen-Image-2.1 VAE weights, install_rocm_sdpa_guard() installed, one fresh process per point, vae.decode under patch_qwen_image_vae_tiling(vae, tile, 16) as the nodes run it; torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, 2026-10-26, bf16. Taken before scripts/calibrate_qwen_image_2_1_vae_working_memory.py was written, with the scratch script it was modelled on."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 2048,
+ "width": 2048,
+ "tile": 768,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 7939817472,
+ "method": "reserved_peak",
+ "device": "AMD Radeon Pro W7900 Dual Slot (gfx1100)",
+ "provenance": "torch 2.13.0+rocm10.0.0, real released Qwen-Image-2.1 VAE weights, install_rocm_sdpa_guard() installed, one fresh process per point, vae.decode under patch_qwen_image_vae_tiling(vae, tile, 16) as the nodes run it; torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, 2026-10-26, bf16. Taken before scripts/calibrate_qwen_image_2_1_vae_working_memory.py was written, with the scratch script it was modelled on."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 2048,
+ "width": 2048,
+ "tile": 512,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 3592421376,
+ "method": "reserved_peak",
+ "device": "AMD Radeon Pro W7900 Dual Slot (gfx1100)",
+ "provenance": "torch 2.13.0+rocm10.0.0, real released Qwen-Image-2.1 VAE weights, install_rocm_sdpa_guard() installed, one fresh process per point, vae.decode under patch_qwen_image_vae_tiling(vae, tile, 16) as the nodes run it; torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, 2026-10-26, bf16. Taken before scripts/calibrate_qwen_image_2_1_vae_working_memory.py was written, with the scratch script it was modelled on. A run of that script on 2026-11-03 measured the same bytes on this card."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 1024,
+ "width": 1024,
+ "tile": null,
+ "dtype": "fp32",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 20195573760,
+ "method": "reserved_peak",
+ "device": "AMD Radeon Pro W7900 Dual Slot (gfx1100)",
+ "provenance": "torch 2.13.0+rocm10.0.0, real released Qwen-Image-2.1 VAE weights, install_rocm_sdpa_guard() installed, one fresh process per point, vae.decode under patch_qwen_image_vae_tiling(vae, tile, 16) as the nodes run it; torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, 2026-10-26, fp32. Taken before scripts/calibrate_qwen_image_2_1_vae_working_memory.py was written, with the scratch script it was modelled on."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 1536,
+ "width": 1536,
+ "tile": null,
+ "dtype": "fp32",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 37492883456,
+ "method": "reserved_peak",
+ "device": "AMD Radeon Pro W7900 Dual Slot (gfx1100)",
+ "provenance": "torch 2.13.0+rocm10.0.0, real released Qwen-Image-2.1 VAE weights, install_rocm_sdpa_guard() installed, one fresh process per point, vae.decode under patch_qwen_image_vae_tiling(vae, tile, 16) as the nodes run it; torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, 2026-10-26, fp32. Taken before scripts/calibrate_qwen_image_2_1_vae_working_memory.py was written, with the scratch script it was modelled on."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 2048,
+ "width": 2048,
+ "tile": 1024,
+ "dtype": "fp32",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 23840423936,
+ "method": "reserved_peak",
+ "device": "AMD Radeon Pro W7900 Dual Slot (gfx1100)",
+ "provenance": "torch 2.13.0+rocm10.0.0, real released Qwen-Image-2.1 VAE weights, install_rocm_sdpa_guard() installed, one fresh process per point, vae.decode under patch_qwen_image_vae_tiling(vae, tile, 16) as the nodes run it; torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, 2026-10-26, fp32. Taken before scripts/calibrate_qwen_image_2_1_vae_working_memory.py was written, with the scratch script it was modelled on."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native"
+ },
+ "features": {
+ "operation": "encode",
+ "height": 1024,
+ "width": 1024,
+ "tile": null,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 5054136320,
+ "method": "reserved_peak",
+ "device": "AMD Radeon Pro W7900 Dual Slot (gfx1100)",
+ "provenance": "torch 2.13.0+rocm10.0.0, real released Qwen-Image-2.1 VAE weights, install_rocm_sdpa_guard() installed, one fresh process per point, vae.encode under patch_qwen_image_vae_tiling(vae, tile, 16) as the nodes run it; torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, 2026-10-26, bf16. Taken before scripts/calibrate_qwen_image_2_1_vae_working_memory.py was written, with the scratch script it was modelled on. A run of that script on 2026-11-03 measured the same bytes on this card."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native"
+ },
+ "features": {
+ "operation": "encode",
+ "height": 1536,
+ "width": 1536,
+ "tile": null,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 11362369536,
+ "method": "reserved_peak",
+ "device": "AMD Radeon Pro W7900 Dual Slot (gfx1100)",
+ "provenance": "torch 2.13.0+rocm10.0.0, real released Qwen-Image-2.1 VAE weights, install_rocm_sdpa_guard() installed, one fresh process per point, vae.encode under patch_qwen_image_vae_tiling(vae, tile, 16) as the nodes run it; torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, 2026-10-26, bf16. Taken before scripts/calibrate_qwen_image_2_1_vae_working_memory.py was written, with the scratch script it was modelled on."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native"
+ },
+ "features": {
+ "operation": "encode",
+ "height": 2048,
+ "width": 2048,
+ "tile": 1024,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 5475663872,
+ "method": "reserved_peak",
+ "device": "AMD Radeon Pro W7900 Dual Slot (gfx1100)",
+ "provenance": "torch 2.13.0+rocm10.0.0, real released Qwen-Image-2.1 VAE weights, install_rocm_sdpa_guard() installed, one fresh process per point, vae.encode under patch_qwen_image_vae_tiling(vae, tile, 16) as the nodes run it; torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, 2026-10-26, bf16. Taken before scripts/calibrate_qwen_image_2_1_vae_working_memory.py was written, with the scratch script it was modelled on."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 896,
+ "width": 1152,
+ "tile": null,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 12490637312,
+ "method": "reserved_peak",
+ "device": "AMD Radeon Pro W7900 Dual Slot (gfx1100)",
+ "provenance": "torch 2.13.0+rocm10.0.0, real released Qwen-Image-2.1 VAE weights, install_rocm_sdpa_guard() installed, one fresh process per point, vae.decode under patch_qwen_image_vae_tiling(vae, tile, 16) as the nodes run it; torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, 2026-10-26, bf16. Taken before scripts/calibrate_qwen_image_2_1_vae_working_memory.py was written, with the scratch script it was modelled on."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 1344,
+ "width": 768,
+ "tile": null,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 12490637312,
+ "method": "reserved_peak",
+ "device": "AMD Radeon Pro W7900 Dual Slot (gfx1100)",
+ "provenance": "torch 2.13.0+rocm10.0.0, real released Qwen-Image-2.1 VAE weights, install_rocm_sdpa_guard() installed, one fresh process per point, vae.decode under patch_qwen_image_vae_tiling(vae, tile, 16) as the nodes run it; torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, 2026-10-26, bf16. Taken before scripts/calibrate_qwen_image_2_1_vae_working_memory.py was written, with the scratch script it was modelled on."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 1792,
+ "width": 1792,
+ "tile": 768,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 8279556096,
+ "method": "reserved_peak",
+ "device": "AMD Radeon Pro W7900 Dual Slot (gfx1100)",
+ "provenance": "torch 2.13.0+rocm10.0.0, real released Qwen-Image-2.1 VAE weights, install_rocm_sdpa_guard() installed, one fresh process per point, vae.decode under patch_qwen_image_vae_tiling(vae, tile, 16) as the nodes run it; torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, 2026-10-26, bf16. Taken before scripts/calibrate_qwen_image_2_1_vae_working_memory.py was written, with the scratch script it was modelled on."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 1536,
+ "width": 1536,
+ "tile": 1024,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 12683575296,
+ "method": "reserved_peak",
+ "device": "AMD Radeon Pro W7900 Dual Slot (gfx1100)",
+ "provenance": "torch 2.13.0+rocm10.0.0, real released Qwen-Image-2.1 VAE weights, install_rocm_sdpa_guard() installed, one fresh process per point, vae.decode under patch_qwen_image_vae_tiling(vae, tile, 16) as the nodes run it; torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, 2026-10-26, bf16. Taken before scripts/calibrate_qwen_image_2_1_vae_working_memory.py was written, with the scratch script it was modelled on."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 1280,
+ "width": 1280,
+ "tile": null,
+ "dtype": "fp32",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 30777802752,
+ "method": "reserved_peak",
+ "device": "AMD Radeon Pro W7900 Dual Slot (gfx1100)",
+ "provenance": "torch 2.13.0+rocm10.0.0, real released Qwen-Image-2.1 VAE weights, install_rocm_sdpa_guard() installed, one fresh process per point, vae.decode under patch_qwen_image_vae_tiling(vae, tile, 16) as the nodes run it; torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, 2026-10-26, fp32. Taken before scripts/calibrate_qwen_image_2_1_vae_working_memory.py was written, with the scratch script it was modelled on."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 2048,
+ "width": 2048,
+ "tile": 768,
+ "dtype": "fp32",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 13457424384,
+ "method": "reserved_peak",
+ "device": "AMD Radeon Pro W7900 Dual Slot (gfx1100)",
+ "provenance": "torch 2.13.0+rocm10.0.0, real released Qwen-Image-2.1 VAE weights, install_rocm_sdpa_guard() installed, one fresh process per point, vae.decode under patch_qwen_image_vae_tiling(vae, tile, 16) as the nodes run it; torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, 2026-10-26, fp32. Taken before scripts/calibrate_qwen_image_2_1_vae_working_memory.py was written, with the scratch script it was modelled on."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native"
+ },
+ "features": {
+ "operation": "encode",
+ "height": 1280,
+ "width": 1280,
+ "tile": null,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 7893680128,
+ "method": "reserved_peak",
+ "device": "AMD Radeon Pro W7900 Dual Slot (gfx1100)",
+ "provenance": "torch 2.13.0+rocm10.0.0, real released Qwen-Image-2.1 VAE weights, install_rocm_sdpa_guard() installed, one fresh process per point, vae.encode under patch_qwen_image_vae_tiling(vae, tile, 16) as the nodes run it; torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, 2026-10-26, bf16. Taken before scripts/calibrate_qwen_image_2_1_vae_working_memory.py was written, with the scratch script it was modelled on."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native"
+ },
+ "features": {
+ "operation": "encode",
+ "height": 1024,
+ "width": 1024,
+ "tile": null,
+ "dtype": "fp32",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 4968153088,
+ "method": "reserved_peak",
+ "device": "AMD Radeon Pro W7900 Dual Slot (gfx1100)",
+ "provenance": "torch 2.13.0+rocm10.0.0, real released Qwen-Image-2.1 VAE weights, install_rocm_sdpa_guard() installed, one fresh process per point, vae.encode under patch_qwen_image_vae_tiling(vae, tile, 16) as the nodes run it; torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, 2026-10-26, fp32. Taken before scripts/calibrate_qwen_image_2_1_vae_working_memory.py was written, with the scratch script it was modelled on."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 1600,
+ "width": 1600,
+ "tile": null,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 36777754624,
+ "method": "reserved_peak",
+ "device": "AMD Radeon Pro W7900 Dual Slot (gfx1100)",
+ "provenance": "torch 2.13.0+rocm10.0.0, real released Qwen-Image-2.1 VAE weights, install_rocm_sdpa_guard() installed, one fresh process per point, vae.decode under patch_qwen_image_vae_tiling(vae, tile, 16) as the nodes run it; torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, 2026-10-26, bf16. Taken before scripts/calibrate_qwen_image_2_1_vae_working_memory.py was written, with the scratch script it was modelled on."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 3072,
+ "width": 3072,
+ "tile": 1024,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 14044626944,
+ "method": "reserved_peak",
+ "device": "AMD Radeon Pro W7900 Dual Slot (gfx1100)",
+ "provenance": "torch 2.13.0+rocm10.0.0, real released Qwen-Image-2.1 VAE weights, install_rocm_sdpa_guard() installed, one fresh process per point, vae.decode under patch_qwen_image_vae_tiling(vae, tile, 16) as the nodes run it; torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, 2026-10-26, bf16. Taken before scripts/calibrate_qwen_image_2_1_vae_working_memory.py was written, with the scratch script it was modelled on."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 3072,
+ "width": 3072,
+ "tile": 1024,
+ "dtype": "fp32",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 23840423936,
+ "method": "reserved_peak",
+ "device": "AMD Radeon Pro W7900 Dual Slot (gfx1100)",
+ "provenance": "torch 2.13.0+rocm10.0.0, real released Qwen-Image-2.1 VAE weights, install_rocm_sdpa_guard() installed, one fresh process per point, vae.decode under patch_qwen_image_vae_tiling(vae, tile, 16) as the nodes run it; torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, 2026-10-26, fp32. Taken before scripts/calibrate_qwen_image_2_1_vae_working_memory.py was written, with the scratch script it was modelled on."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 3072,
+ "width": 3072,
+ "tile": 768,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 7979663360,
+ "method": "reserved_peak",
+ "device": "AMD Radeon Pro W7900 Dual Slot (gfx1100)",
+ "provenance": "torch 2.13.0+rocm10.0.0, real released Qwen-Image-2.1 VAE weights, install_rocm_sdpa_guard() installed, one fresh process per point, vae.decode under patch_qwen_image_vae_tiling(vae, tile, 16) as the nodes run it; torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, 2026-10-26, bf16. Taken before scripts/calibrate_qwen_image_2_1_vae_working_memory.py was written, with the scratch script it was modelled on."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 1536,
+ "width": 1536,
+ "tile": 768,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 9711910912,
+ "method": "reserved_peak",
+ "device": "AMD Radeon Pro W7900 Dual Slot (gfx1100)",
+ "provenance": "torch 2.13.0+rocm10.0.0, real released Qwen-Image-2.1 VAE weights, install_rocm_sdpa_guard() installed, one fresh process per point, vae.decode under patch_qwen_image_vae_tiling(vae, tile, 16) as the nodes run it; torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, 2026-10-26, bf16. Taken before scripts/calibrate_qwen_image_2_1_vae_working_memory.py was written, with the scratch script it was modelled on."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native"
+ },
+ "features": {
+ "operation": "encode",
+ "height": 2048,
+ "width": 2048,
+ "tile": null,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 20199768064,
+ "method": "reserved_peak",
+ "device": "AMD Radeon Pro W7900 Dual Slot (gfx1100)",
+ "provenance": "torch 2.13.0+rocm10.0.0, real released Qwen-Image-2.1 VAE weights, install_rocm_sdpa_guard() installed, one fresh process per point, vae.encode under patch_qwen_image_vae_tiling(vae, tile, 16) as the nodes run it; torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, 2026-10-26, bf16. Taken before scripts/calibrate_qwen_image_2_1_vae_working_memory.py was written, with the scratch script it was modelled on."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native"
+ },
+ "features": {
+ "operation": "encode",
+ "height": 1536,
+ "width": 1536,
+ "tile": null,
+ "dtype": "fp32",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 11177820160,
+ "method": "reserved_peak",
+ "device": "AMD Radeon Pro W7900 Dual Slot (gfx1100)",
+ "provenance": "torch 2.13.0+rocm10.0.0, real released Qwen-Image-2.1 VAE weights, install_rocm_sdpa_guard() installed, one fresh process per point, vae.encode under patch_qwen_image_vae_tiling(vae, tile, 16) as the nodes run it; torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, 2026-10-26, fp32. Taken before scripts/calibrate_qwen_image_2_1_vae_working_memory.py was written, with the scratch script it was modelled on."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native"
+ },
+ "features": {
+ "operation": "encode",
+ "height": 2048,
+ "width": 2048,
+ "tile": 1024,
+ "dtype": "fp32",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 6784286720,
+ "method": "reserved_peak",
+ "device": "AMD Radeon Pro W7900 Dual Slot (gfx1100)",
+ "provenance": "torch 2.13.0+rocm10.0.0, real released Qwen-Image-2.1 VAE weights, install_rocm_sdpa_guard() installed, one fresh process per point, vae.encode under patch_qwen_image_vae_tiling(vae, tile, 16) as the nodes run it; torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, 2026-10-26, fp32. Taken before scripts/calibrate_qwen_image_2_1_vae_working_memory.py was written, with the scratch script it was modelled on."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native"
+ },
+ "features": {
+ "operation": "encode",
+ "height": 512,
+ "width": 512,
+ "tile": null,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 1260388352,
+ "method": "reserved_peak",
+ "device": "AMD Radeon Pro W7900 Dual Slot (gfx1100)",
+ "provenance": "torch 2.13.0+rocm10.0.0, real released Qwen-Image-2.1 VAE weights, install_rocm_sdpa_guard() installed, one fresh process per point, vae.encode under patch_qwen_image_vae_tiling(vae, tile, 16) as the nodes run it; torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, 2026-10-26, bf16. Taken before scripts/calibrate_qwen_image_2_1_vae_working_memory.py was written, with the scratch script it was modelled on."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native"
+ },
+ "features": {
+ "operation": "encode",
+ "height": 2048,
+ "width": 2048,
+ "tile": 768,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 3099590656,
+ "method": "reserved_peak",
+ "device": "AMD Radeon Pro W7900 Dual Slot (gfx1100)",
+ "provenance": "torch 2.13.0+rocm10.0.0, real released Qwen-Image-2.1 VAE weights, install_rocm_sdpa_guard() installed, one fresh process per point, vae.encode under patch_qwen_image_vae_tiling(vae, tile, 16) as the nodes run it; torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, 2026-10-26, bf16. Taken before scripts/calibrate_qwen_image_2_1_vae_working_memory.py was written, with the scratch script it was modelled on."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native"
+ },
+ "features": {
+ "operation": "encode",
+ "height": 2048,
+ "width": 2048,
+ "tile": 512,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 1461714944,
+ "method": "reserved_peak",
+ "device": "AMD Radeon Pro W7900 Dual Slot (gfx1100)",
+ "provenance": "torch 2.13.0+rocm10.0.0, real released Qwen-Image-2.1 VAE weights, install_rocm_sdpa_guard() installed, one fresh process per point, vae.encode under patch_qwen_image_vae_tiling(vae, tile, 16) as the nodes run it; torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, 2026-10-26, bf16. Taken before scripts/calibrate_qwen_image_2_1_vae_working_memory.py was written, with the scratch script it was modelled on. A run of that script on 2026-11-03 measured the same bytes on this card."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native"
+ },
+ "features": {
+ "operation": "encode",
+ "height": 2048,
+ "width": 2048,
+ "tile": 768,
+ "dtype": "fp32",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 3839885312,
+ "method": "reserved_peak",
+ "device": "AMD Radeon Pro W7900 Dual Slot (gfx1100)",
+ "provenance": "torch 2.13.0+rocm10.0.0, real released Qwen-Image-2.1 VAE weights, install_rocm_sdpa_guard() installed, one fresh process per point, vae.encode under patch_qwen_image_vae_tiling(vae, tile, 16) as the nodes run it; torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, 2026-10-26, fp32. Taken before scripts/calibrate_qwen_image_2_1_vae_working_memory.py was written, with the scratch script it was modelled on."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native"
+ },
+ "features": {
+ "operation": "encode",
+ "height": 2048,
+ "width": 2048,
+ "tile": 512,
+ "dtype": "fp32",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 1782579200,
+ "method": "reserved_peak",
+ "device": "AMD Radeon Pro W7900 Dual Slot (gfx1100)",
+ "provenance": "torch 2.13.0+rocm10.0.0, real released Qwen-Image-2.1 VAE weights, install_rocm_sdpa_guard() installed, one fresh process per point, vae.encode under patch_qwen_image_vae_tiling(vae, tile, 16) as the nodes run it; torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, 2026-10-26, fp32. Taken before scripts/calibrate_qwen_image_2_1_vae_working_memory.py was written, with the scratch script it was modelled on."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 2048,
+ "width": 2048,
+ "tile": 512,
+ "dtype": "fp32",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 6056574976,
+ "method": "reserved_peak",
+ "device": "AMD Radeon Pro W7900 Dual Slot (gfx1100)",
+ "provenance": "torch 2.13.0+rocm10.0.0, real released Qwen-Image-2.1 VAE weights, install_rocm_sdpa_guard() installed, one fresh process per point, vae.decode under patch_qwen_image_vae_tiling(vae, tile, 16) as the nodes run it; torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, 2026-10-26, fp32. Taken before scripts/calibrate_qwen_image_2_1_vae_working_memory.py was written, with the scratch script it was modelled on. A run of that script on 2026-11-03 measured the same bytes on this card."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 1536,
+ "width": 1536,
+ "tile": 512,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 4555014144,
+ "method": "reserved_peak",
+ "device": "AMD Radeon Pro W7900 Dual Slot (gfx1100)",
+ "provenance": "torch 2.13.0+rocm10.0.0, real released Qwen-Image-2.1 VAE weights, install_rocm_sdpa_guard() installed, one fresh process per point, vae.decode under patch_qwen_image_vae_tiling(vae, tile, 16) as the nodes run it; torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, 2026-10-26, bf16. Taken before scripts/calibrate_qwen_image_2_1_vae_working_memory.py was written, with the scratch script it was modelled on."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 3072,
+ "width": 3072,
+ "tile": 512,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 4563402752,
+ "method": "reserved_peak",
+ "device": "AMD Radeon Pro W7900 Dual Slot (gfx1100)",
+ "provenance": "torch 2.13.0+rocm10.0.0, real released Qwen-Image-2.1 VAE weights, install_rocm_sdpa_guard() installed, one fresh process per point, vae.decode under patch_qwen_image_vae_tiling(vae, tile, 16) as the nodes run it; torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, 2026-10-26, bf16. Taken before scripts/calibrate_qwen_image_2_1_vae_working_memory.py was written, with the scratch script it was modelled on."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 1120,
+ "width": 1120,
+ "tile": null,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 15181283328,
+ "method": "reserved_peak",
+ "device": "AMD Radeon Pro W7900 Dual Slot (gfx1100)",
+ "provenance": "torch 2.13.0+rocm10.0.0, real released Qwen-Image-2.1 VAE weights, install_rocm_sdpa_guard() installed, one fresh process per point, vae.decode under patch_qwen_image_vae_tiling(vae, tile, 16) as the nodes run it; torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, 2026-10-26, bf16. Taken before scripts/calibrate_qwen_image_2_1_vae_working_memory.py was written, with the scratch script it was modelled on."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 1152,
+ "width": 1152,
+ "tile": null,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 16611540992,
+ "method": "reserved_peak",
+ "device": "AMD Radeon Pro W7900 Dual Slot (gfx1100)",
+ "provenance": "torch 2.13.0+rocm10.0.0, real released Qwen-Image-2.1 VAE weights, install_rocm_sdpa_guard() installed, one fresh process per point, vae.decode under patch_qwen_image_vae_tiling(vae, tile, 16) as the nodes run it; torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, 2026-10-26, bf16. Taken before scripts/calibrate_qwen_image_2_1_vae_working_memory.py was written, with the scratch script it was modelled on."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 1216,
+ "width": 1216,
+ "tile": null,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 17871929344,
+ "method": "reserved_peak",
+ "device": "AMD Radeon Pro W7900 Dual Slot (gfx1100)",
+ "provenance": "torch 2.13.0+rocm10.0.0, real released Qwen-Image-2.1 VAE weights, install_rocm_sdpa_guard() installed, one fresh process per point, vae.decode under patch_qwen_image_vae_tiling(vae, tile, 16) as the nodes run it; torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, 2026-10-26, bf16. Taken before scripts/calibrate_qwen_image_2_1_vae_working_memory.py was written, with the scratch script it was modelled on."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 1088,
+ "width": 1088,
+ "tile": null,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 14847836160,
+ "method": "reserved_peak",
+ "device": "AMD Radeon Pro W7900 Dual Slot (gfx1100)",
+ "provenance": "torch 2.13.0+rocm10.0.0, real released Qwen-Image-2.1 VAE weights, install_rocm_sdpa_guard() installed, one fresh process per point, vae.decode under patch_qwen_image_vae_tiling(vae, tile, 16) as the nodes run it; torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, 2026-10-26, bf16. Taken before scripts/calibrate_qwen_image_2_1_vae_working_memory.py was written, with the scratch script it was modelled on."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 3072,
+ "width": 3072,
+ "tile": 512,
+ "dtype": "fp32",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 6056574976,
+ "method": "reserved_peak",
+ "device": "AMD Radeon Pro W7900 Dual Slot (gfx1100)",
+ "provenance": "scripts/calibrate_qwen_image_2_1_vae_working_memory.py, 2026-11-03: AMD Radeon Pro W7900 Dual Slot (gfx1100), torch 2.13.0+rocm10.0.0 (HIP 7.15.26333), Linux, no allocator configuration (torch reports the native allocator), MIOPEN_FIND_MODE=FAST, TORCH_ROCM_AOTRITON_ENABLE_EXPERIMENTAL=unset, ROCm SDPA guard installed, real weights, one fresh process per point, max_memory_reserved minus the baseline after the weights loaded."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 1232,
+ "width": 1232,
+ "tile": null,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 18438160384,
+ "method": "reserved_peak",
+ "device": "AMD Radeon Pro W7900 Dual Slot (gfx1100)",
+ "provenance": "scripts/calibrate_qwen_image_2_1_vae_working_memory.py, 2026-11-03: AMD Radeon Pro W7900 Dual Slot (gfx1100), torch 2.13.0+rocm10.0.0 (HIP 7.15.26333), Linux, no allocator configuration (torch reports the native allocator), MIOPEN_FIND_MODE=FAST, TORCH_ROCM_AOTRITON_ENABLE_EXPERIMENTAL=unset, ROCm SDPA guard installed, real weights, one fresh process per point, max_memory_reserved minus the baseline after the weights loaded."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 1248,
+ "width": 1248,
+ "tile": null,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 19482542080,
+ "method": "reserved_peak",
+ "device": "AMD Radeon Pro W7900 Dual Slot (gfx1100)",
+ "provenance": "scripts/calibrate_qwen_image_2_1_vae_working_memory.py, 2026-11-03: AMD Radeon Pro W7900 Dual Slot (gfx1100), torch 2.13.0+rocm10.0.0 (HIP 7.15.26333), Linux, no allocator configuration (torch reports the native allocator), MIOPEN_FIND_MODE=FAST, TORCH_ROCM_AOTRITON_ENABLE_EXPERIMENTAL=unset, ROCm SDPA guard installed, real weights, one fresh process per point, max_memory_reserved minus the baseline after the weights loaded."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 1264,
+ "width": 1264,
+ "tile": null,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 20589838336,
+ "method": "reserved_peak",
+ "device": "AMD Radeon Pro W7900 Dual Slot (gfx1100)",
+ "provenance": "scripts/calibrate_qwen_image_2_1_vae_working_memory.py, 2026-11-03: AMD Radeon Pro W7900 Dual Slot (gfx1100), torch 2.13.0+rocm10.0.0 (HIP 7.15.26333), Linux, no allocator configuration (torch reports the native allocator), MIOPEN_FIND_MODE=FAST, TORCH_ROCM_AOTRITON_ENABLE_EXPERIMENTAL=unset, ROCm SDPA guard installed, real weights, one fresh process per point, max_memory_reserved minus the baseline after the weights loaded."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 1408,
+ "width": 1408,
+ "tile": null,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 28473032704,
+ "method": "reserved_peak",
+ "device": "AMD Radeon Pro W7900 Dual Slot (gfx1100)",
+ "provenance": "scripts/calibrate_qwen_image_2_1_vae_working_memory.py, 2026-11-03: AMD Radeon Pro W7900 Dual Slot (gfx1100), torch 2.13.0+rocm10.0.0 (HIP 7.15.26333), Linux, no allocator configuration (torch reports the native allocator), MIOPEN_FIND_MODE=FAST, TORCH_ROCM_AOTRITON_ENABLE_EXPERIMENTAL=unset, ROCm SDPA guard installed, real weights, one fresh process per point, max_memory_reserved minus the baseline after the weights loaded."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "expandable",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 1024,
+ "width": 1024,
+ "tile": null,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 11263803392,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at ee60bc2cd5: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, expandable segments."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "expandable",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 1536,
+ "width": 1536,
+ "tile": 768,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 6775898112,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at ee60bc2cd5: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, expandable segments."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "expandable",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 1152,
+ "width": 1152,
+ "tile": 768,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 6440353792,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at ee60bc2cd5: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, expandable segments."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "expandable",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 1280,
+ "width": 1280,
+ "tile": 768,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 6440353792,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at ee60bc2cd5: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, expandable segments."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "expandable",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 1792,
+ "width": 1792,
+ "tile": 768,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 6712983552,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at ee60bc2cd5: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, expandable segments."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "expandable",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 2048,
+ "width": 2048,
+ "tile": 768,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 6796869632,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at ee60bc2cd5: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, expandable segments."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "expandable",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 3072,
+ "width": 3072,
+ "tile": 768,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 6796869632,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at ee60bc2cd5: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, expandable segments."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "expandable",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 1024,
+ "width": 1536,
+ "tile": 768,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 6715080704,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at ee60bc2cd5: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, expandable segments."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "expandable",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 1536,
+ "width": 1536,
+ "tile": 512,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 3066036224,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at ee60bc2cd5: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, expandable segments."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "expandable",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 2048,
+ "width": 2048,
+ "tile": 512,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 3087007744,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at ee60bc2cd5: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, expandable segments."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "expandable",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 3072,
+ "width": 3072,
+ "tile": 512,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 3149922304,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at ee60bc2cd5: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, expandable segments."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "expandable",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 1536,
+ "width": 1536,
+ "tile": 1024,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 11263803392,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at ee60bc2cd5: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, expandable segments."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "expandable",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 2048,
+ "width": 2048,
+ "tile": 1024,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 11874074624,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at ee60bc2cd5: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, expandable segments."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "expandable",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 3072,
+ "width": 3072,
+ "tile": 1024,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 12020875264,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at ee60bc2cd5: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, expandable segments."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "expandable",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 512,
+ "width": 1536,
+ "tile": 1024,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 5769265152,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at ee60bc2cd5: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, expandable segments."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "expandable",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 512,
+ "width": 512,
+ "tile": null,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 2982150144,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at ee60bc2cd5: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, expandable segments."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "expandable",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 768,
+ "width": 768,
+ "tile": null,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 6440353792,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at ee60bc2cd5: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, expandable segments."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "expandable",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 1088,
+ "width": 1088,
+ "tile": null,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 12668895232,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at ee60bc2cd5: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, expandable segments."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "expandable",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 896,
+ "width": 1152,
+ "tile": null,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 11096031232,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at ee60bc2cd5: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, expandable segments."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "expandable",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 512,
+ "width": 1536,
+ "tile": null,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 8474591232,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at ee60bc2cd5: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, expandable segments."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "expandable",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "encode",
+ "height": 1024,
+ "width": 1024,
+ "tile": null,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 3858759680,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at ee60bc2cd5: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, expandable segments."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "expandable",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "encode",
+ "height": 1536,
+ "width": 1536,
+ "tile": null,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 8661237760,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at ee60bc2cd5: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, expandable segments."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "expandable",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "encode",
+ "height": 1792,
+ "width": 1792,
+ "tile": null,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 11806965760,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at ee60bc2cd5: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, expandable segments."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "expandable",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "encode",
+ "height": 2048,
+ "width": 2048,
+ "tile": 512,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 1136656384,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at ee60bc2cd5: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, expandable segments."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "expandable",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "encode",
+ "height": 2048,
+ "width": 2048,
+ "tile": 768,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 2415919104,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at ee60bc2cd5: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, expandable segments."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "expandable",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "encode",
+ "height": 2048,
+ "width": 2048,
+ "tile": 1024,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 4282384384,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at ee60bc2cd5: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, expandable segments."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "expandable",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "encode",
+ "height": 3072,
+ "width": 3072,
+ "tile": 1024,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 4326424576,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at ee60bc2cd5: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, expandable segments."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "expandable",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 768,
+ "width": 768,
+ "tile": null,
+ "dtype": "fp32",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 9835642880,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at ee60bc2cd5: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, expandable segments."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "expandable",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 2048,
+ "width": 2048,
+ "tile": 512,
+ "dtype": "fp32",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 4783603712,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at ee60bc2cd5: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, expandable segments."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "expandable",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 2048,
+ "width": 2048,
+ "tile": 768,
+ "dtype": "fp32",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 10634657792,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at ee60bc2cd5: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, expandable segments."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "expandable",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 1536,
+ "width": 1536,
+ "tile": 768,
+ "dtype": "fp32",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 10550771712,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at ee60bc2cd5: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, expandable segments."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "expandable",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 3072,
+ "width": 3072,
+ "tile": 512,
+ "dtype": "fp32",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 4909432832,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at ee60bc2cd5: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, expandable segments."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "expandable",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "encode",
+ "height": 1024,
+ "width": 1024,
+ "tile": null,
+ "dtype": "fp32",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 4571791360,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at ee60bc2cd5: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, expandable segments."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "expandable",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "encode",
+ "height": 1536,
+ "width": 1536,
+ "tile": null,
+ "dtype": "fp32",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 10276044800,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at ee60bc2cd5: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, expandable segments."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "expandable",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "encode",
+ "height": 2048,
+ "width": 2048,
+ "tile": 1024,
+ "dtype": "fp32",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 5391777792,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at ee60bc2cd5: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, expandable segments."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 1024,
+ "width": 1024,
+ "tile": null,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 15099494400,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at ee60bc2cd5: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, the native allocator."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 1536,
+ "width": 1536,
+ "tile": 768,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 8533311488,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at ee60bc2cd5: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, the native allocator."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 1152,
+ "width": 1152,
+ "tile": 768,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 8533311488,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at ee60bc2cd5: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, the native allocator."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 1280,
+ "width": 1280,
+ "tile": 768,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 8533311488,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at ee60bc2cd5: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, the native allocator."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 1792,
+ "width": 1792,
+ "tile": 768,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 9560915968,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at ee60bc2cd5: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, the native allocator."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 2048,
+ "width": 2048,
+ "tile": 768,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 8533311488,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at ee60bc2cd5: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, the native allocator."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 3072,
+ "width": 3072,
+ "tile": 768,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 9758048256,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at ee60bc2cd5: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, the native allocator."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 1024,
+ "width": 1536,
+ "tile": 768,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 8533311488,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at ee60bc2cd5: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, the native allocator."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 1536,
+ "width": 1536,
+ "tile": 512,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 4555014144,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at ee60bc2cd5: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, the native allocator."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 2048,
+ "width": 2048,
+ "tile": 512,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 3592421376,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at ee60bc2cd5: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, the native allocator."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 3072,
+ "width": 3072,
+ "tile": 512,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 4563402752,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at ee60bc2cd5: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, the native allocator."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 1536,
+ "width": 1536,
+ "tile": 1024,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 15099494400,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at ee60bc2cd5: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, the native allocator."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 2048,
+ "width": 2048,
+ "tile": 1024,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 15099494400,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at ee60bc2cd5: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, the native allocator."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 3072,
+ "width": 3072,
+ "tile": 1024,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 15099494400,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at ee60bc2cd5: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, the native allocator."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 512,
+ "width": 1536,
+ "tile": 1024,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 6350176256,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at ee60bc2cd5: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, the native allocator."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 512,
+ "width": 512,
+ "tile": null,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 3219128320,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at ee60bc2cd5: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, the native allocator."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 768,
+ "width": 768,
+ "tile": null,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 8533311488,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at ee60bc2cd5: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, the native allocator."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 1088,
+ "width": 1088,
+ "tile": null,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 17062428672,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at ee60bc2cd5: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, the native allocator."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 896,
+ "width": 1152,
+ "tile": null,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 14870904832,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at ee60bc2cd5: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, the native allocator."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 512,
+ "width": 1536,
+ "tile": null,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 11351883776,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at ee60bc2cd5: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, the native allocator."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "encode",
+ "height": 1024,
+ "width": 1024,
+ "tile": null,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 5054136320,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at ee60bc2cd5: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, the native allocator."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "encode",
+ "height": 1536,
+ "width": 1536,
+ "tile": null,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 11362369536,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at ee60bc2cd5: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, the native allocator."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "encode",
+ "height": 1792,
+ "width": 1792,
+ "tile": null,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 15468593152,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at ee60bc2cd5: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, the native allocator."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "encode",
+ "height": 2048,
+ "width": 2048,
+ "tile": 512,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 1461714944,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at ee60bc2cd5: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, the native allocator."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "encode",
+ "height": 2048,
+ "width": 2048,
+ "tile": 768,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 3099590656,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at ee60bc2cd5: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, the native allocator."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "encode",
+ "height": 2048,
+ "width": 2048,
+ "tile": 1024,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 5475663872,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at ee60bc2cd5: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, the native allocator."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "encode",
+ "height": 3072,
+ "width": 3072,
+ "tile": 1024,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 5599395840,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at ee60bc2cd5: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, the native allocator."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 768,
+ "width": 768,
+ "tile": null,
+ "dtype": "fp32",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 11081351168,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at ee60bc2cd5: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, the native allocator."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 2048,
+ "width": 2048,
+ "tile": 512,
+ "dtype": "fp32",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 6056574976,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at ee60bc2cd5: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, the native allocator."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 2048,
+ "width": 2048,
+ "tile": 768,
+ "dtype": "fp32",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 12463374336,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at ee60bc2cd5: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, the native allocator."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 1536,
+ "width": 1536,
+ "tile": 768,
+ "dtype": "fp32",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 12463374336,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at ee60bc2cd5: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, the native allocator."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 3072,
+ "width": 3072,
+ "tile": 512,
+ "dtype": "fp32",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 6056574976,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at ee60bc2cd5: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, the native allocator."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "encode",
+ "height": 1024,
+ "width": 1024,
+ "tile": null,
+ "dtype": "fp32",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 4968153088,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at ee60bc2cd5: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, the native allocator."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "encode",
+ "height": 1536,
+ "width": 1536,
+ "tile": null,
+ "dtype": "fp32",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 11177820160,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at ee60bc2cd5: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, the native allocator."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "encode",
+ "height": 2048,
+ "width": 2048,
+ "tile": 1024,
+ "dtype": "fp32",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 6784286720,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at ee60bc2cd5: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, the native allocator."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "expandable",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 1120,
+ "width": 1120,
+ "tile": null,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 13444841472,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at ee60bc2cd5: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, expandable segments."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "expandable",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 1152,
+ "width": 1152,
+ "tile": null,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 14199816192,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at ee60bc2cd5: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, expandable segments."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "expandable",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 1216,
+ "width": 1216,
+ "tile": null,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 16215179264,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at ee60bc2cd5: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, expandable segments."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "expandable",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 1024,
+ "width": 1536,
+ "tile": null,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 17158897664,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at ee60bc2cd5: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, expandable segments."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "expandable",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 1264,
+ "width": 1264,
+ "tile": null,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 17431527424,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at ee60bc2cd5: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, expandable segments."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "expandable",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 1280,
+ "width": 1280,
+ "tile": null,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 18375245824,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at ee60bc2cd5: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, expandable segments."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 4096,
+ "width": 4096,
+ "tile": 512,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 3963617280,
+ "method": "reserved_peak",
+ "device": "AMD Radeon Pro W7900 Dual Slot (gfx1100)",
+ "provenance": "scripts/calibrate_qwen_image_2_1_vae_working_memory.py, 2026-11-08: AMD Radeon Pro W7900 Dual Slot (gfx1100), torch 2.13.0+rocm10.0.0 (HIP 7.15.26333), Linux, no allocator configuration (torch reports the native allocator), MIOPEN_FIND_MODE=FAST, TORCH_ROCM_AOTRITON_ENABLE_EXPERIMENTAL=unset, ROCm SDPA guard installed, real weights, one fresh process per point, max_memory_reserved minus the baseline after the weights loaded."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 4096,
+ "width": 4096,
+ "tile": 768,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 7952400384,
+ "method": "reserved_peak",
+ "device": "AMD Radeon Pro W7900 Dual Slot (gfx1100)",
+ "provenance": "scripts/calibrate_qwen_image_2_1_vae_working_memory.py, 2026-11-08: AMD Radeon Pro W7900 Dual Slot (gfx1100), torch 2.13.0+rocm10.0.0 (HIP 7.15.26333), Linux, no allocator configuration (torch reports the native allocator), MIOPEN_FIND_MODE=FAST, TORCH_ROCM_AOTRITON_ENABLE_EXPERIMENTAL=unset, ROCm SDPA guard installed, real weights, one fresh process per point, max_memory_reserved minus the baseline after the weights loaded."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 4096,
+ "width": 4096,
+ "tile": 1024,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 14113832960,
+ "method": "reserved_peak",
+ "device": "AMD Radeon Pro W7900 Dual Slot (gfx1100)",
+ "provenance": "scripts/calibrate_qwen_image_2_1_vae_working_memory.py, 2026-11-08: AMD Radeon Pro W7900 Dual Slot (gfx1100), torch 2.13.0+rocm10.0.0 (HIP 7.15.26333), Linux, no allocator configuration (torch reports the native allocator), MIOPEN_FIND_MODE=FAST, TORCH_ROCM_AOTRITON_ENABLE_EXPERIMENTAL=unset, ROCm SDPA guard installed, real weights, one fresh process per point, max_memory_reserved minus the baseline after the weights loaded."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 5120,
+ "width": 5120,
+ "tile": 512,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 4697620480,
+ "method": "reserved_peak",
+ "device": "AMD Radeon Pro W7900 Dual Slot (gfx1100)",
+ "provenance": "scripts/calibrate_qwen_image_2_1_vae_working_memory.py, 2026-11-08: AMD Radeon Pro W7900 Dual Slot (gfx1100), torch 2.13.0+rocm10.0.0 (HIP 7.15.26333), Linux, no allocator configuration (torch reports the native allocator), MIOPEN_FIND_MODE=FAST, TORCH_ROCM_AOTRITON_ENABLE_EXPERIMENTAL=unset, ROCm SDPA guard installed, real weights, one fresh process per point, max_memory_reserved minus the baseline after the weights loaded."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 5120,
+ "width": 5120,
+ "tile": 768,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 9237954560,
+ "method": "reserved_peak",
+ "device": "AMD Radeon Pro W7900 Dual Slot (gfx1100)",
+ "provenance": "scripts/calibrate_qwen_image_2_1_vae_working_memory.py, 2026-11-08: AMD Radeon Pro W7900 Dual Slot (gfx1100), torch 2.13.0+rocm10.0.0 (HIP 7.15.26333), Linux, no allocator configuration (torch reports the native allocator), MIOPEN_FIND_MODE=FAST, TORCH_ROCM_AOTRITON_ENABLE_EXPERIMENTAL=unset, ROCm SDPA guard installed, real weights, one fresh process per point, max_memory_reserved minus the baseline after the weights loaded."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 5120,
+ "width": 5120,
+ "tile": 1024,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 16183721984,
+ "method": "reserved_peak",
+ "device": "AMD Radeon Pro W7900 Dual Slot (gfx1100)",
+ "provenance": "scripts/calibrate_qwen_image_2_1_vae_working_memory.py, 2026-11-08: AMD Radeon Pro W7900 Dual Slot (gfx1100), torch 2.13.0+rocm10.0.0 (HIP 7.15.26333), Linux, no allocator configuration (torch reports the native allocator), MIOPEN_FIND_MODE=FAST, TORCH_ROCM_AOTRITON_ENABLE_EXPERIMENTAL=unset, ROCm SDPA guard installed, real weights, one fresh process per point, max_memory_reserved minus the baseline after the weights loaded."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 4096,
+ "width": 4096,
+ "tile": 512,
+ "dtype": "fp32",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 6410993664,
+ "method": "reserved_peak",
+ "device": "AMD Radeon Pro W7900 Dual Slot (gfx1100)",
+ "provenance": "scripts/calibrate_qwen_image_2_1_vae_working_memory.py, 2026-11-08: AMD Radeon Pro W7900 Dual Slot (gfx1100), torch 2.13.0+rocm10.0.0 (HIP 7.15.26333), Linux, no allocator configuration (torch reports the native allocator), MIOPEN_FIND_MODE=FAST, TORCH_ROCM_AOTRITON_ENABLE_EXPERIMENTAL=unset, ROCm SDPA guard installed, real weights, one fresh process per point, max_memory_reserved minus the baseline after the weights loaded."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 4096,
+ "width": 4096,
+ "tile": 768,
+ "dtype": "fp32",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 13453230080,
+ "method": "reserved_peak",
+ "device": "AMD Radeon Pro W7900 Dual Slot (gfx1100)",
+ "provenance": "scripts/calibrate_qwen_image_2_1_vae_working_memory.py, 2026-11-08: AMD Radeon Pro W7900 Dual Slot (gfx1100), torch 2.13.0+rocm10.0.0 (HIP 7.15.26333), Linux, no allocator configuration (torch reports the native allocator), MIOPEN_FIND_MODE=FAST, TORCH_ROCM_AOTRITON_ENABLE_EXPERIMENTAL=unset, ROCm SDPA guard installed, real weights, one fresh process per point, max_memory_reserved minus the baseline after the weights loaded."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 4096,
+ "width": 4096,
+ "tile": 1024,
+ "dtype": "fp32",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 23836229632,
+ "method": "reserved_peak",
+ "device": "AMD Radeon Pro W7900 Dual Slot (gfx1100)",
+ "provenance": "scripts/calibrate_qwen_image_2_1_vae_working_memory.py, 2026-11-08: AMD Radeon Pro W7900 Dual Slot (gfx1100), torch 2.13.0+rocm10.0.0 (HIP 7.15.26333), Linux, no allocator configuration (torch reports the native allocator), MIOPEN_FIND_MODE=FAST, TORCH_ROCM_AOTRITON_ENABLE_EXPERIMENTAL=unset, ROCm SDPA guard installed, real weights, one fresh process per point, max_memory_reserved minus the baseline after the weights loaded."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 5120,
+ "width": 5120,
+ "tile": 512,
+ "dtype": "fp32",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 6593445888,
+ "method": "reserved_peak",
+ "device": "AMD Radeon Pro W7900 Dual Slot (gfx1100)",
+ "provenance": "scripts/calibrate_qwen_image_2_1_vae_working_memory.py, 2026-11-08: AMD Radeon Pro W7900 Dual Slot (gfx1100), torch 2.13.0+rocm10.0.0 (HIP 7.15.26333), Linux, no allocator configuration (torch reports the native allocator), MIOPEN_FIND_MODE=FAST, TORCH_ROCM_AOTRITON_ENABLE_EXPERIMENTAL=unset, ROCm SDPA guard installed, real weights, one fresh process per point, max_memory_reserved minus the baseline after the weights loaded."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 5120,
+ "width": 5120,
+ "tile": 768,
+ "dtype": "fp32",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 13463715840,
+ "method": "reserved_peak",
+ "device": "AMD Radeon Pro W7900 Dual Slot (gfx1100)",
+ "provenance": "scripts/calibrate_qwen_image_2_1_vae_working_memory.py, 2026-11-08: AMD Radeon Pro W7900 Dual Slot (gfx1100), torch 2.13.0+rocm10.0.0 (HIP 7.15.26333), Linux, no allocator configuration (torch reports the native allocator), MIOPEN_FIND_MODE=FAST, TORCH_ROCM_AOTRITON_ENABLE_EXPERIMENTAL=unset, ROCm SDPA guard installed, real weights, one fresh process per point, max_memory_reserved minus the baseline after the weights loaded."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 5120,
+ "width": 5120,
+ "tile": 1024,
+ "dtype": "fp32",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 23846715392,
+ "method": "reserved_peak",
+ "device": "AMD Radeon Pro W7900 Dual Slot (gfx1100)",
+ "provenance": "scripts/calibrate_qwen_image_2_1_vae_working_memory.py, 2026-11-08: AMD Radeon Pro W7900 Dual Slot (gfx1100), torch 2.13.0+rocm10.0.0 (HIP 7.15.26333), Linux, no allocator configuration (torch reports the native allocator), MIOPEN_FIND_MODE=FAST, TORCH_ROCM_AOTRITON_ENABLE_EXPERIMENTAL=unset, ROCm SDPA guard installed, real weights, one fresh process per point, max_memory_reserved minus the baseline after the weights loaded."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "expandable",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 4096,
+ "width": 4096,
+ "tile": 512,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 3223322624,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at 9f28343efd: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, expandable segments."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "expandable",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 4096,
+ "width": 4096,
+ "tile": 768,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 6807355392,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at 9f28343efd: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, expandable segments."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "expandable",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 4096,
+ "width": 4096,
+ "tile": 1024,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 11936989184,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at 9f28343efd: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, expandable segments."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "expandable",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 5120,
+ "width": 5120,
+ "tile": 512,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 3372220416,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at 9f28343efd: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, expandable segments."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "expandable",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 5120,
+ "width": 5120,
+ "tile": 768,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 7048527872,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at 9f28343efd: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, expandable segments."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "expandable",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 5120,
+ "width": 5120,
+ "tile": 1024,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 12188647424,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at 9f28343efd: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, expandable segments."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "expandable",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 6144,
+ "width": 6144,
+ "tile": 512,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 3527409664,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at 9f28343efd: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, expandable segments."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "expandable",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 6144,
+ "width": 6144,
+ "tile": 768,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 7174356992,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at 9f28343efd: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, expandable segments."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "expandable",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 6144,
+ "width": 6144,
+ "tile": 1024,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 12398362624,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at 9f28343efd: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, expandable segments."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "expandable",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 4096,
+ "width": 4096,
+ "tile": 512,
+ "dtype": "fp32",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 5161091072,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at 9f28343efd: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, expandable segments."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "expandable",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 5120,
+ "width": 5120,
+ "tile": 512,
+ "dtype": "fp32",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 5425332224,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at 9f28343efd: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, expandable segments."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "expandable",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "encode",
+ "height": 4096,
+ "width": 4096,
+ "tile": 1024,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 4223664128,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at 9f28343efd: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, expandable segments."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "expandable",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "encode",
+ "height": 5120,
+ "width": 5120,
+ "tile": 1024,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 4343201792,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at 9f28343efd: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, expandable segments."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "expandable",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "encode",
+ "height": 4096,
+ "width": 4096,
+ "tile": 1024,
+ "dtype": "fp32",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 5601492992,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at 9f28343efd: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, expandable segments."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 4096,
+ "width": 4096,
+ "tile": 512,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 3963617280,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at 9f28343efd: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, the native allocator."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 4096,
+ "width": 4096,
+ "tile": 768,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 8545894400,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at 9f28343efd: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, the native allocator."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 4096,
+ "width": 4096,
+ "tile": 1024,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 15099494400,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at 9f28343efd: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, the native allocator."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 5120,
+ "width": 5120,
+ "tile": 512,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 4697620480,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at 9f28343efd: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, the native allocator."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 5120,
+ "width": 5120,
+ "tile": 768,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 8547991552,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at 9f28343efd: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, the native allocator."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 5120,
+ "width": 5120,
+ "tile": 1024,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 15114174464,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at 9f28343efd: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, the native allocator."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 6144,
+ "width": 6144,
+ "tile": 512,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 4351590400,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at 9f28343efd: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, the native allocator."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 6144,
+ "width": 6144,
+ "tile": 768,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 8552185856,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at 9f28343efd: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, the native allocator."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 6144,
+ "width": 6144,
+ "tile": 1024,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 15118368768,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at 9f28343efd: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, the native allocator."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 4096,
+ "width": 4096,
+ "tile": 512,
+ "dtype": "fp32",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 6410993664,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at 9f28343efd: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, the native allocator."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 5120,
+ "width": 5120,
+ "tile": 512,
+ "dtype": "fp32",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 6593445888,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at 9f28343efd: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, the native allocator."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "encode",
+ "height": 4096,
+ "width": 4096,
+ "tile": 1024,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 5599395840,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at 9f28343efd: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, the native allocator."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "encode",
+ "height": 5120,
+ "width": 5120,
+ "tile": 1024,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 5251268608,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at 9f28343efd: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, the native allocator."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "encode",
+ "height": 4096,
+ "width": 4096,
+ "tile": 1024,
+ "dtype": "fp32",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 6863978496,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at 9f28343efd: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, the native allocator."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native"
+ },
+ "features": {
+ "operation": "encode",
+ "height": 4096,
+ "width": 4096,
+ "tile": 512,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 1585446912,
+ "method": "reserved_peak",
+ "device": "AMD Radeon Pro W7900 Dual Slot (gfx1100)",
+ "provenance": "scripts/calibrate_qwen_image_2_1_vae_working_memory.py, 2026-11-14: AMD Radeon Pro W7900 Dual Slot (gfx1100), torch 2.13.0+rocm10.0.0 (HIP 7.15.26333), Linux, no allocator configuration (torch reports the native allocator), MIOPEN_FIND_MODE=FAST, TORCH_ROCM_AOTRITON_ENABLE_EXPERIMENTAL=unset, ROCm SDPA guard installed, real weights, one fresh process per point, max_memory_reserved minus the baseline after the weights loaded."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native"
+ },
+ "features": {
+ "operation": "encode",
+ "height": 4096,
+ "width": 4096,
+ "tile": 768,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 3439329280,
+ "method": "reserved_peak",
+ "device": "AMD Radeon Pro W7900 Dual Slot (gfx1100)",
+ "provenance": "scripts/calibrate_qwen_image_2_1_vae_working_memory.py, 2026-11-14: AMD Radeon Pro W7900 Dual Slot (gfx1100), torch 2.13.0+rocm10.0.0 (HIP 7.15.26333), Linux, no allocator configuration (torch reports the native allocator), MIOPEN_FIND_MODE=FAST, TORCH_ROCM_AOTRITON_ENABLE_EXPERIMENTAL=unset, ROCm SDPA guard installed, real weights, one fresh process per point, max_memory_reserved minus the baseline after the weights loaded."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native"
+ },
+ "features": {
+ "operation": "encode",
+ "height": 4096,
+ "width": 4096,
+ "tile": 1024,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 5599395840,
+ "method": "reserved_peak",
+ "device": "AMD Radeon Pro W7900 Dual Slot (gfx1100)",
+ "provenance": "scripts/calibrate_qwen_image_2_1_vae_working_memory.py, 2026-11-14: AMD Radeon Pro W7900 Dual Slot (gfx1100), torch 2.13.0+rocm10.0.0 (HIP 7.15.26333), Linux, no allocator configuration (torch reports the native allocator), MIOPEN_FIND_MODE=FAST, TORCH_ROCM_AOTRITON_ENABLE_EXPERIMENTAL=unset, ROCm SDPA guard installed, real weights, one fresh process per point, max_memory_reserved minus the baseline after the weights loaded."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native"
+ },
+ "features": {
+ "operation": "encode",
+ "height": 4096,
+ "width": 4096,
+ "tile": 512,
+ "dtype": "fp32",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 1954545664,
+ "method": "reserved_peak",
+ "device": "AMD Radeon Pro W7900 Dual Slot (gfx1100)",
+ "provenance": "scripts/calibrate_qwen_image_2_1_vae_working_memory.py, 2026-11-14: AMD Radeon Pro W7900 Dual Slot (gfx1100), torch 2.13.0+rocm10.0.0 (HIP 7.15.26333), Linux, no allocator configuration (torch reports the native allocator), MIOPEN_FIND_MODE=FAST, TORCH_ROCM_AOTRITON_ENABLE_EXPERIMENTAL=unset, ROCm SDPA guard installed, real weights, one fresh process per point, max_memory_reserved minus the baseline after the weights loaded."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native"
+ },
+ "features": {
+ "operation": "encode",
+ "height": 4096,
+ "width": 4096,
+ "tile": 768,
+ "dtype": "fp32",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 3391094784,
+ "method": "reserved_peak",
+ "device": "AMD Radeon Pro W7900 Dual Slot (gfx1100)",
+ "provenance": "scripts/calibrate_qwen_image_2_1_vae_working_memory.py, 2026-11-14: AMD Radeon Pro W7900 Dual Slot (gfx1100), torch 2.13.0+rocm10.0.0 (HIP 7.15.26333), Linux, no allocator configuration (torch reports the native allocator), MIOPEN_FIND_MODE=FAST, TORCH_ROCM_AOTRITON_ENABLE_EXPERIMENTAL=unset, ROCm SDPA guard installed, real weights, one fresh process per point, max_memory_reserved minus the baseline after the weights loaded."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native"
+ },
+ "features": {
+ "operation": "encode",
+ "height": 4096,
+ "width": 4096,
+ "tile": 1024,
+ "dtype": "fp32",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 6863978496,
+ "method": "reserved_peak",
+ "device": "AMD Radeon Pro W7900 Dual Slot (gfx1100)",
+ "provenance": "scripts/calibrate_qwen_image_2_1_vae_working_memory.py, 2026-11-14: AMD Radeon Pro W7900 Dual Slot (gfx1100), torch 2.13.0+rocm10.0.0 (HIP 7.15.26333), Linux, no allocator configuration (torch reports the native allocator), MIOPEN_FIND_MODE=FAST, TORCH_ROCM_AOTRITON_ENABLE_EXPERIMENTAL=unset, ROCm SDPA guard installed, real weights, one fresh process per point, max_memory_reserved minus the baseline after the weights loaded."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "expandable",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 1024,
+ "width": 1024,
+ "tile": null,
+ "dtype": "fp32",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 18624806912,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at 5a543797f5: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, expandable segments. Peaks past the card's 15.09 GiB budget ran with Windows paging the excess into shared memory; two repeated shipped points (the 2048px fp32 decode at a 768px tile, both allocators) matched to the byte."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "expandable",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 1088,
+ "width": 1088,
+ "tile": null,
+ "dtype": "fp32",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 20992491520,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at 5a543797f5: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, expandable segments. Peaks past the card's 15.09 GiB budget ran with Windows paging the excess into shared memory; two repeated shipped points (the 2048px fp32 decode at a 768px tile, both allocators) matched to the byte."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "expandable",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 1280,
+ "width": 1280,
+ "tile": null,
+ "dtype": "fp32",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 27011317760,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at 5a543797f5: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, expandable segments. Peaks past the card's 15.09 GiB budget ran with Windows paging the excess into shared memory; two repeated shipped points (the 2048px fp32 decode at a 768px tile, both allocators) matched to the byte."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "expandable",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 2048,
+ "width": 2048,
+ "tile": 1024,
+ "dtype": "fp32",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 19780337664,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at 5a543797f5: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, expandable segments. Peaks past the card's 15.09 GiB budget ran with Windows paging the excess into shared memory; two repeated shipped points (the 2048px fp32 decode at a 768px tile, both allocators) matched to the byte."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "expandable",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 3072,
+ "width": 3072,
+ "tile": 1024,
+ "dtype": "fp32",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 19990052864,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at 5a543797f5: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, expandable segments. Peaks past the card's 15.09 GiB budget ran with Windows paging the excess into shared memory; two repeated shipped points (the 2048px fp32 decode at a 768px tile, both allocators) matched to the byte."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "expandable",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "encode",
+ "height": 4096,
+ "width": 4096,
+ "tile": 512,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 1243611136,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at 5a543797f5: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, expandable segments. Peaks past the card's 15.09 GiB budget ran with Windows paging the excess into shared memory; two repeated shipped points (the 2048px fp32 decode at a 768px tile, both allocators) matched to the byte."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "expandable",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "encode",
+ "height": 4096,
+ "width": 4096,
+ "tile": 768,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 2438987776,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at 5a543797f5: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, expandable segments. Peaks past the card's 15.09 GiB budget ran with Windows paging the excess into shared memory; two repeated shipped points (the 2048px fp32 decode at a 768px tile, both allocators) matched to the byte."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "expandable",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "encode",
+ "height": 5120,
+ "width": 5120,
+ "tile": 512,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 1335885824,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at 5a543797f5: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, expandable segments. Peaks past the card's 15.09 GiB budget ran with Windows paging the excess into shared memory; two repeated shipped points (the 2048px fp32 decode at a 768px tile, both allocators) matched to the byte."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "expandable",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "encode",
+ "height": 5120,
+ "width": 5120,
+ "tile": 768,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 2642411520,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at 5a543797f5: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, expandable segments. Peaks past the card's 15.09 GiB budget ran with Windows paging the excess into shared memory; two repeated shipped points (the 2048px fp32 decode at a 768px tile, both allocators) matched to the byte."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "expandable",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "encode",
+ "height": 2048,
+ "width": 2048,
+ "tile": 512,
+ "dtype": "fp32",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 1367343104,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at 5a543797f5: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, expandable segments. Peaks past the card's 15.09 GiB budget ran with Windows paging the excess into shared memory; two repeated shipped points (the 2048px fp32 decode at a 768px tile, both allocators) matched to the byte."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "expandable",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "encode",
+ "height": 2048,
+ "width": 2048,
+ "tile": 768,
+ "dtype": "fp32",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 3103784960,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at 5a543797f5: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, expandable segments. Peaks past the card's 15.09 GiB budget ran with Windows paging the excess into shared memory; two repeated shipped points (the 2048px fp32 decode at a 768px tile, both allocators) matched to the byte."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "expandable",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "encode",
+ "height": 4096,
+ "width": 4096,
+ "tile": 512,
+ "dtype": "fp32",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 1608515584,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at 5a543797f5: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, expandable segments. Peaks past the card's 15.09 GiB budget ran with Windows paging the excess into shared memory; two repeated shipped points (the 2048px fp32 decode at a 768px tile, both allocators) matched to the byte."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "expandable",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "encode",
+ "height": 4096,
+ "width": 4096,
+ "tile": 768,
+ "dtype": "fp32",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 3292528640,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at 5a543797f5: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, expandable segments. Peaks past the card's 15.09 GiB budget ran with Windows paging the excess into shared memory; two repeated shipped points (the 2048px fp32 decode at a 768px tile, both allocators) matched to the byte."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 1024,
+ "width": 1024,
+ "tile": null,
+ "dtype": "fp32",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 19631439872,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at 5a543797f5: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, the native allocator. Peaks past the card's 15.09 GiB budget ran with Windows paging the excess into shared memory; two repeated shipped points (the 2048px fp32 decode at a 768px tile, both allocators) matched to the byte."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 1088,
+ "width": 1088,
+ "tile": null,
+ "dtype": "fp32",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 22607298560,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at 5a543797f5: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, the native allocator. Peaks past the card's 15.09 GiB budget ran with Windows paging the excess into shared memory; two repeated shipped points (the 2048px fp32 decode at a 768px tile, both allocators) matched to the byte."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 1280,
+ "width": 1280,
+ "tile": null,
+ "dtype": "fp32",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 30777802752,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at 5a543797f5: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, the native allocator. Peaks past the card's 15.09 GiB budget ran with Windows paging the excess into shared memory; two repeated shipped points (the 2048px fp32 decode at a 768px tile, both allocators) matched to the byte."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 2048,
+ "width": 2048,
+ "tile": 1024,
+ "dtype": "fp32",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 22068330496,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at 5a543797f5: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, the native allocator. Peaks past the card's 15.09 GiB budget ran with Windows paging the excess into shared memory; two repeated shipped points (the 2048px fp32 decode at a 768px tile, both allocators) matched to the byte."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 3072,
+ "width": 3072,
+ "tile": 1024,
+ "dtype": "fp32",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 22068330496,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at 5a543797f5: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, the native allocator. Peaks past the card's 15.09 GiB budget ran with Windows paging the excess into shared memory; two repeated shipped points (the 2048px fp32 decode at a 768px tile, both allocators) matched to the byte."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "encode",
+ "height": 4096,
+ "width": 4096,
+ "tile": 512,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 1585446912,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at 5a543797f5: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, the native allocator. Peaks past the card's 15.09 GiB budget ran with Windows paging the excess into shared memory; two repeated shipped points (the 2048px fp32 decode at a 768px tile, both allocators) matched to the byte."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "encode",
+ "height": 4096,
+ "width": 4096,
+ "tile": 768,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 3439329280,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at 5a543797f5: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, the native allocator. Peaks past the card's 15.09 GiB budget ran with Windows paging the excess into shared memory; two repeated shipped points (the 2048px fp32 decode at a 768px tile, both allocators) matched to the byte."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "encode",
+ "height": 5120,
+ "width": 5120,
+ "tile": 512,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 1625292800,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at 5a543797f5: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, the native allocator. Peaks past the card's 15.09 GiB budget ran with Windows paging the excess into shared memory; two repeated shipped points (the 2048px fp32 decode at a 768px tile, both allocators) matched to the byte."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "encode",
+ "height": 5120,
+ "width": 5120,
+ "tile": 768,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 3315597312,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at 5a543797f5: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, the native allocator. Peaks past the card's 15.09 GiB budget ran with Windows paging the excess into shared memory; two repeated shipped points (the 2048px fp32 decode at a 768px tile, both allocators) matched to the byte."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "encode",
+ "height": 2048,
+ "width": 2048,
+ "tile": 512,
+ "dtype": "fp32",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 1782579200,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at 5a543797f5: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, the native allocator. Peaks past the card's 15.09 GiB budget ran with Windows paging the excess into shared memory; two repeated shipped points (the 2048px fp32 decode at a 768px tile, both allocators) matched to the byte."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "encode",
+ "height": 2048,
+ "width": 2048,
+ "tile": 768,
+ "dtype": "fp32",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 3839885312,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at 5a543797f5: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, the native allocator. Peaks past the card's 15.09 GiB budget ran with Windows paging the excess into shared memory; two repeated shipped points (the 2048px fp32 decode at a 768px tile, both allocators) matched to the byte."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "encode",
+ "height": 4096,
+ "width": 4096,
+ "tile": 512,
+ "dtype": "fp32",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 1954545664,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at 5a543797f5: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, the native allocator. Peaks past the card's 15.09 GiB budget ran with Windows paging the excess into shared memory; two repeated shipped points (the 2048px fp32 decode at a 768px tile, both allocators) matched to the byte."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "encode",
+ "height": 4096,
+ "width": 4096,
+ "tile": 768,
+ "dtype": "fp32",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 3391094784,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at 5a543797f5: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, the native allocator. Peaks past the card's 15.09 GiB budget ran with Windows paging the excess into shared memory; two repeated shipped points (the 2048px fp32 decode at a 768px tile, both allocators) matched to the byte."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "expandable",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 512,
+ "width": 512,
+ "tile": null,
+ "dtype": "fp32",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 4510973952,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at 0c1d40836b: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, expandable segments. The untiled 512px fp32 decodes are the references of the 512px tile; the untiled 1216-1344px encodes check the chord between 1024px and 1536px."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "expandable",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 6144,
+ "width": 6144,
+ "tile": 512,
+ "dtype": "fp32",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 5727322112,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at 0c1d40836b: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, expandable segments. The untiled 512px fp32 decodes are the references of the 512px tile; the untiled 1216-1344px encodes check the chord between 1024px and 1536px."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "expandable",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "encode",
+ "height": 1216,
+ "width": 1216,
+ "tile": null,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 5431623680,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at 0c1d40836b: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, expandable segments. The untiled 512px fp32 decodes are the references of the 512px tile; the untiled 1216-1344px encodes check the chord between 1024px and 1536px."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "expandable",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "encode",
+ "height": 1280,
+ "width": 1280,
+ "tile": null,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 6018826240,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at 0c1d40836b: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, expandable segments. The untiled 512px fp32 decodes are the references of the 512px tile; the untiled 1216-1344px encodes check the chord between 1024px and 1536px."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "expandable",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "encode",
+ "height": 1344,
+ "width": 1344,
+ "tile": null,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 6647971840,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at 0c1d40836b: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, expandable segments. The untiled 512px fp32 decodes are the references of the 512px tile; the untiled 1216-1344px encodes check the chord between 1024px and 1536px."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "expandable",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "encode",
+ "height": 1216,
+ "width": 1216,
+ "tile": null,
+ "dtype": "fp32",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 6459228160,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at 0c1d40836b: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, expandable segments. The untiled 512px fp32 decodes are the references of the 512px tile; the untiled 1216-1344px encodes check the chord between 1024px and 1536px."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "expandable",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "encode",
+ "height": 1280,
+ "width": 1280,
+ "tile": null,
+ "dtype": "fp32",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 7151288320,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at 0c1d40836b: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, expandable segments. The untiled 512px fp32 decodes are the references of the 512px tile; the untiled 1216-1344px encodes check the chord between 1024px and 1536px."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "expandable",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "encode",
+ "height": 1344,
+ "width": 1344,
+ "tile": null,
+ "dtype": "fp32",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 7864320000,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at 0c1d40836b: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, expandable segments. The untiled 512px fp32 decodes are the references of the 512px tile; the untiled 1216-1344px encodes check the chord between 1024px and 1536px."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 512,
+ "width": 512,
+ "tile": null,
+ "dtype": "fp32",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 5117050880,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at 0c1d40836b: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, the native allocator. The untiled 512px fp32 decodes are the references of the 512px tile; the untiled 1216-1344px encodes check the chord between 1024px and 1536px."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "decode",
+ "height": 6144,
+ "width": 6144,
+ "tile": 512,
+ "dtype": "fp32",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 6673137664,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at 0c1d40836b: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, the native allocator. The untiled 512px fp32 decodes are the references of the 512px tile; the untiled 1216-1344px encodes check the chord between 1024px and 1536px."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "encode",
+ "height": 1216,
+ "width": 1216,
+ "tile": null,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 7130316800,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at 0c1d40836b: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, the native allocator. The untiled 512px fp32 decodes are the references of the 512px tile; the untiled 1216-1344px encodes check the chord between 1024px and 1536px."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "encode",
+ "height": 1280,
+ "width": 1280,
+ "tile": null,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 7893680128,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at 0c1d40836b: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, the native allocator. The untiled 512px fp32 decodes are the references of the 512px tile; the untiled 1216-1344px encodes check the chord between 1024px and 1536px."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "encode",
+ "height": 1344,
+ "width": 1344,
+ "tile": null,
+ "dtype": "bf16",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 8707375104,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at 0c1d40836b: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, the native allocator. The untiled 512px fp32 decodes are the references of the 512px tile; the untiled 1216-1344px encodes check the chord between 1024px and 1536px."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "encode",
+ "height": 1216,
+ "width": 1216,
+ "tile": null,
+ "dtype": "fp32",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 7014973440,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at 0c1d40836b: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, the native allocator. The untiled 512px fp32 decodes are the references of the 512px tile; the untiled 1216-1344px encodes check the chord between 1024px and 1536px."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "encode",
+ "height": 1280,
+ "width": 1280,
+ "tile": null,
+ "dtype": "fp32",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 7763656704,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at 0c1d40836b: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, the native allocator. The untiled 512px fp32 decodes are the references of the 512px tile; the untiled 1216-1344px encodes check the chord between 1024px and 1536px."
+ },
+ {
+ "estimator": "vae.qwen_image_2_1",
+ "version": 1,
+ "platform": {
+ "conv_backend": "miopen",
+ "allocator": "native",
+ "os": "windows"
+ },
+ "features": {
+ "operation": "encode",
+ "height": 1344,
+ "width": 1344,
+ "tile": null,
+ "dtype": "fp32",
+ "conv_backend": "miopen"
+ },
+ "measured_bytes": 8564768768,
+ "method": "reserved_peak",
+ "device": "AMD Radeon RX 9060 XT (gfx1200)",
+ "provenance": "Measured by Pfannkuchensack on PR #10043 at 0c1d40836b: AMD Radeon RX 9060 XT (gfx1200), 16 GB, Windows, torch 2.13.0+rocm10.0.0, real weights, one fresh process per point, torch.cuda.max_memory_reserved() minus the baseline after the weights loaded, in exact bytes, under patch_qwen_image_vae_tiling, MIOPEN_FIND_MODE=FAST, the native allocator. The untiled 512px fp32 decodes are the references of the 512px tile; the untiled 1216-1344px encodes check the chord between 1024px and 1536px."
+ }
+ ]
+}
diff --git a/invokeai/backend/working_memory/fit.py b/invokeai/backend/working_memory/fit.py
index 07e51c989a..ddff507f53 100644
--- a/invokeai/backend/working_memory/fit.py
+++ b/invokeai/backend/working_memory/fit.py
@@ -13,7 +13,8 @@ when it is `in_fit` (not measured out of regime) and its line admits it.
A line is fitted on its points' demand above what the estimate's other fitted lines price them at. Most lines sit on
none, so their points' demand is fitted as measured. A line that sits on another (`Line.sits_on`) is a tiled VAE
operation's: the estimate prices its tile on the untiled convolution line at the tile area, and its tiled line
-(`tiled_<operation>_<dtype>`, in the image's pixels) what tiling adds on top. The tiled line covers each point above
+(`tiled_<operation>_<dtype>`, in the image's pixels unless the estimator's `line` sizes it otherwise, as
+Qwen-Image-2.1's does by the tile's area on MIOpen) what tiling adds on top. The tiled line covers each point above
the untiled demand the point's own estimator measured at that area, on the same platform, operation and dtype: the
highest of its in-fit, fresh-process points of the untiled line there (`FitPoint.reference`, the untiled references a
tiling run measures at each tile's side). Only where no such point exists does the untiled line's fitted price there
@@ -193,7 +194,8 @@ def convolution_line(features: Mapping[str, FeatureValue]) -> Optional[Line]:
"""The AutoencoderKL convolution line of an operation: every VAE estimator's.
An untiled operation prices on ``<operation>_<dtype>`` in output pixels. A tiled one prices on
- ``tiled_<operation>_<dtype>`` in the image's pixels, all samples' together, and sits on the untiled line at the
+ ``tiled_<operation>_<dtype>`` in the image's pixels, all samples' together (an estimator's `line` may size it
+ otherwise, as Qwen-Image-2.1's does by the tile's area on MIOpen), and sits on the untiled line at the
area of its tile clamped to the image per axis: an estimator records a covering tile as no tile, since the VAE
runs the single pass then. A tiled decode has a second phase, after its last tile: the decoded tiles, the rows
blended from them and the image concatenated from those, all live at once, and the node's post-processing. It
diff --git a/invokeai/backend/working_memory/spec.py b/invokeai/backend/working_memory/spec.py
index 6814831121..83d1329fed 100644
--- a/invokeai/backend/working_memory/spec.py
+++ b/invokeai/backend/working_memory/spec.py
@@ -19,6 +19,7 @@ LegacyFormula = Callable[[Mapping[str, FeatureValue], Mapping[str, float]], floa
ESTIMATOR_MODULES: Final = (
"invokeai.backend.moss_image.working_memory",
+ "invokeai.backend.qwen_image_2_1.vae",
"invokeai.backend.util.vae_working_memory",
"invokeai.backend.z_image.denoise_working_memory",
"invokeai.backend.flux2.denoise_working_memory",
diff --git a/scripts/calibrate_qwen_image_2_1_vae_working_memory.py b/scripts/calibrate_qwen_image_2_1_vae_working_memory.py
new file mode 100644
index 0000000000..0828946cac
--- /dev/null
+++ b/scripts/calibrate_qwen_image_2_1_vae_working_memory.py
@@ -0,0 +1,194 @@
+"""Measure the working memory of Qwen-Image-2.1 VAE encodes and decodes, as shipped-data points for `vae.qwen_image_2_1`.
+
+What a point measures: one fresh window (`working_memory/measurement.py`) with the real weights (`--vae`, the model's
+`vae` directory) on the device, around one `vae.decode` or `vae.encode` of random input under
+`patch_qwen_image_vae_tiling`, as the nodes run it. A window the measurement voids (an allocator retry, a spill, out of
+memory) is recorded as invalid, never as a point. Its bytes are the reserved growth of that one cold window, a
+`reserved_peak`, not the sibling scripts' larger of a cold and a warm demand: the shipped points were read that way, and
+on HIP a demand reads a few hundred MiB above them. Each point runs in a fresh process
+(`scripts/working_memory/fresh_points.py`) that first applies the server's runtime, the `MIOPEN_FIND_MODE` default and
+the ROCm SDPA guard among them, with `--alloc-conf` or the platform's default allocator. A point whose process raises is
+recorded as failed and the run goes on; one predicted not to fit free device memory is skipped unless `--force`, since
+Windows drivers page such an allocation instead of failing it.
+
+Runs on CUDA and ROCm, where `--out` collects the point file `scripts/working_memory/build_shipped.py --points` reads:
+
+ python scripts/calibrate_qwen_image_2_1_vae_working_memory.py --vae /path/to/vae --out points.jsonl
+"""
+
+import argparse
+import dataclasses
+import datetime
+import sys
+from collections.abc import Mapping, Sequence
+from dataclasses import dataclass
+from pathlib import Path
+from typing import TYPE_CHECKING, Any
+
+# None of these imports torch: a measuring process has to configure the allocator before torch is imported.
+sys.path.insert(0, str(Path(__file__).resolve().parents[1]))
+from scripts.working_memory import fresh_points # noqa: E402
+
+if TYPE_CHECKING:
+ from invokeai.backend.working_memory.measurement import FreshWindow
+
+LOGGER_NAME = "calibrate_qwen_image_2_1_vae_working_memory"
+# As `invokeai.backend.qwen_image_2_1.vae`, whose import starts CUDA in the parent, which must stay free of torch.
+SPATIAL_SCALE = 16
+_COLUMNS = f"{'op':7}{'dtype':9}{'size':>12}{'tile':>6}"
+
+
+@dataclass(frozen=True)
+class Point:
+ """One encode or decode to measure, in a process of its own."""
+
+ vae: str
+ operation: str
+ dtype: str
+ height: int
+ width: int
+ tile: int | None
+ fit: bool = True
+
+
+def plan(
+ vae: str,
+ operations: Sequence[str],
+ dtypes: Sequence[str],
+ shapes: Sequence[tuple[int, int]],
+ frames: Sequence[int],
+ tiles: Sequence[int],
+) -> list[Point]:
+ """Per operation and dtype, the untiled `shapes`, then each of the square tiled `frames` at each of the `tiles`."""
+ runs = [(*shape, None) for shape in shapes] + [(frame, frame, tile) for frame in frames for tile in tiles]
+ return [
+ Point(vae, operation, dtype, height, width, tile)
+ for operation in operations
+ for dtype in dtypes
+ for height, width, tile in runs
+ ]
+
+
+def point_line(
+ point: Point, common: Mapping[str, Any], window: "FreshWindow", facts: Mapping[str, Any], date: str
+) -> dict[str, Any]:
+ """The line of a measured window: a `reserved_peak` point, or invalid for the window's reasons."""
+ line = fresh_points.point_line(
+ point,
+ common=common,
+ provenance=(
+ f"scripts/calibrate_qwen_image_2_1_vae_working_memory.py, {date}: {fresh_points.runtime_provenance(facts)}, "
+ "real weights, one fresh process per point, max_memory_reserved minus the baseline after the weights loaded."
+ ),
+ windows=[window],
+ raw={"runtime": facts},
+ reasons=[] if window.reserved is not None else ["reserved_unreadable"],
+ )
+ if line["status"] != "point":
+ return line
+ return line | {"measured_bytes": window.reserved, "method": "reserved_peak"}
+
+
+def _measure(point: Point, force: bool) -> dict[str, Any]:
+ import torch
+ from diffusers import AutoencoderKLQwenImage21
+
+ from invokeai.backend.qwen_image_2_1.vae import SPEC, estimate_working_memory
+ from invokeai.backend.util.qwen_image_vae import patch_qwen_image_vae_tiling
+ from invokeai.backend.working_memory import platform as working_memory_platform
+ from invokeai.backend.working_memory.measurement import measure
+
+ device = torch.device("cuda")
+ dtype = {"bf16": torch.bfloat16, "fp32": torch.float32}[point.dtype]
+ estimate = estimate_working_memory(point.operation, point.height, point.width, point.tile, dtype.itemsize, device)
+ facts = fresh_points.runtime_facts(
+ device, working_memory_platform.platform_for(device).os, working_memory_platform.__file__
+ )
+ common = {
+ "estimator": SPEC.id,
+ "version": SPEC.version,
+ "platform": dataclasses.asdict(working_memory_platform.platform_for(device)),
+ "features": dict(estimate.features),
+ "device": facts["device"],
+ }
+
+ vae = (
+ AutoencoderKLQwenImage21.from_pretrained(point.vae, torch_dtype=dtype, local_files_only=True).to(device).eval()
+ )
+ free = torch.cuda.mem_get_info(device)[0]
+ if estimate.reservation_bytes > free and not force:
+ raw = {"predicted_bytes": estimate.reservation_bytes, "free_bytes": free, "runtime": facts}
+ return fresh_points.skipped_line(point, common, raw)
+
+ def operation() -> object:
+ height, width = point.height, point.width
+ if point.operation == "decode":
+ latents = (1, vae.config.z_dim, 1, height // SPATIAL_SCALE, width // SPATIAL_SCALE)
+ return vae.decode(torch.randn(*latents, device=device, dtype=dtype), return_dict=False)
+ pixels = torch.rand(1, 4, 1, height, width, device=device, dtype=dtype) * 2 - 1
+ return vae.encode(pixels).latent_dist.mode()
+
+ with torch.inference_mode(), patch_qwen_image_vae_tiling(vae, point.tile, SPATIAL_SCALE):
+ window = measure(device, operation)
+ return point_line(point, common, window, facts, datetime.date.today().isoformat())
+
+
+def _head(line: Mapping[str, Any]) -> str:
+ point = line["point"]
+ size = f"{point['height']}x{point['width']}"
+ return f"{point['operation']:7}{point['dtype']:9}{size:>12}{point['tile'] or '-':>6}"
+
+
+def _ints(text: str) -> list[int]:
+ return [int(part) for part in text.split(",") if part]
+
+
+def shapes(text: str) -> list[tuple[int, int]]:
+ """`512,896x1152` as (height, width) pairs: a bare side is a square."""
+ sides = [part.split("x") for part in text.split(",") if part]
+ # Unpacking raises the ValueError argparse reports for anything but a side or a pair of them.
+ return [(int(height), int(width)) for height, width in (side * 2 if len(side) == 1 else side for side in sides)]
+
+
+def main() -> None:
+ parser = argparse.ArgumentParser(description=__doc__, formatter_class=argparse.RawDescriptionHelpFormatter)
+ parser.add_argument("--vae", help="The model's `vae` directory, in diffusers layout. Required to measure.")
+ parser.add_argument("--out", type=Path, help="The JSON-lines file the points are appended to. Required to measure.")
+ parser.add_argument("--operations", default="decode,encode")
+ parser.add_argument("--dtypes", default="bf16,fp32")
+ parser.add_argument(
+ "--sizes", type=shapes, default="512,768,1024,1088,1216,1264,1280,1536", help="Untiled sides or HxW shapes, px."
+ )
+ parser.add_argument("--frames", type=_ints, default="2048,3072", help="Tiled frames' sides, px.")
+ parser.add_argument("--tiles", type=_ints, default="512,768,1024", help="Tile sides, px.")
+ parser.add_argument("--alloc-conf", default="", help="As the server's pytorch_cuda_alloc_conf. Empty: the default.")
+ parser.add_argument("--force", action="store_true", help="Run points predicted not to fit free device memory.")
+ parser.add_argument("--single", help=argparse.SUPPRESS)
+ args = parser.parse_args()
+
+ if args.single is not None:
+ fresh_points.measure_in_this_process(args.single, point_type=Point, measure=_measure, logger_name=LOGGER_NAME)
+ if args.vae is None or args.out is None:
+ parser.error("--vae and --out are required to measure")
+ fresh_points.check_alloc_conf(parser, args.alloc_conf)
+ sides = {side for shape in args.sizes for side in shape} | {*args.frames, *args.tiles}
+ # The decode floors to whole latents, so an off-grid side would run smaller than the point it records.
+ off_grid = sorted(side for side in sides if side % SPATIAL_SCALE)
+ if off_grid:
+ parser.error(f"--sizes, --frames and --tiles must be multiples of {SPATIAL_SCALE}; these are not: {off_grid}")
+ points = plan(args.vae, args.operations.split(","), args.dtypes.split(","), args.sizes, args.frames, args.tiles)
+ lines = fresh_points.measure_points(
+ points,
+ script=Path(__file__).resolve(),
+ out=args.out,
+ alloc_conf=args.alloc_conf,
+ force=args.force,
+ logger_name=LOGGER_NAME,
+ columns=_COLUMNS,
+ head=_head,
+ )
+ fresh_points.print_counts(lines, args.out)
+
+
+if __name__ == "__main__":
+ main()
diff --git a/tests/app/invocations/test_qwen_image_2_1_nodes.py b/tests/app/invocations/test_qwen_image_2_1_nodes.py
index 03d9fc3c67..34ce1ee12d 100644
--- a/tests/app/invocations/test_qwen_image_2_1_nodes.py
+++ b/tests/app/invocations/test_qwen_image_2_1_nodes.py
@@ -381,6 +381,135 @@ def test_a_decode_reads_and_writes_exactly_what_the_pipeline_does() -> None:
assert np.array_equal(np.asarray(saved[0]), np.asarray(pipeline.convert("RGB")))
+META = torch.device("meta")
+
+
+GIB = 1024**3
+
+
+def meta_is_miopen(monkeypatch: pytest.MonkeyPatch) -> None:
+ """Price a `meta` compute device as an AMD GPU, where decode and encode cost differently, without needing one; the
+ session device stays the CPU. The device holds 20 GiB of untiled working memory before the nodes tile."""
+ from invokeai.backend.qwen_image_2_1 import vae
+ from invokeai.backend.working_memory import spec
+ from invokeai.backend.working_memory.platform import Platform
+
+ real = spec.platform_for
+ for module in (spec, vae):
+ monkeypatch.setattr(
+ module, "platform_for", lambda d: Platform("miopen", "native", "linux") if d.type == "meta" else real(d)
+ )
+ monkeypatch.setattr(vae, "should_pretile_vae_decode", lambda device, needed: device == META and needed > 20 * GIB)
+
+
+class _Float32Params:
+ """A stand-in VAE's float32 weights, so the element size the node reads is not the bf16 its compute dtype has."""
+
+ def parameters(self):
+ return iter([torch.zeros(1, dtype=torch.float32)])
+
+
+def _vae_context(vae, reservations: list, **extra) -> SimpleNamespace:
+ @contextmanager
+ def on_device(**kwargs):
+ reservations.append(kwargs)
+ yield None, vae
+
+ return SimpleNamespace(
+ models=SimpleNamespace(
+ load=lambda _identifier: SimpleNamespace(compute_device=META, model=vae, model_on_device=on_device)
+ ),
+ config=SimpleNamespace(get=lambda: SimpleNamespace(force_tiled_decode=False, auto_tiled_decode=True)),
+ util=SimpleNamespace(signal_progress=lambda _message: None),
+ **extra,
+ )
+
+
+def test_a_decode_reserves_its_estimate_on_the_vaes_compute_device(meta_is_miopen) -> None:
+ from invokeai.app.invocations.vae.qwen_image_2_1_latents_to_image import QwenImage21LatentsToImageInvocation
+ from invokeai.backend.qwen_image_2_1.vae import estimate_working_memory
+
+ class _VAE(_Float32Params, _DecodingVAE):
+ def enable_tiling(self, **_geometry) -> None:
+ self.use_tiling = True
+
+ vae = _VAE([0.0] * LATENT_CHANNELS, [1.0] * LATENT_CHANNELS)
+ reservations: list = []
+ context = _vae_context(
+ vae,
+ reservations,
+ tensors=SimpleNamespace(load=lambda _name: torch.zeros(1, LATENT_CHANNELS, 96, 96)),
+ images=SimpleNamespace(save=lambda image: SimpleNamespace(image_name="out.png", width=64, height=64)),
+ )
+ QwenImage21LatentsToImageInvocation.model_construct(
+ latents=LatentsField(latents_name="latents"), vae=SimpleNamespace(vae=None), tiled=False, tile_size=0
+ ).invoke(context)
+
+ # 96x96 latents are a 1536x1536 frame. Its fp32 decode measured ~35 GiB untiled, past the device's 20, so it is
+ # tiled up front -- an encode of it measured ~10 GiB and would not be -- at the largest tile, as `meta` reports no
+ # memory of its own.
+ expected = estimate_working_memory("decode", 1536, 1536, 1024, 4, META)
+ assert reservations == [{"working_memory": expected}]
+ assert expected != estimate_working_memory("encode", 1536, 1536, 1024, 4, META)
+ assert expected != estimate_working_memory("decode", 1536, 1536, 1024, 4, torch.device("cpu"))
+
+
+ ("tiled", "tile_size", "side", "tile"),
+ # A 2560x2560 fp32 encode prices past the device's 20 GiB untiled: tiled up front at the largest tile, unasked.
+ [(False, 0, 1536, None), (True, 512, 1536, 512), (False, 0, 2560, 1024)],
+ ids=["whole", "tiled", "tiled_up_front"],
+)
+def test_an_encode_reserves_its_estimate_on_the_vaes_compute_device(
+ meta_is_miopen, tiled: bool, tile_size: int, side: int, tile: int | None
+) -> None:
+ from PIL import Image
+
+ from invokeai.app.invocations.fields import ImageField
+ from invokeai.app.invocations.vae.qwen_image_2_1_image_to_latents import QwenImage21ImageToLatentsInvocation
+ from invokeai.backend.qwen_image_2_1.vae import estimate_working_memory
+
+ class _EncodingVAE(_Float32Params):
+ dtype = torch.bfloat16
+ use_tiling = False
+ tile_sample_min_height = tile_sample_min_width = 256
+ tile_sample_stride_height = tile_sample_stride_width = 192
+ config = SimpleNamespace(latents_mean=[0.0] * LATENT_CHANNELS, latents_std=[1.0] * LATENT_CHANNELS)
+
+ def disable_tiling(self) -> None:
+ self.use_tiling = False
+
+ def enable_tiling(self, **_geometry) -> None:
+ self.use_tiling = True
+
+ def encode(self, pixels: torch.Tensor):
+ latents = torch.zeros(1, LATENT_CHANNELS, 1, pixels.shape[-2] // 16, pixels.shape[-1] // 16)
+ return SimpleNamespace(latent_dist=SimpleNamespace(mode=lambda: latents))
+
+ reservations: list = []
+ context = _vae_context(
+ _EncodingVAE(),
+ reservations,
+ images=SimpleNamespace(get_pil=lambda _name: Image.new("RGB", (side, side))),
+ tensors=SimpleNamespace(save=lambda tensor: "latents"),
+ )
+ QwenImage21ImageToLatentsInvocation.model_construct(
+ image=ImageField(image_name="in.png"), vae=SimpleNamespace(vae=None), tiled=tiled, tile_size=tile_size
+ ).invoke(context)
+
+ # An fp32 encode of 1536x1536 measured ~10 GiB untiled: it stays whole on the 20 GiB device, where a decode would
+ # be tiled, unless the node asks for tiles; then it reserves its tile.
+ expected = estimate_working_memory("encode", side, side, tile, 4, META)
+ assert reservations == [{"working_memory": expected}]
+ assert expected != estimate_working_memory("decode", side, side, tile, 4, META)
+ assert expected != estimate_working_memory("encode", side, side, tile, 4, torch.device("cpu"))
+ if tile is not None:
+ assert (
+ expected.reservation_bytes < estimate_working_memory("encode", side, side, None, 4, META).reservation_bytes
+ )
+
+
def _loader(**fields) -> QwenImage21ModelLoaderInvocation:
def ident(key: str, base: BaseModelType, type: ModelType) -> ModelIdentifierField:
return ModelIdentifierField(key=key, hash=key, name=key, base=base, type=type)
diff --git a/tests/app/invocations/test_vae_working_memory_backend.py b/tests/app/invocations/test_vae_working_memory_backend.py
index 57d139c21d..c53319ca28 100644
--- a/tests/app/invocations/test_vae_working_memory_backend.py
+++ b/tests/app/invocations/test_vae_working_memory_backend.py
@@ -1168,7 +1168,8 @@ def test_an_sdnq_vae_is_priced_in_its_packed_weights_compute_dtype_not_an_fp32_b
def test_every_stand_in_slope_is_at_least_the_pre_dtype_figure() -> None:
- """A stand-in is a declared conservative value on a measured platform; nothing else guards it."""
+ """A stand-in is a declared conservative value on a measured platform. Its slope never falls below the pre-dtype
+ figure; Qwen-Image-2.1's are also held to their sources in `tests/backend/qwen_image_2_1/test_vae.py`."""
stand_ins = [entry for data in shipped_data().values() for entry in data.coefficients if entry.stand_ins]
assert stand_ins, "the shipped data declares no stand-ins -- the check is broken"
for entry in stand_ins:
@@ -1177,7 +1178,8 @@ def test_every_stand_in_slope_is_at_least_the_pre_dtype_figure() -> None:
# A tiled line sits on the untiled one and pairs with its assembly line; the floor below is the
# untiled lines'.
continue
- part, operation, dtype = name.split("_")
+ # `k_decode_large_bf16` is Qwen-Image-2.1's decode line past MIOpen's step.
+ part, operation, *_, dtype = name.split("_")
value = entry.values[name]
if part == "k":
floor = PRE_DTYPE_BYTES_PER_PIXEL_PER_ELEMENT_BYTE[entry.platform["conv_backend"]][operation]
diff --git a/tests/backend/qwen_image_2_1/test_vae.py b/tests/backend/qwen_image_2_1/test_vae.py
index 987523b359..18e2277151 100644
--- a/tests/backend/qwen_image_2_1/test_vae.py
+++ b/tests/backend/qwen_image_2_1/test_vae.py
@@ -1,6 +1,8 @@
"""Qwen-Image-2.1's RGBA VAE: how a decode becomes an image, what an encode reads -- a canvas image or an edit's
reference -- and the tile geometry it runs in."""
+from types import SimpleNamespace
+
import numpy as np
import pytest
import torch
@@ -11,14 +13,22 @@ from invokeai.backend.qwen_image_2_1 import vae as vae_module
from invokeai.backend.qwen_image_2_1.vae import (
MIN_TILE_SIZE,
SPATIAL_SCALE,
+ SPEC,
choose_tile_size,
+ default_tile_size,
+ estimate_working_memory,
reference_size,
to_image,
to_reference,
to_vae_input,
- working_memory_bytes,
+ untiled_peak_bytes,
)
+from invokeai.backend.util import wddm
from invokeai.backend.util.qwen_image_vae import patch_qwen_image_vae_tiling
+from invokeai.backend.working_memory import platform as platform_module
+from invokeai.backend.working_memory.bounds import MAX_OVER_RESERVATION
+from invokeai.backend.working_memory.coefficients import shipped_data
+from invokeai.backend.working_memory.fit import SHIPPED_MARGIN
def _decode(alpha: torch.Tensor) -> torch.Tensor:
@@ -91,30 +101,556 @@ def test_the_geometry_is_restored_when_the_decode_fails(vae: AutoencoderKLQwenIm
CPU = torch.device("cpu")
+GPU = torch.device("cuda")
+
+
+def _reserved(operation: str, size: int, tile: int | None, element_size: int, device: torch.device) -> int:
+ return estimate_working_memory(operation, size, size, tile, element_size, device).reservation_bytes
+
+
+def _reserved_frame(height: int, width: int, tile: int | None) -> int:
+ return estimate_working_memory("decode", height, width, tile, 2, GPU).reservation_bytes
+
+
+def _tile_term(height: int, width: int, tile: int | None) -> float:
+ """What a bf16 decode's convolutions term prices: the part the untiled line holds."""
+ estimate = estimate_working_memory("decode", height, width, tile, 2, GPU)
+ return next(term.bytes for term in estimate.terms if term.name == "convolutions")
+
+
+GIB = 1024**3
+
+
+def _peak(operation: str, size: int, element_size: int) -> int:
+ """A reservation without the shipped margin: the untiled peak the tiling decision prices where no point decides."""
+ return int(_reserved(operation, size, None, element_size, GPU) / (1 + SHIPPED_MARGIN))
+
+
+_W7900 = {"conv_backend": "miopen", "allocator": "native"}
-def test_a_float32_vae_is_priced_at_twice_the_bfloat16_memory() -> None:
- fixed = working_memory_bytes(0, 0, None, 2)
- assert working_memory_bytes(1024, 1024, None, 4) - fixed == 2 * (working_memory_bytes(1024, 1024, None, 2) - fixed)
+def _measured(
+ platform: dict[str, str], operation: str, dtype: str, height: int, width: int, tile: int | None = None
+) -> int:
+ """The shipped points' measured bytes, the largest as the tiling decision reads them, so a re-measure or a refit
+ does not break what the test states."""
+ return max(
+ point.measured_bytes
+ for data in shipped_data().values()
+ for point in data.points
+ if point.estimator == SPEC.id
+ and point.platform == platform
+ and point.features["operation"] == operation
+ and point.features["dtype"] == dtype
+ and (point.features["height"], point.features["width"], point.features["tile"]) == (height, width, tile)
+ )
+
+
+def _pin(monkeypatch: pytest.MonkeyPatch, conv_backend: str, allocator: str = "native", os: str = "linux") -> None:
+ """Pin the platform a `GPU` estimate prices: the convolution backend, and the allocator and OS rather than the
+ host's allocator backend and variables."""
+ monkeypatch.setattr(torch.version, "hip", "10.0.0" if conv_backend == "miopen" else None)
+ monkeypatch.setattr(
+ platform_module, "_allocator_for", lambda device: allocator if device.type == "cuda" else "native"
+ )
+ monkeypatch.setattr(platform_module, "_host_os", lambda: os)
+
+
+ ("operation", "size", "element_size", "expected"),
+ [
+ # The bf16 decode covers the RTX 4090's 8.38 GiB at 1024px by the shipped margin, past which it is measured.
+ ("decode", 1152, 2, 8396 * 1152 * 1152 + 615 * 2**20),
+ # The pricing shipped before the working-memory data: 4000 bytes per pixel per element byte, plus 0.6 GiB (to a MiB).
+ ("encode", 1024, 2, 8000 * 1024 * 1024 + 615 * 2**20),
+ ("decode", 1536, 4, 16000 * 1536 * 1536 + 615 * 2**20),
+ ("encode", 1536, 4, 16000 * 1536 * 1536 + 615 * 2**20),
+ ],
+)
+def test_on_cuda_an_untiled_operation_is_priced_on_the_stand_in(
+ operation: str, size: int, element_size: int, expected: int, monkeypatch: pytest.MonkeyPatch
+) -> None:
+ _pin(monkeypatch, "cudnn")
+ assert _reserved(operation, size, None, element_size, GPU) == expected
+ # With no point of this operation and dtype to read, the tiling decision prices that figure: it carries no margin.
+ if (operation, element_size) != ("decode", 2):
+ assert untiled_peak_bytes(operation, size, size, element_size, GPU) == expected
+ # A tile covering the frame runs the single pass, and is priced as one.
+ assert _reserved(operation, size, size, element_size, GPU) == expected
+
+
+ ("height", "width", "tile_height"),
+ # 1536^2 tiles, and 1152x1536 ones clamped to the frame: both past the step.
+ [(2048, 2048, 1536), (1152, 2048, 1152)],
+)
+def test_on_miopen_a_tile_past_the_step_costs_what_the_frame_of_its_size_does(
+ height: int, width: int, tile_height: int, monkeypatch: pytest.MonkeyPatch
+) -> None:
+ _pin(monkeypatch, "miopen")
+ assert _tile_term(height, width, 1536) == _tile_term(tile_height, 1536, None)
+ # The W7900's untiled 1536px decode measured 32.6 GiB.
+ if tile_height == 1536:
+ assert _tile_term(height, width, 1536) >= 32.6 * GIB
+
+
+def test_on_cuda_a_large_frame_is_not_split_off_the_decode_line() -> None:
+ features = {"operation": "decode", "height": 1536, "width": 1536, "tile": None, "dtype": "bf16"}
+ assert SPEC.line({**features, "conv_backend": "cudnn"}).suffix == "decode_bf16"
+ assert SPEC.line({**features, "conv_backend": "miopen"}).suffix == "decode_large_bf16"
+
+
+def test_on_rocm_a_decode_is_priced_above_the_original_and_an_encode_below_it(monkeypatch: pytest.MonkeyPatch) -> None:
+ _pin(monkeypatch, "miopen")
+ original = 1024 * 1024 * 4000 * 2 + 615 * 2**20
+ assert _reserved("encode", 1024, None, 2, GPU) < original < _reserved("decode", 1024, None, 2, GPU)
+ # The reservation covers the W7900's measured 1024px decode.
+ assert _reserved("decode", 1024, None, 2, GPU) >= _measured(_W7900, "decode", "bf16", 1024, 1024)
+ # A VAE on the CPU of a ROCm build is not on MIOpen.
+ assert _reserved("decode", 1024, None, 2, CPU) == 8396 * 1024 * 1024 + 615 * 2**20
+
+
+def test_a_frame_is_tiled_when_either_side_exceeds_the_tile(monkeypatch: pytest.MonkeyPatch) -> None:
+ _pin(monkeypatch, "miopen")
+ # A tile covering the frame runs the single pass; a side past the tile prices one tile.
+ assert _reserved("decode", 1024, 1024, 2, GPU) == _reserved("decode", 1024, None, 2, GPU)
+ tiled = estimate_working_memory("decode", 1024, 1536, 1024, 2, GPU).reservation_bytes
+ assert tiled < estimate_working_memory("decode", 1024, 1536, None, 2, GPU).reservation_bytes
+
+
+def test_a_tile_is_clamped_to_the_frame_per_axis(monkeypatch: pytest.MonkeyPatch) -> None:
+ _pin(monkeypatch, "miopen")
+ # A 512x1536 frame in 1024px tiles runs tiles of 512x1024, and a 1536x512 one tiles of 1024x512.
+ assert _tile_term(512, 1536, 1024) == _tile_term(512, 1024, None)
+ assert _tile_term(1536, 512, 1024) == _tile_term(1024, 512, None)
+ # What tiling adds grows with the tile on MIOpen, so it is the same for both, and less than a whole tile's.
+ assert _reserved_frame(1536, 512, 1024) == _reserved_frame(512, 1536, 1024)
+
+ def tiled(height: int, width: int) -> float:
+ estimate = estimate_working_memory("decode", height, width, 1024, 2, GPU)
+ return next(term.bytes for term in estimate.terms if term.name == "tiled")
+
+ assert tiled(512, 1536) < tiled(1024, 1536)
+
+
+def test_a_tile_prices_below_the_frame_it_covers_in_part(monkeypatch: pytest.MonkeyPatch) -> None:
+ _pin(monkeypatch, "miopen")
+ for tile in (512, 768, 1024):
+ assert _reserved("decode", 2048, tile, 2, GPU) < _reserved("decode", 2048, None, 2, GPU)
+
+
+ ("conv_backend", "allocator", "os", "frame", "tile"),
+ [
+ ("cudnn", "native", "linux", 2048, 1024),
+ ("cudnn", "native", "linux", 2048, 768),
+ ("cudnn", "native", "linux", 2048, 512),
+ ("miopen", "native", "linux", 3072, 512),
+ ("miopen", "native", "windows", 3072, 512),
+ ("miopen", "native", "windows", 1536, 512),
+ ("miopen", "expandable", "windows", 2048, 512),
+ ],
+)
+def test_a_measured_tile_is_reserved(
+ conv_backend: str, allocator: str, os: str, frame: int, tile: int, monkeypatch: pytest.MonkeyPatch
+) -> None:
+ _pin(monkeypatch, conv_backend, allocator, os)
+ platform = {"conv_backend": conv_backend, "allocator": allocator} | ({"os": os} if os == "windows" else {})
+ assert _reserved("decode", frame, tile, 2, GPU) >= _measured(platform, "decode", "bf16", frame, frame, tile)
+
+
+def test_on_miopen_a_bf16_decode_past_the_step_prices_on_its_own_line(monkeypatch: pytest.MonkeyPatch) -> None:
+ _pin(monkeypatch, "miopen")
+
+ def per_pixel(height: int, width: int) -> float:
+ return _tile_term(height, width, None) / (height * width)
+
+ # Measured: 1248^2 12510 bytes per pixel, 1024x1536 (1.573 Mpx) 12067, 1264^2 12887, 1280^2 14382. The real jump is
+ # between 1264^2 and 1280^2, and the step leaves the first two on the low line.
+ low, large = per_pixel(1024, 1024), per_pixel(1600, 1600)
+ assert large > low
+ assert per_pixel(1248, 1248) == per_pixel(1024, 1536) == low
+ # Exactly at the step is still below it.
+ assert per_pixel(1000, 1580) == low
+ assert per_pixel(1264, 1264) == per_pixel(1280, 1280) == large
+ # Both sides of the step are reserved within the shared bound of what they measured.
+ for height, width in ((1024, 1024), (1024, 1536)):
+ measured = _measured(_W7900, "decode", "bf16", height, width)
+ reserved = estimate_working_memory("decode", height, width, None, 2, GPU).reservation_bytes
+ assert measured <= reserved <= MAX_OVER_RESERVATION * measured
+
+
+def test_only_a_known_element_size_is_priced() -> None:
+ with pytest.raises(ValueError, match="1-byte elements"):
+ estimate_working_memory("decode", 1024, 1024, None, 1, CPU)
+ with pytest.raises(ValueError, match="8-byte elements"):
+ untiled_peak_bytes("decode", 1024, 1024, 8, CPU)
+
+
+def test_on_rocm_the_tiling_decision_follows_the_measured_untiled_curve(monkeypatch: pytest.MonkeyPatch) -> None:
+ _pin(monkeypatch, "miopen")
+ decode_1024 = _measured(_W7900, "decode", "bf16", 1024, 1024)
+ decode_1088 = _measured(_W7900, "decode", "bf16", 1088, 1088)
+ # Measured points are their measured bytes; between two, the chord in bytes.
+ assert untiled_peak_bytes("decode", 1024, 1024, 2, GPU) == decode_1024
+ between = (1024 * 1088 - 1024 * 1024) / (1088 * 1088 - 1024 * 1024)
+ expected = decode_1024 + (decode_1088 - decode_1024) * between
+ assert untiled_peak_bytes("decode", 1024, 1088, 2, GPU) == pytest.approx(expected, abs=1)
+ # Past the last measured area (1600px) it is that point plus what the peak grows by from it.
+ last = untiled_peak_bytes("decode", 1600, 1600, 2, GPU)
+ grown = _peak("decode", 2048, 2) - _peak("decode", 1600, 2)
+ assert untiled_peak_bytes("decode", 2048, 2048, 2, GPU) == last + grown
+
+ # On a card that holds less than the 1024px decode reserves but more than it measured, it stays whole; and an encode
+ # reads its own curve, not the decode's (32.6 GiB at 1536px).
+ ceiling = (decode_1024 + _reserved("decode", 1024, None, 2, GPU)) // 2
+ monkeypatch.setattr(vae_module, "should_pretile_vae_decode", lambda device, needed: needed > ceiling)
+ assert choose_tile_size("decode", 1024, 1024, 2, GPU, tiled=False, tile_size=768, auto_tile=True) is None
+ assert untiled_peak_bytes("encode", 1536, 1536, 2, GPU) == _measured(_W7900, "encode", "bf16", 1536, 1536)
+ assert choose_tile_size("encode", 1536, 1536, 2, GPU, tiled=False, tile_size=768, auto_tile=True) is None
+ assert choose_tile_size("decode", 1536, 1536, 2, GPU, tiled=False, tile_size=768, auto_tile=True) == 768
def test_nothing_is_tiled_unless_asked_or_too_large(monkeypatch: pytest.MonkeyPatch) -> None:
# Stand in for the device: it holds 12 GiB of working memory.
- monkeypatch.setattr(vae_module, "should_pretile_vae_decode", lambda device, needed: needed > 12 * 1024**3)
+ monkeypatch.setattr(vae_module, "should_pretile_vae_decode", lambda device, needed: needed > 12 * GIB)
def choose(size: int, **kwargs) -> int | None:
- return choose_tile_size(size, size, 2, CPU, **({"tiled": False, "tile_size": 0, "auto_tile": True} | kwargs))
+ defaults = {"tiled": False, "tile_size": 0, "auto_tile": True}
+ return choose_tile_size("decode", size, size, 2, CPU, **(defaults | kwargs))
assert choose(1024) is None
- # 2048x2048 untiled needs ~32 GiB: tiled, at the device's tile size, encode and decode alike.
+ # 2048x2048 untiled needs ~32 GiB: tiled, at the device's tile size.
assert choose(2048) == 1024
assert choose(2048, auto_tile=False) is None
assert choose(1024, tiled=True) == 1024
+def test_the_default_tile_is_the_largest_whose_working_memory_fits_half_the_device(
+ monkeypatch: pytest.MonkeyPatch,
+) -> None:
+ _pin(monkeypatch, "miopen")
+ monkeypatch.setattr(torch.cuda, "get_device_properties", lambda device: SimpleNamespace(total_memory=42 * GIB))
+ # On a 42 GiB MIOpen card a 1024px fp32 decode tile reserves 23.32 GiB, over half of it -- priced as a tile: as an
+ # untiled 1024px frame it would be 19.75 GiB, and fit. A 1024px encode tile (6.64 GiB) fits.
+ assert default_tile_size("decode", GPU, 4) == 768
+ assert default_tile_size("encode", GPU, 4) == 1024
+
+
+def test_an_encode_takes_its_own_default_tile(monkeypatch: pytest.MonkeyPatch) -> None:
+ _pin(monkeypatch, "miopen", "expandable", "windows")
+ monkeypatch.setattr(torch.cuda, "get_device_properties", lambda device: SimpleNamespace(total_memory=16 * GIB))
+ # On a 16 GiB card with expandable segments a 1024px bf16 encode tile fits in half of it; a decode tile does not.
+ choose = {"tiled": True, "tile_size": 0, "auto_tile": False}
+ assert choose_tile_size("encode", 2048, 2048, 2, GPU, **choose) == 1024
+ assert choose_tile_size("decode", 2048, 2048, 2, GPU, **choose) == 768
+
+
+ ("conv_backend", "allocator", "os"),
+ [
+ ("cudnn", "native", "linux"),
+ ("miopen", "native", "linux"),
+ ("miopen", "expandable", "windows"),
+ ("miopen", "native", "windows"),
+ ],
+)
[email protected](("tile", "below"), [(1024, 768), (768, 512)])
+def test_the_default_bf16_decode_tile_changes_exactly_at_each_memory_tier(
+ conv_backend: str, allocator: str, os: str, tile: int, below: int, monkeypatch: pytest.MonkeyPatch
+) -> None:
+ _pin(monkeypatch, conv_backend, allocator, os)
+ # A tile is picked once its reservation, priced as one tile of a frame twice its side, fits half the card.
+ threshold = 2 * _reserved("decode", 2 * tile, tile, 2, GPU)
+ for total, expected in ((threshold, tile), (threshold - 1, below)):
+ monkeypatch.setattr(
+ torch.cuda, "get_device_properties", lambda device, total=total: SimpleNamespace(total_memory=total)
+ )
+ assert default_tile_size("decode", GPU, 2) == expected
+
+
+ ("allocator", "os", "points"),
+ [
+ ("native", "linux", _W7900),
+ # The RX 9060 XT's own points, under each allocator.
+ ("native", "windows", {**_W7900, "os": "windows"}),
+ ("expandable", "windows", {"conv_backend": "miopen", "allocator": "expandable", "os": "windows"}),
+ # Off Windows expandable segments are priced as the native allocator.
+ ("expandable", "linux", _W7900),
+ ],
+)
+def test_the_tiling_decision_reads_the_points_of_the_platform_it_is_priced_as(
+ allocator: str, os: str, points: dict[str, str], monkeypatch: pytest.MonkeyPatch
+) -> None:
+ _pin(monkeypatch, "miopen", allocator, os)
+ assert untiled_peak_bytes("decode", 1024, 1024, 2, GPU) == _measured(points, "decode", "bf16", 1024, 1024)
+ assert untiled_peak_bytes("encode", 1536, 1536, 2, GPU) == _measured(points, "encode", "bf16", 1536, 1536)
+
+
+def test_below_its_first_point_the_tiling_decision_takes_the_reservation(monkeypatch: pytest.MonkeyPatch) -> None:
+ _pin(monkeypatch, "miopen")
+ # The W7900's first untiled fp32 decode is at 1024px; scaled down to 512px through the origin it would drop the
+ # line's base.
+ assert untiled_peak_bytes("decode", 512, 512, 4, GPU) == _peak("decode", 512, 4)
+
+
+def test_the_tiling_decision_never_falls_as_a_frame_grows_into_the_first_point(monkeypatch: pytest.MonkeyPatch) -> None:
+ _pin(monkeypatch, "miopen", "native", "windows")
+ # Just below the RX 9060 XT's first untiled bf16 decode, 512px, even the reservation without its margin lies above
+ # that point's bytes at 496x512.
+ at_point = untiled_peak_bytes("decode", 512, 512, 2, GPU)
+ reserved = estimate_working_memory("decode", 496, 512, None, 2, GPU).reservation_bytes
+ assert reserved / (1 + SHIPPED_MARGIN) > at_point
+ assert untiled_peak_bytes("decode", 496, 512, 2, GPU) == at_point
+
+
+def test_one_point_decides_the_tiling_decision_from_its_size_on(monkeypatch: pytest.MonkeyPatch) -> None:
+ _pin(monkeypatch, "cudnn")
+ # One untiled bf16 decode is measured on cuDNN, at 1024px. Past it, the point plus the peak's growth from it.
+ at_point = untiled_peak_bytes("decode", 1024, 1024, 2, GPU)
+ assert at_point == _measured({"conv_backend": "cudnn", "allocator": "native"}, "decode", "bf16", 1024, 1024)
+ grown = _peak("decode", 1152, 2) - _peak("decode", 1024, 2)
+ assert untiled_peak_bytes("decode", 1152, 1152, 2, GPU) == at_point + grown
+
+
+def test_the_tiling_decision_never_falls_across_the_w7900s_dip_below_the_step(
+ monkeypatch: pytest.MonkeyPatch,
+) -> None:
+ _pin(monkeypatch, "miopen")
+ # The W7900's 1024x1536 decode (1.573 Mpx) peaked below the 1248x1248 one (1.558 Mpx); frames between them in area
+ # must not decide below the smaller.
+ shapes = sorted([(1248, 1248), (1088, 1440), (1248, 1264), (1024, 1536)], key=lambda shape: shape[0] * shape[1])
+ decisions = [untiled_peak_bytes("decode", height, width, 2, GPU) for height, width in shapes]
+ assert decisions == sorted(decisions)
+
+
[email protected]("allocator", ["native", "cudaMallocAsync"])
+ ("size", "total_gib", "tiled"),
+ [
+ # 8.38 GiB measured at 1024px; 1152px peaks near 10.45 GiB, under the 10.8 GiB ceiling of a 12 GiB card,
+ # though it reserves 10.98.
+ (1152, 12, False),
+ # Below the point, the reservation without its margin: 6.99 GiB at 928px, under the 7.2 GiB ceiling of an 8 GiB
+ # card though it reserves 7.33; 7.21 GiB at 944px, over it.
+ (928, 8, False),
+ (944, 8, True),
+ ],
+)
+def test_on_nvidia_the_tiling_decision_grows_from_the_measured_point(
+ size: int, total_gib: int, tiled: bool, allocator: str, monkeypatch: pytest.MonkeyPatch
+) -> None:
+ _pin(monkeypatch, "cudnn", allocator)
+ monkeypatch.setattr(wddm, "local_video_memory", lambda device: None)
+ monkeypatch.setattr(
+ torch.cuda, "get_device_properties", lambda device: SimpleNamespace(total_memory=total_gib * GIB)
+ )
+ chosen = choose_tile_size("decode", size, size, 2, GPU, tiled=False, tile_size=0, auto_tile=True)
+ assert (chosen is not None) == tiled
+
+
[email protected](("total_gib", "expected"), [(9.5, None), (9.3, 512)])
+def test_on_nvidia_a_1024px_decode_tiles_on_its_measured_bytes(
+ total_gib: float, expected: int | None, monkeypatch: pytest.MonkeyPatch
+) -> None:
+ _pin(monkeypatch, "cudnn")
+ monkeypatch.setattr(wddm, "local_video_memory", lambda device: None)
+ total = int(total_gib * GIB)
+ monkeypatch.setattr(torch.cuda, "get_device_properties", lambda device: SimpleNamespace(total_memory=total))
+ # The tiling ceiling is 90% of the card: 9.18e9 bytes of 9.5 GiB, 8.99e9 of 9.3 GiB, around the 8997956485 measured.
+ # The 8.80 GiB (9449M) reserved would tile on both.
+ assert choose_tile_size("decode", 1024, 1024, 2, GPU, tiled=False, tile_size=0, auto_tile=True) == expected
+
+
+def test_under_cuda_malloc_async_the_tiling_decision_reads_the_native_allocators_points(
+ monkeypatch: pytest.MonkeyPatch,
+) -> None:
+ # cudaMallocAsync has no untiled point of its own; native, which needs more, decides for it. A native fp32 decode
+ # point at half its reservation, which no stand-in reproduces, shows which points decide.
+ _pin(monkeypatch, "cudnn", "cudaMallocAsync")
+ reserved = _reserved("decode", 1024, None, 4, GPU)
+ data = dict(shipped_data())
+ file = data["qwen_image_2_1_vae.json"]
+ template = next(
+ point for point in file.points if point.platform == {"conv_backend": "cudnn", "allocator": "native"}
+ )
+ native = template.model_copy(
+ update={
+ "features": {
+ **template.features,
+ "operation": "decode",
+ "height": 1024,
+ "width": 1024,
+ "tile": None,
+ "dtype": "fp32",
+ },
+ "measured_bytes": reserved // 2,
+ "method": "reserved_peak",
+ "in_fit": True,
+ }
+ )
+ data["qwen_image_2_1_vae.json"] = file.model_copy(update={"points": [*file.points, native]})
+ monkeypatch.setattr(vae_module, "shipped_data", lambda: data)
+ vae_module._measured_untiled_peaks.cache_clear()
+ try:
+ assert untiled_peak_bytes("decode", 1024, 1024, 4, GPU) == reserved // 2
+ finally:
+ vae_module._measured_untiled_peaks.cache_clear()
+
+
[email protected]("wider_first", [False, True])
+def test_the_tiling_decision_reads_the_larger_of_two_shapes_of_one_area(
+ wider_first: bool, monkeypatch: pytest.MonkeyPatch
+) -> None:
+ _pin(monkeypatch, "miopen")
+ expected = untiled_peak_bytes("decode", 1024, 1024, 2, GPU)
+ data = dict(shipped_data())
+ file = data["qwen_image_2_1_vae.json"]
+ measured = next(
+ point
+ for point in file.points
+ if point.platform == {"conv_backend": "miopen", "allocator": "native"}
+ and point.features["operation"] == "decode"
+ and point.features["dtype"] == "bf16"
+ and point.features["height"] == point.features["width"] == 1024
+ )
+ # A 512x2048 decode, the same area as 1024x1024, at twice its bytes, read before or after it.
+ wider = measured.model_copy(
+ update={
+ "features": {**measured.features, "height": 512, "width": 2048},
+ "measured_bytes": 2 * measured.measured_bytes,
+ }
+ )
+ points = [wider, *file.points] if wider_first else [*file.points, wider]
+ data["qwen_image_2_1_vae.json"] = file.model_copy(update={"points": points})
+ monkeypatch.setattr(vae_module, "shipped_data", lambda: data)
+ vae_module._measured_untiled_peaks.cache_clear()
+ try:
+ assert untiled_peak_bytes("decode", 1024, 1024, 2, GPU) == 2 * expected
+ finally:
+ vae_module._measured_untiled_peaks.cache_clear()
+
+
+ "update",
+ [{"in_fit": False}, {"method": "probe_demand"}, {"version": 2}],
+ ids=["out_of_fit", "lower_bound_only", "other_version"],
+)
+def test_the_tiling_decision_ignores_points_that_cap_no_line(update: dict, monkeypatch: pytest.MonkeyPatch) -> None:
+ _pin(monkeypatch, "miopen")
+ expected = untiled_peak_bytes("decode", 1024, 1024, 2, GPU)
+ data = dict(shipped_data())
+ file = data["qwen_image_2_1_vae.json"]
+ measured = next(
+ point
+ for point in file.points
+ if point.platform == {"conv_backend": "miopen", "allocator": "native"}
+ and point.features["operation"] == "decode"
+ and point.features["dtype"] == "bf16"
+ and point.features["height"] == point.features["width"] == 1024
+ )
+ extra = measured.model_copy(update={"measured_bytes": 2 * measured.measured_bytes, **update})
+ data["qwen_image_2_1_vae.json"] = file.model_copy(update={"points": [*file.points, extra]})
+ monkeypatch.setattr(vae_module, "shipped_data", lambda: data)
+ vae_module._measured_untiled_peaks.cache_clear()
+ try:
+ assert untiled_peak_bytes("decode", 1024, 1024, 2, GPU) == expected
+ finally:
+ vae_module._measured_untiled_peaks.cache_clear()
+
+
+def test_the_shipped_data_agrees_with_itself() -> None:
+ """A stand-in entry copied from another goes stale silently when its source is refitted; and a point's estimate
+ reads its backend from its features, which must name the platform it was measured on."""
+ entries = {
+ tuple(sorted(entry.platform.items())): entry.values
+ for data in shipped_data().values()
+ for entry in data.coefficients
+ if entry.estimator == "vae.qwen_image_2_1"
+ }
+ copies = {
+ (("allocator", "cudaMallocAsync"), ("conv_backend", "cudnn")): (
+ ("allocator", "native"),
+ ("conv_backend", "cudnn"),
+ ),
+ }
+ for copy, source in copies.items():
+ assert entries[copy] == entries[source], copy
+ for data in shipped_data().values():
+ for point in data.points:
+ if point.estimator == "vae.qwen_image_2_1":
+ assert point.features["conv_backend"] == point.platform["conv_backend"], point.provenance
+
+
+# What the RX 9060 XT measured against the W7900 at the same features: the scale a Windows stand-in takes the W7900's
+# line at, by allocator and line. Bytes as measured, so a stand-in solved back from a bound rather than grounded shows.
+_RX9060XT_OVER_W7900 = {
+ ("native", "decode_large_bf16"): 15099494400 / 12683575296, # the 1024px bf16 decode
+}
+
+
+def test_a_stand_in_on_an_amd_entry_is_grounded_and_covers_its_own_points() -> None:
+ """A stand-in on Windows stands for what the RX 9060 XT did not measure: the W7900's line at the ratio the two
+ measured at the same features, or, where expandable segments have no decode step, the entry's own decode line. Either
+ way it covers the entry's own points on that line by the shipped margin, as `build_shipped` raises it to."""
+ entries = [
+ entry
+ for data in shipped_data().values()
+ for entry in data.coefficients
+ if entry.estimator == "vae.qwen_image_2_1" and entry.platform["conv_backend"] == "miopen"
+ ]
+ points = [point for data in shipped_data().values() for point in data.points if point.estimator == SPEC.id]
+ w7900 = next(entry.values for entry in entries if "os" not in entry.platform)
+ checked = 0
+ for entry in (entry for entry in entries if "os" in entry.platform):
+ allocator = entry.platform["allocator"]
+ for line in {name[2:] for name in entry.stand_ins}:
+ k, b = entry.values[f"k_{line}"], entry.values[f"b_{line}"]
+ if (allocator, line) == ("expandable", "decode_large_bf16"):
+ floor = (entry.values["k_decode_bf16"], entry.values["b_decode_bf16"])
+ else:
+ scale = _RX9060XT_OVER_W7900[(allocator, line)]
+ floor = (scale * w7900[f"k_{line}"], scale * w7900[f"b_{line}"])
+ assert k >= floor[0] and b >= floor[1], (entry.platform, line)
+ for point in points:
+ placed = SPEC.line(point.features)
+ if point.platform == entry.platform and placed.suffix == line and placed.sits_on is None:
+ assert k * placed.size + b >= 1.05 * point.measured_bytes, (entry.platform, placed.label)
+ checked += 1
+ assert checked == len(_RX9060XT_OVER_W7900) + 1, "a stand-in nobody grounded, or the check is broken"
+
+
+def test_a_tiled_stand_in_on_cudnn_prices_at_least_two_rgba_copies_of_the_frame_and_a_tile_margin() -> None:
+ """Nothing else holds a tiled stand-in no point measures. On cuDNN the tiled line is over the frame's pixels: the
+ slope is two RGBA copies of the image, 8 elements per pixel; the base at least the margin at a 768px tile, 266 MiB in
+ bf16, scaled by the element size. (MIOpen's tiled stand-ins, over the tile's pixels, are the W7900's lines scaled.)"""
+ elements = {"bf16": 2, "fp32": 4}
+ checked = 0
+ for data in shipped_data().values():
+ for entry in data.coefficients:
+ if entry.estimator != "vae.qwen_image_2_1" or entry.platform["conv_backend"] != "cudnn":
+ continue
+ for line in {name[2:] for name in entry.stand_ins if "_tiled_" in name}:
+ element = elements[line.rsplit("_", 1)[1]]
+ assert entry.values[f"k_{line}"] >= 8 * element, (entry.platform, line)
+ assert entry.values[f"b_{line}"] >= 133 * element * 2**20, (entry.platform, line)
+ checked += 1
+ assert checked, "the check is broken"
+
+
[email protected](("dedicated", "expected"), [(True, 512), (False, 1024)], ids=["discrete", "integrated"])
+def test_a_discrete_xpu_picks_its_tile_from_its_memory(dedicated: bool, expected: int, monkeypatch) -> None:
+ monkeypatch.setattr(vae_module, "device_has_dedicated_vram", lambda device: dedicated)
+ monkeypatch.setattr(torch.xpu, "get_device_properties", lambda device: SimpleNamespace(total_memory=8 * GIB))
+ # Priced as cuDNN: on 8 GiB only a 512px bf16 decode tile (2.93 GiB) fits in half. An integrated XPU shares system
+ # RAM and keeps the largest tile.
+ assert default_tile_size("decode", torch.device("xpu"), 2) == expected
+
+
def test_a_tile_size_field_below_the_floor_is_raised_to_it() -> None:
- assert choose_tile_size(2048, 2048, 2, CPU, tiled=True, tile_size=16, auto_tile=False) == MIN_TILE_SIZE
- assert choose_tile_size(2048, 2048, 2, CPU, tiled=True, tile_size=768, auto_tile=False) == 768
+ assert choose_tile_size("decode", 2048, 2048, 2, CPU, tiled=True, tile_size=16, auto_tile=False) == MIN_TILE_SIZE
+ assert choose_tile_size("decode", 2048, 2048, 2, CPU, tiled=True, tile_size=768, auto_tile=False) == 768
@pytest.mark.parametrize(
@@ -124,8 +660,6 @@ def test_a_tile_size_field_below_the_floor_is_raised_to_it() -> None:
def test_the_pipelines_vae_loads_at_the_configured_precision_but_never_float16(
precision: torch.dtype, expected: torch.dtype, tmp_path, monkeypatch: pytest.MonkeyPatch
) -> None:
- from types import SimpleNamespace
-
from invokeai.backend.model_manager.load.model_loaders.qwen_image_2_1 import QwenImage21DiffusersModel
from invokeai.backend.model_manager.taxonomy import SubModelType
diff --git a/tests/test_calibrate_qwen_image_2_1_vae_working_memory.py b/tests/test_calibrate_qwen_image_2_1_vae_working_memory.py
new file mode 100644
index 0000000000..949dc0a112
--- /dev/null
+++ b/tests/test_calibrate_qwen_image_2_1_vae_working_memory.py
@@ -0,0 +1,179 @@
+"""scripts/calibrate_qwen_image_2_1_vae_working_memory.py: the points it plans, and that the builder reads what it writes.
+
+The measurement needs a CUDA or ROCm device and runs by hand (see the script's docstring)."""
+
+import json
+from importlib.util import module_from_spec, spec_from_file_location
+from pathlib import Path
+
+import pytest
+
+from invokeai.backend.qwen_image_2_1.vae import SPATIAL_SCALE, SPEC
+from invokeai.backend.working_memory.coefficients import find_entry, shipped_data
+from invokeai.backend.working_memory.counters import CounterReading
+from invokeai.backend.working_memory.measurement import fresh_window
+from scripts.working_memory import fresh_points
+from scripts.working_memory.build_shipped import merge_points, read_point_files
+
+pytestmark = pytest.mark.platform_independent
+
+
+def _load_script():
+ path = Path(__file__).parents[1] / "scripts" / "calibrate_qwen_image_2_1_vae_working_memory.py"
+ spec = spec_from_file_location("calibrate_qwen_image_2_1_vae_working_memory", path)
+ assert spec is not None and spec.loader is not None
+ module = module_from_spec(spec)
+ spec.loader.exec_module(module)
+ return module
+
+
+script = _load_script()
+
+
+def test_the_plan_runs_each_operation_and_dtype_untiled_and_at_each_tile_of_each_frame() -> None:
+ points = script.plan("vae", ["decode"], ["bf16", "fp32"], [(512, 512), (896, 1152)], [2048], [512, 1024])
+ assert [(p.dtype, p.height, p.width, p.tile) for p in points] == [
+ ("bf16", 512, 512, None),
+ ("bf16", 896, 1152, None),
+ ("bf16", 2048, 2048, 512),
+ ("bf16", 2048, 2048, 1024),
+ ("fp32", 512, 512, None),
+ ("fp32", 896, 1152, None),
+ ("fp32", 2048, 2048, 512),
+ ("fp32", 2048, 2048, 1024),
+ ]
+
+
+def test_a_size_is_a_side_or_a_shape() -> None:
+ assert script.shapes("512,896x1152") == [(512, 512), (896, 1152)]
+ with pytest.raises(ValueError):
+ script.shapes("1x2x3")
+
+
+def test_main_refuses_a_side_off_the_latent_grid_before_measuring_and_accepts_the_defaults(
+ tmp_path: Path, monkeypatch: pytest.MonkeyPatch, capsys: pytest.CaptureFixture[str]
+) -> None:
+ assert script.SPATIAL_SCALE == SPATIAL_SCALE
+ measured = []
+ monkeypatch.setattr(fresh_points, "measure_points", lambda points, **_: measured.append(points) or [])
+ base = ["script", "--vae", "vae", "--out", str(tmp_path / "points.jsonl")]
+
+ for option, value in [("--sizes", "1024x1000"), ("--frames", "2040"), ("--tiles", "1000")]:
+ monkeypatch.setattr("sys.argv", [*base, option, value])
+ with pytest.raises(SystemExit) as refused:
+ script.main()
+ assert refused.value.code == 2
+ assert value.split("x")[-1] in capsys.readouterr().err
+ assert measured == []
+
+ monkeypatch.setattr("sys.argv", base)
+ script.main()
+ assert len(measured) == 1 and measured[0]
+
+
+def _reading(*, reserved: int, peak_reserved: int, driver: int, retries: int = 0) -> CounterReading:
+ return CounterReading(
+ reserved=reserved,
+ # Live tensors stay under the allocator's blocks, so reading allocated growth instead of reserved fails.
+ allocated=reserved // 2,
+ peak_reserved=peak_reserved,
+ peak_allocated=peak_reserved // 2,
+ num_ooms=0,
+ num_alloc_retries=retries,
+ driver=driver,
+ peak_driver=None,
+ paged=None,
+ device_used=None,
+ method="torch-only",
+ )
+
+
+FEATURES = {
+ "operation": "decode",
+ "height": 2048,
+ "width": 2048,
+ "tile": 512,
+ "dtype": "bf16",
+ "conv_backend": "miopen",
+}
+WEIGHTS = 2**30
+
+
+def _line(platform: dict[str, str], device: str, measured: int, *, retries: int = 0, spill: bool = False) -> dict:
+ """A line as the script writes it, for the 2048px frame at a 512px bf16 tile. The driver reads 300 MiB above the
+ reserved growth, as on HIP."""
+ point = script.Point("vae", "decode", "bf16", 2048, 2048, 512)
+ common = {
+ "estimator": SPEC.id,
+ "version": SPEC.version,
+ "platform": platform,
+ "features": FEATURES,
+ "device": device,
+ }
+ facts = {
+ "device": device,
+ "torch": "2.13.0+rocm10.0.0",
+ "hip": "7.15.26333",
+ "os": platform["os"],
+ "allocator_backend": "native",
+ "alloc_conf": {},
+ "miopen_find_mode": "FAST",
+ "aotriton_experimental": None,
+ "rocm_sdpa_guard": True,
+ }
+ first = _reading(reserved=WEIGHTS, peak_reserved=WEIGHTS, driver=WEIGHTS)
+ top = WEIGHTS + measured
+ final = _reading(reserved=WEIGHTS, peak_reserved=top, driver=top + 300 * 2**20, retries=retries)
+ window = fresh_window(first, final, oom=False, spill=spill)
+ return script.point_line(point, common, window, facts, "2026-11-03")
+
+
+def _record(platform: dict[str, str], device: str, measured: int, tmp_path: Path) -> Path:
+ points_file = tmp_path / "points.jsonl"
+ record = fresh_points.file_record(_line(platform, device, measured))
+ points_file.write_text(json.dumps(record) + "\n", encoding="utf-8")
+ return points_file
+
+
+LINUX = {"conv_backend": "miopen", "allocator": "native", "os": "linux"}
+
+
+def test_a_valid_window_is_its_reserved_growth_as_the_shipped_points_read() -> None:
+ line = _line(LINUX, "AMD Radeon Pro W7900 Dual Slot (gfx1100)", 3 * 2**30)
+ assert (line["status"], line["measured_bytes"], line["method"]) == ("point", 3 * 2**30, "reserved_peak")
+
+
+ ("kwargs", "reason"), [({"retries": 1}, "alloc_retry"), ({"spill": True}, "spill")], ids=["retry", "spill"]
+)
+def test_a_voided_window_is_no_point_and_stays_out_of_the_file(kwargs: dict, reason: str) -> None:
+ line = _line(LINUX, "AMD Radeon Pro W7900 Dual Slot (gfx1100)", 3 * 2**30, **kwargs)
+ assert (line["status"], line["reasons"]) == ("invalid", [reason])
+ assert "measured_bytes" not in line and fresh_points.file_record(line) is None
+
+
+def test_a_w7900_record_naming_its_os_remeasures_the_shipped_point(tmp_path: Path) -> None:
+ """The script records the OS `platform_for` gives; the shipped W7900 entry and points name none. Remeasured at the
+ shipped bytes on the same card, the record merges into its point rather than joining the data beside it."""
+ data = shipped_data()
+ entries = [entry for file in data.values() for entry in file.coefficients]
+ platform = {"conv_backend": "miopen", "allocator": "native", "os": "linux"}
+ points_file = _record(platform, "AMD Radeon Pro W7900 Dual Slot (gfx1100)", 3592421376, tmp_path)
+
+ read = read_point_files([points_file], {SPEC.id: SPEC}, entries).points
+
+ assert len(read) == 1 and read[0].holds_upper_bound and read[0].in_fit
+ assert read[0].platform == {"conv_backend": "miopen", "allocator": "native"}
+ assert find_entry(entries, SPEC.id, SPEC.version, read[0].platform, "test").platform == read[0].platform
+ merged = merge_points(data, read)["qwen_image_2_1_vae.json"]
+ assert merged.points == data["qwen_image_2_1_vae.json"].points
+
+
+def test_a_record_on_a_windows_entry_keeps_its_os(tmp_path: Path) -> None:
+ entries = [entry for file in shipped_data().values() for entry in file.coefficients]
+ platform = {"conv_backend": "miopen", "allocator": "expandable", "os": "windows"}
+ points_file = _record(platform, "RX 9060 XT (gfx1200)", 3 * 2**30, tmp_path)
+
+ read = read_point_files([points_file], {SPEC.id: SPEC}, entries).points
+
+ assert len(read) == 1 and read[0].measured_bytes == 3 * 2**30 and read[0].platform == platform