Archived
control vectors: load only when the deployment asks
The graph is declared once, so whether the projection op exists cannot follow a per-request switch. It follows a startup flag instead: --control-vector off load the vector found for this model, requests default off --control-vector on the same, requests default on --control-vector disabled load nothing (also the default with no flag) `disabled` declares no op, so an unprojected request costs the stock model's launches rather than 41 empty ones; a request that asks for the vector is refused by name and the admin route answers 404. `off`/`on` keep the per-request switch and the dashboard default. Measured four ways on one box (stock, disabled, off, on -- one boot each, six 4,096-token answers, speculation off): decode 85.1 / 86.1 / 83.7 / 82.8 tok/s. `disabled` is the stock graph, so there is nothing to pay; `off` pays the 41 launches, `on` pays the projection. KLD mode serves no request to carry the switch, so `--control-vector on` is how the projection itself is scored; config_test covers the three states and the absent default.
This commit is contained in:
1 parent
b15cbb546d
commit
f9d80d6cac
6 files changed
+89
-20
No files matched your search
@@ -818,6 +818,13 @@ struct Config {
|
||||
/* The pinned host pool one rank allocates: --host-pool-mib and the tables placed beside it. */
|
||||
int64_t host_pool_total_mib() const { return host_pool_mib + embedding_host_mib + tower_host_mib; }
|
||||
bool deterministic = false;
|
||||
/* --control-vector off|on. Without the flag (`disabled`) no vector is loaded: the program
|
||||
* declares no projection op, an off request costs the stock model's launches, and a request
|
||||
* that asks for one is refused by name. `off` loads the vector found for this container -- the
|
||||
* op is declared for its layers -- and starts requests off; `on` does the same with the request
|
||||
* default on. The graph is declared once, so this flag is the deployment's only decision about
|
||||
* whether the op exists at all; the value names the startup switch. */
|
||||
std::string control_vector = "disabled";
|
||||
int64_t checkpoint_interval = 2048; /* linear-state checkpoints (spec §7.3) */
|
||||
/* Checkpoint intervals one step may carry of a prefill alone in its step, from an interval
|
||||
* boundary past the first (--prefill-span; 1 splits at every interval). The step's rows stay
|
||||
|
||||
Reference in new issue
Block a user