Archived
vocabulary: hc_project -- a control vector's direction, projected out of the wide stream
h[s] -= scale * (h[s] . v) * v for each of the hyper-connection streams s llama.cpp's --cvec-mode project semantics: the dot is per stream, because the patch applies it to the [n_embd, hc, tokens] view where mul_mat(v, cur) reduces over dim 0. v is one layer's unit direction (f32), scale is the norm its file stored, and 'on' is a per-row int32 switch: a zero row is skipped without a read or a write, so an unprojected request is byte-identical to a deployment with no vector loaded. libref is the oracle and the host fallback, libavx carries it at every ISA level, libr4d (one workgroup per (row, stream), LDS reduction) serves the card. docs/OPS.md gains the row and the operation's three facts.
This commit is contained in:
1 parent
64adee3ece
commit
459dd4f42d
14 files changed
+362
-11
No files matched your search
+11
-11
@@ -70,17 +70,17 @@ int avx_par_force(int threads);
|
||||
#define AVX_OP_LIST(X) \
|
||||
/* ---- elementwise and norms */ \
|
||||
X(rmsnorm) X(rmsnorm_p) X(rmsnorm_add) X(hc_enter) \
|
||||
X(hc_read) X(hc_write) X(mtp_enter) X(layernorm) \
|
||||
X(mhc_pre) X(mhc_post) X(mhc_contract) X(kda_update) \
|
||||
X(mhc_pre_partial) X(mhc_pre_finish) \
|
||||
X(swiglu_clamped) \
|
||||
X(router_sigmoid_topk) \
|
||||
X(dsa_pool) \
|
||||
X(dsa_query) \
|
||||
X(gemm_nt_f32) \
|
||||
X(mla_project) \
|
||||
X(dsa_score) \
|
||||
X(mla_attn) \
|
||||
X(hc_read) X(hc_write) X(hc_project) X(mtp_enter) \
|
||||
X(layernorm) X(mhc_pre) X(mhc_post) X(mhc_contract) \
|
||||
X(kda_update) X(mhc_pre_partial) X(mhc_pre_finish) \
|
||||
X(swiglu_clamped) \
|
||||
X(router_sigmoid_topk) \
|
||||
X(dsa_pool) \
|
||||
X(dsa_query) \
|
||||
X(gemm_nt_f32) \
|
||||
X(mla_project) \
|
||||
X(dsa_score) \
|
||||
X(mla_attn) \
|
||||
X(add) X(grid_embed) X(grid_embed_aa) X(causal_conv1d) \
|
||||
X(mul) X(silu_mul) X(gelu_mul) X(gelu) \
|
||||
X(silu) X(sigmoid) X(logit_softcap) X(gather_rows) \
|
||||
|
||||
Reference in new issue
Block a user