naming: comments and log lines say control vector, not speed projection

This commit is contained in:
C_Tamas authored and StillDeadcode committed 2026-10-21 09:26:17 +02:00
1 parent 3e9e0f4d03
commit 40f7390766
13 files changed
+19 -19

No files matched your search

+2 -2
View File
@@ -284,7 +284,7 @@ const float* control_vector_upload(const ControlVector& cv, int rank) {
const int64_t bytes = (int64_t) cv.dir.size() * 4;
void* d = rad_dev_alloc(bytes, RAD_MEM_DEVICE);
if (!d) {
RAD_ERR("speed projection: rank %d: could not allocate %.2f MiB on the card for the "
RAD_ERR("control vector: rank %d: could not allocate %.2f MiB on the card for the "
"directions", rank, (double) bytes / (1024.0 * 1024.0));
return nullptr;
}
@@ -297,7 +297,7 @@ const float* control_vector_upload(const ControlVector& cv, int rank) {
rad_stream_sync(s);
rad_stream_destroy(s);
if (rc < 0) {
RAD_ERR("speed projection: rank %d: uploading the directions failed: %s", rank,
RAD_ERR("control vector: rank %d: uploading the directions failed: %s", rank,
rad_dev_last_error());
rad_dev_free(d, RAD_MEM_DEVICE);
return nullptr;
+1 -1
View File
@@ -1,4 +1,4 @@
/* cvec.h -- the experimental speed projection: a GGUF control vector on the residual stream.
/* cvec.h -- control vectors: one GGUF direction per layer, projected out of the residual stream.
*
* ============================== what it is ==============================
*
+2 -2
View File
@@ -1633,7 +1633,7 @@ bool Engine::state_slots_of(uint64_t seq, std::vector<int32_t>* out) const {
/* The engine's part of /server_info: model, cards, KV, drafting and wire, for a running process.
* The server holds only interfaces, so the engine renders this object and the server splices it in
* verbatim. */
/* The experimental speed projection, for /stats, /v1/models and /server_info. `available` is
/* The control vector, for /stats and /server_info. `available` is
* what a client should test before sending the field: without a loaded vector a request that asks
* for it is refused, so a UI can hide the control rather than offer a switch that fails. */
std::string Engine::cvec_json() const {
@@ -2030,7 +2030,7 @@ int Engine::run_server() {
d.tok = &tok_bridge;
d.grammar = &grammar_bridge;
d.live = snap;
/* The experimental speed projection, when a vector was loaded. The admin endpoint flips the
/* The control vector, when one was found. The admin endpoint flips the
* default through this; nothing rebuilds a graph, so a toggle takes effect on the next request
* and leaves the running ones alone. */
if (cvec_.loaded()) {
+1 -1
View File
@@ -483,7 +483,7 @@ private:
bool has_ngram_ = false; /* the model carries an n-gram table */
std::string prefix_off_why_; /* why the engine itself turned prefix caching off, or "" */
/* ---- the experimental speed projection (core/cvec.h). `cvec_` is the host table, loaded
/* ---- control vectors (core/cvec.h). `cvec_` is the host table, loaded
* once at bringup and empty when the feature is off; `cvec_views_` is, per rank, that table
* uploaded to the rank's card and the ABI view build_ctx hands to a declaring plugin (the
* view's `dir` is the allocation, so one vector holds both). `cvec_salt_` partitions the
+1 -1
View File
@@ -94,7 +94,7 @@ struct OaiRequest {
int n = 1;
SamplingParams sp;
/* The experimental speed projection, tri-state: -1 the request named no choice (the engine's
/* The control vector, tri-state: -1 the request named no choice (the deployment's
* runtime default applies), 0 it asked for the stock model, 1 for the loaded control vector.
* Parsed from `control_vector` (or Strata's `experimental_speed_projection`); a deployment
* with no vector refuses 1 rather than silently serving the stock model. */