Archived
naming: comments and log lines say control vector, not speed projection
This commit is contained in:
1 parent
3e9e0f4d03
commit
40f7390766
13 files changed
+19
-19
No files matched your search
@@ -114,7 +114,7 @@ static const RadOperandSpec oCausalConv[] = { OPD("x"), WGT("w"), INOUT("conv_st
|
||||
static const RadParamSpec pHcWrite[] = { P_INT("M"), P_INT("n"), P_INT("hc"), P_STR("dtype") };
|
||||
static const RadOperandSpec oHcEnter[] = { OPD("x"), OUT("h") };
|
||||
static const RadOperandSpec oHcWrite[] = { OPD("y"), OPD("inj"), INOUT("h") };
|
||||
/* The speed projection: one unit direction per layer (f32) and an int32 per-row switch. */
|
||||
/* The control vector's projection: one unit direction per layer (f32) and an int32 per-row switch. */
|
||||
static const RadParamSpec pHcProject[] = { P_INT("M"), P_INT("n"), P_INT("hc"), P_F64("scale"),
|
||||
P_STR("dtype") };
|
||||
static const RadOperandSpec oHcProject[] = { INOUT("h"), OPD("v"), OPD("on") };
|
||||
@@ -831,7 +831,7 @@ static const RadOpSchema kSchemas[] = {
|
||||
"format; a host kernel reads them as the dense tensors it is handed." },
|
||||
{ "hc_write", ARR(pHcWrite), ARR(oHcWrite), "h[s] += inj[s] * y, into the unnormed stream." },
|
||||
{ "hc_project", ARR(pHcProject), ARR(oHcProject),
|
||||
"The experimental speed projection (llama.cpp's `--cvec-mode project`): h[s] -= scale * "
|
||||
"The control vector's projection (llama.cpp's `--cvec-mode project`): h[s] -= scale * "
|
||||
"(h[s] . v) * v for each of the hc streams of a row whose flag is on. A zero flag is not read." },
|
||||
{ "mtp_enter", ARR(pMtpEnter), ARR(oMtpEnter),
|
||||
"MTP head entry: two norms, a per-sub-stream fc and a broadcast fc. `fc` names the two "
|
||||
@@ -1370,7 +1370,7 @@ ROWL("avx_hc_read", "hc_read", "norm",
|
||||
SIMPLE("avx_hc_write", "hc_write", "norm", "gated residual write: h[s] += inj[s] * y", DT_FLOAT,
|
||||
L(hc_write)),
|
||||
SIMPLE("avx_hc_project", "hc_project", "norm",
|
||||
"speed projection: h[s] -= scale * (h[s] . v) * v where the row's flag is on", DT_FLOAT,
|
||||
"control vector: h[s] -= scale * (h[s] . v) * v where the row's flag is on", DT_FLOAT,
|
||||
L(hc_project)),
|
||||
ROWL("avx_mtp_enter", "mtp_enter", "norm",
|
||||
"MTP head entry: two norms, a per-sub-stream fc and a broadcast fc",
|
||||
|
||||
Reference in new issue
Block a user