Tests: STRATA_TEST_PINNED_SHARE sets the pinned share the prompt ring rule reads (#2090 repro)
This commit is contained in:
1 parent
8b271f24b5
commit
a86aa74763
1 file changed
+3
-1
@@ -6287,7 +6287,9 @@ int main(int argc, char** argv) {
|
||||
total += b;
|
||||
if (srcp->pinned(l, e)) pinned += b;
|
||||
}
|
||||
strata::prefill::Prefill::set_pinned_share(total ? (double) pinned / (double) total : 1.0);
|
||||
double share = total ? (double) pinned / (double) total : 1.0;
|
||||
if (const char* t = std::getenv("STRATA_TEST_PINNED_SHARE")) share = std::atof(t); // tests: the Windows-like ring rule
|
||||
strata::prefill::Prefill::set_pinned_share(share);
|
||||
}
|
||||
// bytes -> slots for CUDA0's cache: exact when it knows its per-slot offsets (a native pack's blobs differ
|
||||
// per layer), otherwise max_blob each.
|
||||
|
||||
Reference in new issue
Block a user