Archived
libr4d: lora_shrink and lora_expand, scalar f32 v1
r4d_lora_bf16.hip: shrink is one block a row (a base row's block leaves at once), one wave a column of R, each lane's k in order and a fixed xor butterfly, so a row's bytes depend on nothing but the row. Expand is one thread an output over M strips of 256 columns, j ascending, sum then scale then one rounding to y's dtype: libref's order, so the emulator holds it to libref bit for bit. A base row of y is neither read nor written. Strides of a, a_scale, t, y and the pools come from the tensors; the grid is M (and N) only. Rows lora_shrink_scalar / lora_expand_scalar with libref's schemas field for field, constrained with C_IN on the tensor dtype names, so an activation the decode does not read never resolves. Not concurrent: the core orders them behind their GEMM. r4d_selftest gets a device case (not run here: this host's GPU is off limits for this work).
This commit is contained in:
1 parent
94ae86f6fd
commit
979b54e091
6 files changed
+669
-2
No files matched your search
@@ -128,6 +128,9 @@ int r4d_rad_norm_add_norm_bf16 (const RadArgs*, RadStream);
|
||||
int r4d_rad_norm_add_norm_route_bf16(const RadArgs*, RadStream);
|
||||
int r4d_rad_join_add_scale_bf16 (const RadArgs*, RadStream);
|
||||
int r4d_rad_expert_scale_bf16 (const RadArgs*, RadStream);
|
||||
/* Runtime LoRA's two halves, each row's adapter named by its slot (r4d_lora_bf16.hip). */
|
||||
int r4d_rad_lora_shrink (const RadArgs*, RadStream);
|
||||
int r4d_rad_lora_expand (const RadArgs*, RadStream);
|
||||
int r4d_rad_attn_vit (const RadArgs*, RadStream);
|
||||
int r4d_rad_attn_dense (const RadArgs*, RadStream);
|
||||
int r4d_rad_seg_sinusoid (const RadArgs*, RadStream);
|
||||
|
||||
Reference in new issue
Block a user