Archived
radiance 1.6.0
- Qwen-Image 2.1 and 2.1 Turbo: text to image and image edits over OpenAI's images API, /v1/images/generations and /v1/images/edits. An edit takes up to ten pictures and an optional mask, outside which the picture comes back exactly as it was; `background: transparent`, png, jpeg and webp output, `n` pictures from one prompt, streamed previews (`partial_images`), and vLLM-Omni's seed, negative_prompt with true_cfg_scale, num_inference_steps, width and height. arch/qwenimage21 serves the diffusers pipeline directory, converted with data/recipes/qwen-image-2.1-fp8.recipe (block fp8) or qwen-image-2.1-bf16.recipe. deploy/compose/qwen-image-2.1.yaml and qwen-image-2.1-turbo.yaml serve the fp8 containers on two cards. Two R9700s make a 2048x2048 picture in 61 s at the base model's 40 steps and in 13 s with Turbo (56 and 12 s with --tp-wire wht6), a 1024x1024 one in 6.0 and 2.6 s. The models are under Qwen's research license, which is non-commercial - an image generator is a program kind of its own (core/gen): an architecture declares its conditioning, denoising and decoding passes, and the driver runs the schedule, the pictures of a batch and the conditioning cache. An image model's /v1/models entry is its generator's name (qwen-image-2.1, qwen-image-2.1-turbo), and its capabilities and startup banner list only the images endpoints - the tiled prefill GEMMs run their tiles in groups of activation bands, 16 for fp8 and 8 for bf16, so an operand larger than the 64 MB cache is read once a group instead of once a band. A bf16 GEMM with more than 64 MB of weight runs up to twice as fast - fixed: a second lane opened in the middle of a step started beside work lane 0 had not finished. Gemma 4 26B-A4B opens its lane that way, so its first step after startup could read rows not yet written - startup no longer warns about --checkpoint-slots when it was not passed, nor about an expert floor on a model with no experts - the image's FFmpeg writes png, jpeg and webp (libwebp) - for out-of-tree plugins: RAD_ABI_VERSION is 16. The op vocabulary gains the image generator's ops (conv2d_nhwc, ln_mod, ln_mod_quant_fp8, flow_euler, attn_prefix_self and others; docs/OPS.md, "Image generation"), and all_reduce takes an optional `overlap`. Plugins built against 1.5.0 must be rebuilt
This commit is contained in:
1 parent
b93b531f63
commit
b068190326
66 files changed
+9035
-87
No files matched your search
@@ -138,6 +138,30 @@ int r4d_rad_join_add_scale_bf16 (const RadArgs*, RadStream);
|
||||
int r4d_rad_expert_scale_bf16 (const RadArgs*, RadStream);
|
||||
int r4d_rad_attn_vit (const RadArgs*, RadStream);
|
||||
int r4d_rad_attn_dense (const RadArgs*, RadStream);
|
||||
/* The image generator's attention (r4d_attn_gen.hip): a paged prefix and the pass's own rows, the
|
||||
* causal-capable dense form at head_dim 128 (a text encoder's prompt), and one 1152-wide head
|
||||
* (an image decoder's mid block). */
|
||||
int r4d_rad_attn_prefix_self (const RadArgs*, RadStream);
|
||||
int r4d_rad_attn_dense_h128 (const RadArgs*, RadStream);
|
||||
int r4d_rad_attn_dense_wide (const RadArgs*, RadStream);
|
||||
/* The image generator's other ops (r4d_gen.hip). */
|
||||
int r4d_rad_ln_mod (const RadArgs*, RadStream);
|
||||
int r4d_rad_ln_mod_quant_fp8 (const RadArgs*, RadStream);
|
||||
int r4d_rad_gate_add (const RadArgs*, RadStream);
|
||||
int r4d_rad_timestep_embed (const RadArgs*, RadStream);
|
||||
int r4d_rad_gather_rows2 (const RadArgs*, RadStream);
|
||||
int r4d_rad_lane_gather (const RadArgs*, RadStream);
|
||||
int r4d_rad_lane_store (const RadArgs*, RadStream);
|
||||
int r4d_rad_randn_lanes (const RadArgs*, RadStream);
|
||||
int r4d_rad_flow_euler (const RadArgs*, RadStream);
|
||||
int r4d_rad_chan_affine (const RadArgs*, RadStream);
|
||||
int r4d_rad_conv2d_nhwc (const RadArgs*, RadStream);
|
||||
int r4d_rad_l2norm_chan (const RadArgs*, RadStream);
|
||||
int r4d_rad_d2s_add (const RadArgs*, RadStream);
|
||||
int r4d_rad_s2d_avg_add (const RadArgs*, RadStream);
|
||||
int r4d_rad_to_rgba8 (const RadArgs*, RadStream);
|
||||
int r4d_rad_gelu_tanh (const RadArgs*, RadStream);
|
||||
int r4d_rad_scatter_add_rows (const RadArgs*, RadStream);
|
||||
/* Eight queries per KV head (r4d_attn_paged_gqa8.hip): the routed 35B-A3B at head_dim 256
|
||||
* and MiniCPM5-2B at 128. A decode workgroup holds 64 rows of q_len*gqa, so the verify
|
||||
* width is 8 here against the gqa6 leg's 10 -- which is the row's constraint value. */
|
||||
@@ -460,6 +484,14 @@ int r4d_rad_layout_gdense(const RadParam*, int, int, const RadEncoding*, const i
|
||||
const RadTensor*, int, RadLayout*);
|
||||
int r4d_rad_relayout_gdense(const RadParam*, int, int, const RadEncoding*, const int*,
|
||||
const RadTensor*, int, void*, int64_t);
|
||||
/* conv2d_nhwc's weight, PyTorch's [cout][cin][k][k] stored tap-major [cout][k][k][cin]
|
||||
* (r4d_layout.cpp). */
|
||||
int r4d_rad_layout_conv_tap(const RadParam*, int, int, const RadEncoding*, const int*,
|
||||
const RadTensor*, int, RadLayout*);
|
||||
int r4d_rad_relayout_conv_tap(const RadParam*, int, int, const RadEncoding*, const int*,
|
||||
const RadTensor*, int, void*, int64_t);
|
||||
int r4d_rad_unrelayout_conv_tap(const RadParam*, int, int, const RadEncoding*, const int*,
|
||||
const void*, int64_t, const RadTensor*, int);
|
||||
int r4d_rad_layout_mxfp4(const RadParam*, int, int, const RadEncoding*, const int*,
|
||||
const RadTensor*, int, RadLayout*);
|
||||
int r4d_rad_relayout_mxfp4(const RadParam*, int, int, const RadEncoding*, const int*,
|
||||
|
||||
Reference in new issue
Block a user