MCPcopy Create free account
hub / github.com/Niko1221/Strata / pipe_value

Function pipe_value

engine/src/prefill/prefill.cpp:3678–3686  ·  view source on GitHub ↗

the `pipe=` request key; < 0: none

Source from the content-addressed store, hash-verified

3676double g_pipe = -1.0; // --prefill-pipe; < 0: not given (STRATA_PREFILL_PIPE, else 0)
3677double g_pipe_req = -1.0; // the `pipe=` request key; < 0: none
3678double pipe_value() {
3679 if (g_pipe_req >= 0.0) return g_pipe_req;
3680 if (g_pipe >= 0.0) return g_pipe;
3681 static const double env = [] {
3682 const char* v = std::getenv("STRATA_PREFILL_PIPE");
3683 return v != nullptr && v[0] != '\0' ? std::max(0.0, std::atof(v)) : 0.0;
3684 }();
3685 return env;
3686}
3687// the smallest chunk the rule picks (STRATA_PREFILL_PIPE_FLOOR, on the 256-token grid, 256..4096; default 512)
3688int64_t pipe_floor() {
3689 static const int64_t f = [] {

Callers 3

pipe_settingMethod · 0.85
plan_chunkMethod · 0.85
log_planMethod · 0.85

Calls 1

maxFunction · 0.50

Tested by

no test coverage detected